Make Games with Godot 4 and AI · Lesson 11 of 11

Make a Godot Game with One AI Prompt: 6 Genres (Lesson 11)

In this final lesson, we look at what you get when you ask AI, just once, to "make a game," using examples in six genres. We cover how to write the prompt, how AI tests and where that falls short, and how to grow what you get into your own game.

By the end of Lesson 10, you'd built a small game from start to finish with your own hands: placing nodes, writing scripts, tuning collisions, and exporting and publishing it. In this final lesson, we'll shift perspective a little and look at six real examples to see what you get when you ask AI, just once, to "make a game."

The point isn't to say "just let AI do everything." It's to use what you've learned in this series to read, judge, and grow what AI makes into your own game. The more you've built by hand, the more clearly you'll see what's good about AI output and where it's risky.

We won't create a new project in this lesson. The code shown here is copied straight from the example projects' files, and we've confirmed it runs in Godot 4.6.2 and 4.8 beta5.

What "made with one prompt" actually means

All six games shown here were made the same way:

  1. Open an empty project in the Godot editor and connect Claude Code to the editor with Godot MCP Pro (the "C: AI + MCP" setup from Lesson 1).
  2. Type an English prompt into Claude Code just once.
  3. From there, the AI writes scripts, builds scenes, runs the game, sends key presses and clicks, checks the screen with screenshots, and fixes the bugs it finds. The human doesn't touch the editor or the code.

The AI's work took between about three and a half and nine minutes. Every session was recorded and is published on YouTube and in the showcase.

ExampleGenreAI working time
Pop Jump2D platformerAbout 5 min
Pop Tower DefenseTower defenseAbout 5 min
Pop Match!Match-3 puzzleAbout 4 min
Pop Bullet HellVertical-scrolling bullet hell shooterAbout 5 min
Pop Roller3D ball rollerAbout 3.5 min
Pop SurvivorsSurvivors-like (à la Vampire Survivors)About 9 min

The honest limits

The videos alone can look like magic, so let's be precise about what you actually end up with.

  • It's the "core of a game," not a finished product. Each one is a single stage you can finish in a few minutes. There's no title screen, saving, settings screen, or carefully crafted levels.
  • It works because these are well-known genres. Platformers and match-3 games have tons of tutorials and code online. Ask for a brand-new kind of game nobody has seen in one line, and you won't get results like these.
  • All the visuals are "shapes drawn in code." Not a single image file is used. They look cute, but the art direction came from the AI's average taste.
  • They're built differently from what you learned in this series. Many of the examples don't place nodes in the editor; instead they create them with new() in scripts and draw the graphics in _draw(). It works, but it's hard to tweak values in the Inspector (you can change this by how you ask; see the next section).
  • When AI says "fixed," it isn't always entirely right. Later in this lesson, we'll show a real example that works but still has a small problem inside.

Breaking down the actual prompt

The six prompts are nearly identical except for the genre name. For the platformer, it was this one sentence:

I want to make a 2D platformer game. Before thinking about originality, I'd like to build the core basics first. Please make it with pop, catchy graphics.

You don't have to write in English, either. Asking in another language works the same way.

It's short, but it carries three important pieces of information.

  • Genre: "2D platformer." From those words alone, the AI pictures the standard set: moving left and right, jumping, platforms, coins, enemies, and a goal.
  • Limited scope: "the core basics before originality." Without this, the AI tends to get carried away, cram in too many features, and leave all of them half-done.
  • Visual direction: "pop, catchy." That set the colors and the mood.

Put the other way around: the controls, the rules, and the win/lose conditions were all decided by the AI. For a standard genre that's fine, but when you're making your own game, deciding these yourself and writing them down gets you closer to what you have in mind.

Six elements of a good prompt

ElementIn the example promptWhat you might add
Genre and scope"2D platformer," "the core basics first""Just one stage," "No title screen yet"
Controls(Left to the AI)"Move with A/D or ←→, jump with Space"
Rules(Left to the AI)"10 coins. Stomp enemies to defeat them"
Win/lose(Left to the AI)"Touch the flag to clear; fall in a pit and go back to the start"
Look"Pop, catchy""Pastel colors. No images, just shapes"
How to verify(The AI ran it on its own, since MCP was available)"When you're done, run it yourself and play it to check before reporting back"

