Test hooks and diagnostics contract

Tools · A check on the result · MIT

What it does

Two objects a page puts on window so a script can take a repeatable picture of it: diagnostics (frame count, renderer draw calls and triangles, canvas size) and five hooks (seed, setState, setPausedForScreenshot, setReducedMotion, hideDebugUi). They freeze a named state for a still; they do not step time.

Get it

await window.__THREE_GAME_TEST_HOOKS__.setState('active-play'); window.__THREE_GAME_TEST_HOOKS__.setPausedForScreenshot(true);

Source on GitHub
Needs (the whole pack)

Nothing to read the skills. To run what they build: Node and npm, Python 3 for the helper scripts, and Chromium through Playwright for the inspector and tests. Optional and paid: Tripo, Gemini and ElevenLabs keys for the three generator skills.

License

MIT

License notes are on the pack's page

From

Three.js Game Skills

Everything from Three.js Game Skills in the gallery

Back to the Asset Library