Rock Paper Scissors Game

Viral TikTok Game: Rock Paper Scissors Battle Royale

Geautomatiseerde TikTok Content Generator

Dit project is een volledig geautomatiseerd Rock Paper Scissors battle royale-spel dat unieke, physics-based animaties genereert. De output? Klaar-voor-gebruik virale TikTok-video's — met uiteindelijk meer dan 20 miljoen views.

Wat heb ik gebouwd?

  • 22 emoji-spelers (🪨, ✂️, 📜) die automatisch vechten in een confined arena.
  • Geavanceerde physics: elastic collisions, momentum, en richting.
  • Volledige video-opname via CCapture.js + automatische rendering via FFmpeg.
  • 100% geautomatiseerd: geen handmatige input nodig, klaar voor massale content creatie.
  • TikTok-ready output (480x853, 60 FPS), direct uploadbaar.

Doel van het project

Het doel was om een schaalbare content machine te bouwen die virale TikTok-video's kan produceren zonder menselijke tussenkomst. Door herkenbare emoji’s, fysieke botsingen en een laatste overlevende winnaar te combineren, ontstond content die massaal gedeeld en geliket werd.

Rock Paper Scissors Battle Logic
function fightBattle(ball, other) { 
  if (ball.type === "✂️" && other.type === "📜") other.type = "✂️"; 
  if (ball.type === "📜" && other.type === "🪨") other.type = "📜"; 
  if (ball.type === "🪨" && other.type === "✂️") other.type = "🪨"; 
}

Tools & Technologie

  • p5.js: Canvas-rendering en physics engine voor animatie.
  • CCapture.js: Automatische frame capture voor hoge kwaliteit video-opnames.
  • Node.js + Express.js: Backend voor het verzamelen van frames en het aansturen van video-generatie.
  • FFmpeg: Rendering van frames naar TikTok-ready MP4 video, inclusief compressie en optimalisatie.
FFmpeg Video Generatie
ffmpeg -framerate 60 -i frames/%d.jpg -vf scale=480:853 -c:v libx264 -pix_fmt yuv420p output.mp4

Geavanceerde Physics

Bot Collision Handling
function handleCollision(ball, other) {
  let v1 = project(ball.vel, boundaryVector);
  let v2 = project(other.vel, boundaryVector);
  ball.vel = v2;
  other.vel = v1;
}

Resultaten

  • Meer dan 20 miljoen views op TikTok, 2M likes, en 20K comments.
  • Account succesvol verkocht na bewezen succes.
  • Een schaalbaar concept voor virale marketing en content automatisering.

Voor wie interessant?

  • Marketing- en reclamebureaus voor virale campagnes.
  • Content creators die AI/automatisering willen inzetten.
  • Developers met interesse in physics-based animatie en interactieve content.

🚀 Interesse om samen zoiets te bouwen? Of deze engine te gebruiken voor jouw merk? Let's talk!