With all six included, it might look like this. The last two lines ask the AI to follow the way of building you learned in this series.

I want to make a 2D side-scrolling action game in Godot 4.6. Before thinking about originality, just build the core basics first.
- Controls: move with A/D or ←→, jump with Space (hold to jump higher)
- Rules: one stage. There are 10 coins. Enemies can be defeated by stomping on them from above. Touching one from the side sends you back to the start
- Win/lose: touching the flag at the right end shows a clear screen, and R restarts
- Look: pop, cute pastel colors. Don't use image files; draw with shapes
- Structure: make the Player, coins, and enemies each a .tscn scene, and make values like speed and jump strength @export. Register the controls in the InputMap
- Verification: when you're done, run the game yourself, send key presses, check the movement with screenshots, fix any bugs you find, and then report back
Longer isn't always better

If you write too much detail, the AI may focus on following exactly what's written and lose the overall cohesion. It usually works better to keep the first request to "the skeleton," then ask for details one at a time afterward (see Fixing and growing what you get).

Example 1: the 2D platformer "Pop Jump"

This platformer is the closest to the game we built in this series. First, watch how it was made (2 minutes 44 seconds; parts are sped up).

How Pop Jump was made (watch on YouTube)
Pop Jump gameplay. Clouds in a light blue sky, a pink floor, colorful platforms, star coins, and purple enemies. "★ 1 / 18" in the top left
The hero mid-jump. The floor, platforms, coins, enemies, and even the clouds are all drawn in code

The scene the AI built

Dumping the scene tree while the game was running gave the following (platforms, coins, and enemies are grouped since there are many of them).

Scene tree at runtime (Pop Jump)
Main (Node2D)  main.gd
├─ SkyLayer (CanvasLayer)
│   └─ Sky (Control)  sky.gd          … sky, clouds, confetti
├─ Level (Node2D)                      … contents added by main.gd at runtime
│   ├─ Platforms ×16 (StaticBody2D)  platform.gd
│   ├─ Coins ×18 (Area2D)  coin.gd
│   ├─ Enemies ×4 (Area2D)  enemy.gd
│   ├─ Goal flag (Area2D)  goal.gd
│   └─ Invisible walls at both ends ×2 (StaticBody2D)
├─ Player (CharacterBody2D)  player.gd
│   ├─ CollisionShape2D
│   └─ Camera2D
└─ HUD (CanvasLayer)
    ├─ CoinLabel (Label)
    └─ Message (Label)

Every node it uses is one you've seen in this series: a CharacterBody2D player, coins and enemies made with Area2D and signals, and a CanvasLayer HUD. The difference is that the stage isn't built in the editor; it's generated from data. main.gd lists the positions of platforms and enemies in arrays.

scripts/main.gd (excerpt)
# [x, left, right]
const ENEMIES := [
	[900, 750, 1150],
	[1800, 1450, 2150],
	[2900, 2500, 3550],
	[4200, 3950, 4700],
]

Each enemy has its "spawn x position, left end of its patrol, right end" listed. _ready() loops over this array with for, creates enemy.gd nodes with new(), and adds them to Level. It's a good way to build things quickly, but the stage doesn't show up in the editor, so you can't adjust platform positions while looking at them.

How the jump feels

Let's read it side by side with the jump we built in Lesson 5. Here's the first half of _physics_process() in player.gd.

scripts/player.gd (excerpt)
	if is_on_floor():
		coyote = COYOTE_TIME
	else:
		coyote -= delta
		var g := GRAVITY * (1.5 if velocity.y > 0.0 else 1.0)
		velocity.y = minf(velocity.y + g * delta, MAX_FALL)

	if Input.is_action_just_pressed("jump"):
		buffer = JUMP_BUFFER
	else:
		buffer -= delta

	if buffer > 0.0 and coyote > 0.0:
		velocity.y = JUMP_VELOCITY
		buffer = 0.0
		coyote = 0.0
		squash = Vector2(0.65, 1.4)

	if Input.is_action_just_released("jump") and velocity.y < 0.0:
		velocity.y *= 0.5
  • Coyote time (coyote): for 0.1 seconds after running off a platform, you can still jump. Pressing right at the edge is less likely to feel like "I pressed it, but it didn't jump."
  • Jump buffering (buffer): a jump pressed up to 0.12 seconds before landing is remembered, and the character jumps the moment it lands.
  • 1.5× gravity only while falling: the rise feels floaty, and the fall feels snappy.
  • Variable jump height: releasing the button while rising halves the upward speed, giving a small hop.
  • squash is purely visual: it stretches the character vertically at the moment of the jump (squash and stretch).

