Vibe-Code and Ship Playable Games with Claude Code and Codex
Set up Claude Code and Codex CLI alongside Godot and Unity to prototype, test, and export playable games from your terminal. Learn how developers structure iterative prompts, manage persistent context, and avoid multi-agent and 3D rendering pitfalls.

Setting Up Claude Code, Codex CLI, and Game Engines
To start using Claude Code in your terminal on macOS, Linux, or WSL, run the native installer script, or install via Homebrew with brew install --cask claude-code or WinGet with winget install Anthropic.ClaudeCode. After installation, open a new terminal window and run claude --version to confirm the CLI is on your PATH. Navigate to your game repository with cd and run claude to start an interactive session and authenticate through your browser or with an ANTHROPIC_API_KEY environment variable.[25]
curl -fsSL https://claude.ai/install.sh | bashFor OpenAI Codex CLI on macOS and Linux, run the standalone shell installer, then launch codex inside your project directory and choose Sign in with ChatGPT. The official documentation recommends creating Git checkpoints before and after each task so you can revert unwanted edits. Inside an active session, you can run /init to create an AGENTS.md instruction file, /model to adjust the active model and reasoning effort, /permissions to configure what commands Codex can execute, and /review to inspect diffs for issues, or call codex exec in scripts and CI pipelines.[26]
curl -fsSL https://chatgpt.com/codex/install.sh | shWhen pairing these CLI agents with an engine, initialize the project structure first so the agents have valid configuration files to read. In Godot, create a new project at a valid Project Path, open Project -> Project Settings, select the Display -> Window tab to set Viewport Width and Viewport Height, and set Stretch Mode to canvas_items and Aspect to keep for consistent screen scaling. In Unity Hub, open the Projects tab, select New project, and pick a pre-configured Universal Render Pipeline template such as Universal 2D or Universal 3D before clicking Create project. You can also launch the Unity Editor and standalone Players from the command line with arguments to automate tasks and builds.[23, 24, 31]
To ship a playable Godot build once your scripts and scenes are ready, open Editor > Manage Export Templates..., check your target platform and architecture, and click Install Selected Templates. Next, open the Export menu and click Add… to create a platform preset, which stores non-confidential settings in export_presets.cfg for version control and sensitive credentials in .godot/export_credentials.cfg. You can then automate release builds directly from the terminal using the --export-release flag.[30]
godot --export-release "Windows Desktop" some_name.exeManaging Project Memory, Planning, and Engine Skills
Because every Claude Code session starts with a fresh context window, store persistent build commands, directory conventions, and architectural rules in a ./CLAUDE.md or ./.claude/CLAUDE.md file (Claude Code also reads AGENTS.md files). Keep each instruction file concise and under 200 lines so adherence stays high. You can run /init to generate a starter CLAUDE.md from your existing codebase, run /context all to verify which memory files loaded, and audit all instruction files and rules for outdated or conflicting directives.[28]
/doctor prompt-auditBefore letting an agent modify complex game systems on disk, launch Claude Code in plan mode or press Shift+Tab during a session until the status bar shows plan mode is active. In this mode, Claude delegates codebase research to a read-only Plan subagent and proposes an implementation plan for your approval before making edits. If you want to work on a new gameplay feature in one terminal while fixing a bug in another without file collisions, run claude --worktree with a branch name to spin up an isolated git worktree. For repetitive searches or code reviews that would clutter the main conversation, delegate to built-in subagents like Explore or define custom Markdown subagents with YAML frontmatter inside .claude/agents/.[27, 29]
claude --permission-mode planYou can also extend CLI agents with engine-specific skills and Model Context Protocol (MCP) servers. For XR developers targeting Meta Quest with Codex, Muse, or Claude, X user @Dilmerv shared a single initialization command that installs 34 official Meta VR skills and configures the metavr MCP server for existing agents, adding capabilities for Unity project setup, Spatial SDK integration, and Perfetto performance profiling.[15]
metavr initIterative Game Development Workflows
Breaking development into small, verified steps prevents cascading errors in AI-generated game code. X user @sorenxet highlighted a setup where a creator with no prior coding background shipped a Godot game in six weeks with Claude Opus 5.5 in Claude Code by enforcing a strict rule to build and test one feature inside the game before starting the next. Other developers split tasks across different models based on complexity. X user @varunPbhardwaj reported building a first game in Claude Code by using Opus for planning, Sonnet for implementation, and Fable strictly for physics. X user @kashaziz combined both CLIs to create the open-source strategy board game Sumito, giving Codex a one-line prompt and a reference link to generate the initial prototype before using Claude Code to complete the game.[6, 7, 11]

