Build Games with AI
Beginner · 13 missions · about 4 hours
Go from a blank canvas to a finished arcade game you can play and share. You'll learn the tricks behind almost every 2D game (game loops, controls, physics, collisions, difficulty and sound) and use AI to design, build and debug faster, ending with a complete game built from parts you understand.
Missions
- Build a playable game in 60 seconds with AI: Describe a game in plain English. Watch AI build it live. Then play it.
- Paint your first game screen: Use the canvas to draw a night sky, a player and glowing comets with code.
- The game loop: 60 frames a second: Make a starfield fly with requestAnimationFrame and delta time.
- Controls: read the keyboard like a game: Turn key presses into an input state your game checks every frame.
- Movement & velocity: make it feel alive: Speed, gravity and bounces: the physics behind motion that feels good.
- Collisions: did it hit?: Rectangles, circles and the math behind every hit and near miss.
- Score, lives & game over: Give your game stakes: points, three lives, a fair second chance and a best score.
- Randomness you can replay: seeded random: Build a random generator that makes the same "random" level every time.
- Waves of enemies & a difficulty curve: Spawn enemies on a timer and ramp up the challenge so players stay hooked.
- Bleeps & bloops: sound with the Web Audio API: Design retro sound effects as data, then play them with real oscillators.
- Fix the AI: the game that runs too fast: An AI-written game speeds up on fast screens and lets comets clip through the basket.
- Design your game with AI: the one-page design doc: Turn a spark of an idea into a one-page plan an AI (or a friend) can build from.
- Boss: Space Dodger: Write the engine of a complete arcade game, then play it.
Part of: Game Developer career path