Soga123Field notes on AI game generators
Last count 15 Nov 2026
中文
04Prompting and building · 6 min read

A Real Prompt, Before and After

Four parts, two of them missing, and exactly where the missing ones showed up in 388 lines of generated code.

Published 1,458 words By

Every prompt guide tells you to be specific. Almost none of them show you what happens to a specific prompt after it runs.

So we took the one prompt we actually ran through an AI game generator, mapped it against the four-part structure, and then went through the 388 lines of code it produced to see which parts landed and which parts the model filled in for us. The result is more useful than a list of tips: the prompt did not fail because it was short. It failed because two of its four slots were empty, and the model filled them with genre defaults.

The prompt, 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.

Thirty-four words. Five requirements. It produced a playable three-level game called Rooftop Whiskers. That is a genuinely good result for one sentence, and it is also where the interesting part starts.

Mapping it against the four parts

PartWhat the prompt saidSlot statusWhat the build did
Genre and perspective"A 2D platformer"Stated2D side-view platformer. Correct.
Core loop"jumps between rooftops, collects fish, and avoids dogs"Stated, one clause overriddenCollecting fish: implemented, +10. Avoiding dogs: replaced with stomping them, +25.
Controls and rulesnothingEmptyInvented a control scheme, three lives, a damage system, invulnerability frames, and screen shake.
Style and scopenothingEmptyWrote its own art_direction.md and sound_direction.md, then produced 4 images and 2 audio clips to match.

Two slots stated, two slots empty. That is the whole diagnosis, and it predicts almost everything that followed.

What landed, and how completely

The stated parts did not just land — they landed with real structure behind them.

Level count. LEVELS is an array of three objects at lines 59–63. Not a comment claiming three levels. Three actual level definitions.

Increasing difficulty. The three levels differ on three axes at once: rooftops 9 → 12 → 15, spacing between them 120–220 → 160–280 → 200–330, dog speed 120 → 170 → 230. "Increasing difficulty" is a vague phrase and it was translated into three concrete escalations.

Scoring. Fish +10, stomping a dog +25, clearing a level +100, at lines 220, 233 and 251.

Win screen. A real state transition at lines 367–370 that renders YOU WIN! 🏆 with a final score.

This is the part of the story that gets left out of critical write-ups. When you state a requirement, this pipeline usually implements it properly, including the parts you only gestured at.

What got filled in for us

Here is where an empty slot becomes a decision you did not make.

Controls and rules. 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 scope you never specified and never reviewed. let lives = 3 sits next to let score = 0, with a lose condition wired to it. Nobody asked for a lose condition; the prompt only specified a win.

Style and scope. The prompt said nothing about how the game should look. The build wrote art_direction.md and sound_direction.md — its own style guides — and then produced assets against them. Those two documents are the model deciding your art direction in a file you will probably never open. If the look came out right, it is because the genre default happened to fit.

That is the mechanism worth internalising: an empty slot is not neutral. It is not "the model will use a sensible default." It is "the model will make a decision, document it, and never tell you it made it."

The before and after

Same game, same requirements, four slots filled instead of two. This is the rewrite:

A side-view 2D platformer, one screen per level, three levels total. The player controls a cat with the left and right arrow keys and jumps with the space bar. The core loop is: jump between rooftops, collect fish for points, and avoid dogs. Dogs are hazards only — touching one costs a life, and the player cannot jump on them or score from them. The player has three lives; losing all three ends the run and shows a game over screen. Each level is harder than the last: more rooftops, wider gaps, faster dogs. The level counter must read "Level X of Y" and be derived from the level list, so that adding a level later does not break the display. After level three, show a win screen with the final score. Art: flat shapes, night skyline, no textures. Audio: a pickup sound and a hit sound only.

The differences are not decoration. Four of them are load-bearing:

  1. "Dogs are hazards only" closes the exact ambiguity that got rewritten. "Avoid" alone is compatible with "avoid by stomping", and that is the reading the build chose.
  2. Lives are stated, not implied. Three lives, and a game over screen. Now the failure state is a requirement instead of an invention.
  3. "Derived from the level list" targets a specific code shape. The first build hardcoded /3 in the HUD at line 349 while the loop used LEVELS.length — two sources of truth that agree today and will disagree the moment a level is added.
  4. Art and audio are one line each. Not a mood board. Just enough that art_direction.md has something to obey.

What the rewrite would and would not fix

We did not run the rewrite. The free allowance covered exactly one build, and the second attempt came back with "You don't have enough credits to start a new game." So treat the following as reasoning from what the first build did, not as a measured comparison. We are not going to present an untested prompt as a tested improvement.

With that caveat, the split is clean:

Structure reduces invention. The unrequested lives, the surprise damage system, the self-authored art direction — all of those came from empty slots. Fill the slots and there is nothing to fill in. This is the part a better prompt genuinely fixes.

Structure does not catch substitution. The word "avoid" was already explicit. The build replaced it anyway, because stomping is a solved platformer pattern and "avoid only, no interaction" is harder to implement well. No amount of additional specification prevents a model from choosing the easier adjacent mechanic. Only a check after the build catches it.

Those are two different failures with two different fixes, and most prompt advice collapses them into one. If you take one thing from this page, take the split: write to close empty slots, then check to catch swapped ones. The prompt structure guide covers the writing half in more detail; the failure-mode teardown covers the checking half.

A three-minute pass over your own prompt

Before you generate, read your prompt and mark each slot:

  • Genre and perspective — stated, or assumed?
  • Core loop — stated, and is the verb unambiguous? ("Avoid" is not. "Avoid, and cannot interact with" is.)
  • Controls and rules — keys, lives, failure state. If any of these is missing, the build will pick one.
  • Style and scope — one sentence each for look and sound. One screen or several.

Every slot you leave blank is a decision the model makes without telling you. That is the entire lesson, and it took 388 lines of generated code to see it clearly.

FAQ

Is a longer prompt always better?

No. Length is not the variable — coverage is. A 34-word prompt with all four slots addressed beats a 200-word prompt that describes the story but never states the failure condition. The rewrite above is longer only because it fills slots that were empty.

Which slot matters most?

Controls and rules, in our build. That is where the most unrequested behaviour appeared, and it is the hardest to remove later, because the systems the model invented are wired into the game's state.

Does this apply to every AI game generator?

The mechanism does — an unstated requirement gets defaulted. The specific defaults differ by tool and by genre, so the slots are worth checking on any tool, and the defaults are worth learning per genre.

What if I only have one free build?

Then spend it on a prompt with all four slots filled, and expect to keep the result rather than iterate on it. That is the practical reason to do this pass before you generate instead of after.