Build a game with Claude in 3 prompts
This is the real game from the reel: Pip and the Beetle King. It has three levels, coins, hearts, a double jump and a boss fight, all in one HTML file. Claude Code wrote all of it from the three prompts below, in 18 minutes of build time.
★What you'll get
Real gameplay from the file Claude wrote, recorded frame by frame in a browser.
1What you need
- A Claude Pro or Max plan for Claude Code. The Free plan doesn't include Claude Code; see the Free-plan option at the bottom.
- A Mac, Windows or Linux computer and a web browser. You don't need any game engine or coding experience.
2The steps
- Install Claude Code.Open Terminal (Mac/Linux) and paste:
curl -fsSL https://claude.ai/install.sh | bashOn Windows, paste this into PowerShell instead:irm https://claude.ai/install.ps1 | iex - Make an empty folder and start Claude in it.
mkdir my-game cd my-game claudeSign in with your Claude account when it asks. - Paste prompt 1 (below) and press Enter. When Claude asks to create the file, say yes.Ours took 16 minutes. Claude plans the whole game first, then writes it in one go.
- Open the file it made.Double-click the .html file in your folder and the game opens in your browser. Play for a minute.
- Paste prompt 2 to add a double jump and tone down the boss.Ours took 97 seconds.
- Fix whatever feels wrong, in one sentence.Pip kept speeding up the longer you held right. That was a real bug. Prompt 3 is the sentence we sent, and Claude fixed it in 26 seconds. Describe what you see, not the code.
- Play it on your phone.The game has touch controls built in. Put the file online with any free static host, such as GitHub Pages, then open the link on your phone and turn it sideways.
3The exact prompts
These are word for word what we sent, in order, in one Claude Code conversation.
Prompt 1
Prompt 2
Prompt 3 (a bug fix)
Claude named the hero "Pip" and the boss "the Beetle King" by itself. Your game will be different: same idea, new code. Use the names Claude gives you in prompts 2 and 3.
4Tips that made it work
- Ask for one HTML file. No installs and no build step. It opens anywhere.
- Name the feel, not just the features. "Juicy animations" and "sound effects" got squash and stretch, screen shake and chiptune music for free.
- Play before you ask for more. Every fix is one plain sentence about what you saw.
- Let it test if you can. Ours ran without permission to run commands, so Claude couldn't test its own code. If it asks to run a check, say yes.
5On the Free plan?
Paste prompt 1 into a chat on claude.ai. Claude can build it as an artifact you play right in the chat, and the Free plan can Publish an artifact to a public link (Claude Help Center).
We built ours in Claude Code and haven't tested this route for this reel. A big game can run into Free-plan message limits, so ask for a smaller version if it stops.
6And the video?
Claude made the reel too, with free, open-source tools:
- 3D world: Three.js, rendered frame by frame in the browser
- Voice: Chatterbox (open-source text-to-speech), each line checked word for word with faster-whisper
- Gameplay capture: Playwright stepping the real game one frame at a time
- Music and sound: written as code with NumPy; mixed and encoded with FFmpeg
Maya and the bus are a dramatized story. The game, the three prompts and the build times are real.