24 void draw()
const override;
Contains jngl::Scene class and related functions.
Fades between two scenes, first fading to jngl::getBackgroundColor() and then fading to the new scene...
void draw() const override
Draw the game state.
Fade(std::function< std::shared_ptr< Scene >()> factory, int speed=20)
Uses factory() to get the new Scene when the screen has faded to black (or the background color).
void onQuitEvent() override
Gets called when the user closes the main window or quit() has been called.
void step() override
Advance the game logic.
Active state of the game, e.g. a menu or the game itself.