Game
: {gameObjLastId
: numberThe last game object id used.
events
: KEventHandler< GameEventMap & GameObjEventMap>Where game object global events are stored.
root
: GameObj<TimerComp>The root game object, parent of all game objects.
gravity
: Vec2 | nullThe gravity vector of the game.
scenes
: Record<SceneName, SceneDef>The scenes of the game.
currentScene
: string | nullThe current scene of the game.
layers
: string[] | nullThe layers of the game.
defaultLayerIndex
: numberThe default layer index of the game.
systems
: System[]All systems added to the game.
systemsByEvent
: [System[], System[], System[], System[], System[], System[]]The systems added to the game, sorted by event.
defaultAssets
: {ka
?: Asset<SpriteData>boom
?: Asset<SpriteData>burp
?: SoundDatahappy
?: stringbean
?: stringlogs
: Log[]cam
: CamDatadefRNG
: RNGThe default RNG used by rng functions.
crashed
: booleanIf game just crashed.
areaCount
: numberHow many areas are in the game.
fakeMouse
: GameObj<FakeMouseComp | PosComp> | nullFake Mouse game obj.
allTextInputs
: Set<GameObj>All text inputs in the game.
warned
: Set<string>Deprecated functions we already warned about.
The "Game" it's all the state related to the game running