Skip to main content

Module headless

Module headless 

Source
Expand description

Headless driver for RunnerGame — run frames without a window.

Used by dotzuki run --headless (CI smoke tests, screenshot harnesses) and by the integration tests. The driver synthesises an InputState per frame (auto-pressing A on a configurable cadence so dialogue advances), updates the game, then renders the final frame into a FrameBuffer that can be dumped to a PNG.

Structs§

HeadlessOptions
Options for run_headless.

Functions§

run_headless
Run game headless for opts.frames frames and return the final framebuffer (also written to opts.screenshot when set).
save_png
Write a framebuffer out as an 8-bit RGBA PNG.