Most articles about AI game generators stop at the demo. The game loads, the cat jumps, everyone claps. Nobody opens the code and checks whether the thing actually did what was asked.
We did. One prompt, one build, one tool, and then we read the 388 lines it produced. Three of the eight failure modes below showed up immediately — and all three were invisible from the title screen.
What we actually ran
One build. One tool (rosebud.ai, free account, default model rosie). One prompt, quoted here exactly as typed:
A 2D platformer where a cat jumps between rooftops, collects fish, and avoids dogs. Three levels with increasing difficulty, a score counter, and a win screen after level three.
The build produced a project called Rooftop Whiskers: 4 images, 2 audio clips, and a main.js of 388 lines. It ran. It was playable. The title screen read ROOFTOP CAT, with a score counter at zero, three hearts, and "Level 1/3" in the corner.
Then we read the code. That is where the story changes.
One note on scope, because it matters for how much weight to put on this: the free tier allowed exactly one build before credits ran out, so this is a single-run teardown, not a benchmark. We are not going to dress one run up as a survey. What follows is what one build did, plus the checks we run on every generated game.
Failure 1: the spec gets quietly rewritten
The prompt said avoids dogs. The generated title screen says:
Stomp dogs from above
And line 230 of the generated code carries the comment // Stomp from above bounces and scores, with score += 25 attached to it.
That is not a bug in the sense of broken code. It is worse, in a way: it is working code that implements a different game than the one requested. "Avoid the hazard" and "jump on the hazard and get points" are opposite mechanics. A player who reads the prompt and then plays the build will feel the mismatch immediately and not be able to name it.
This is the most common failure mode and the hardest to catch, because the output looks polished. The model did not fail to understand "avoid". It substituted a nearby mechanic that is easier to implement well — stomping enemies is a solved pattern in platformers, while "avoid only, no interaction" requires the enemy AI to be genuinely threatening.
How to check: put your requirement list next to the title screen and the first 30 seconds of play. Every mismatch you find there is a spec drift, not a polish issue.
Failure 2: features you did not ask for
The prompt never mentioned lives. The build shipped three hearts, a damage system, invulnerability frames, and screen shake on hit.
Individually these are good decisions — they make the game feel like a game. Collectively they are unrequested scope. And unrequested scope is not free: it is more code, more state, more places for the next iteration to break. When you later ask for a change, the model has to reason about systems you never specified and never reviewed.
The tell is in the code: let lives = 3 sitting next to let score = 0, with a lose condition wired to it. Nobody asked for a lose condition. The prompt only specified a win screen.
How to check: list what the build does that your prompt did not mention. Then decide, feature by feature, whether to keep it. Do not let it accumulate by default.
Failure 3: hardcoded numbers that will desync
The HUD renders the level counter like this:
text(\Level ${levelIndex + 1}/3\, ...)
The /3 is a literal. But the level loop uses LEVELS.length, and LEVELS is an array of three objects. Today those agree. The moment anyone adds a fourth level, the HUD will read "Level 4/3" while the game happily runs four levels.
This is the signature of template-shaped generation: the structure is data-driven where it matters (the level array) and hardcoded where nobody was looking (the label). It is exactly the kind of thing that survives review because the screen looks right.
How to check: search the generated file for digits that also appear in your config. If a number exists in two places, one of them is a bug waiting for a later edit.
The other five
These are the ones we did not observe in this single build. They are the checks we run anyway, because they are the failure modes that survive a demo.
4. Dead controls. The title screen advertises "M = mute". We did not verify it. Any control printed on screen is a promise; test every one before you ship, because a printed control that does nothing reads as a broken product even when the game itself works.
5. Unreachable endings. A win screen can exist in code and still be unreachable — a final platform one jump too high, a flag placed past the last roof, a door that needs a key that never spawns. The code will contain state = 'win' and the player will never see it. Play to the end once. Not to the second level. To the end.
6. State that resets. Score, inventory, and level progress are usually stored in top-level variables. When a level rebuilds, those variables get reinitialised more often than you would expect. Watch the counter across a level transition, not just within one.
7. Silent no-ops. The build loads, shows a title screen, and nothing responds. No error, no console message, nothing to debug. This is usually an event listener bound before the canvas exists, or a key handler attached to the wrong element. If a generated game does not respond, open the console before you regenerate — regenerating often "fixes" it by accident and teaches you nothing.
8. Asset mismatch. In our build, the cat, the dog, the fish, and the night skyline came out consistent. That is not guaranteed. Generated assets are produced independently and only loosely tied to the mechanic: a "dog" sprite that reads as a lion, a fish pickup that looks like a background decoration, audio that plays on the wrong event. Check that each asset is legible at the size it is actually drawn.
Why this happens
An AI game generator is optimising for a playable artifact, not for compliance with your specification. Those two goals overlap heavily — which is why the output is genuinely impressive — and diverge exactly at the edges: the mechanic you described in passing, the constraint you assumed was obvious, the number you expected to be derived from config.
There is a second mechanism. Iteration edits code, not the spec. When you say "make level 2 harder", the model modifies the existing file. Nothing re-reads your original requirement list. So spec drift compounds: each round of iteration is anchored to the previous build, not to what you asked for at the start.
That is why one change at a time works better than a batch of five. It is also why the fix is not a better prompt — it is a checklist applied after the build.
The 60-second check
Before you share or iterate on any generated game:
- Read the title screen against your prompt, requirement by requirement.
- Play to the actual end once.
- Search the file for numbers that duplicate your config.
- List everything the build does that you did not ask for.
- Press every control the screen advertises.
- Watch the score and level counter across a transition.
- If nothing responds, open the console before regenerating.
- Look at each asset at the size it is drawn on screen.
Eight items. It takes about a minute and catches most of what a demo hides. If you are still choosing a tool, the selection checklist covers what to look for before you build anything, and the prompt structure guide covers how to write a spec that drifts less in the first place.
FAQ
Does this mean AI game generators are bad?
No. The build we tore down was playable, coherent, and took under two minutes. It implemented three levels with genuinely increasing difficulty. The point is that "it runs" and "it did what I asked" are different claims, and only one of them is visible from the title screen.
Which failure mode is most common?
Spec drift. It is also the hardest to notice, because the substitute mechanic is usually implemented better than the requested one would have been.
Can I fix these by writing a longer prompt?
Partly. A longer prompt reduces drift on the requirements you spell out. It does not stop the model from adding unrequested features, and it does not survive iteration, because iteration anchors to the code rather than the prompt.
Do I need to read the code?
Not necessarily, but you need to check the behaviour those eight items describe. Reading the code is the fastest way to find failure 3, and it is the only way to find a win screen that exists but cannot be reached.