1 minute read

One of the easiest traps when working with coding agents on games is trusting a green test run. A script can compile cleanly, pass every assertion, and still ship a scene where two animations fight each other, a monster clips through a doorframe, or a score label sits halfway off the left edge of the screen.

I hit every single one of those bugs while getting What Is Yar? and my smaller browser games ready to share.

What unit tests miss

Unit tests are great for state machines, save files, inventory rules, and dialogue linting. They catch regressions fast and keep agents from breaking core logic.

What they miss is everything a player actually notices in the first three seconds: lighting drift, overlapping text, awkward camera cuts, or a touch button that sits right on top of a status banner. Even worse, a failing test is sometimes just out of date after an intentional design change, so you still have to know what the current game is supposed to look like.

Locking the look to reference frames

For What Is Yar?, the monochrome 1996 look is half the identity of the game. Early on, an agent helping with a new room would subtly warm up the lights or drop in bright colors that broke the mood.

The fix was simple: save reference screenshots of the approved look and run an automated visual theme check against new captures. If a chapter drifts away from the monochrome palette, or puts cyan on something other than a required key or lock, the check flags it immediately.

Keeping automated runs out of my way

Running visual checks only works if they do not hijack your desktop or wipe your real save files. Every automated Godot and browser run in my workflow now launches muted, offscreen, focus-free, and with isolated environment paths pointing at a temporary folder. My real saves stay untouched, my speakers stay quiet, and I can keep working in another window while frames render in the background.

Tests still matter, and I run them on every pass. They are just step one. Step two is always looking at the actual rendered frames.

Details

Published: