Skip to content
This repository was archived by the owner on Dec 20, 2019. It is now read-only.

Game loop and scene management

Javier Torrente edited this page Feb 12, 2014 · 1 revision

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();

Clone this wiki locally