Skip to content
Carlos Matheus edited this page Mar 26, 2018 · 1 revision

Overview

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.

Main methods

The Scene class has all methods related to scenes changes during game The Scene object has a loop function which handles the game loop.

Attributes and functionalities

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.

Clone this wiki locally