Skip to content

five-on-it / apps/client/src/gui/label-blocks

apps/client/src/gui/label-blocks ​

The labels that follow something in the world, as blocks (layout.ts): the interaction prompt over the character on foot (GAME_DESIGN §7.2: the key and what it would do now, "E Get in", "E Carjack", "E Pick up First-aid kit", "E Open trunk", "E Locked · hold to pick", "E Picking… 40%", "E Take out Compact", "E Give USB stick" at a person a mission's give is under way to…) and the tag over the car the player looks at (locked, locked with their key carried, theirs). The game loop works out what they say from its view of the world (the simulation's interactionOf, the one rule the server applies too; the server stays the judge); labels.ts puts them over their thing every frame. Their names (prompt, car-tag) are the end-to-end tests' contract.

Interfaces ​

Type Aliases ​

Functions ​