Guides / Claude Code for game development

Make games with Claude Code

Claude Code works in your terminal: it edits the project, runs the game and reads the errors. Set it up so it can do all three and it becomes a very fast game programmer. Here is the setup, a CLAUDE.md for game projects, and the prompts that work.

The loop that makes it work
  1. 1You describeOne change at a time
  2. 2Claude editsFiles and scenes
  3. 3Claude runsGame or test scene
  4. 4Reads errorsConsole and logs
  5. 5You playFeel, not just bugs

1. Give it a game it can run

The agent is only as good as its feedback. Before anything else, make sure there is one command that starts the game or a test scene and prints errors to the terminal. For browser games that is the dev server; for Godot it is running the project from the command line.

2. Write a CLAUDE.md

Claude reads CLAUDE.md at the start of every session. Put the run command, where things live and your rules in it. Run /init to generate a first version, then trim it to something like this:

# Game: <name>

## Stack
- Engine: Godot 4 (GDScript)        # or Three.js / Unity / Phaser
- Run: godot --path . res://scenes/test.tscn
- Assets: res://art (GLB), res://sfx (OGG)

## Rules
- Keep one test scene that shows the feature you are working on.
- After every change, run the test scene and read the output.
- Change one mechanic at a time. Ask before large refactors.
- Game state lives in one autoload: res://scripts/game_state.gd

## Style
- Low-poly, warm palette, under 3k triangles per model.

3. Connect the engine with MCP

An MCP server lets Claude work inside the editor: create nodes and GameObjects, set properties, and read the editor's console. Add one with claude mcp add; each server's README has the exact command.

Godot10 servers, top: Godot MCP
Unity6 servers, top: Unity MCP (Coplay)
Unreal Engine5 servers, top: Unreal MCP (chongdashu)
Blender6 servers, top: Blender MCP

4. Prompts that work

1. Scaffold

Set up a Godot 4 project with a player you can move with WASD, a third-person camera and a flat test level. Add a test scene I can run, then run it and fix any errors.

2. Core mechanic

The player collects pollen from flowers and brings it back to the hive. Add a pollen counter in the corner. Run the test scene after the change.

3. Make it fun

Play the current loop in your head as a new player. List the three most boring moments, then fix the worst one.

4. Polish

Add screen shake and a short sound when pollen is delivered. Keep the change small.

5. Habits that save hours

Change one mechanic per prompt, and play after every change: the agent can tell when the game crashes, not when it stops being fun. Commit to git before big changes so you can roll back. When something is wrong, describe what you see on screen, not what you think the code does. And ask for a test scene for each feature, so the agent can check its own work.

For the art and sound, see AI 3D model generators, pixel art generators and sound effect generators. To compare agents, see Claude Code vs Cursor and Claude Code alternatives.

Games built with Claude Code

Claude Code page

Questions

Can Claude Code make a game?

Yes. Claude Code is a coding agent that edits your project, runs commands and reads the output, so it can build and debug a game end to end. Games in our list built with it include A Game About Capybaras Delivering Food, Vibe Vibers Battlegrounds, Hivebound, Bloomguard.

How much does Claude Code cost?

Included from the Pro plan: $20/mo, or $17/mo billed yearly.

Which game engine works best with Claude Code?

Anything it can run from the command line. Browser games with Three.js or Phaser are simplest, because the agent can start a dev server; Godot works well too and has several MCP servers that let the agent edit scenes directly.

What should go in CLAUDE.md for a game?

How to run the game, where the test scene is, where assets live, and your rules: change one thing at a time and run the game after each change. Claude reads CLAUDE.md at the start of every session.