Tyrbo Asset generator Affiliates Make your game

How to Make a Game with Claude Code, Step by Step

Tyrbo · · 7 min read

Claude Code is Anthropic's coding agent: it reads your project, edits files and runs commands. That makes it a capable game programmer, as long as you set it up well and know where it needs your help. This guide covers the setup, the choice between a plain web game and an engine, how to prompt it, how to test, how to add art, and how to get the game onto a phone.

What Claude Code is, and what you need

Claude Code is an agent that works on a folder of code. Anthropic's overview describes it as reading your codebase, editing files and running commands, and lists where it runs: a terminal, IDE extensions for VS Code and JetBrains, a desktop app and the web. Most of those need a Claude subscription or an Anthropic Console account; on Anthropic's pricing page, Claude Code is included in the Pro, Max and Team plans and not in Free.

To install the terminal version on macOS or Linux, the overview gives this command:

``bash curl -fsSL https://claude.ai/install.sh | bash ``

Then open a terminal in an empty folder for your game and run claude. It asks you to log in the first time.

You do not need to be a programmer to start, but it helps to be comfortable with a terminal, a folder of files and reading an error message. Claude Code will do the typing; you will still steer.

Step 1: Choose what kind of game project it is

This choice decides how easy testing and exporting will be later.

A plain web game

An HTML page with a canvas and JavaScript, or a small web game library. It is the easiest path with an agent, because everything is text files that Claude Code can read and write, and the game runs in any browser. You can play it on your phone by opening the page over your local network. Later it can be wrapped as a mobile app.

A game engine

Godot, for example, keeps scenes and scripts as text files an agent can edit. You get a real editor, physics and export tools, but you need the engine installed, you run the game from its editor, and some work (laying out scenes, tuning in the inspector) is easier by hand. Ask Claude Code to explain each file it creates until you know your way around.

For a first game, pick the web route unless you already know an engine.

Step 2: Write the game's rules into the project

Claude Code reads a file named CLAUDE.md at the start of every session. Use it as the game's design notes:

  • What the game is, in two sentences.
  • The target: phone, portrait or landscape, touch controls.
  • The structure you want: one file per system, one table of tuning numbers, no global state.
  • How to run it and how to test it.

Ask Claude Code to write a first version of this file with you. Keeping these notes in the project stops each new session from guessing.

Step 3: Prompt one system at a time

The common mistake is asking for the whole game at once. You get something that runs, but it is hard to fix because nothing was checked along the way. Build in this order instead, testing after each:

  1. The loop. "Make a canvas game where a square moves left and right with touch or arrow keys, and red blocks fall from the top. Touching a block ends the run." Play it.
  2. The feel. "Make movement accelerate and slow down instead of snapping. Put speed, acceleration and fall rate in one tuning table." Play it.
  3. Score and restart. Then menus, then levels or waves, then effects.

Ask it to plan before it writes ("Read the project and tell me how you would add a shop before changing anything"). Review the plan, then let it build. When something breaks, paste the exact error or describe exactly what you saw: "When two blocks land at once, the score goes up twice."

Step 4: Test like a player, and let it test like a programmer

Claude Code can run commands, so it can run tests. Ask it to write automated tests for the parts that are pure logic: scoring, wave timing, the economy, save and load. Those catch the bugs that come back after a later change.

What it cannot do on its own is feel the game. Only playing tells you whether a jump is floaty or a level is unfair. Play every change, and play on a real phone:

  • Ask Claude Code to start a local web server and tell you the address on your network, then open it on your phone over the same Wi-Fi.
  • Check that touch targets sit under your thumb, that text is readable, and that the game does not stutter.
  • Try an older, cheaper phone if you have one.

Add debug tools to the game itself: a button to skip a level, a key to spawn an enemy, a display of the current tuning values. They make every later test faster.

Step 5: Add art

This is where a coding agent stops short. Claude Code writes code, not pictures. Start with simple shapes so the game can be tested before any art exists, and decide the look later.

When you are ready for real art, you have three routes: draw it, use asset packs, or generate it. If you generate it, the hard part is keeping every character, background and button in one style, and turning still pictures into animations a game engine can play.

Our asset CLI adds that to Claude Code. It installs as a Claude Code plugin, with a skill and an MCP server:

``bash claude plugin marketplace add https://cdn.jsdelivr.net/npm/@tyrbo/asset/.claude-plugin/marketplace.json claude plugin install tyrbo-asset@tyrbo ``

You log in once in your own terminal with a key from your Tyrbo account. Then Claude Code can draw one look for the game with asset look, and ask for characters with animation clips, rigged 3D models, interfaces and sound in that look. Files land in your project's public/assets folder, and each call is priced before it runs. The details are on AI game assets for Claude Code.

Step 6: Export it

A web game can be shared as a page right away. Getting onto phones takes more:

  • Android. You wrap the web game in a native shell or use your engine's Android export, install the Android build tools, and sign the build with a key you keep safe. Google Play wants an app bundle; the steps are in how to publish a game on Google Play.
  • iOS. You need a Mac with Xcode and an Apple developer account to sign and upload. See how to publish a game on the App Store.

Claude Code can write the configuration and explain each error, but installing the tools, creating the signing keys and clicking through the store forms happen on your machine and in your accounts.

Where it gets hard

  • Art and animation need a separate tool, as above.
  • Testing on phones needs you, a phone, and patience.
  • Exports involve SDKs, signing and store rules that change.
  • Large projects drift. Keep CLAUDE.md current, commit working versions with git, and roll back when a change goes wrong.

Where Tyrbo fits

If you would rather not manage the project yourself, Tyrbo is a browser AI game maker with nothing to install. You describe the game, answer a few questions, and check a plan with concept art; it builds the game, tests every build (it builds, boots, answers touch and keys, and plays), keeps save points, and makes the art in one style. It exports a signed Android build, an iOS Xcode project you sign on a Mac, desktop builds and a web zip. The side by side is on Tyrbo vs Claude Code. Plans are on monthly credits, with a 4.99 dollar seven-day trial of Pro on the pricing page.

Questions people ask

Can Claude Code make a whole game?

It can write all the code of a small game if you build it one system at a time and test after each step. It does not draw art on its own, cannot feel whether the game is fun, and needs you to install export tools and sign builds.

Should I use a game engine or a plain web game with Claude Code?

For a first game, a plain web game is easier: everything is text files, it runs in any browser, and you can test on your phone over your local network. An engine such as Godot gives you an editor and export tools but asks more setup.

Which Claude plan includes Claude Code?

At the time of writing, Anthropic lists Claude Code in its Pro, Max and Team plans and not in Free. It can also be used with an Anthropic Console account. Check the Claude pricing page for current plans.

How do I add art to a game made with Claude Code?

Use placeholder shapes while you build, then draw the art, buy a pack, or generate it. The Tyrbo asset CLI installs as a Claude Code plugin and makes characters, models, interfaces and sound in one look, into your project folder.

Make the game this guide is about.

Make your game

Plan it free with a free account. Then build it: 7 days of Pro for $4.99, then $29 a month unless you cancel.