Get your API key

Beginner · 6 lessons · 49 min

Make your first game with AI

Build one small browser game by writing prompts, then add a third dimension and make it work on a phone.

Who it's for

Someone who has finished Prompting for AI coding and wants a first project that is fun to build and fun to show. No coding background needed, and no maths beyond counting points.

What you'll build

A playable game where a basket catches falling mangoes, shared as a link. Then the same idea as a 3D scene, and a version that works with a finger on a phone.

Why this course

AI agents can build a small game today, but beginners get stuck on the same few things: the screen stays blank because nothing was drawn, the game only answers the keyboard and is unusable on a phone, the sound never plays because the browser blocks audio until the player taps something, and the third dimension refuses to load because the model is opened from a file instead of a local server. The official agent guides describe a game workflow but never explain these failures to someone who has never written code.

Take first: Prompting for AI coding

Lessons in this course

  1. 1What a game is made of: five partsScreen, loop, input, rules and a way to win or lose. Why the loop runs sixty times every second, and why that number changes your code. 7 min Free
  2. 2Write a one-page brief for your gameChoose one mechanic instead of ten, then write the eight lines an agent needs to build the game you actually meant. 8 min Log in to open
  3. 3Build the 2D game in five safe stepsDraw the screen, move the basket, catch the mango, count the points, end the game. One testable change per prompt. 9 min Log in to open
  4. 4Add a third dimension with Three.jsScene, camera, light, object, renderer and loop. Why a 3D file refuses to load when you double-click it, and how a local server fixes it. 9 min Log in to open
  5. 5Make the same game work on a phoneFingers instead of arrow keys, a canvas that fits the screen, and the honest difference between a web link and a real app. 8 min Log in to open
  6. 6Make it feel good, then put it onlineThe five fixes that make a game feel finished, free images you are allowed to use, and a free link to share with anyone. 8 min Log in to open
Next upBuild your first web MVPGo from idea to a live web app with an AI agent: plan, design, build, save and launch.