How to make a game with AI
You open a generator, type one sentence, and get back a screen with a square that does not move. Whether that is the tool’s fault or your prompt’s fault depends on a decision you have not made yet: where the game has to run. A game inside a platform your players already use, a browser build you can send as a link, and rules that belong to no engine are three different starting points, and each one changes what you ask the agent for. Pick the route first, brief the agent second, then choose the tool.

Start with where the game has to run
Three routes, and they are not interchangeable. Pick the row that describes your situation before you look at any tool, because in AI for game development the route decides what you can ship, what it costs, and how expensive it is to change your mind later.
Most first games stall for a reason that has nothing to do with AI: the tool was chosen before the destination was known. A text-to-game generator and a tool that works inside a project with an audience do different jobs, and only one of them can produce the game you have to ship. The order that works is the reverse of the one most people try: decide where the game lives, brief the agent against that, then choose the tool.
So the first question is not which AI game builder is best. It is which of these three situations you are in.
| Your situation | Recommended route | What you end up with | Main cost | Cost of moving later |
|---|---|---|---|---|
| You already have players and a game that runs | Change the existing project | Another iteration of the version already in front of players | The engine and platform rules you have to keep working inside | Lowest: nothing has to be re-published or re-listed |
| You only want to know whether the mechanic is fun | Browser prototype | A playable H5 game you can send as a link | Prototype time, and the temptation to keep going | The rules can move; the code has to be rewritten |
| The direction is not decided yet | Engine-agnostic core | Rules, tests and asset files that belong to no engine | Discipline from day one | The cheapest thing to move later, because there is nothing engine-specific to unwind |
Read the last column before the middle one. It is the only column that tells you what a decision costs you if it turns out to be wrong, and it is the column people read last, once the choice has been made.
The first row is the default for anyone who already has players and a game that runs. It is the least glamorous and by far the cheapest, because you are adding to something that already works instead of rebuilding the distribution around it. An Unreal Engine 5 title with a live audience is the clearest case.
The second row is the fastest to a feeling and the fastest to a mistake. A text to game AI platform is an H5 game generator: a good way to find out whether a double jump is fun and a bad way to find out whether your game can ship, because the platform questions have no answers yet. Treat it as research with a deadline.
The third row is insurance, and it is worth the discipline only while the destination is still undecided. If you already know where the game has to live, such as an Unreal Engine 5 project on a store, row one is row three with the extra steps skipped: keep the rules in plain files.
Which route are you on? Three questions each
You are on this route if a game of yours already has players, it already runs somewhere, and you can push an update to it without asking anyone for permission.
You are not on it if the game you want to make is a different one, or the build that exists has no players yet.
Leave it when the next thing you need is something the current platform cannot give you: player accounts, saved progress, a leaderboard, a review process. None of those can be added late for free, which is why this is the moment to notice them.
You are on this route if there is no running game yet, and what you need to know right now is whether one mechanic is fun. A text-to-game platform hands you one in an afternoon.
You are not on it if the answer you need is whether the game can ship, because a browser build cannot answer that, or the design will change a lot in the next two weeks and the prototype would be thrown away.
Leave it when the prototype is fun and you now need a platform account, a score that survives a refresh, saved progress, or art that is not coloured rectangles. Those are the signals that this has to become a project.
You are on this route if the destination is still undecided, or you expect the same rules to run in more than one place.
You are not on it if you already know where the game ships — that is route one or route two with the extra steps skipped.
Leave it when the destination is decided. Move the rules into that engine’s files, the project you are shipping to, and stop paying the discipline cost.
Whichever row you are on, the next move is identical. The agent needs a brief it can act on: a single change, a rule, a file to put it in. That is the same brief whether you are building for a studio or an H5 game for the weekend.
2D, 3D or a browser H5 build: fix the shape first
The route tells you where the game lives. The shape tells you what the game is made of, and it decides the cost of everything after it, including how much work an AI takes off your hands in a text to game workflow.
Most advice about AI for game development starts at the tool and works backwards, which is why it so often answers the wrong problem. Shape is a decision about what the game contains, and it is much cheaper to make it before the project exists. In an Unreal Engine 5 project the practical question is the same one: whether an agent can read a project that already exists and change one file without touching the rest.

