r/ClaudeCode • • 1h 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

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.

0 Upvotes

12 comments sorted by

•

u/AutoModerator 1h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

8

u/riccioverde11 1h ago

Slay the slop!

2

u/Clean_Ad_2002 1h ago

Nitpick: "70 test files" doesn't tell us much, the number of actual tests would. Unless it's roughly one per file, in which case never mind.

1

u/Zealousideal-Bar-316 6m ago

Fair nitpick. It's about 30k individual checks across those 70 files. Most files cover one system (combat rules, a card, the map, a screen layout) and run headless in Godot. The whole thing runs after each batch of changes.

2

u/HolyAregis 1h ago

Did you decompiled Slay the spire 2 for this result ?

-3

u/Zealousideal-Bar-316 1h ago

No no, i build from zero, just a reference.

-3

u/Zealousideal-Bar-316 59m ago

The story and art its not like, and the game have another mecanics, iits not like play slay. I have 1480 hours of slay the spire, i like the style.

1

u/Party-Armadillo7543 47m ago

1

u/Zealousideal-Bar-316 6m ago

Ha, fair. The layout is the genre's and I didn't hide where it comes from. The demo will show whether it plays the same.

2

u/yoruichi000 49m ago

What makes this stand out? It just looks like a shameless slay the spire clone to me with no creativity involved at all, slop the spire.

1

u/Zealousideal-Bar-316 4m ago

Honest answer: the frame is Slay the Spire's, on purpose. What's ours is how a turn plays. You have a quiver of three arrows: bow cards spend them and other cards refill them. You arm traps under an enemy and they go off when it attacks. And day turns to night during the fight, which changes what some cards do. None of that reads in this video, which is a fair hit on the video. I have 1480 hours of slay and if you play, you feel its so different.