The hard part of AI game development in Godot isn’t getting an agent to produce a first build. It’s getting a build that plays the way you intended. Teaching coding and game development across more than 400 courses has given Zenva experience with both sides of that problem: defining what a mechanic should do and checking how it feels in the engine. In this tutorial, you’ll use a top-down 3D arcade racer to go from a design brief to a playable Godot project, then use playtest feedback to improve it.
This tutorial assumes you have Godot 4 installed and know your way around the editor.
Download Project Files
If you’d like to follow along with the same racing assets and design prompt template, you can find the project files and full project in the course included in the AI-Assisted Game Development Academy (Godot). You can also use the workflow below with your own game idea and assets.
AI Game Development in Godot: Follow an Iterative Workflow
From Programmer to Game Director
Think of the coding agent as a small development team you direct, not as a substitute for making design decisions. If you ask it to create a level, it has to guess what that level is for. Ask for a level that introduces double-jumping safely, without enemies, and you’ve given it a purpose and a constraint you can verify.
Make the result concrete, too. “Make the player jump 10% higher than the tallest platform” gives the agent a reference that “make the player jump higher” does not. Likewise, if you ask for a health component that must not depend on another script or change the UI, say so. Those boundaries help you keep the project editable.
Start with a detailed prompt, turn it into a game design document (GDD), and review the document before building. Then play the game to decide what needs changing. Even if the agent’s tests pass, you still need to drive the car yourself to judge whether it feels smooth and arcade-like. Knowing Godot and GDScript helps you tell when to ask for a fix and when it’s quicker to make one yourself.

Project Setup
Choose a Compatible Coding Agent
The example uses Codex, but the workflow can also work with another capable coding agent. Choose one that supports MCP servers so it can communicate with Godot, and use a model with coding capabilities comparable to GPT-6.1 Sol or Claude Opus.
Create the Project Workspace
- Create a workspace folder for the game and its design documents. The example uses GodotAIGame inside Godot AI Projects.
- Create a project in your coding agent and select GodotAIGame as the source folder. If prompted, trust the workspace you just created so the agent can work with its files.
- Open Godot and create an empty project named Godot AI Game inside that workspace.
- Extract the supplied assets and drag the Audio, Font, Models, and Textures folders into Godot’s FileSystem dock. Wait for the import to finish and check that all four folders appear.
Before setting up the editor connection, ask: “Can you see the Godot project and the assets I imported?” Look for a reply that identifies both the project and the types of assets, not just the workspace folder.

Install and Enable Godot AI
File access is only the first check. For the agent to interact with Godot and run the game, find Godot AI in the editor’s asset browser and install it. Then open Project > Project Settings, go to Addons > Plugins, and enable it. The Godot AI dock should appear on the right. Apply the update from the dock if it offers one.


Set Up uv and Connect the Server
If the dock reports uv: Not found, the add-on can’t find the tool it uses for its Python setup. Ask your agent: “I’ve installed the Godot AI add-on and it requires uv. Can you install and set up uv for me?” Close and reopen the Godot project so the add-on can detect it, then look for Server connected in the dock.

Configure the Coding Agent as a Client
In the Godot AI dock, select Configure an AI client, find your coding agent, and click its Configure button. Look for the configured status, then test the connection with a small task.

Verify the Connection With a Red Cube
Ask the agent: “Can you confirm that the Godot AI add-on is working and you can utilize it? Create a red cube in an empty scene and press Play.” If the add-on is enabled but the agent says it can’t access its Godot tools in the current chat, stop the request, reopen the agent, and repeat the check. Look for the cube in the running game window. Godot’s Output panel can also show communication between the add-on and the coding agent. Once you’ve verified the connection, remove the temporary scene so it doesn’t become part of the racing game.

Design the Racing Game Before Building It
Choose a Useful Design Document Format
A GDD records how your game should work. It can be a plain document, an interactive page with controls for exploring a mechanic, or even a playable browser prototype for a simple game. For City Racing, a self-contained HTML file with a few interactive elements and tabs is enough. The point is to make the decisions easy to find and review.