These are all "standard techniques for making platformer controls feel good." They're in there even though the prompt doesn't mention any of them, because the AI knows the conventions of the genre. Read it next to the simple jump from Lesson 5 and you'll see how much a few extra lines change the feel. Our Godot 4 platformer tutorial walks through this code piece by piece.

The comments are in English because the prompt was written in English. Ask in another language and you'll usually get comments in that language, and you can also just say which language you want comments in.

How the AI tested it

Following the video's chapters, here's what the AI did, in order. It used the "run → send input → look at the screen" loop introduced in Lesson 9.

  1. It started the game with play_scene and pressed the right key with simulate_key. The hero didn't move. The simulated input wasn't reaching the control mappings, so it redid the InputMap registration.
  2. It ran it again and confirmed running, jumping, and collecting coins. In the get_game_screenshot image, it noticed that the controls text disappeared before the window even appeared, and changed how it was displayed.
  3. It confirmed that stomping enemies defeats them and that touching them sends you back to the start.
  4. It played through to the goal and noticed that after clearing, you could walk off the right edge of the stage and fall, so it added invisible walls at both ends.
  5. The clear text stayed semi-transparent. The cause was a Tween, meant to fade out the previous message, that kept running. The current main.gd stops the previous Tween with kill() when it shows a new message.

The fix from step 4 is still there in _ready() in the current main.gd:

scripts/main.gd (excerpt)
	for wall_x in [-220.0, 5240.0]:
		var wall := StaticBody2D.new()
		var cs := CollisionShape2D.new()
		var shape := RectangleShape2D.new()
		shape.size = Vector2(40, 2000)
		cs.shape = shape
		wall.position = Vector2(wall_x, 0)
		wall.add_child(cs)
		level.add_child(wall)

It attaches a CollisionShape2D to a StaticBody2D to make a rectangular collision 40 wide and 2000 tall. This is what the editor work from Lesson 5 looks like when written in code.

It works, but a problem was left behind

Looking at this example again more closely, we found two each of CollisionShape2D and Camera2D under Player. They already existed inside player.tscn, but main.tscn also added nodes with the same names. The settings are the same, so you won't notice any difference while playing, but it could later cause "I changed the camera settings, but nothing happened."

You won't find problems like this just by running the game and looking at screenshots. Opening the scene tree and checking what's inside with your own eyes matters just as much when AI built it.

Example 2: tower defense

The second one is a genre we didn't cover in this series. Slimes travel along a winding path, and the player places towers beside the path to stop them.

How the tower defense game was made (watch on YouTube)
Tower defense gameplay. A yellow path across a green checkered field, pink and yellow towers, colorful slimes moving along the path, and a heart at the right end. "$ 40," "Lives 20," "Wave 1," and buttons along the top
Partway through wave 1. There are two kinds of towers (left: the rapid-fire Popper; right: the area-damage Boomer)

The scene the AI built

main.tscn scene tree (tower defense)
Main (Node2D)  main.gd     … the field, path, and heart are drawn in main.gd's _draw()
├─ Towers (Node2D)         … placed towers go here
├─ Enemies (Node2D)        … spawned slimes go here
├─ Bullets (Node2D)        … bullets go here
├─ FX (Node2D)  fx.gd      … pop effects and "+10" text
└─ HUD (CanvasLayer)
    ├─ CoinsLabel / LivesLabel / WaveLabel (Label)
    ├─ PopBtn / BoomBtn / StartBtn (Button)
    └─ Banner (Label)

It sets up three empty Node2Ds as "containers" and puts towers, enemies, and bullets into their own. That way, "check every enemy that's currently alive" is a single line: enemies.get_children(). It's a way of organizing things you can use in your own games too.

The path and tower targeting

The path the enemies follow is set by an array of grid coordinates.

