killstealers / crashburn

This is the crashburn project, a simple 3D multiplayer video game, based on Crash Bash.
https://github.com/killstealers/crashburn
1 stars 0 forks source link

Game state #3

Closed NewbiZ closed 11 years ago

NewbiZ commented 11 years ago

Added an Engine class to handle the base game event loop. It is responsible of managing Scenes and their transitions.

NewbiZ commented 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.