AI Game Maker Prompt: Rules Before Art
Give your AI game maker a prompt that defines the player's action, the result of that action, and what happens when play stops. Decide which outcome wins when events collide, how interrupted controls reset, and when a reward can be counted again.
This worksheet turns a small collection game into a specific build request. The rules below are deliberate design choices for that example, not promises about what any particular tool will generate. Replace the theme freely. Keep the behavior explicit, then check the generated result against it.
Start with something you can describe without its artwork
For this example, a player moves around a room, collects three lanterns, and avoids a moving shadow. The third lantern completes the round. Touching the shadow ends it. Those are requirements for the game we are asking for, not observed results from a product test.
Write the playable action before describing the room's appearance. “Move toward a lantern to collect it” names something a player can do. “A beautiful, mysterious adventure” leaves the interaction undecided. Use simple shapes for the first build and keep extra rooms, shops, and dialogue outside this request.
Resolve a win and a loss that happen together
Suppose the player reaches the final lantern while touching the shadow. Your prompt needs an answer before either outcome is built. For this example, choose a loss when both events occur in the same game update. A different game could favor the player; the useful part is making the choice visible and consistent.
| Current state | Event | Required result |
|---|---|---|
| Playing | Lantern contact without shadow contact | Collect it once; win if the target is reached. |
| Playing | Shadow contact, including contact during the final pickup | Lose; do not also announce a win. |
| Won or lost | Movement, pickup, or shadow contact | Keep the result unchanged. |
| Won or lost | Restart | Restore the starting positions, lanterns, counter, and controls. |
Add this instruction to the build request: collect the events for the current update, resolve shadow contact first, and commit only one outcome. Once the round ends, stop accepting gameplay actions until Restart. Merely asking for separate win and lose screens does not specify this ordering.
For a concrete acceptance check, request a temporary preview setup with the final lantern on the shadow's route. Reach both together and inspect the result. Then keep pressing movement. The required behavior is a single loss result that remains fixed. If you cannot reproduce the simultaneous contact, record the check as unverified rather than passed.
Describe what happens when a touch is interrupted
“Works on mobile” leaves several decisions open. For this example, request a directional touch pad: movement begins when a direction is held and ends when that contact is released or cancelled. On desktop, request arrow keys with the same start-and-stop behavior. Keep the two input methods tied to the same movement rules.
Choose a pause policy as part of the prompt. When the game loses focus, enters the background, or detects a change in screen orientation, clear all held controls and pause the round. Returning to the game should show a Resume button. Resume should preserve the round's progress but require a fresh input before movement starts again.
Also state that touching Resume must not count as a direction or collect an item. If the builder cannot implement one of these interruption cases, ask it to identify the missing case. Do not silently replace the requirement with “mobile support.”
Check it by holding a direction, switching away, releasing your finger, and returning. Before Resume, the round should stay paused; after Resume, the player should stand still until you press again. Repeat with a screen rotation if your device supports it. Write down the device and the action you actually tried. A desktop mouse check does not complete the phone check.
Make each reward belong to a specific object and round
Specify that each lantern can increase the collected count only once per round. Give each lantern a stable identity and a collected flag. On contact, check that play is active and that the flag is clear; mark the lantern as collected before changing the count. Its disappearance is visual feedback, not the rule that decides whether it may score again.
Ask for the count and the visible lanterns to reset together on Restart. A new round should restore every lantern and clear its collected flag. Pausing or resuming should do neither. That distinction makes “try again” and “continue playing” two separate actions instead of two names for an unspecified reset.
Use this acceptance sequence: touch one lantern, stay where it was, leave, and return. The count should have increased once. Collect another lantern, pause, and resume; the existing count should remain. Finally restart and collect the first lantern again. It should now count once in the new round.
Keep the result as a short record: action, expected count, observed count, and pass or fail. If the result differs, report the specific transition that failed. Avoid requesting a complete visual redesign while the reward rule is still unresolved.
A first prompt you can adapt
Create a small collection game in a single room using simple shapes. Let the player move with arrow keys or a directional touch pad. Place three lanterns and a moving shadow. Collecting every lantern wins the round; touching the shadow loses it.
If shadow contact and the final pickup occur in the same update, resolve the loss first and show only that result. Freeze gameplay after either ending. Count each lantern once per round using its identity and collected state.
Clear held inputs and pause on focus loss, backgrounding, or orientation change. Resume preserves progress and requires a fresh movement input. Restart restores positions, lanterns, the counter, and input state. Do not add other features yet. Tell me which requirements you could not implement.
Compare the result with the request
Keep a copy of the prompt beside the generated game. Mark each requirement as checked, failed, or not checked. The builder saying “done” is not your observation of the game. Resolve an unclear rule in the prompt; report a mismatch with a reproducible action sequence.
When you have a playable result, continue with the game testing checklist. If an observed behavior contradicts your rule, use a focused repair request. Save changes to appearance until you can tell which behavior each change is meant to preserve. When the same project has to be reopened on a phone, use the AI game maker app guide.