scripts/main.gd (excerpt)
const WAYPOINTS := [Vector2i(-1, 2), Vector2i(4, 2), Vector2i(4, 7), Vector2i(9, 7), Vector2i(9, 1), Vector2i(14, 1), Vector2i(14, 8), Vector2i(20, 8)]

Each cell is 64 pixels. Enemies walk through the points in the array in order, and when they reach the last one, you lose a life. Just edit this array to change the shape of the path.

Which enemy a tower aims at is decided by find_target().

scripts/main.gd (excerpt)
func find_target(pos: Vector2, r: float) -> Node2D:
	var best: Node2D = null
	var best_prog := -1.0
	for e in enemies.get_children():
		if e.is_queued_for_deletion() or e.hp <= 0.0:
			continue
		if e.position.distance_to(pos) <= r and e.progress > best_prog:
			best = e
			best_prog = e.progress
	return best

Among the enemies within range (r), it picks the one that has gotten furthest along the path (the largest progress). Rather than aiming at "the closest enemy," this takes out the enemies about to reach the goal first, which is the standard choice in tower defense. This wasn't in the prompt either.

Wave difficulty is set by formulas in start_wave() and _spawn_enemy(). The number of enemies is 6 + wave * 2, their health is 3.0 + wave * 1.5, and from wave 3 on, one in five enemies is a big, tough tank. Balancing starts with tweaking these numbers. For a detailed walkthrough, see the Godot 4 tower defense tutorial.

How the AI tested it

  1. It started the game with play_scene, placed towers with simulate_mouse_click, and started a wave with a key press.
  2. From a screenshot, it noticed that the right edge of the window was cut off. It set the stretch mode in Project Settings to canvas_items so the whole screen scales to fit the window size.
  3. It played on to later waves to set up a loss (a stress test) and noticed that the GAME OVER text couldn't be seen. The intro animation made the text grow too large; in the current code, the text only scales up during its first 0.3 seconds on screen.
  4. It confirmed that clicking restarts the game, checked that there were zero errors, and finished.
project.godot (excerpt)
[display]

window/size/viewport_width=1280
window/size/viewport_height=720
window/stretch/mode="canvas_items"

The fix from step 2 is this one line in project.godot. Stretch mode is also a setting that matters for exporting in Lesson 10, and when people play on phones or on the web.

"Playtested" isn't the same as "fun for people to play"

AI testing is checking that things work: "towers can be placed," "waves start," "GAME OVER shows when you lose." Whether wave 3 is too hard, or whether placing towers feels satisfying, is something only you can judge by playing.

The other four genres

For the remaining four, the prompts differ only in the genre name. Each one has a making-of video, a showcase page (with the prompt and a list of bugs the AI fixed), and a tutorial that explains the code.

Match-3 puzzle "Pop Match!"

The match-3 puzzle screen. An 8×8 board with six kinds of pieces with faces. On the right, the POP MATCH! logo, the score, and 25 moves left
The six kinds of pieces, shapes and faces included, are all drawn in code

Swapping, match detection, falling pieces, chains and combos, hints, shuffling when no moves are left, and a 25-move limit, all in about 4 minutes. What's interesting is that the whole game is a single script, match3.gd (about 17 KB), and the only node is Main. The board, pieces, and UI are all drawn in _draw(). Since a puzzle is all about "the board data," this makes sense, but it's a fairly long file for a person to read.

Making-of video · Showcase · Match-3 tutorial

Bullet hell shooter "Pop Bullet Hell"

A vertical bullet hell shooter screen. A purple starry background, the player's rocket, round light blue enemies, and colorful round bullets. Score and lives at the top
A vertical shooter. Bullets come at you in patterns like fans, spirals, and rings

Focus mode (slow movement that shows your hitbox), a bomb that clears bullets from the screen, three enemy types, a boss, and looping waves, in about 5 minutes. Bullets aren't individual nodes; bullet_field.gd manages and draws them together as array data. It's a trick to keep things running smoothly even with hundreds of bullets, and a standard design for bullet hell games.

Making-of video · Showcase · Bullet hell shooter tutorial

3D ball roller "Pop Roller"

The 3D ball rolling screen. Yellow and light blue courses floating in a purple space, a pink ball, light blue gems, and a yellow goal ring in the distance. GEMS 2 / 14 and TIME in the top left
Roll across a course made of six sections and collect 14 gems