Fill Out the Design Prompt Template
Use the template from the project files, or work through these questions to write your own brief before sending it to the agent:
- Concept and game loop: What’s the objective, and what actions does the player repeat to reach it?
- Style and experience: What should the game look and feel like? Who or what does the player control?
- Core mechanics and world: What are the main actions, and where do they take place?
- Progression and camera: How does the game get harder, and how should the view behave during play?
- UI: Which menu screens and in-game elements do you actually need, and what should each display?
- Minimum viable product (MVP): Which mechanics must work, and how much content should the first playable build include?
Finish by asking for a self-contained HTML file with a clean layout, a little interactivity, and tabs for the different sections. A useful brief gives the agent decisions to implement rather than a genre and a list of features to interpret.
Apply the Template to a Racing Game
City Racing is a top-down 3D arcade racer set on city streets. The player picks a track, drives and drifts around it, then checks whether their lap time meets the target. A failed attempt means trying again; passing lets the player progress to the next track. Put that loop in the brief alongside the camera behavior, the UI, and how tracks get harder.
Generate and Review the Document
Submit the brief to the agent, then open the resulting HTML and review it before you ask for any Godot implementation. Check whether the agent understood your idea, whether any decisions are missing, and whether the mechanics still make sense together. Look for items marked To confirm and use the Suggestions tab to identify decisions that will affect the build.

For example, City Racing’s results screen left three decisions open. The revision specifies that failed attempts don’t set a best time, the Tracks button returns to track selection, and nothing special happens after track 10. Refer to the specific decision when you reply. For example, start with “For the ‘Before results’ decision…” and give all three answers together so the agent knows which part of the document to update. Review the revised version and repeat this process for any other open decisions that would materially change the build.

Use Image References to Communicate Visual Goals
Mock-ups of the race HUD and results screen give you something concrete to review. When you attach a visual reference to a prompt, tell the agent what to use it for. If it’s a camera reference, say that you want the angle or player scale rather than expecting it to infer what you like about the whole image.

Define Track Layouts and Difficulty
Sketch a few possible track shapes, paste the drawing into the agent, and explain that harder tracks should have more turns. After the update, check the Progression tab for both the sketch and the written difficulty rule.

Create a Track Selection Mock-Up
For track selection, sketch a horizontally scrolling row of cards. Each card has a track name, target time, best time, and Play button. Put a Back button under the row. Send the sketch with a written description, then check that the updated UI section records the layout.

Build a Playable Racing MVP
Plan Before Implementation
Once the GDD describes the game you want, give it to the agent with a build request. Use the existing Godot project and the supplied assets rather than asking the agent to start over. State that the goal is a playable version with driving, drifting, and ten levels, not a fully polished game.
Ask the agent to read the GDD first, propose an implementation order, and flag any decisions it needs you to make. Keep the build rules below in the same request so the agent knows how to put the game together, not just what features to deliver.
Build and Test Incrementally
Ask for the smallest working version of each system, integrated and tested as the project grows. That way, you don’t end up with a fully built menu or driving system that has never been tested with the rest of the game. Ask it to fix issues as it finds them and keep the project runnable. At the end, have it verify the build against the design rules and Godot’s conventions, then summarize what it implemented, what remains unfinished, and what to address next. Use that handoff to orient yourself before the first playtest, not as a substitute for it.
Keep the Godot Project Editable
Ask the agent to use Godot’s scenes, nodes, and resources instead of generating the entire project from one script at runtime. A camera you can adjust in the editor is easier to work with when you want to change its angle. Request consistent names, scripts with one responsibility, useful comments, and folders organized by resource type.
Set Boundaries for the Implementation
Tell the agent that the GDD is the source of truth. For the game implementation, use only the supplied assets, don’t generate new visuals or audio, and don’t add unnecessary UI or new third-party add-ons or dependencies.
Run the Prompt and Answer Questions
If the agent asks about lap timing or validation, use the opportunity to settle the rules. In City Racing, timing can begin on the first acceleration input. A valid lap follows the route in the intended direction and crosses the finish line, with invisible checkpoints checked in order to prevent shortcuts.
Playtest the First Version
Open Tracks, select Play, and drive with WASD. In the first build, the controls feel sluggish, the turns are awkward, and the environment uses straight road pieces on corners. The buildings also sit too far from the streets. Those are observations you wouldn’t get from the implementation notes alone.


Give the agent a focused environment request: use the curved road models for corners, line the streets with the three kinds of supplied building models, and add sidewalks so there’s no empty space visible below the environment. Play again to check the changes. The revised build uses curved corners and puts buildings along the streets, but some straight sections are stretched and the ground outside the track repeats the road pattern. Those observations give you the next set of fixes.

