Media capture
Screenshots and GIFs for the README come from the real web build running in headless Chromium, so what the docs show is what the game renders.
Steps
rustup target add wasm32-unknown-unknownandcargo install wasm-bindgen-cli --locked --version <Cargo.lock version>../scripts/build-web.shwritesweb/dist.node scripts/web-smoke.js web/distmust pass before any capture.CAPTURE_OUT=<dir> node scripts/web-capture.js <plan.json>plays a key plan and saves the results.
Plan file
{
"video": "fight.webm",
"steps": [
{ "key": "Enter", "wait": 900, "shot": "menu" },
{ "key": "ArrowDown" },
{ "hold": "ArrowRight", "ms": 600 },
{ "wait": 3000, "shot": "fight" }
]
}
keytaps a key forholdframes (default 2) and waitswaitms (default 900).holdwithmskeeps a key down for that long.shotsaves<shot>.pngafter the step;videorecords the whole session as WebM.
Convert a WebM to a small GIF with ffmpeg -i fight.webm -vf "fps=20,scale=480:-1:flags=lanczos,split[a][b];[a]palettegen=max_colors=128[p];[b][p]paletteuse=dither=bayer:bayer_scale=3" fight.gif.
Automated Pipeline: record-gameplay.js & Skill
For automated recording of gameplay, milestone screenshots (1280x720) and Bayer-dithered GIFs in headless Linux environments:
node scripts/record-gameplay.js --out docs/evidence/<topic> --gif gameplay.gif --duration 6
See the complete guide in .agents/skills/ume-media-capture/SKILL.md.