How to Make a 3D Game with Claude Code

Claude Code can build the game, but where do its 3D models come from? This guide connects Claude to Thrixel's AI 3D model generator through MCP, then uses Build World to turn a game prompt into a playable project.

Can Claude make a 3D game?

Claude Code can build a 3D game by working directly in a game project: writing scripts, running commands, and revising the implementation after testing. With access to the engine and its tools, it can work on controls, cameras, collision, objectives, and scene setup. Claude Code is the coding agent used in this guide.

A playable 3D game also needs models and materials that fit its world. The Claude + Thrixel workflow connects Claude to a 3D asset generator, so asset creation becomes part of the same process as building the game. This is one form of vibe gaming: describing the intended experience and directing an agent through implementation and revision.

How do I generate 3D models for a game made with Claude?

Connect Claude Code to an AI 3D model generator through an MCP server. MCP, short for Model Context Protocol, lets Claude call an external tool to create an asset, inspect the result, and download it into the game project. Thrixel provides this connection for generating and editing 3D game assets from text or reference images.

Build World is Thrixel's open-source skill for building games with coding agents. It provides a process for planning the project, preparing assets for the engine, testing the game, and improving the result. The Thrixel MCP server supplies the tools Claude calls to generate, inspect, edit, and export models.

Claude handles the game code and requests the assets it needs. Thrixel generates those models from text or reference images, with jobs able to run while Claude continues coding. Structured models have named parts, so a wheel, door, or roof can be changed independently during editing. The Claude Code plugin packages both the skill and the MCP server.

How to make a game with Claude Code and Thrixel

1. Connect a 3D model generator to Claude Code

Start with Claude Code installed and a Thrixel account. Paste this instruction into Claude Code and follow the setup flow, including the browser sign-in approval for Thrixel:

In Claude Code
Install the build-world skill from https://github.com/thrixel/build-world and follow the setup instructions in that repo.

2. Choose an engine and describe the game

Start a new Claude Code session after installation. Begin the game prompt with /thrixel:build-world, then name the engine and describe the experience. A useful first brief specifies the player action, the goal, the setting, and the visual style.

Example game prompt
/thrixel:build-world build a Three.js submarine exploration game in a bright tropical sea. The player collects treasure among coral reefs and sunken ruins, then returns to a dock to recharge. Use a readable third-person camera, keyboard controls, and touch controls for phones.

3. Generate and inspect the assets

Claude breaks the scene into the models it needs and requests them through Thrixel. For the submarine example, the asset list might include the submarine, dock, ruins, coral formations, and treasure containers. A shared reference image or written art direction helps those assets belong in the same scene.

Model inspection matters before and after import. An asset can look correct in isolation but appear too large, face the wrong direction, or use an unsuitable material in the game. Shape changes should happen before final detailing; mesh grouping and triangle reduction prepare the assets for the engine's performance budget.

4. Playtest and give specific feedback

A successful build only confirms that the project compiles. Playtesting checks whether the controls respond, the camera shows the action, collisions work, and the objective can be completed. Build World uses a gauntlet loop to compare the result against a reference and turn criticism into revisions.

Follow-up prompts work best when they describe an observable problem. For example: “The submarine disappears behind the ruins when turning. Adjust the camera and playtest a full circuit from the dock to the treasure and back.” Visual feedback can be equally specific: “Make the treasure containers easier to distinguish from the surrounding rocks.”

5. Test the finished build and publish

Test the exported game as well as the development version. Asset loading, controls, and performance can behave differently in a browser build. Finished Three.js games and Unity WebGL builds can be published to thrixel.world by asking Claude to publish the game and return a shareable link. Roblox games are published through Roblox Studio.

Which game engine works best with Claude Code?

The choice depends on where the game will run and which editor the project needs. For the Build World workflow, Three.js targets the browser, Unity produces a Unity project, Roblox targets a Roblox experience, and Unreal targets an Unreal Engine project.

Three.js for browser games

Three.js projects use JavaScript and load GLB models into a browser scene. A browser game is a useful starting point when the intended result is a link that other people can open. Include the target devices in the brief so keyboard and touch controls are planned together.

Unity for a Unity project

The Unity workflow uses C# scripts, Unity scenes, and FBX assets. It requires the Unity Editor and Unity CLI. Name Unity when the project needs to continue in that editor; a WebGL build is the form used for publishing to thrixel.world.

Roblox for a Roblox experience

The Roblox workflow uses Luau scripts synced with Rojo and models imported into Studio. Studio is also where the game is tested and published. Include Roblox in the initial prompt so the project follows its engine-specific setup.

Unreal Engine for Blueprint gameplay and 3D levels

The Unreal workflow connects Claude Code to the editor through Unreal MCP, imports Thrixel models as FBX, and tests gameplay in Play-In-Editor. The guide to building an Unreal game with AI covers the editor connection, asset preparation, and a first game prompt.

Common questions about making games with Claude

Can Claude Opus or Fable build a game?

Opus and Fable can be selected as the model in Claude Code when available to the account. Claude Code provides the project and tool access; Thrixel supplies 3D generation and editing. Model choice does not replace the engine connection or the asset tools. See the Opus and Fable section for model selection details.

Can Claude generate 3D models from an image?

With a connected tool such as Thrixel, Claude can use reference images to request 3D models. The generator produces the asset; Claude handles the request and its integration into the game. The 3D model MCP guide explains the generation, inspection, and export tools involved.

Why do the models in my Claude game look basic?

Check whether the scene uses generated meshes or shapes assembled from primitives such as boxes and cylinders. A useful follow-up is to ask Claude to replace a specific placeholder with a Thrixel model, match the scene's art direction, and check its scale and materials in-game. Lighting, camera placement, and consistent materials also affect how the finished scene looks.

Does this require knowing how to code?

Claude can write the implementation from a game description. Coding knowledge helps with reviewing changes and diagnosing problems, but clear goals and useful playtest feedback also matter. Begin with a defined activity, such as finishing a race or collecting treasure, so there is a concrete way to judge whether the game works.

Can Claude add models to an existing game?

Yes. The Thrixel MCP tools can be used within an existing project to generate missing props, replace placeholders, or refine assets. Generated models remain in the Thrixel workspace. After edits in the web app, Claude can be asked to retrieve the updated versions for the game.

Is Thrixel usage included with Claude?

Thrixel generation credits are separate from Claude usage. The amount of generation and iteration depends on the project's asset list and the Thrixel account's available credits. Current options are listed in Thrixel's plans.

Where are the installation commands?

The Claude + Thrixel setup section includes the plugin commands and example prompts. The Build World setup guide covers connection details, and the repository README contains the installation instructions maintained with the skill.

Get started with Claude + Thrixel