Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

InputTrait

const InputTrait: Trait<{ angles: () => number[]; axes: () => number[]; buttons: number; changes: () => number[]; vectors: () => number[]; }>

What her player last sent her, a step’s input: the inputs her game declares, the character’s move, heading and jump among them where it lists characters(). Each character holds her own, so a room steps every player’s at once. Kept by the room and her own page, and streamed to nobody: what another page draws of it, her strafe and her aim, travels in her PoseTrait, and an input declared seenByAll in her SeenInputTrait.