Learn by making something playable
Learn How to Build a Complete Game, Starting With One Room
A complete game needs a player action, a goal, a way to lose, and a restart that returns everything to the beginning. This guide starts with one room you can play, then gives you a practice brief and checks for planning a fuller project.
This page walks through a proposed key-and-door game. I have not run this example through a generator; its rules, prompts, and checks are an original practice brief you can use to judge your own result.
Find your next step
Decide what you want to receive
I would first write: “I want a game I can open, play, and revise.” A picture of a game or a written design does not meet that requirement.
Before building, check how the chosen tool lets you play the result, return to the editable project, and preserve a version. If you still need to choose a tool, use the AI game maker selection guide. Here, I would keep the same tool through the first complete round.
Give the game a finishable shape
My example is a single room. The player collects a key and reaches a locked exit while avoiding a red hazard. I would use plain shapes so the first request stays focused on behavior.
Paste this brief into your chosen tool:
Make a small top-down game for a desktop browser. Move the player with the arrow keys. Show the controls before play starts. Put a key, a locked exit, and a red hazard in a room with fixed positions and a clear path around the hazard.
Start each round with the player at the start marker, the key visible, and the exit locked. Collecting the key removes it from the room and displays “Key collected.” Reaching the exit without the key displays “Find the key” and keeps the round active. Reaching the exit with the key ends the round with “You escaped.” Touching the hazard ends the round with “Try again.”
Give the hazard priority if escape and hazard contact happen together. Once a round ends, keep its result unchanged and ignore movement until Restart is selected. Restart restores the starting position, key, locked exit, and active round. Do not add a timer, random placement, purchases, or extra levels. Tell me how to open the playable result and preserve this version.
These are rules for this exercise, not claims about what any tool will generate correctly.
Resolve the ending before adding features
I would keep this small rule table beside the preview. It makes the intended outcome explicit when more than one event could affect the same round.
| Current situation | Event | Required result |
|---|---|---|
| Playing without the key | Reach the exit | Stay in the round; show “Find the key” |
| Playing with the key | Reach the exit without touching the hazard | End with “You escaped” |
| Playing, with or without the key | Touch the hazard | End with “Try again” |
| Playing with the key | Exit and hazard contact happen together | “Try again” takes priority |
| Round already ended | Move or contact another object | Keep the existing result |
| Round already ended | Select Restart | Restore the complete starting state |
If I cannot deliberately reproduce simultaneous contact, I mark that row untested. I do not infer that it works from separate successful escape and hazard attempts.
Play three routes from the same starting state
For this practice brief, I would run each route twice and allow five seconds after an action to observe its result. Those are my chosen test conditions, not a promised response time or proof of reliability. Start every attempt with Restart and confirm that the key is visible, the player is at the start, and no ending message remains.
- Try the exit too early. Avoid the key and hazard, then reach the exit. Within the observation window, the game must show “Find the key” and remain playable. If I collect the key accidentally, that attempt is invalid.
- Complete the intended route. Collect the key, avoid the hazard, and reach the exit. Check the key disappears and its message appears before proceeding. At the exit, expect “You escaped”; then hold an arrow key for the observation window and check that the player and result stay unchanged.
- Lose after making progress. Collect the key, then touch the hazard. Expect “Try again” with no escape message. Restart and inspect the room: the key must be back, the exit locked, and the player at the start. Visit the exit without collecting the key to confirm the previous round did not leave it unlocked.
Record the starting state, route, observed result, and pass, fail, or untested status for every attempt. A result that arrives after the observation window is late under this brief; a missing result remains unverified. Keep failed attempts in the record.
For broader device and release checks, continue with the pre-publishing test guide.
Improve the appearance without changing the game
After those routes meet the brief, I would preserve the working version and request one visible change:
Replace the key’s appearance with a blue crystal. Keep its position, collection boundary, collection behavior, exit rule, hazard priority, and restart behavior unchanged. Keep the existing messages for this revision. List any other changes you make and distinguish checks you ran from checks you did not run.
I would compare the old and new versions using the same routes, repetition count, and observation window. A crystal that looks better but unlocks the exit before collection does not meet this request. If I cannot inspect the collection boundary directly, I record it as unverified rather than accepting the assistant’s assurance.
When a change fails, use the focused bug-fix workflow with the failed route and actual outcome. Keep the working version until the replacement meets the same requirements.
Hand over the version you actually checked
I would record the accepted project version and the route results together. If the tool provides a player-facing link, open that link separately and repeat the checks there before sharing it. An inaccessible link or a different result means that delivery still needs work.
Before starting, check what an AI game maker lets you create without logging in.
My first milestone is this small, repeatable game. Only then would I add another room or mechanic, naming which existing rules must survive the next change.
Play the one-room demo — no account, no download.