Building games with AI
Long guides on getting a browser game out of a model and into something people will actually play, written from the games that get published here.
How to make a game with AI
Ask for one self-contained HTML file, write a seven-field brief before you write the prompt, then fix one fault per pass. The full method, the faults every first build ships with, and how to publish the result.
How to make a 2D game with AI
Canvas beats DOM and beats a framework for AI-written 2D games. Here is the loop, the pixel-ratio fix, the input layer and the collision tests models get wrong, with the code to paste back.
How to make a 3D game with AI
three.js in one HTML file is the reliable way. The catch is API drift: models write three.js from 2021 that no longer runs. Here is how to pin it, the four settings that stop it looking grey, and where models come from when you have no artist.
AI game prompts that produce a playable game first try
A reusable template, ten complete game prompts you can send as one message, and a repair prompt for each of the eight faults a first build ships with. Written for Claude, ChatGPT and Gemini alike.
How to make a game with Claude
Open Claude Code, paste one prompt, play the file it writes, then fix one thing at a time. The four steps, the prompt to copy, and what a finished game really costs.
How to make a game with ChatGPT
Ask ChatGPT for the whole game, save what it writes as game.html, then fix one thing at a time. The five steps, the prompt to copy, the saving trap that stops most people, and what a finished game takes.
How to make a game with Gemini
Turn Canvas on, paste one prompt, and the game runs beside the chat while Gemini writes it. The four steps, the prompt to copy, how to read the console, and which Gemini model to choose.
How to make a 2 player game with AI
Two players on one keyboard is a weekend. Online play is a different project. The four steps, the prompt to copy, the held-key fix that makes both players move at once, and when the network is worth it.
How to make a survival game with AI
Ask for hunger, night, crafting and saving in one prompt and you get a game where none of them work. Build one pressure at a time. The order to add them in, the numbers that decide whether it is fun, and the prompt to start with.
How to make a racing game with AI
Start top down, not in 3D. The four steps, the prompt to copy, the three numbers behind whether driving feels right, and the checkpoint rule that stops players cutting the track.
How to make an action game with AI
Ask for the combat, then spend everything on the quarter second after contact. The four steps, the prompt to copy, the stack of five cheap effects that make a hit read, and why screen shake belongs on kills only.
How to make an arcade game with AI
An arcade game lives or dies on the gap between dying and playing again. Get it under a second on the same key, show the score and the best beside each other, and ramp the difficulty on a clock.
How to make a casual game with AI
A casual game has to be understood by somebody who did not choose to play it. One input, everything readable at a glance, no instruction text, and an opening five seconds where failing is impossible.
How to make a reflex game with AI
A reaction game that times from when it set a variable reports times no human could reach. Start the count at the frame that drew the cue, read the timestamp off the input event, and throw out anything under 100ms.
How to make a puzzle game with AI
Never generate puzzle levels at random, because a random board is often unsolvable and nobody can tell that from a hard one. Write levels as short text strings instead. The four steps, the prompt, undo, and the move counter.
How to make a word game with AI
The dictionary is the whole problem. A full English word list runs to megabytes, so a model will quietly ship a tiny one. Decide between a curated list in the file and a list fetched once, and keep two lists rather than one.
How to make a math game with AI
A fixed ladder of sums is too easy or too hard within a minute. Track accuracy across the last few answers, move one band up or down, and never take progress away for a wrong answer. The steps, the prompt, integer answers.
How to make an educational game with AI
Make the thing being learned the thing you do to play. A quiz wrapped in a reward loop teaches players to rush the questions, because the game is the prize and the learning is the toll. The steps, the prompt, feedback that says why.
How to make an adventure game with AI
Rooms are the easy part. One flags object that every room, door and line of dialogue reads from is what makes an adventure game remember you. The four steps, the prompt to copy, and the dialogue shape that stops a character greeting you as a stranger.
How to make an RPG with AI
An RPG is the genre where AI writes ten systems and connects none of them. Build one combat encounter that is fun on its own, then levelling, then equipment, then a second enemy. The build order, the numbers for a first fight, and the prompt to copy.
How to make a roguelike with AI
Random levels make bugs impossible to reproduce. Use a small seeded random number generator instead of Math.random, print the seed on the death screen, and let one be typed in. The four steps, the prompt, and what carries between runs.
How to make a horror game with AI
A jump scare every ten seconds stops working after the second one. What works in a browser is sound, a threat heard long before it is seen, sight that ends a few paces out, and quiet. The steps, the prompt, and the audio rule browsers enforce.
How to make a strategy game with AI
The board is easy and the opponent is the game. Skip the decision tree. List every legal move, give each one a number, add a little randomness, take the best. Difficulty then becomes a single value.
How to make a tower defense game with AI
Decide the pathing before anything else. Either towers go on marked plots beside a fixed route, or every placement runs a route search and is refused if it seals the map. Plus wave pacing and a nearly free start.
How to make a simulation game with AI
Give every resource a source, a store and a drain before you write a line. Production with nothing consuming it is a number going up, not a game. Plus tick rates, a speed control, and what not to simulate.
How to make an idle game with AI
Never replay the time a player was away. Save the timestamp when they leave, work out the elapsed seconds on load, and multiply. Plus number formatting and the cost curve that sets the whole pace.
How to make a platformer with AI
Ask for coyote time and jump buffering by name. Those two timers decide whether your platformer feels fair or cheap. Here are the four steps, a prompt that encodes both, and starting values for every jump number.
How to make a physics game with AI
Fast objects pass through thin walls because collision only ever asks where a body is now. Fix it with a small fixed step run several times a frame and walls thicker than your fastest mover. Steps, prompt and numbers.
How to make a snake game with AI
Two arrow keys inside one tick is what kills your snake for no visible reason. Queue the presses, spend one per tick, and refuse any exact reverse. Four steps, a prompt that encodes the rule, and the grid details around it.
How to make a breakout game with AI
The paddle is not a mirror. Derive the exit angle from where the ball struck, measured out from the centre, and the player gets a steering wheel. Four steps, a prompt, plus the flat ball guard and the speed ramp.
How to make a shooter game with AI
Ask for a top down shooter in one file, then fix the bullet array. A first build keeps every bullet it ever fired and slows to a crawl. Here is the pool that fixes it, plus fire rate as a cooldown and hit boxes that favour the player.
How to make a space game with AI
Frictionless space is accurate and almost unplayable. Add a little drag and a top speed, wrap the screen edges and draw a straddling ship twice, then layer the starfield. The prompt and the four numbers are here.
How to make a sports game with AI
An honestly simulated sport is frustrating, because a keyboard cannot aim the way the simulation demands. Bend shots towards the goal inside a narrow cone, widen the target up close, and give the player an opponent they can beat.
How to make a pixel art game with AI
Pixel art is a resolution choice before it is a drawing style. Draw on a small canvas of 320 by 180, scale it up by a whole number only, turn smoothing off in two places, and hold the palette to twelve colours.
How to make a music game with AI
A rhythm game timed from the animation frame will drift apart by the end of the song. Book notes ahead against the audio clock, judge hits against that same clock, and give the player a start button and a calibration screen.
How to make a card game with AI
Two small things decide whether a card game holds up. An even shuffle, which sorting by a random comparator does not give you. And turn order written as a state machine rather than as nested conditions.
How to make a stealth game with AI
Stealth fails when detection is invisible. Draw every vision cone, and give being spotted a duration with a meter the player can watch fill. A guard who loses you walks to your last known position, never to where you actually are.
AI game makers compared: what each one actually builds
Most AI game makers build a game that lives on their own site, and only a few let you download it, often on a paid plan. Rosebud, PlayDrop, Websim, Astrocade, SEELE, Replit and Unity Spark, checked at each source in October 2026.
What are AI games?
AI games means three different things: games an AI wrote, games an AI runs live as you play, and games where an AI is your opponent. Here is what separates them, which ones you can open in a browser now, and how to read the model and prompt behind one.
How to make a game without coding, for free
Four free ways to make a game without writing code: blocks, events, touch and plain English. What each one gives you to keep, where the free plan stops, and a prompt that builds a playable game.
HTML game code: complete games in one file
The skeleton of a browser game in one HTML file, with the six blocks every game has and working code for each. Copy the skeleton, read what it does, and change the numbers.
Game ideas you can actually finish
Twelve game ideas sized by how long they really take, each with the one verb that carries it and the part that will go wrong. Plus how to tell a buildable idea from a genre you admire.
Vibe coding a game
Vibe coding means shipping code you have not read. That is reckless in most software and reasonable in a game, because you can play the output. What the method is good at, the three ways it fails, and how to keep control.
How to make an AI text adventure
An AI text adventure is either a game a model wrote once, or a game that calls a model every turn. The first is one file that runs free for ever. The second needs a key you cannot put in a browser. Here is how to build each.
Publish a game straight from your AI agent
Connect an MCP server once and the agent that wrote your game can publish it, filling in the model, the prompt and what the build cost from what it actually did. The setup line, the six tools, and the metadata that matters.
Best AI for making games
Every current frontier model can write a browser game. What differs is the surface you work in, whether it saves the file itself, and how fast you can go round the loop. How to choose, and what people publishing here actually reached for.
How much does it cost to make a game with AI
Half the finished games published here cost under about eleven dollars and took under two and a half hours. The average is six times the middle, because a few very large builds drag it. Here are the real reported numbers.
How to make a multiplayer game with AI
Two machines cannot both be right. Make one player the host, have everybody else send what they are trying to do rather than where they are, and draw what the host sends back. The prompt to copy, the room API, and what lag really costs.
Phaser game: when a framework is worth it
Phaser gives you scenes, sprite animation, tilemaps and arcade physics, and takes a dependency and a preload step in return. Here is how to decide whether that trade is worth it, plus a prompt that produces a working one-file Phaser 4 game from a CDN.
AI game development: what AI actually carries
AI carries scaffolding, prototypes, tool scripts and first-pass content. It needs review on systems code, performance work and house conventions. It is still poor at feel, difficulty and level design, because those are judged by playing.
Scoping an AI game jam so you finish
A cheap prototype tempts you into four times the game, and that is the trap. Spend the hours AI saves on more passes over one small mechanic. The first hour decides the jam, the fixing loop needs a limit, and submitting needs time of its own.
Game sound effects, and why your game is silent
A browser stays silent until the player has interacted with the page, which is why a first build has no audio and no error either. Create the audio context inside a click, then write jump, coin and hit sounds in code instead of shipping files.
Mobile browser game: making yours work on a phone
A browser game that works on a laptop and fails on a phone breaks in four known ways. The page scrolls, there is no keyboard, the layout is too wide, and nothing is readable. Here is the fix for each, and the prompt that applies all four.
Why your browser game lags
Five causes account for nearly every slow browser game, and the most common one is not slowness at all: a restart that left two loops running. How to find yours in five minutes without a profiler.
What people actually build when AI writes the game
Sixty nine published games, read from the catalogue. Arcade and action dominate, 3D is third, only a third work on a phone, and the games that grew into projects cost twenty three times more without earning more plays.
Or skip the reading and play something
Every game on Agent Games was written by an AI model, and every game page shows the prompt behind it.