Appearance
Figures gallery
Every figure preset, a body-type sweep, a socketed hat and a rider on a horse.
A lineup of the shipped figure presets rendered side by side, with a body-type sweep and two attachment cases. Append ?walk=1 (or send the set_gait command) to animate the deterministic gaits in place.
Play it
Play Figures gallery in your browser. Nothing to install.
Make it yours
The sample ships inside @bendyline/molen-tooling as a template, locked to the engine version you install. Copy it into a standalone npm project (no clone of the engine repository needed):
sh
npx @bendyline/molen-tooling new my-figures-gallery --template figures-gallery
cd my-figures-gallery
npm install
npm run devThe copy keeps the sample's scene, scripts, commands, checks and headless tests; npm test runs them.
What it teaches
- Figure descriptors
- Canonical rigs
- Sockets & attachments
- Deterministic gaits
The scene at a glance
Read straight out of the sample's scene.json:
| Format | molen/scene@3 |
| Tick rate | 60 Hz |
| Entities | 21 |
| Prefabs | 1 |
| Scene scripts | gaits |
| Commands | set_gait, gait_idle, gait_walk, gait_run |
| Declares | camera, input |
Run it headlessly
Every sample is also a headless fixture, so no browser is needed. From your copy:
sh
npx molen validate scene.json
npx molen sim run scene.json --ticks 60 --hash
npx molen shot scene.json --ticks 60 --out figures-gallery.pngSource
examples/figures-gallery. A walkthrough README ships alongside it and in every copy.
