Skip to content

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

Interface: GameUiOptions ​

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

What createGameUi needs.

Properties ​

actions ​

actions: GameUiActions

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


camera ​

camera: () => Camera | null

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

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:87

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:83


minimapScale? ​

optional minimapScale?: () => number

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

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:82