· Jason Louro
How to make a game with Claude or Codex (and actually finish it)
Claude and Codex can build a game, but vibe-coding one from scratch stalls on art, bugs and export. Here's what works, step by step, on the AI plan you already pay for.
Yes, Claude can make a game. Ask Claude Code or Codex for a browser game and you'll have something playable in minutes. The trouble starts a few hours later: the art is colored squares, every new feature breaks an old one, and there's no clear path to a game you can put on Steam.
There are two ways to make a game with Claude or Codex. You can have it write the whole game from scratch, which is called vibe coding. Or you can give it a game maker to work in, so it builds your game instead of a game engine. This post covers both, and when each one makes sense.
I make Chunkyard, a game maker built for the second way, so weigh this accordingly.
Vibe coding a game from scratch
Vibe coding means describing what you want and letting the AI write all the code, without reading it yourself. For a small game it works surprisingly well. Claude Code or Codex can set up a project, write a game loop, add movement and collisions, and run it, all from a few messages.
It tends to stall in the same places:
- Art. Claude and Codex write code, not pictures. You get rectangles, emoji or simple vector shapes. Image models can make sprites, but they rarely match each other, and they're hard to keep on a pixel grid.
- A growing codebase. Every feature adds code the AI has to keep in its head. Past a few thousand lines, fixes start breaking things that used to work, and you can't fix them yourself if you can't code.
- Testing. The AI writes the game but doesn't play it the way you do, so you end up as the tester, describing bugs in words.
- The boring 80%. A finished game needs saves, a title screen, a pause menu, settings, key rebinding, sound and builds for each platform. None of it is fun to ask for, and all of it has to work.
None of these makes it impossible. People do ship vibe-coded games. But most vibe-coded games stall here, not at the first prototype.
Vibe coding from scratch is the right pick if you're making a small web game or a game jam entry, you want to learn to code along the way, or you want a kind of game no game maker supports, like a platformer, a 3D game or something experimental.
Giving Claude a game maker instead
The other way is to give your AI app tools instead of an empty folder. Claude and Codex both support MCP (Model Context Protocol), which lets an app hand the AI a set of tools to use. Connect a game maker over MCP, and the AI works inside it: it adds creatures and items, writes dialogue, draws sprites and tests the game, while the game maker's engine handles the hard parts.
That's how Chunkyard works. It's a desktop app for making 2D top-down pixel art games, like early Zelda, Stardew Valley or a survival game. You connect Claude Desktop, Claude Code or Codex, and it builds your game through Chunkyard's tools:
- The engine is already written. Movement, collisions, combat, day and night, farming, crafting, saves, menus and settings are regular code that's already tested. Your AI app adds content and rules instead of writing an engine, so a new feature can't break the game loop.
- It draws real pixel art. Your AI app writes a small drawing program for each sprite, and Chunkyard's code renders it on a true 16-pixels-per-tile grid in your game's style. The AI gets the render back, checks it against a list, and fixes what's off before you see it. Here's how that works.
- It can play your game. Your AI app can walk the player around the playtest, talk to characters, open chests and fight, then look at a screenshot to check its work.
- You see everything. Each change shows up in Chunkyard's window as it happens, and every drawing shows up in your chat.
- It exports. A finished game exports for Windows, macOS, Linux or the web, and it's yours to sell.

