Skip to content

five-on-it / apps/client/src/renderer/night-view / NightFrame

Interface: NightFrame ​

Defined in: apps/client/src/renderer/night-view.ts:126

What the night view is told every frame.

Properties ​

car? ​

optional car?: object

Defined in: apps/client/src/renderer/night-view.ts:128

The player's car (its pose) or none on foot: where its spotlight shines from.

x ​

x: number

y ​

y: number

yaw ​

yaw: number

z ​

z: number


cars? ​

optional cars?: readonly CarView[]

Defined in: apps/client/src/renderer/night-view.ts:130

Every car on screen (lights: it drives with its lights on).


loose? ​

optional loose?: ReadonlySet<number>

Defined in: apps/client/src/renderer/night-view.ts:132

The light pieces lying loose, by placement: a lamp among them is out.


minutes? ​

optional minutes?: number

Defined in: apps/client/src/renderer/night-view.ts:134

The room clock's game minutes (the windows are lit by the hour); noon when absent.


seconds? ​

optional seconds?: number

Defined in: apps/client/src/renderer/night-view.ts:136

Seconds into the page (a television's flicker).


target? ​

optional target?: object

Defined in: apps/client/src/renderer/night-view.ts:138

Where the camera looks: the lamps nearest to it light the actors.

x ​

x: number

z ​

z: number