The only 3D one, in about 3.5 minutes. Unlike the other five, the course is placed as nodes in main.tscn (a StaticBody3D floor, 14 Area3D gems, and so on). The ball is a RigidBody3D that rolls when force is applied based on input. Speed and jump strength are @export, so you can tune them in the Inspector. Among other things, the AI noticed the colors looked washed out and adjusted the tone mapping and glow, and added a wall because you could fall off behind the goal.

Making-of video · Showcase · Ball rolling game tutorial

Survivors-like "Pop Survivors"

The survivors-like screen. A yellow character wearing a hat in the middle of a pale green field, surrounded by pink enemies and light blue XP gems. An XP bar, LV 1, elapsed time, and kill count at the top
Weapons fire automatically. Collect gems to level up and pick an upgrade from three cards

A "Vampire Survivors-like," where all you do is move. At about 9 minutes, it took the longest of the six. In the first test run it was game over in 14 seconds, so the AI lowered the difficulty on its own and tested again. "The AI tested it and decided it was too hard" is a nice example, but deciding the right difficulty is still up to a human.

Making-of video · Showcase · Survivors-like tutorial

Fixing and growing what you get

One prompt only gets you to a starting point. Turning it into your own game from there means repeating a cycle: ask for something small, check it, ask again.

One change per request

The survivors-like has a sequel. After the first prompt, we asked four more times and grew it into a fuller game, "Pop Survivors PLUS" (five prompts in total, about 33 minutes of AI work). Each follow-up prompt asked for just one theme (paraphrased):

  1. "Add a title screen and a character select with three characters that have different starting weapons and stats."
  2. "Add weapon evolutions. Elite enemies drop treasure chests, and if a weapon is at max level and you have its matching item, the chest evolves it with a flashy effect."
  3. "Spawn a boss with its own attack pattern every 2 minutes, and show a victory screen if you survive 8 minutes."
  4. "Finally, carry collected coins over to the next run so they can be spent on permanent upgrades in a shop. Also generate sound effects in code and polish the game feel."

If you ask for everything at once and something breaks, you won't know which change caused it. Ask for one thing, play it to check, and move on only if it's fine: that's the basic rhythm. The finished version is playable in your browser on itch.io, and the source code is on GitHub (MIT license). The showcase has the original text of all five prompts.

Report bugs with "steps to reproduce"

"Something's off" isn't something AI or people can fix. When you report a bug, write what you did, what happened, and what should have happened.

There's a bug in Pop Jump.
Steps to reproduce: 1. Start the game. 2. Go right and run into the first purple enemy from the side. 3. Right after being sent back to the start, walk right again.
Expected: for 1.2 seconds after respawning, the player is invincible and blinking.
Actual: it doesn't blink, and sometimes gets hit again right away.
Don't change anything else. After fixing it, reproduce the same steps in the game, confirm it's fixed, and then report back.

