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)
Game is the main class that contains all the managers, scenes, entities and components. It allows to start and stop the execution of the game.
Example
Example