Skip to content

five-on-it / apps/client/src/renderer/screen-fx

apps/client/src/renderer/screen-fx ​

What the gear does to the player's own screen (the ten-star Wanted's gear): a flashbang's white-out, the screen white at once and clearing over WHITEOUT_SECONDS; tear gas's sting, a sickly green tint (and, on a GPU, a blur) while the player is gassed, coming and going over a moment; a stun's wobble, the camera swaying while the player lies stunned. The tints are a fullscreen layer of Babylon's GUI under the game's own UI; the blur two post-processes on the camera, attached only while gassed.

The numbers are pure functions (whiteoutAt, wobbleAt) so the tests read them; createScreenFx draws them.

Classes ​

Interfaces ​

Variables ​

Functions ​