Skip to content

five-on-it / apps/client/src/gui/game-ui / GameUiOptions

Interface: GameUiOptions ​

Defined in: apps/client/src/gui/game-ui.ts:77

What createGameUi needs.

Properties ​

actions ​

actions: GameUiActions

Defined in: apps/client/src/gui/game-ui.ts:86


camera ​

camera: () => Camera | null

Defined in: apps/client/src/gui/game-ui.ts:81

The camera the scene draws with (the labels project with its view).

Returns ​

Camera | null


canvas ​

canvas: HTMLCanvasElement

Defined in: apps/client/src/gui/game-ui.ts:83

The page's canvas: its size in CSS pixels is the theme's.


engine ​

engine: Engine

Defined in: apps/client/src/gui/game-ui.ts:79


map ​

map: MinimapData

Defined in: apps/client/src/gui/game-ui.ts:85

The level's static map, for the phone's map page.


minimapScale? ​

optional minimapScale?: () => number

Defined in: apps/client/src/gui/game-ui.ts:88

The minimap's size as a share of the game's (the settings'), which the phone stands above.

Returns ​

number


scene ​

scene: Scene

Defined in: apps/client/src/gui/game-ui.ts:78