Skip to content
TriedPrompts

More in Build apps & tools.

Vibe-code a 3D town-building game with Claude Code

From one informal prompt, Claude Code built a working 3D city-building and driving game in about four minutes.

Result: WorkedTool: Claude CodeLevel: Advanced

Copy the prompt

Outcome

From a single informal prompt, Claude Code built a working 3D game for placing buildings and driving around in about four minutes; follow-up prompts added a fire truck, traffic, and fires.

Reported by One Useful Thing: Working game in about four minutes

This is the source's own number. We haven't measured it.

Evidence: Article or interviewA newsletter, journalist or interview account of what happened.

WorkedEvidence: Article or interviewPosted Last checked

Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.

How to use this

  1. Tap Copy prompt.
  2. Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
  3. Paste it into the message box.
  4. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Improved prompt

Our fuller version of the source's prompt, with fill-in details and rules, or one written to avoid what went wrong. Not tested by the poster.

What the prompt labels mean

Our fuller version of the person's prompt. They didn't use this version, and we haven't tested it.

Goal: Make a browser 3D game where I place different buildings and then drive a car through the town I built.

Inputs (fill in or confirm):
- Where it runs (browser) and controls (keyboard/touch)
- How many building types to start with
- Any style (low-poly, cartoon)

Rules:
- Use a single HTML file with a well-known 3D library loaded from a CDN.
- Two modes: build mode (place/rotate/remove buildings on a grid) and drive mode (simple car physics, collisions with buildings).
- Show on-screen help for controls.
- Keep it running smoothly on a laptop; limit object counts if needed.
- Save the town layout in the browser so it survives a refresh.

If you get stuck: If something breaks, keep the last working version and explain what you changed. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords.

Verify before you finish: Play-test: place five buildings, switch to drive mode and drive around without falling through the ground.

Output: The game file, controls list and known limitations.

Done when: I can build a small town and drive through it in one session.

Try this in:

Sends the Improved prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini and Claude open empty, so we copy the prompt for you to paste. Every button also copies it.

The source used Claude Code, which can take actions on your computer or in a browser. These are general chat tools, so results may differ, and a normal chat may only give you a plan.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.

The prompt they actually used

The exact prompt from the source.

make a 3D game where I can place buildings of various designs and then drive through the town i create.

AI tool

Claude Code

Source

Posted
by Ethan Mollick
Last checked
Method:
How we verify

https://www.oneusefulthing.org/p/speaking-things-into-existence

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Build apps & tools

More in CodingRandom case in Coding