(This is just an example of how to write a report; Pop Jump doesn't actually have this bug.) The last two lines are the important part. "Don't change anything else" prevents unrelated rewrites, and "reproduce the same steps" has the AI verify its own fix.

Read the changes

Always look at what the AI changed. The most reliable way is to manage your project with Git and commit before you ask. When the AI is done, look at the diff to see just the lines that changed. If a change looks wrong, you can go back to your commit. If you're not using Git yet, at least make a full copy of your project folder before asking.

Things especially worth checking in the diff:

  • Did it rewrite files or functions you didn't ask about?
  • Did any numbers (speed, health, timing) change without you asking?
  • Is any node duplicated, like the Camera2D in Pop Jump?
  • Did any settings in project.godot change?

The work that's still yours

As the six examples show, AI handles "building the working core of a standard genre" impressively fast. Even so, these things remain a human's job:

  • Game feel: jump height, enemy speed, the time between waves. The only way to find the "just right" values is to play and feel them. You can tell the AI "make it a bit floatier" and have it adjust, but you're the one who judges whether it's better.
  • Art direction: all six share a "pop and cute" look, but that's also the average look AI tends to pick. To make your game look like yours, you'll need to draw it yourself or give clear direction.
  • What not to build: AI will keep adding features as long as you ask. To finish something small and ship it, someone has to draw the line.
  • Originality: just as the example prompt said "the core before originality," the part beyond the core, what makes this game this game, is your idea.
  • Final check: even when AI tests, things get missed. Being able to read scenes and code yourself, like spotting Pop Jump's duplicated camera, stays useful in an age of building with AI. That's exactly the skill this series has given you.

Working with AI

Making a one-prompt game in each of the three setups

The examples in this lesson were made with "C: AI + MCP." Here's an honest comparison of what happens if you ask for the same thing with A or B.

  • A (chat): it's an excellent partner for planning a game or drafting prompts. Ask "list the features a match-3 core needs, in the order to build them" and you'll get a good task list. But it hands you code one file at a time to paste in, and you place the nodes and organize the files yourself. Building something the size of these six examples in one go isn't realistic.
  • B (Claude Code, etc.): it can read and write your project folder, so it can create scripts and scene files all at once. But the AI can't run and watch the game it made. Problems like Pop Jump's "hero won't move" or "text stays semi-transparent" are ones you have to find by running it with F5 and report back. Also note that if you let the AI rewrite project.godot while the editor is open, the editor may overwrite the changes.
  • C (+ MCP): like in the six examples, the AI can run the "write → run → look → fix" loop on its own. With Godot MCP Pro, for example, it uses tools like these:
    • Build: create_scene, add_node, create_script, attach_script, set_input_action, set_project_setting
    • Run: play_scene, simulate_key, simulate_mouse_click, set_game_speed
    • Look: get_game_screenshot, get_game_scene_tree, get_game_node_properties, get_editor_errors

When you ask with C, adding how to verify at the end of the prompt makes the AI's testing more concrete.

When you're done, run the game with play_scene, use simulate_key to go right for 3 seconds and jump, and check the screen with get_game_screenshot. Confirm that the coin count goes up and that enemies disappear when stomped. If there's anything you couldn't confirm, say so honestly.

You can also use it to inspect things after they're built.

Get the scene tree of the running game with get_game_scene_tree and look for nodes that are duplicated under the same name, or nodes that aren't used. Don't fix anything you find yet; first report it as a list.

And one thing stays the same in every setup: when the AI says "done," play it yourself and open the scenes and code to check. AI testing checks "does it work as specified," not "is it fun" or "is it what I wanted to make."

Recap, and where to go from here

  • For a standard genre, AI can build a "playable core" from a single prompt. But it's not a finished product
  • In your prompt, cover genre and scope, controls, rules, win/lose conditions, look, and how to verify
  • AI adds a genre's standard techniques (coyote time, targeting the lead enemy, and so on) on its own. Reading them is a good way to learn
  • With MCP, AI can check and fix what it built by running it, sending input, and taking screenshots
  • Things still get missed. Check the scene tree and code with your own eyes
  • When growing a game, make one change at a time. Report bugs with steps to reproduce, and read the diff
  • Game feel, look, scope, and originality are decided by humans

That's the end of the series. Thanks for sticking with it! Here are a few possible next steps:

  • Add techniques you saw in the examples (coyote time, jump buffering) to the game from this series
  • Pick a genre that interests you and read the example's code piece by piece alongside its tutorial
  • Use this lesson's prompt format to have AI build the "core" of your own idea, then grow it into your own game one step at a time

Whichever path you choose, the basics you learned in this series stay the same: build with nodes and scenes, bring things to life with scripts, and run it to check.

Want to try these examples in your own setup?

All six examples were made with Claude Code and Godot MCP Pro. It lets AI run your game, send key presses and clicks, and fix things while checking with screenshots (190 tools, $15 one-time purchase). And of course, you've already learned how to build by hand without MCP in this series.

Learn more about Godot MCP Pro · See the prompts for every example in the showcase

All lessons in the series (11)
  1. Lesson 1: Installing Godot and setting up AI tools
  2. Lesson 2: Nodes and scenes
  3. Lesson 3: GDScript basics
  4. Lesson 4: Input and player movement
  5. Lesson 5: Gravity, jumping, and tilemaps
  6. Lesson 6: Signals, coins, and enemies
  7. Lesson 7: UI and screen transitions
  8. Lesson 8: Sound and game feel
  9. Lesson 9: Letting AI playtest your game
  10. Lesson 10: Exporting and publishing
  11. Lesson 11: Bonus: one-prompt games by genreYou are here