ReadonlystateCurrent state. Reference-equal until something changes it.
ReadonlyactionsDispatchers — call these to mutate state.
ReadonlysubscribeSubscribe to state changes.
ReadonlystartBegin the game loop. No-op if already running.
ReadonlystopPause the game loop. No-op if already stopped.
Readonlyistrue while the loop is running.
ReadonlykeyboardThe Keyboard, if enabled. Always defined; no-op in non-browsers.
ReadonlypointerThe Pointer, if enabled. Always defined; no-op in non-browsers.
ReadonlygamepadThe Gamepad, if enabled. Always defined; no-op in non-browsers.
ReadonlystoreUnderlying Store — for advanced composition.
ReadonlyloopUnderlying Loop — for advanced composition.
ReadonlydestroyStop the loop and detach all input listeners. Call before disposing.
The thing createGame returns. Everything you need to play.