Add a new instance to be used as dependency
The dependency instance
The name for the dependecy
Add a new class to be used as dependency
The class of the dependency
Optional
name: DependencyNameThe name for the dependecy (optional: if the class uses the "injectable" decorator, this parameter is unnecesary)
Add a scene to the game
The class of the scene
The name for the scene
If this is the opening scene, set TRUE, FALSE instead (optional: default FALSE)
The Game class is the core entry point for creating and managing a game instance.
It serves as a central hub that coordinates all game systems including scenes, entities, components, and various managers (rendering, physics, input, etc.).
The class provides methods to initialize the game with custom configuration, add scenes and dependencies, and control the game loop execution.
Through dependency injection, it ensures proper initialization and communication between all game systems.
Example
Example