Log inGet started
World

First Light: Luteway

Branchmain
Branchesmain
Commit811e1e6968

README.md

PenguinArt

The rockhopper's body, mounted. It sits on mount_penguin in scenes.main.

What it owns

  • The meshes, the wear maps and the ten materials the bird is made of, built once per session through luteway.penguin.pgart.
  • LW.provide.makePenguin — the slot luteway.climb.Penguin reaches for the first frame it needs a pose. Every body carrying a Penguin gets dressed through it, the local player's and every joining player's alike.
  • The pose clock: the squash of a landing, the stretch of a launch, the waddle, the flipper flap, the lean into a wall, the wet flail of a shake, and the lute thickening on the feet as the stickiness climbs.

Fields

  • body: string (default "penguin") — the name of the body entity the bird is built on when nothing is playing. In edit there is no local player, only the prototype body the scene carries; this is how it gets dressed anyway, so the bird is there to look at without pressing play.

Notes

  • update and editorUpdate both drive the pose, and editorUpdate returns early unless the gameplay clock is held — otherwise the two would tick the same body twice in one frame and the bird would animate at double speed.
  • A module reload hands the component a fresh pgart whose rig table is empty while the parts the previous one spawned are still standing under the body. Once a second, an empty rig table and a body still standing is the signal to dress it again; pgart.make clears the orphan parts as it rebuilds. That is why the bird does not freeze mid-pose when a neighbouring slice edits something this one depends on.
  • Removing the component clears every rig and releases the provide slot.