Game development
Godot: build a small game with an AI coding partner
Take a working one-room prototype through a bounded AI-assisted change, a repeatable playtest and an exported desktop build.
- Outcome
- A playable Beacon Run prototype and a documented first feature
- Time
- 3–5 hours for the exercise; installation and export setup extra
- Level
- Starter
WORKFLOW BRIEF
Project: collect three beacons and bring them home before a 60-second timer expires. You will extend a small game that already has movement, hazards, scoring and a finish state. A coding assistant helps explain and change one part; you remain responsible for the running game.
Before you begin: install the standard Godot 4 build, extract the starter into a new folder and keep an untouched copy. No paid model, cloud game service or runtime AI connection is required. Export templates are a separate Godot download.
Checked 30 November 2026: the bundled project imports and passes its included headless checks in Godot 4.7.2 for movement, diagonal speed, boundaries, collection, delivery, restart, timeout, collision, music ramp and mute. These checks do not replace a visual playtest, a real listening check or testing an exported build. The AI exercise and time estimate are proposed.
BEFORE YOU BEGIN
Set up the work.
Suggested toolkit
- Standard Godot 4 editor with GDScript
- Createch Beacon Run starter ZIP
- Your preferred coding assistant
- A text editor and Git or versioned project copies
You will make
- Original working baseline
- One reviewed feature change
- Playtest record covering win, loss and restart
- A desktop export with controls and credits

Copy the starting brief
You are helping with a Godot 4.7.2 GDScript prototype. Read the attached main.gd first. Explain the game states and node assumptions. Then propose the smallest patch that adds a visible warning below 10 seconds while playing. Preserve collection, timer, collision, music and restart behavior. Do not add packages or network calls. State checks for 11 seconds, 9 seconds, timeout and restart. Show changed functions and explain every new API.Attach the actual current script. Review and run each proposed change before accepting another feature.
STEP BY STEP
Run the workflow.
Work in sequence and keep each intermediate artifact. Review the result at every stage before spending time on the next one.
- 01
Play the unchanged baseline
Open
project.godotin Godot, allow asset import, then run the main scene. Move with arrows or WASD, press Space beside each beacon, then press Space at the house. R restarts and M mutes. Reach both a win and a loss before touching the code.Write down the rule in one sentence: collect three objects, avoid two moving hazards and return home before time runs out. Save the baseline as
beacon-run-v01.- The starter is a desktop keyboard prototype. Touch and controller support are separate tasks.
- If an import fails, resolve it before asking an assistant for new features.
- 02
Map the project before editing
Open
main.tscnandmain.gd. The main scene attaches one script to a Node2D. Findrestart(),interact(),_physics_process()and_draw(). Locatemovement_speed,remaining,collectedandresult. Ask your assistant to explain one function using the actual source, without changing it.Draw a tiny state map: playing can lead to delivered, collision or timeout; restart returns to playing. Label the input and visible feedback for each transition.
- Do not ask for a full replacement game.
- The compact script is a teaching baseline; a larger project should separate player, world, interface and audio responsibilities.
- 03
Write one feature contract
Choose a change small enough to test in ten minutes. Our example adds a visible warning below ten seconds; it must disappear after restart and must not change the timer or win rules. Define three checks before generating code: warning appears at nine seconds, is absent at eleven seconds, and clears on restart.
Include the Godot version, current script, node names and allowed files in the request. Require a short explanation and the smallest practical patch.
- Make a versioned copy or Git commit before the change.
- Reject proposed plugins, model services and unrelated refactors for this exercise.
- 04
Apply and inspect the patch
Read the suggested change before accepting it. Check any new method or property against the official Godot documentation. Apply the change to your working copy, open the editor and resolve parser errors first.
If it fails, send the assistant the exact error, the relevant function and the expected behavior. Ask it to explain the cause before providing a correction. Keep a note of what changed and why.
- Never paste account tokens or private service keys into the project.
- A screenshot of a good frame is not proof that the game rules still work.
- 05
Run focused regression checks
Use the included
tests/smoke.gdwith the command in the starter README if you have command-line access. Then play manually: diagonal movement, all screen edges, each beacon, premature delivery, win, hazard loss, timeout and restart from every result.Test the new warning at both sides of its threshold. Set the timer low temporarily in a separate test copy rather than repeatedly waiting a minute. Restore the normal 60-second setting before sharing.
- Check that score and remaining objects reset together.
- Record failures with action, expected result and actual result so another person can reproduce them.
- 06
Ask someone else to play
Give a person only the on-screen controls and a simple task. Watch without explaining the solution. Note whether they understand what to collect, where to return and why a run ended. Ask what they expected Space to do near the house.
Fix one confusing message or visual cue before adding another mechanic. Save the observation in the playtest log and keep the original wording for comparison.
- Test at the intended window size, including the smallest size you plan to support.
- A functioning prototype can still be difficult to understand.
- 07
Export a desktop test build
Install matching export templates, add an export preset for your desktop platform and export into an empty
builds/v01/folder. Open the exported executable from that folder. Test controls, audio, restart and exit outside the editor.Godot’s Export PCK/ZIP option produces project resources; it is not the same as a playable exported application. Keep the executable and its required data files together.
- Avoid browser, mobile and console export promises in this first exercise; they need additional testing and platform setup.
- Do not distribute the editor cache or model checkpoints with the game.

Godot’s export dialog shows where to configure and run a desktop export preset. Image: Godot documentation. - 08
Hand over the game and its decisions
Package the source project, the tested desktop build, a short controls file, credits and the feature/playtest log. Keep the assistant conversation or a concise change record with the source, not as a substitute for readable code.
Ask a colleague to open the source and identify the warning threshold. If they can repeat the test without you, the feature is ready for the next iteration. Choose one next task, such as accessibility controls or a second level, and leave it outside this release.
- Keep the starter MIT licence with redistributed original code and placeholders.
- Record separate terms for any replacement model-generated assets.
When a result needs fixing
The assistant invents a node path or method.
Provide main.tscn and the relevant script. Check the exact Godot class reference and request a patch against those files.
The game works once but fails after restart.
Inspect restart() for every new state variable, label and timer. Add a test that restarts after each result.
Exported resources do not open as a game.
Use Export Project with matching templates, and keep the executable and data together. PCK/ZIP alone is not a playable app.