Guide · updated

How to make a game with AI

This is how I vibe code a game, from a one-line idea to a release people can play. It's the process behind the 12games on this site, with the real prompts from two of them: Ship Quest, made in five days and now on the App Store and Google Play, and One More Take, made in four days in Unreal Engine 5.9.

By Chong-U Lim. 15+ years making games; 33.6K subscribers on AI Oriented.

The short version: pick a game you can finish in a weekend, choose an engine your AI agent can run and test, agree the look with mockups before writing code, make it fun with placeholder shapes, then add AI art and sound, play every build, and ship to the web first.

What you need

  • An AI coding agent. Claude Code, Codex or Cursor. An agent can create files, run the game, read the errors and fix them, which a chat window can't. Ship Quest was built in Cursor, One More Take in Claude Code.
  • A capable model. I've used 10 so far, including Claude Fable 5.2, Claude Opus 5.5, Gemini 4 Carbon and GPT 6.1 Terra. Newer and larger is easier, but smaller models can make games too if you give them more structure.
  • An engine or starter project. More on this in step 2. A starter with agent skills already set up saves you most of the first day.
  • AI tools for assets. An image model for mockups and 2D art (GPT Image, Nano Banana), a 3D model generator for characters (Tripo, Meshy), Blender for the agent to script, and ElevenLabs for voices, music and sound.
  • Somewhere to publish. Wavedash or itch.io, both free.

You don't need to be a programmer. You do need to play your game a lot and say clearly what's wrong with it.

1. Pick a game small enough to finish

The biggest reason AI-made games never ship isn't the AI. It's scope. Pick one core loop you can explain in a sentence and a game that lasts three to five minutes. Ship Quest is three rooms and one puzzle chain. One More Take is one street, played five times.

If you're stuck for an idea, ask the agent to pitch several, then pick one and add a single twist of your own. For the Epic AI MegaJam, Claude pitched four games for the theme "Director's Cut". I took the stunt-double one and added one rule:

Real prompt · One More Take

A is a good idea, i think we can leverage some randomisation as well so that each complete survived run has a different set of things that the director changes.

That single line is why every run of One More Take ends differently.

2. Choose an engine the agent can drive

An agent is only as good as its feedback. Choose an engine where it can build the game, run it, take screenshots and read the errors without you copying things back and forth.

  • Browser engines (Three.js, Phaser, or a small Rust and WebGPU engine like the one most of my games use) are the fastest start. The agent can test in a browser and you can publish in minutes. Tidebreaker went live about seven hours after its first prompt this way.
  • Unreal Engine gives you far better lighting and effects, and agents can now drive the editor over MCP. One More Take and Rooftop Rally were both made in Unreal 5.9 with my free Unreal 5.9 skill. Expect a heavier setup and bigger builds.
  • Unity works too: an agent built my RoboTennis game in Unity 6. Whatever the engine, give the agent a way to run and check the game, or you'll be its eyes for every change.

Whatever you pick, install skills (instruction files for your agent) for that engine, so it doesn't relearn the same traps each session. Mine are in VibeGameDev.

3. Turn your idea into a brief

Start with one prompt that says what the game is, who it's for, which systems it needs and how it should feel. Then ask the agent to write it up as a short brief you both work from. This was the whole opening prompt for Ship Quest:

Real prompt · Ship Quest

/premise a point and click adventure game but in 3D, set in a vibrant and whimsical cartoon environment, works for touch and desktop and web. it will have a hotspot system, inventory system and dialogue system. We will work out a 3 room game with a puzzle sequence. full voice acting. Comical / lighthearted vibes.

The agent came back with the premise (a vibe coder whose laptop, Wi-Fi and AI plan all fail on launch day), the three rooms, a three-to-five-minute length and a rule that you can never get stuck. Every later prompt could point back to it.

4. Decide the look with mockups

Before any code, have the agent draw the same scene in three or four different styles with an image model, and pick one. It gives every later prompt a target. "Make it look like mockup K" works. "Make it look better" doesn't.

Insist the mockups look like screenshots of a real game, with a HUD, not concept art:

Real prompt · Ship Quest

[…] We need it to resemble how it would look like as a screenshot of a game to a large extent.

Mix and match freely. One More Take's look came from combining two rejected mockups: the black-and-white of one and the colours of another.

Real prompt · One More Take

[…] i actually like the noir look of the detective, but wonder if if we can have a middle ground so that we still have some color for the character i think it will work well when cut happens and all the lights come on,

