Closed NewbiZ closed 11 years ago
Added a Scene
class with some handy virtual functions like setup()
cleanup()
update(double time_delta)
render()
and so on.
Adding a game state is as simple a subclassing Scene
, reimplementing the necessary functions, a issue a engine.set_scene(Scene*)
.
An example with an Intro
and Menu
scene is present.
Added an
Engine
class to handle the base game event loop. It is responsible of managingScene
s and their transitions.