2D: when the rule is the game
A tile grid, a sprite sheet, a screen of numbers that move. The cost of 2D is assets and not much else: the rules are the same rules, and an agent writes them well. It is the cheapest shape to test a mechanic in, and the shape most game jam prototypes use.
3D: when the world matters
A 3D project pulls in an asset pipeline, real physics and camera work, and a build that takes minutes instead of seconds. Performance budgets arrive with them. The rules stay just as simple, but everything around them multiplies.
Browser H5: nothing to install
An H5 game is web code that opens from a link, on any device with a browser, with no install and no store. It is the fastest answer to “is this worth building” and the usual output of a text-to-game platform.
2D: where the assets come from
The assets you borrow come from four shelves, and each one carries its own terms. Sprite sheets and tilesets: free and open-source ones are common, but read the licence file next to the download rather than the download page. UI kits: the same rule, and check whether the fonts and the icons inside them come with terms of their own. Sound effects and music: free libraries exist, and the licence decides whether the result can ship in a paid game or only in a prototype. Fonts: the licence decides whether you can embed them in a game at all.
What fits inside 2D is a rule. A look on its own is not enough. Grid and tile movement, platforming, top-down combat and puzzle logic all count as 2D because the rule is the content, and card and turn systems do too. What does not fit is anything where the art carries the experience: a fighting game whose appeal is the animation, a racing game whose appeal is the sense of speed. Those need 3D.
3D: what the agent writes, and what it does not
What an agent writes in a 3D project is the script layer: a movement controller that maps input onto a character, the spawn tables that decide what appears and where, and the debug logging that explains a missing spawn. The tuning numbers live in config objects, and the agent can write those as well. In an Unreal Engine 5 project that is the part you can hand over.
The other three are where the hours go, and they are hours of judgement rather than typing. Lighting means every scene needs a pass until the thing is readable on the device you are shipping to, and a scene that looks right in the editor is not the same as one that reads on a phone screen at night. Animation means every state change needs a transition, and each transition is a timing decision no generator can make for you. Performance means profiling on the target device rather than in the editor, which is a habit of measuring, not of typing.
Browser H5: where the line falls
Grid and tile logic for 2D · menus, buttons and touch input · one or two levels of hand-made content · 2D sound effects and music · a high score kept in local storage · a build you can send as a link and open on a phone
Heavy physics simulation · asset packs large enough that the first frame waits on a download · 3D scenes with a real camera, lights and shadows · a native install · a game that has to hold a locked frame rate on a low-end phone
That says nothing about where the game ships. Where it has to live is the first section’s question, and answering it there can change which shape you need.
The temptation in a 3D project is to start with the world, because the world is what you can see. Start with the rule instead: the same one-line rule works on a grid and in a 3D world, and it is written before the level or the lighting.
Two questions decide the browser route. The first is whether the answer you need is “is this mechanic worth anything?”, which a link answers before lunch. The second is whether the game has to live inside a specific platform, because that destination shapes the whole design and an H5 build will tell you nothing about it. If the published result depends on a platform account or a review queue, you are optimising for a different deadline.
One habit is worth taking from the browser route into every other route: keep the rules in one place, so the prototype and the shipped version share one source of truth. The loop, the scoring and the tests all live together. A prototype whose rules live inside the drawing code is a prototype you have to reverse-engineer before you can move it, and that is the difference between a translation job and a rebuild.
If you are starting from nothing and cannot decide between 2D and 3D, start with 2D. It is faster to play, faster to test, and it moves into a 3D engine later without losing anything except the art.
The four steps that make an agent useful inside a project you already have
This is the step that decides whether the agent helps you or fights you, and it works the same whether the project is an H5 game, a scripted game on a player platform, or a 3D engine project. Only the file layout and the check you run differ.
An agent inside a project is fast and literal. It does what the request describes, including what you did not mean, and has no idea which parts of the codebase are load-bearing until it reads them or you tell it. The four steps below are the shortest version of telling it: how much you narrow the request before the first line is written, which in AI for game development is often the difference between an hour and a day.
Ask for one mechanic, not the whole game
Name the single change you want and what it must not break. “Make a platformer” is a rebuild request, and a rebuild request produces a new project next to the old one. “Add a double jump that only works while the dash timer runs” is a change an agent can make inside the code you have, because it can point at the existing dash timer and reuse it. The size of the request decides whether the agent reads your code or replaces it, and in AI for game development one mechanic is the largest request that fits in that budget.
Ask for a map before a change
Before it writes anything, ask it to report where movement, collision and the round timer live. This is the step people skip because it feels like a delay, and it is the step that saves the most time: an agent that has not read your project will invent a second movement system, put it next to the first, and leave you to work out which one the input handler calls. A map costs one message and turns the change from a guess into an edit. Read the map before you approve it, because a confident map that names the wrong file is still a wrong map.
Turn the rule into something that can fail
Ask for the rule to be expressed as a check your project can run: a script, a test, a scenario. Then keep that check next to the rule instead of in a separate folder, so it is the first thing anyone touches when the rule changes. A text-to-game platform can hand you a demo in minutes, but “the score looks right” is not a check. “Entering a wall cell ends the run” is a check, and it can fail.
Change one thing at a time
Iterate in the editor, not in the chat. An agent is fast at producing candidates. Deciding which candidate is fun is your job, and it cannot hear that a jump has become too floaty. Send one change, get one candidate, play it, then send the next change. Send three at once and you get three changes you have to separate by reading the diff, which is slower than sending one.
Step one, side by side
“Make a platformer”
A rebuild request. The agent writes a new project next to the old one, and you end up with two movement systems and no way to tell which one the input handler calls.
“Add a double jump that only works while the dash timer runs”
An edit inside the code you already have. The agent can point at the existing dash timer and reuse it, so the diff stays small enough to read in full.
The same four steps work in a browser build and in an Unreal Engine 5 project. What changes is the vocabulary: the files holding movement, collision and the round timer look different, and the check has to be a command your project can run. Teams doing AI in video games tend to follow the same four steps, on a larger file set.
With the brief in this shape, the tool choice stops being a matter of taste, because you now know what the tool has to be able to reach. That is true of a 3D engine project as much as of a browser build, and it is the next section.
Which kind of AI game maker to pick, and how to check it in 30 minutes
There is no single best AI game maker, because the common options solve different problems. Three kinds cover almost everything, and each one has three checks you can run yourself before you commit an afternoon to it.
Tool lists usually mix two different things: what the tool is, and where it works. Sorted by where your work lives, there are only three kinds. The first works on the source files in your repository. The second works inside the editor, where it can see what you have open. The third works on a description, and a text-to-game platform hands you back a playable browser build. In an Unreal Engine 5 project the work sits in the editor: a procedural graph that lays out a level, asset plugins that turn a description into a mesh, and retargeting that moves a motion capture take onto your skeleton.
Most disappointing first experiences come from expecting one of them to do another’s job. An assistant in the editor cannot restructure a module. An agent in your repository cannot see the scene you have open. A generator cannot change a game that is already published, because it never looks at your project at all.

