-
Notifications
You must be signed in to change notification settings - Fork 2
Scene
Carlos Matheus edited this page Mar 26, 2018
·
1 revision
The Scene class is responsible for managing the change of Scenes. It has capabilities of changing scenes, adding scenes, getting the current scene. A Scene object stores all the game objects running, it is responsible for the management of game resources. This means it runs the game loop, therefore all game objects updates, all rendering on the screen, exit codes and collisions.
The Scene class has all methods related to scenes changes during game The Scene object has a loop function which handles the game loop.
The Scene holds a list of game objects. It also has the capabilities of adding a game object and ending itself. All the scenes objects are controlled by the Scene class.