For visual assets, developers either generate procedural art directly in code or chain external 3D tools into their engine workflow. X user @rewind02 built a Byzantine city builder in Godot with Claude Opus 5.5 and Suno using zero 3D model files; the author wrote the design specifications first and had Claude generate every building, ship, and person in code so the art style scales automatically. For traditional 3D meshes, X user @afterthewinddev shared a monster creation pipeline that starts with a rough doodle, moves to Codex for concepts, uses Tripo P2 for 3D modeling and texturing, rigs and animates in Blender with Claude, and imports into Godot. X user @BeyondTheBoxCN also noted pairing Claude Code with Blender and open-source plugins to connect 3D character generation with in-game running, combat animations, and cloth physics.[10, 12, 19]

Developers apply similar terminal loops across both 2D and 3D engines. In Unity, X user @vertex73studio described running an automated development pipeline with Codex as a solo developer to build an open-world mobile game where player feedback drives each update. In Godot, X user @zzzerooq used Claude and Codex together to build progression and loot systems for a pixel-art action roguelite featuring randomized skills, passive abilities, stat upgrades, boosters, and equipment chests, while X user @xingbugengming reported using Codex and Godot to build several 2D game demos from scratch without prior programming experience.[2, 3, 14]

Visual Debugging Tips and Common Pitfalls
A major pitfall when generating graphics or 3D scenes with text models is that the agent operates blind unless you give it visual feedback. X user @Joshua_WD pointed out that while text models writing SVG, HTML, and Three.js can produce strong builder graphics, the model cannot see what it drew without a render loop. X user @bonsaixbt explained that when Claude Code checks a Three.js browser game via Playwright MCP, the page tree only returns a single canvas word with no visibility into the hero, floor, or spatial bugs, which can lead the agent to report a spawn bug as fixed while the character still spawns underground. To help Claude Code inspect visual bugs or UI layouts, the official documentation supports dragging and dropping screenshots into the terminal, pasting images with Ctrl+V (or Alt+V on Windows and WSL), or passing a local image file path.[17, 18, 27]
Complex multi-agent setups and cross-model handoffs can also degrade results. X user @0xbobaaa shared that when the claude-code-game-studios repository, which configures 49 agents, 74 skills, 12 hooks, and 13 rules across Opus directors, Sonnet leads, and 30 specialists, benchmarked itself, its full studio process came in last. Switching tools mid-project can introduce friction as well; X user @crierlon reported that Codex performed far worse on existing Claude codebases than from scratch and produced unreadable code despite cleanup instructions. Automated unit tests also have limits in game development; X user @varunPbhardwaj noted that even with 973 tests passing in Claude Code, manual playtesting immediately uncovered two gameplay bugs. Finally, X user @laziuskayeXR reported hitting a spatial assembly limit in Unity where Claude Code could not place rock boulders seamlessly between ground and cliff edges even when supplied with ready-made assets.[7, 20, 21, 22]
Playable Builds and Prototypes Shipped by Developers
Developers have used these workflows to take projects from empty repositories to store-ready builds. X user @AIQuanting claimed their team vibe-coded the full game Warship Workshop in 10 days using about 500 billion Opus and Neon tokens, resulting in 300,000 lines of code, over 1,000 art assets, and two hours of music and sound effects lined up for the App Store, Steam, and Google Play. For rapid solo launches, X user @EntertheGame26 reported building the entire game Sir, We Have 100 Million Rocks! with Codex in a single day, including cutting the trailer, testing the build, and setting up the store page. X user @danbianit also released a game built with Claude Code and minor assistance from ChatGPT Codex that satirizes Needle in a Haystack Simulator clones.[1, 4, 5]
Other creators focused on playable browser games, 3D demos, and hard-surface models. X user @SpacyApps built and launched a first browser game titled Beam & Blade using Claude Fable 5.2 and Opus 5.5, featuring a three-phase boss fight, two-browser cooperative play, and custom player model uploads. Using the same Fable 5.2 and Opus 5.5 pairing, X user @Nenlyonis reported creating a 3D anime third-person shooter demo in 36 hours without prior 3D modeling skills, and X user @CapyCola shared that @M__Houser built the first version of the open-world RPG Age of Dragon in a few days before expanding its quests and map daily. For dedicated asset creation, X user @mattworkman reported running Claude Fable 5.2 MAX Ultracode for 12 to 16 hours to generate a first game CAD model.[8, 9, 13, 16]

