Skip to content

five-on-it / apps/client/src/renderer/light-bars

apps/client/src/renderer/light-bars ​

The light bars' flashing (GAME_DESIGN §6.1, siren and light bar): each livery with a light bar has its two lamps (materials of the vehicle models, shared by every clone of that livery, so every bar of a livery flashes in step) and its pattern, a sequence of which lamps are lit, one step every so many milliseconds: the police's blue lamps in turn, the ambulance's red and white wig-wag with a double flash of both, the fire truck's reds in double flashes, one side then the other, the SWAT's red and blue in quick alternation, the riot police's blue and amber in slow turns. A pure function of the time, so the pattern needs nothing on the wire.

Interfaces ​

Type Aliases ​

Variables ​

Functions ​