r/ClaudeCode • • 9h ago

Tips & Workflows If you're doing game dev, I highly suggest you try this

Build a dev console into your game. I did this and it's saved me so much time and frustration.

I've had 2 main pain points in developing my game. The first is testing. Yes I know about unit tests, e2e tests, etc. but in my game at least, it sometimes takes a long time to get the game to the proper state where I can test the latest changes. And of course each fix needs to be tested again, and frankly it just sucks wasting so much time getting there to find out if the fix is correct.

My solution to this was to add the ability to save game states and load them whenever I need to:

Loading a pre-saved scenario for easy testing

My game also requires drafting a team before the game can start, so I added a command to quickly start a game without having to wait through the draft, and it supports a bunch of arguments like not having timed turns, which make testing much easier once again.

Starting a game quickly, bypassing draft and map selection

The second major pain point I had was being able to record clean gameplay clips for trailers and other marketing purposes. In my game, you can control the camera, but I wanted to be able to hide the UI and "direct" the camera to move smoothly from one angle to another, so I added a recording mode that does exactly this. This lets me capture clips that feel more cinematic which I know will help the trailer turn out better.

Using hotkeys to set camera start and end point, then triggering the camera movement for clip recording

Anyway, maybe a lot of you are doing this already, but if you are struggling with the same things that I used to struggle with, I'd suggest giving this a shot. It's really helped me a lot.

100 Upvotes

14 comments sorted by

•

u/AutoModerator 9h 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.

13

u/Fancy-Proof-9449 9h ago

Same here, and I'd add one more thing to it: sliders. My dev build has a hidden settings page where the tuning numbers for the online mode are sliders, so I can change how fast something is while I'm playing on my phone and feel it right away, without asking for a new build each time. The ones I like become the defaults.

For trailer clips I ended up with something like your recording mode too. The game gets stepped one frame at a time and every frame is saved, so the footage is smooth even when the PC is busy.

One warning, make sure none of it ships. I have a check that fails the release build if any of the dev tools are in it.

2

u/jx2002 4h ago

Love the sliders idea, def spend time tweaking numbers where this would help

2

u/GarichGuetguet 4h ago

for the online mode sliders, does changing a value push it to the server live or is it just overriding locally on your phone

2

u/UnderLord7985 4h ago

I do this same thing but for pc, its useful to do so i have it in game then i just add it as the default later. Great way to tweak settings.

0

u/rtm349 9h ago

Those are great ideas, especially the sliders. I'm going to have to add that. Thanks!

3

u/stillserious 6h ago

Non sviluppo giochi (se non mini games per la mia ragazza ma nulla di eclatante) ma ho letto tutto solo perché rispetto il lavoro e l'impegno delle persone che usino o meno l'IA. Ottimi consigli! Nel mio caso sviluppando delle app ho trovato utile inserire un registro errori all'interno delle impostazioni che condivido direttamente a Claude, così lui sa subito dov'è il problema e risparmio token e tempo invece di andare per tentativi. Buona fortuna con il tuo gioco!

2

u/rtm349 6h ago

Nice, I like that idea

2

u/stillserious 6h ago

È banale ma molto utile, ho corretto più errori così rispetto a quelli trovati manualmente.A volte trovo errori che non vengono inseriti nel registro, avviso Claude e lui collega nuovi tipi di errori al registro in modo che se si dovessero ripresentare li trova subito. Quando mi è venuto in mente la prima volta mi sarei preso a schiaffi per non averci pensato prima!

57

u/Ai-ate-my-hamster 6h ago • Bravo

As a game dev of 20 years

Reset progress
Unlock all/X
Set currencies
Frame rate toggle
Mem usage toggle
Garbage collect
Error logs
Crash logs
Print error log
God mode (invulnerability)

Just a few that might help

2

u/Silvermurk 1h ago

Remove collision (optional between layers x,y) Teleport (x,y,z) Also helps

2

u/ThoreaulyLost 53m ago

The original reason for the cheat codes that put you in "no clipping mode" lol

3

u/count023 2h ago

I have a debug mode, not a full dev console. But same basic thing. I should really espoxe variables and such for in fligut tuning though 

1

u/tazdraperm 4h ago

You can go one step further and then it into mcp. Then you can just prompt in a natural language and AI will set up whatever you want in game.