Writing Good Prompts
Write Goal Prompts Instead of Vibe Prompts
“Make the attack more snappy” could mean a shorter animation or a pause on impact. If you know the timing you want, say it: charge for 0.2 seconds, swing for 0.1 seconds, and freeze the frame for 0.1 seconds on a hit. Concrete goals give the agent less to guess and give you something to check.
Give Each Prompt a Single Objective
When several unrelated changes land together, it’s harder to tell which one caused a problem. Instead of adding enemies, changing the level, and replacing a UI font in one request, ask for one change, such as reducing the UI font size by 20%. Check it before asking for the next change.
Define the Completion State
“The player should be able to jump from each platform to the next in level one” tells you how to verify the result. “Make the player jump higher” does not. Describe what should happen in play so the test isn’t just whether a value changed.
Provide Enough Context
Explain how a change fits into the game that already exists. For example, a new sword might be slower but stronger than a stick, faster but weaker than an axe, and take four to five hits to defeat a level 5 enemy. Knowing Godot and GDScript also lets you name the relevant nodes, resources, or settings instead of leaving the implementation entirely open.
Improve the Game One Playtest at a Time
Replace the Outside Ground and Test the Result
Start with the ground outside the racing route. It uses the wrong mesh, and “make it smoother” doesn’t tell the agent what to replace. Right-click the supplied sidewalk model in Godot’s FileSystem dock, choose Copy Path, and include that path in the request. With the path copied, you can give the agent a request like this:
The ground outside the racing track is using the wrong mesh. Replace it with the sidewalk model at [paste the copied path]. The sidewalk should fill the ground outside the track and be scaled to match the track models.
Once the agent applies the change, open Tracks, select Play, and check the ground as you drive. You’re looking for the sidewalk to fill the surrounding area at the right scale, not just for a different mesh to appear in the scene.

Create a Warmer Golden-Hour Look
For the next pass, ask for warmer sunlight, screen-space ambient occlusion (SSAO) for more depth, richer contrast and saturation, and a little fog. Play another track to judge the color and depth in motion. The fog may be harder to spot than the warmer sunlight, so check the settings directly rather than assuming it wasn’t added.

Back in the editor, select WorldEnvironment and open its Environment settings. Look at the brightness, contrast, and saturation adjustments, then check fog and ambient occlusion. Toggle SSAO off and on to compare the scene with and without it. Inspect the sunlight separately to confirm the lighting change.

Use a Color Palette to Guide the UI
Make a set of swatches in a palette tool or a program like Paint, then copy and paste it into the agent conversation. Give the agent that visual reference rather than just asking for cooler colors. Explain that the cooler UI should complement the warm lighting, and explicitly require buttons and text to stand out against their backgrounds. A palette gives the agent a set of colors, but it doesn’t tell it which combinations are readable.

Check Menus, Gameplay, and the Results Screen
Test the new palette on the main menu and track selection screen, then drive a track to check that the background behind the timer makes it easier to read. Finish the lap and check the results screen, including the option to continue to the next track. An interface change that looks good on one screen can still need work elsewhere.


Keep the Game Design Document Current
Ask the agent to record what changed, including the palette. Check the GDD’s Style section for the visual direction, color grading, and effects, and the Build reference for the assets and scene setup. This keeps the current decisions in one place instead of leaving them in the agent conversation.
Reuse the Workflow on Your Next Godot Game
You’ve taken a racing concept from a design brief to a playable project and used the results of playtesting to guide specific changes. Keep this checklist handy for your next build:
- Write down the game loop, constraints, and what the first playable version needs to do.
- Review the design and clarify open decisions before requesting implementation.
- Build small, runnable systems and keep the project editable in Godot.
- Play the game, request one verifiable change at a time, and record decisions in the GDD.
On your next playtest, pick one issue you can describe precisely and decide how you’ll verify the fix before you prompt the agent.
For a guided path through building complete Godot games with AI assistance, explore the AI-Assisted Game Development Academy (Godot).
Did you come across any errors in this tutorial? Please let us know by completing this form and we’ll look into it!

FINAL DAYS: Unlock coding courses in Unity, Godot, Unreal, Python and more.







