Scenes
Scenes in the renderer are like a page you could find on a website.
All scenes are derived from the IScene
interface.
Because of that they must implement 4 keys functions:
- initialisation
void init()
- draw sequence
void draw(sf::RenderWindow &window)
- update based on the time for animations
void update(float fElapsedTime)
- update depending on events triggered
bool update(sf::Event event, sf::RenderWindow &window)
The Scenes present on the zappy are the following:
- Home, where you can connect to a server and start the game
- Menu, which is called when escape is pressed
- World, the main display of the game