five-on-it / apps/client/src/renderer/anim-gallery
apps/client/src/renderer/anim-gallery
The animation gallery (?anim-gallery), for checking the clips by eye: no server, no level, a mannequin per clip of the library in a labelled grid on a plain floor, each playing its clip over and over (a one-shot with a short pause before it starts again; an upper clip over the idle stance, as the game draws it over a full one), a clip that holds or fires a weapon with that weapon in its hands (weaponOfClip). The camera goes anywhere (gallery-camera.ts: W A S D pan, the wheel zooms, the mouse orbits; 1–3 set its height, F goes back to the whole grid). A row at the front is the ragdolls' (ragdoll.ts): R (or its button) knocks its mannequins down, each flung a different way, to settle and get up again.
window.__gallery() tells the end-to-end tests what is drawn: whether the models and the clips are in, every clip shown with the time it is at, the weapon in its hands and where its mannequin stands on the page, and the ragdolls' states.