A game maker is the right pick if you want a finished game of a kind it supports, with art that matches, and you'd rather spend your time on the game than on the code.
Step by step: making a game with Claude and Chunkyard
1. Check your plan
You need a Claude plan (Pro or higher) with Claude Desktop or Claude Code, or a ChatGPT plan (Plus or higher) with Codex. ChatGPT in the browser or the ChatGPT app can't connect to tools on your computer, so ChatGPT users use Codex.
If you don't code, start with Claude Desktop. It's a normal chat app, and you never see a terminal. Claude Code and Codex work the same way here, so if you already use one, stick with it.
2. Connect your AI app
Make a new game in Chunkyard and click Connect AI. For Claude Desktop, click Add to Claude Desktop and accept the extension. For Claude Code or Codex, copy the message Chunkyard gives you and paste it into a new chat. The AI app connects itself and asks you to start a fresh session.
3. Describe your game and agree on a plan
Tell your AI app what you want to make, in as much or as little detail as you like: "A cozy farming game on a small island, where you fix up your grandmother's old farm." It doesn't build the whole game in one go. First it asks a few questions at a time, offers ideas, and writes a design document with you: the setting, the player's goal, the main loop, the characters and creatures, and the art style. It shows up as the Plan on the Story tab, where you can change it yourself.
This step matters more than it looks. A plan keeps every later request pointed at the same game.
4. Set the look
Next, ask for a style kit: the palette, outlines, light and shading every sprite will follow. Your AI app shows you sample drawings in your chat. Ask for changes until it looks like your game, because everything you add later is drawn to match.

5. Build one thing at a time
Now build the game in small pieces, checking each one:
- "Add a slime that hops toward the player and takes two hits to defeat."
- "Give the elder a quest: find the lantern crystal in the southern grove."
- "Turnips should take three days to grow and sell for 20 coins."
After each one, look at the drawing in your chat and try it in the playtest. Small requests are easier to check, and if something's wrong, you know exactly what changed.
6. Let it test, then test it yourself
Ask your AI app to test what it just built: "Walk to the elder and accept the quest, then check the quest shows up." It plays the steps in the playtest and reports what happened, with a screenshot.

Then play it yourself. Your AI app can check that a quest works. Only you can tell whether it's fun.
7. Tune it by hand
Every creature, item and rule has a form in Chunkyard. Changing a number, like a wolf's speed or how fast hunger drains, is quicker there than asking, and it doesn't use your plan at all.
8. Export it
When you're happy, export your game for Windows, macOS, Linux or the web, or publish it to play.chunkyard.net to share with a link. An exported game runs on its own, offline, and never calls an AI model.
Tips for making games with Claude or Codex
These work whatever tool you use:
- Ask for one thing at a time. "Add a fishing rod" beats "add fishing, boats and a fish market."
- Describe the feel, not the numbers. "The wolf should be scary but escapable" gives the AI more to work with than "speed 4."
- Start a fresh chat for each new feature. Long chats get slow and forgetful. The design document carries the plan between chats.
- Ask it to check its own work. "Test that the gate opens with the key" catches bugs before you do.
- Keep a short list of what's next. It stops the game from growing in every direction at once.
What it costs
Chunkyard is $29, once. Your AI app does its work on your own Claude or ChatGPT plan, which counts against your plan's usage limits. Drawings use the most. There's no API key and no per-use charge from Chunkyard. Music is free, up to 10 tracks a day and 100 in all. Editing, playtesting and exporting don't use your plan.
What Chunkyard can't do
Chunkyard makes 2D top-down games: RPGs, farming games, survival games, dungeon crawlers and sandboxes. It doesn't make platformers, 3D games, turn-based battles or multiplayer. For those, vibe coding from scratch or a general engine like Godot is the better path, and I compared the best AI game makers if you want to look at others.
Common questions
Can Claude make a whole game from one prompt? It can make a small one. For a game you'd want to finish and sell, building it a piece at a time works far better, whichever tool you use.
Is Claude or Codex better for making games? Both work well with Chunkyard. Use the one you already pay for.
Do I own a game I make with Claude? With Chunkyard, the game is a folder of files on your computer, and the export is yours to sell. If you sell on Steam, you disclose the AI-made content. Here's what Steam asks for.
Do I need to know how to code? No. You talk to your AI app in plain English, and you can change anything by hand in Chunkyard's forms.
New to all of this? Start with how to make a video game with AI, or jump into a genre: a top-down RPG, a farming game or a dungeon crawler.