r/ClaudeCode • u/deknis • 4d ago
Help/Question Game dev. - Want Claude autonomously testing in-game + viewing video research material
I'm developing a complex 3D game. So far, any fixes or changes Claude does for me, I need to verify by testing myself (but Claude gives step-by-step instructions and reads hooks/logs). Furthermore, video material research needs to be viewed by me, because Claude Code can't watch videos or e.g. Youtube videos (at least with Opus 5.5).
There was a short instance where I specifically asked, and Claude instead took control of my mouse and took screenshots (as its eyes) while testing fixes in-game. That was just stationary things like menus. It also leaves my computer unusable during that time, because I can't even take the game window out of focus.
What I'm getting at is that I'd like it to work autonomously as an iterative loop: video research, adjust code accordingly, verify by a short playtest - rinse and repeat. While I can do something else for like an hour or two.
As it stands, I'm still working hard even when vibe coding.
Furthermore, it is often the case for my game that many design decisions are inspired by other games. I want Claude to be able to look at Youtube videos and make design decisions based on what I describe to look out for (e.g. this type of attack moveset, that sort of animation). Claude tells me it can't look at videos.
As a disclaimer: my game will never be commercial. It's a personal project. A what-if type of personal dream game. I thought that may be good to state, since mentioned taking inspiration from existing games.
My only idea right now is to tell Claude to take as many screenshots per second as possible, and build like a "mental video", and then to leave my computer while Claude has complete control over my computer. I'd prefer if it did things safely in its own container instead though!
I use Claude Code via the VSCode plugin, with Opus 5.5 on High. I don't mind adding a couple more paid A.I. models (Claude or otherwise) if it helps my use case. I understand Claude can spawn agents that use other paid A.I. models not from Anthropic.
Thanks in advance, and sorry for the long post. I find it hard to not be misunderstood when being brief.
•
u/AutoModerator 4d 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.
1
u/deknis 4d ago
Can Fable 5.1 do any of the things I want as plug-and-play?
1
u/PocketStudio 4d ago
For the playtest loop, stop letting it drive your real mouse. Run the game on a separate machine or headless, feed it scripted inputs, and have it write state to a log it can assert on. Then it checks exit codes and log lines, and your desktop stays free. For video, it can't watch, but it can read stills: cut frames with ffmpeg at fixed intervals (fps=1/10 lands about 5 seconds after the label time) and pair them with a transcript.
1
u/mettavestor 4d ago •
Stop letting it drive your mouse. Give the game a test mode Claude can run from the terminal:
If you're on Godot,
--write-movie frames/out.pngalready dumps every frame. Unity and Unreal both do scripted batch runs.For videos:
yt-dlpthenffmpeg -vf fps=2gives Claude frames it can actually look at, and--write-auto-subsgrabs the narration. Or hand the YouTube URL to Gemini, which takes video directly, and have it write up the moveset with timestamps.These tricks come in handy for all sort of things, not just game development. Chrome DevTools MCP is a godsend for wanting to control the browser for any reason.
1
u/Saver411 4d ago
Claude seizing your mouse to click around a 3D engine is pure nightmare fuel.
For the video research side, don't try to make it watch raw playback. Have a local script rip out keyframes every few seconds and dump the audio transcript into markdown. Passing a batch of stills alongside the transcribed dialogue gives it plenty of visual context to break down mechanics without you having to sit through reference clips.
What kind of reference footage are you having it break down?
1
u/Subject-Cheetah-7061 4d ago
Bake in lua scripts and thank me later through coms, run the tests headless and using lua scripts commands
1
u/jayvpk 4d ago
For the videos, have it download them with yt-dlp and pull frames out with ffmpeg (a frame or two a second is plenty), then look at them in batches. It can't watch a video but it reads a strip of frames just fine, and grabbing the auto captions gets you the audio side too.
For playtesting, I'd rather have the game log everything it does and have Claude read the logs than let it drive my mouse. The stuff only your eyes catch (feel, animation timing) still needs you, so I just say what's wrong while I play and keep going. Also, check out earshot by Leon Lin, its an audio skill(?) that lets your AI hear. Pretty good for SFX.