5. Grey-box the game until it's fun

Have the agent build the rules with placeholder shapes first: grey boxes for walls, capsules for characters. If it isn't fun as boxes, art won't save it. Less than two hours into One More Take, running, steering, jumping, the director's notes and the cut to the set all worked in grey.

Ask the agent to test it too. For One More Take, Claude wrote a computer player and a script that played through the game's controls, then ran 18 checks. The one that failed showed the rain made some runs too hard, before I'd played a single take.

6. Make the art with AI

The pipeline that worked across both games:

  1. Characters: an image model draws a turnaround sheet (front, side, back), and Tripo or Meshy turns it into a rigged 3D model.
  2. Animation: stock animations often look stiff. Ask the agent to write its own in Blender, by script, on the same rig. Ship Quest's hero ended up with 14 of them.
  3. Environments: the agent builds rooms and props in Blender by script, matched to your mockup. One More Take's 35-piece film set is one script.
  4. Interface: an image model draws icons, buttons and even a hand-drawn alphabet, so nothing on screen looks like a placeholder.

Give the agent somewhere to judge the look. For One More Take I asked for a "tech art" level with the real set, the cast and live lighting controls, so we could tune the look without playing a whole run.

7. Add sound, music and voices

Sound is the cheapest way to make a game feel finished. ElevenLabs can make the music, the effects and the voices, and agents can use it directly. Be specific about the feel, and expect to iterate:

Real prompt · Ship Quest

bgm for the apartment is too melancholy […] i still don't like it, it feels very elevator musicy, it needs to be whimsical, cartoon esque, not comedic, but light hearted, unobtrusive, think sam and max

If your game has dialogue, put it in a data file first. Then it can be voiced in one pass, and the agent can check it against the game's state. Ship Quest's checker walked through up to 8,000 states and found 28 lines where a character mentioned something you hadn't found yet.

8. Play every build and write notes

This is the actual job when you vibe code a game. Play, notice what feels flat, and say so plainly. Good notes describe what you saw and what you want, not how to code it:

Real prompt · One More Take

[…] can we have enemies behind the barriers shooting at the player? right now there is very little reason to run left and right, so hopefully the above helps […]

Real prompt · Ship Quest

The inventory is way too small and not a fan of this inventory system, feels more minecraft

Name games you want it to feel like ("that's what Return to Monkey Island did"). Number your notes when you have several. Play the actual release build too: my last round of notes on One More Take came from playing v1.1 on itch.io.

9. Run several agents at once

Once the core works, split the game into parts and give each its own agent. On Ship Quest's second evening, seven Gemini 4 Carbon chats worked in the same project on puzzles, interface, music, cast and dialogue, and fifteen of their changes landed by just after midnight. On One More Take, other agents started on the hero and the set while Claude built the test level. Keep each agent on files the others don't touch.

10. Ship it

  • Web first. Ship Quest went to Wavedash as a private playtest on day three, with anonymous stats on how far players got.
  • Add saves and a tutorial late. Both games got a short tutorial once everything else worked, and Ship Quest got three save slots after its first playtest.
  • Then desktop or mobile. One More Take was packaged for Windows and Mac for itch.io. Ship Quest was wrapped in Capacitor for iPhone and iPad and approved by Apple first time.
  • Make a page for it. A trailer cut from the game's own footage, a short site and a dev log. The agent can make all three.
How I Built & FINISHED My Epic AI MegaJam Game With Fable 5.2 and Unreal Engine 5.9 (Full Workflow)

Mistakes that stop games shipping

  • Starting too big. An open world or an MMO is a year of notes. Start with one room or one level.
  • Skipping mockups. Without a picture to aim at, you'll spend days on "make it look better".
  • Adding art before it's fun. Grey-box first.
  • Reading diffs instead of playing. The code can pass every test and still not be fun.
  • Vague notes. "It's bad" gives the agent nothing. "The jump feels floaty, it should land faster" does.
  • Never publishing. Put a build on Wavedash or itch.io as soon as it's playable, even privately.

Which AI model should you use?

Use the best model you have access to, in an agent rather than a chat window. Every model in my games table has built a whole game on video, from Claude Fable 5.2 in Unreal to Claude Haiku 5.5 in the browser. They differ in taste and in how much hand-holding they need, and those differences show up in the build videos. The games page lists which model made which game, with a video for each.

Where to go next