Cinematic cameras
The first-round intro and every round-win pose run a short camera shot made of beats. The shot is a pure function of the match clock, so replays and rollback stay deterministic.
- Beats live in
assets/cinematic.toml. A copy namedcinematic.tomlnext to the settings file replaces the[[intro]]and[[victory]]sections it defines; an invalid file is ignored. - Each beat:
subject(p1,p2,both,winner),durationseconds,ease(linear,in,out,in_out,back), and[from, to]pairs forzoom(added to the stage zoom),focus(0 wide to 1 on the subject),shake(trauma),sweep(world px camera truck, gives background parallax) and, for 3D fighters only,yaw(orbit, radians),pitch(negative = low angle, positive = crane from above, radians),lens(0 to 0.6 perspective emphasis, nearer parts grow) anddetail+aim(extra model zoom centred on a body height: 0 feet, 0.85 face, 0.6 sword arm). - Values are clamped, so a bad file cannot break the view.
enabled = falseturns every shot off. - Fighters without a 3D model get the same zoom and pan on their sprites; 3D fighters also orbit.
- The intro shot ends when the existing intro skip fires; Reduce motion disables zoom, pan, shake and orbit.
- Smoke:
node scripts/web-cinematic-smoke.js web/dist(needsbash scripts/build-web.sh).