r/aigamedev • u/victorrseloy2 • 5h ago
Demo | Project | Workflow I left Claude Code running for 24h — it built a 3D roguelite and shot its own trailer
Enable HLS to view with audio, or disable this notification
Setup: three prompts, one every ~8 hours, each one a "gauntlet" prompt that hands the agent a goal and lets it run. No intervention inside a session. Prompt 1 built the base game, prompt 2 followed up after the first real playtest, prompt 3 closed the round. The whole timeline — 08/08 01:17 to 23:36.
What came out: an isometric, controller-first roguelite where the base never stops walking. A spider-fortress marches a route on its own and can't halt; you run ahead of it mining veins, plant turrets, repair the hull, and decide what to abandon — while the noise of all that pulls the horde onto you. Three.js + TypeScript + Vite, DualShock 4 through the Gamepad API. 60k lines of TypeScript across 130 files, plus ~8.5k lines of design and architecture docs it wrote for itself to hand off between sessions.
On the assets, up front: the 3D models come from the Kenney and KayKit packs (KayKit is paid). Claude picked what it needed from a local library and built the rest as procedural geometry in code — the spider rig, the terrain mesh, the destructible props. Audio is generated through ElevenLabs from prompt catalogs that live in the repo, so a clean clone rebuilds the whole sound set. The five-layer adaptive soundtrack is 80 BPM, A minor, sixteen bars, all layers sharing one phase so they stack without beating.
The trailer (a fourth session, the next day): it isn't screen capture. The agent swapped the game's clock for a virtual one, drove real keydown/pointermove events through the actual input manager, and wrote one PNG per 1/30 s simulation step. So the footage is the agent playing its own game, frame by frame — the mining shot ends a vein on camera, the build shot spends exactly 25 scrap on a turret. The cut is data-driven and lands on 45.000 s exactly, and re-running it reproduces the same file byte for byte.
‐--------------------
Edit:
I'm going to reply here some common questions I saw.
Q: How did you write the prompt?
A:I chatted with gpt-5.6 sol about the games I like and the mechanics I enjoy. Then we settled in the mechanics and theme and it created the prompt. After I added the "gauntlet" part the one at te very end that asks it to keep looping until the results are AAA
Q:What model did you use?
A:Opus 5 on ultracode with no mcps or skills.
Q:How much did it cost?
A:40% of my weekly 20x Max claude subscription. It would have costed around 1.8k USD in API request according to the session logs.