Agents that work on your source
They read and edit the code you already have, write the checks, and keep the conventions that are already there. This is the kind that can change a game that is already running without moving it, which makes it the right answer for the first row of the table and for a retrofit of an existing Unreal Engine 5 project.
- Read the files in this repository, including the ones it has not seen yet
- Run the test command your project already has, instead of adding its own framework
- Show which files it plans to touch before it touches them
Editor-side platform assistants
They live in the editor and answer questions about the project in front of you, and they know one platform’s idioms well enough to suggest the native way to do a thing. Useful while you are building a scene or a graph; weaker once the work lives in source files you wrote yourself.
- Read the state of what you have open: the selection, the scene, the current values
- Use the platform’s own idioms and assets rather than generic code pasted from anywhere
- Write a file you can diff, instead of only changing things inside the editor
Text-to-game and no-code tools
They turn a description into a playable browser build in minutes, with no project to open. A text to game AI platform is an H5 game generator with a text box in front of it: you write the description, it hands back a build you can open in a browser. What they do not give you is a place inside a platform, so everything you build with one is a translation exercise later. One product, two names: a description goes in, a browser build comes out. The build is what you get, and the source decides whether you can keep working on it afterwards.
- Export a self-contained build that opens from a link
- Keep the rule in its own file instead of burying it in the drawing code
- Come with a check that can fail, instead of a demo that only looks right
Which kind of tool reaches what
| Kind of tool | Reads your repository | Runs your project’s own check | Reads what is open in the editor |
|---|---|---|---|
| Agents that work on your source | ●yes | ●yes | ○no |
| Editor-side platform assistants | ○no | ○no | ●yes |
| Text-to-game and no-code tools | ○no | ○no | ○no |
● where that kind of tool works natively · ○ usually out of reach. This is our own taxonomy of the three kinds. It does not rate any named product.
Read the three against the row you picked. The first row wants the first kind, and only works with the four steps above, because the point is that it edits your files rather than generating a neighbour of them. The third row wants the first kind plus a habit: the agent has to be told, every time, that the rule belongs in a plain file. In AI in video games that habit is the difference between a patch and a rebuild.
Thirty minutes, one throwaway project, three questions
Pick a scratch project, such as a repository with one broken test or an empty folder you will delete afterwards, and spend half an hour with any tool you are considering. You are not trying to finish anything. You are trying to find out what the tool can reach, because the difference between a capable tool and a demo is usually visible in the first half hour if you know what to look for.
Ask it to find something, not to build something
“Tell me where the collision handling lives and which file calls it.” A tool that cannot answer this cannot be trusted with a change, because it will write a second copy of the same system next to the first one. A tool that answers it may still be wrong, so check the answer against the project yourself.
Ask it to run the check your project already has
“Run the project’s test command and tell me what fails.” If it installs a new framework, invents a command, or reports success without running anything, you have learned the one thing that matters most about that tool, and you have learned it in five minutes.
Ask it to change one line, then read the diff
One small, reversible change: a constant, a log line, one branch. Read the diff like a reviewer. If the diff contains files you did not expect, or changes more than you asked for, that tells you about the tool. The request was fine.
Before you build a 2026 pipeline on any of this, keep one habit: treat every claim about a specific tool as unverified until you have read its source or run it yourself. Integration announcements are cheap to publish and easy to misread. What reaches an existing 3D project is the question of whether an agent can read a project that already exists.
What has not changed: an agent cannot design the game, cannot tune the feel by ear, and cannot sign off a build on hardware you have not run it on. Everything above makes that agent cheaper and safer to use in AI in video games, and leaves the decisions where they were.
If you still cannot choose, start with the one that works on source files and give it the thirty minutes above. Look at the other two after that.
Where AI in video games actually pays off
AI in video games comes down to four jobs that teams keep asking for, plus a long list of experiments. The four are the same in an Unreal Engine 5 studio and in a browser team. The more useful answer is the four jobs underneath: code, content, playtests and live operations.
The interesting question about AI in video games is not whether it is used. It is used. The question is which uses survive contact with a release schedule, and the answer is narrower than the marketing suggests: four jobs, all of them about volume or verification rather than taste.
Writing and refactoring game code
The one that pays off most often: implementing a mechanic you have already described, restructuring a module that has grown messy, or writing the tests that pin a rule down so a later change cannot quietly break it. It is the same work the four-step loop is built around, at production volume.
A typical afternoon: you change the jump height, and you want the old number protected so nobody quietly raises it next month. The agent writes the test that asserts the old height and runs it against the current build. Before the new value goes in, you check that the test failed for the reason you expect, which is that the height moved rather than the test being wrong. What you keep is the test file, and reviewing it takes one run, which in AI in video games is cheap next to the play-through it replaces.
Content variation
More level variants, more dialogue lines, more loadout combinations. Useful when the variation is mechanical and a human would rather not write the last version by hand. Questionable when the variation is supposed to be meaningful, because generated variations are not hand-authored ones. A text-to-game platform can produce a hundred rooms; it cannot produce the one room a designer wants.
Say you need a batch of variants of the same room and do not want to place them by hand. The agent generates them and hands them back as a list. Most of them turn out to be the same mechanic in a different order, so you end up keeping only the handful whose layout plays differently. The rest would pad the count, and in AI in video games a padded count reads worse than a small one.
Playtesting support
Agents that play the build, report the crashes and the dead ends, and narrow down where the fun stops. Playtest coverage is a reliable win in AI in video games, because the reports are evidence: they tell you which corner is broken or boring. The call on what to change is still a designer’s: the agent can tell you a level is short, and it cannot tell you that the level is dull.
A tester agent plays the build for an hour and hands back the places it got stuck, the times it died and the corners it never reached. A designer reads that list and decides which corner to cut. In AI in video games that list is often the artefact a designer actually uses.
Live operations
Content moderation and localisation passes, plus the event tuning around them. Unglamorous and high volume, and the kind of work where a small error is expensive, because a bad translation or a misfired rule reaches every player at once. Live operations is where AI in video games is easiest to measure: the work repeats and the output is countable.
A localised release needs hundreds of strings checked against a rule that changed, and a misfired filter is the expensive kind of mistake. The agent produces the draft list and flags the strings where a number or a variable name appears. A human reviews that subset and signs it off, because that is where an error reaches every player at once. In AI in video games this pass is where a human look at a sample goes a long way: the volume is what makes an error expensive.
None of the four is “decide what the game should be”. That job stayed with people while the volume around it moved over. If you are evaluating a tool against this list, be suspicious of one that leads with what it will design for you. That limit is the same in AI in video games and in a small studio.
What it costs, what is free, and the expensive mistake
Much of the game and most of the tooling can be free; the agent run is the part that costs. Here is what you can do at no cost, what a paid run buys, and how to estimate the second one without trusting a price you cannot verify. A text to game AI platform is an H5 game generator, and trying one is often the cheapest way to find out whether a mechanic works.
Free: prototype, rules and hosting
Much of the game itself can be built for free. An H5 game is plain web code, so a prototype can sit on a free static host and the result is a link you can send. Rules and tests are code, and the runners your project already uses are free. The asset categories a first game needs have free and open-source options: sprite sheets and UI kits are easy to find, and sound effects, music and fonts come with licence terms you have to read.
Free is not the same as unrestricted, and this is where first games get into trouble. Free assets come with different licences: some permit commercial use with attribution, while others restrict modification or commercial use. Check three things before an asset goes into the build: the licence file next to the download rather than only the download page, whether it permits commercial use if you sell the game, and whether it permits modification if you plan to recolour it.
Paid: the agent run
What you pay for is agent runs: a request, the work it does inside that request, and the tokens the work consumes. You are not buying a seat for a person, and you are not buying the engine, the assets or the hosting. An Unreal Engine 5 licence is billed separately from the agent run, so a project keeps two numbers rather than one.
Tokens are not a flat fee per request, and this is where the estimate usually goes wrong. A turn costs roughly what the agent has to read plus what it has to write: a change to one function is a few thousand tokens, a turn that maps a whole repository for the first time can be tens of thousands. The same task therefore costs different amounts depending on how much of the project the agent has to hold in its head, which is one more argument for one mechanic at a time. In AI in video games that arithmetic decides whether a live-ops pass is worth automating.
What a first game actually costs
5–15 agent turns×tokens per turn×price per token=the cost of one mechanic
Estimating a run before you spend one
Prices change, so treat any number you read today as a snapshot rather than a fact. What does not change is the shape of the estimate: turns times tokens per turn times the price per token. Work out the first two yourself, read the third off the current pricing page, and redo it whenever that page moves.
Count the requests, not the hours
A first mechanic on a prototype is usually a short conversation: one request to map the project, one to implement the mechanic, one to write or repair the check, one to review the diff, and one or two to fix what the check caught. That is roughly five to fifteen turns, and it is the same number whether the mechanic takes ten minutes or two hours to write by hand.
Multiply by the price per token
Most plans bill by the token, or by a credit balance that converts into tokens, so the number that matters is the one on the current pricing page: the cost per token. Multiply it by the tokens a turn usually takes, then by your number of turns, and you have the cost of that mechanic. Do the arithmetic before you start rather than after, because the number of turns is the part you control and the only part of the estimate you can change.
Keep the cheap version of the loop
The cheapest way to use an agent is to keep the loop yourself: write the four lines, ask for the test first, and use the agent to review the diff and hunt the edge cases. You get most of the value at a fraction of the turns, and you keep the design decisions where they belong.
The 5 to 15 turns in the formula above is a range over different jobs, so it is worth breaking it down by the job you are paying for. These are rough counts for a project the agent can already read, not quotes: use them as a starting point and correct them once you have seen your own numbers.
How many turns the job takes
Review a diff you did not write. The agent reads the change and reports what it breaks; the call on whether to keep it is still yours.
Change a number you already have, such as jump height, gravity or the score cap. The agent reads one file, edits one value, runs the check once.
Fix a check that is failing for the wrong reason. Most of the cost here is diagnosis rather than code, so expect more reading than writing.
Write the test first, then the mechanic. The check comes before the code, so the agent spends its turns proving the rule instead of guessing at it.
Add a mechanic to a prototype: map the project, write the mechanic, write the check, then fix what the check caught.
Port a mechanic into a project that already exists. The agent has to read the code around it before it can change it, and that reading is most of the turns.
The expensive mistake is not spending money on the agent. It is starting in the wrong place. A browser prototype that has to become a game for a platform means rewriting the parts that talk to the platform. A 3D project that has to become a browser game means giving up the assets and the audience. A set of rules written straight into Unreal Engine 5 code means rewriting the rules themselves, and that bill arrives months later.
So the cheapest version of making a game with AI is still the answer from the first section: pick the row of the table that matches your situation, keep the rules in files that do not import the engine, and let the agent work on one mechanic at a time. A text-to-game platform gets you a playable build today; the route decides what that build is worth later.
