Class: Game
Defined in: utilities/game.ts:7
Manages the game loop and coordinates updates between systems.
Implements
Constructors
Constructor
new Game(
time,world,container):Game
Defined in: utilities/game.ts:24
Creates a new Game instance.
Parameters
time
The Time instance for managing time-related operations.
world
The ECS world containing all entities and systems.
container
HTMLElement
The HTML element that contains the game canvas.
Returns
Game
Properties
container
readonlycontainer:HTMLElement
Defined in: utilities/game.ts:11
The HTML element that contains the game canvas.
Methods
run()
run():
void
Defined in: utilities/game.ts:33
Starts the game loop.
Returns
void
stop()
stop():
void
Defined in: utilities/game.ts:45
Stops the game loop.
Returns
void