Log inGet started
World

First Light: Goura

Branchmain
Branchesmain
Commite917faa950

README.md

GouraArt

Tawpy's body as a thing on screen. Lives on the PlayerPrototype's body beside Tawpy, and hangs the bird off that entity, so the controller moves her and the art rides along.

The bird itself is game.hero.gouraart. This component's whole job is to keep one rig alive on this entity, tell it which pose she is in, and drive its clock once a frame.

Where the pose comes from

Her state is read from the Tawpy component on this same entity when there is one, so a peer's own bird poses from its own run rather than from whoever happens to be local. The player surface answers when there is not. The eight state names the controller uses are the eight pose names the rig knows, so the mapping is the identity.

boom and flurry on the event bus each knock her out of the pose she is easing into, so the beat lands before the pose has finished arriving.

Fields

  • crownHeight — metres from her feet to the top of the crest. The rig scales to it.
  • pose — live output: the pose the rig is holding, which is what a test reads back.

Notes

  • The rig is re-derived from the world every frame: a hot reload of the art module, a component reload or an edit/play flip each leave the handle this component holds pointing at a rig nothing poses, and gouraart.owns is the question that catches it.
  • Paused in the editor she still stands there breathing, so the scene can be composed against the real bird rather than against nothing.