Skip to content

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

Interface: ScreenFx ​

Defined in: apps/client/src/renderer/screen-fx.ts:56

The screen's effects.

Properties ​

now ​

readonly now: object

Defined in: apps/client/src/renderer/screen-fx.ts:62

What is on the screen now: the white-out (0..1), the gas's tint (0..1 of its most), whether blurred, the sway (m), and the flashes so far.

blurred ​

blurred: boolean

flashes ​

flashes: number

tint ​

tint: number

whiteout ​

whiteout: number

wobble ​

wobble: number

Methods ​

flash() ​

flash(strength): void

Defined in: apps/client/src/renderer/screen-fx.ts:58

A flashbang reached the player: strength 1 point blank, less from farther.

Parameters ​

strength ​

number

Returns ​

void


update() ​

update(dt, state): object

Defined in: apps/client/src/renderer/screen-fx.ts:60

Moves the effects on by dt seconds; returns the camera's sway this frame (m).

Parameters ​

dt ​

number

state ​

ScreenState

Returns ​

object

x ​

x: number

z ​

z: number