Game loop and scene management - e-ucm/ead GitHub Wiki

Scenes can be accessed through the GameLoop object.

The GameLoopobject represents the main controller of the game engine. It is injected to every EngineObject instantiated by the Assets factory (EngineObjects should always be created through a factory, the use of "new" is discouraged).

We can access the current scene, for example, using GameLoop in any object extending EngineObject:

gameLoop.getCurrentScene();