Developers' methods are paraphrased from their public posts on X and credited to each author; setup steps follow the official documentation. Indexed 2026-11-29. Interfaces may have changed since; the official documentation takes precedence.
Sources
- @AIQuanting · 2026-11-29Xindexed 2026-11-29
- @vertex73studio · 2026-11-28Xindexed 2026-11-29
- @zzzerooq · 2026-11-27Xindexed 2026-11-29
- @EntertheGame26 · 2026-11-25Xindexed 2026-11-29
- @danbianit · 2026-11-26Xindexed 2026-11-29
- @kashaziz · 2026-11-24Xindexed 2026-11-29
- @varunPbhardwaj · 2026-11-26Xindexed 2026-11-29
- @CapyCola · 2026-11-24Xindexed 2026-11-29
- @Nenlyonis · 2026-11-14Xindexed 2026-11-29
- @rewind02 · 2026-11-28Xindexed 2026-11-29
- @sorenxet · 2026-10-24Xindexed 2026-11-29
- @afterthewinddev · 2026-11-03Xindexed 2026-11-29
- @SpacyApps · 2026-11-29Xindexed 2026-11-29
- @xingbugengming · 2026-07-03Xindexed 2026-11-29
- @Dilmerv · 2026-11-28Xindexed 2026-11-29
- @mattworkman · 2026-11-28Xindexed 2026-11-29
- @bonsaixbt · 2026-11-27Xindexed 2026-11-29
- @Joshua_WD · 2026-11-29Xindexed 2026-11-29
- @BeyondTheBoxCN · 2026-11-29Xindexed 2026-11-29
- @0xbobaaa · 2026-10-13Xindexed 2026-11-29
- @crierlon · 2026-11-28Xindexed 2026-11-29
- @laziuskayeXR · 2026-11-28Xindexed 2026-11-29
- docs.unity3d.com/6000.2/Documentation/Manual/urp/creating-a-new-project-with-urp.htmlindexed 2026-11-29
- docs.godotengine.org/en/stable/getting_started/first_2d_game/01.project_setup.htmlindexed 2026-11-29
- docs.claude.com/en/docs/claude-code/quickstartindexed 2026-11-29
- developers.openai.com/codex/cliindexed 2026-11-29
- docs.claude.com/en/docs/claude-code/common-workflowsindexed 2026-11-29
- code.claude.com/docs/en/memoryindexed 2026-11-29
- code.claude.com/docs/en/sub-agentsindexed 2026-11-29
- docs.godotengine.org/en/stable/tutorials/export/exporting_projects.htmlindexed 2026-11-29
- docs.unity3d.com/Manual/CommandLineArguments.htmlindexed 2026-11-29
