Skip to content

five-on-it / apps/client/src/gui/labels

apps/client/src/gui/labels ​

The labels that follow something in the world (the interaction prompt over the player's character, the tag over the car it looks at), on the GUI layer: what one says changes as the game loop says (a few times a second at most), where it stands is worked out on every frame the scene draws, after the camera has moved and before the GUI's texture is drawn (an observer of onBeforeCameraRenderObservable ahead of the GUI's own), by projecting its world point with that frame's view: the label never lags the thing it names. Each keeps what the tests read: where its point landed, on which frame, how often it moved.

Classes ​

Interfaces ​