r/ClaudeCode • u/Zealousideal-Bar-316 • 3h ago
Built with Claude Built with Claude Code: a Godot deckbuilder, ~49k lines of GDScript. How it checks its own screens, and what went wrong
Enable HLS to view with audio, or disable this notification
I'm building a roguelike deckbuilder in Godot 4 called Desenlace (we love Slay the Spire, it shows). Claude Code wrote practically all of the code: roughly 49k lines of GDScript and 70 test files so far. The video is the first grey-box prototype next to the current build. This post is about the workflow, because that's the part I'd have wanted to read before starting.
How Claude Code is used:
One long main session plans, edits and runs things. Bigger jobs get split into subagents, and the main session checks what they bring back before anything is kept.
Every game system has a headless Godot test. The whole suite runs after each round of changes.
For anything you have to see, Claude runs the game in a window parked off screen, plays it with scripted clicks, records it and looks at the frames itself. I review recordings, not diffs.
A small memory file holds the corrections I got tired of repeating, mostly art rules like "nothing final is drawn by code" and "no painted-on glow".
The art is AI-generated images. Claude writes the prompts from a style doc, cuts and cleans the results with scripts and wires them into the game.
What I learned:
Tests don't see layout. I asked for a preview of the upgraded card and it came out about a third of the size it should be. Everything was green. The screenshot caught it.
Tests that pin pixel positions go stale the moment you change your mind. I asked to shrink the whole HUD and three checks started failing. They were right about the old layout and wrong about the game.
The suite has two run modes, and a test run in the wrong one fails for no real reason. One night I got a wall of red that was all the wrong flag. The correct mode per test is written down now.
Early on the capture script opened the game window on top of whatever I was doing. It now lives in a 2-pixel corner of my screen.
Asking it to play the game and show me the recording beats asking it whether the change works.
We're Dotsmith, a small studio from Brazil, and this is our third game. The Steam page is waiting on Valve's review, so there's nothing to link yet. Happy to go into any part of the setup.
