five-on-it / apps/client/src/renderer/game / GameOptions
Interface: GameOptions
Defined in: apps/client/src/renderer/game.ts:349
What createGame needs from the page.
Properties
audio
audio:
AudioSystem
Defined in: apps/client/src/renderer/game.ts:355
The audio system, fed every frame.
canvas
canvas:
HTMLCanvasElement
Defined in: apps/client/src/renderer/game.ts:351
The render target.
cue?
optionalcue?: (sound) =>void
Defined in: apps/client/src/renderer/game.ts:371
Plays a menu cue (the pause's squelch, its menu's moves).
Parameters
sound
"pause" | "back"
Returns
void
levelSource?
optionallevelSource?:LevelSource
Defined in: apps/client/src/renderer/game.ts:363
Where its level came from (level-cache.ts); inline when absent.
onMission?
optionalonMission?: (state,mission) =>void
Defined in: apps/client/src/renderer/game.ts:375
Hears of a mission begun, done or failed (the anonymous statistics, with the player's consent: ui/telemetry.ts).
Parameters
state
"complete" | "failed" | "begun"
mission
string
Returns
void
overlay
overlay:
Store<OverlayState>
Defined in: apps/client/src/renderer/game.ts:353
The overlay's store: the HUD numbers and the music state go there.
platform?
optionalplatform?:Platform
Defined in: apps/client/src/renderer/game.ts:367
The platform's client: the phone's Jobs app asks it what there is to play (in the city); none, no Jobs app.
radio?
optionalradio?:Radio
Defined in: apps/client/src/renderer/game.ts:373
The radio (audio/radio.ts), followed every frame; none, no radio.
rtc?
optionalrtc?:Pick<RtcTransport,"via"|"view">
Defined in: apps/client/src/renderer/game.ts:359
Its data channel (rtc.ts): which way the frames go, for the HUD and window.__poc; the WebSocket alone without.
settings?
Defined in: apps/client/src/renderer/game.ts:369
The player's settings (volumes, controls, the HUD), read every frame; the game's own without.
social?
optionalsocial?:Social
Defined in: apps/client/src/renderer/game.ts:365
The page's social side: the room's parties, and what window.__poc shows of it.
transport
transport:
Transport
Defined in: apps/client/src/renderer/game.ts:357
The connection to the game server, already welcomed.
welcome
welcome:
LoadedWelcome
Defined in: apps/client/src/renderer/game.ts:361
The server's welcome: the client id, the clock and the level (inline, or fetched by its hash).