Rework scenes and allow the user to quit.
[tabakrolletjie.git] / tabakrolletjie / scenes / base.py
1 """ Base scene class. """
2
3 class BaseScene(object):
4     def enter(self, gamestate):
5         """ Enter the scene. """
6
7     def exit(self, gamestate):
8         """ Leave the scene. """
9
10     def event(self, ev, gamestate):
11         """ Handle an event. """
12
13     def render(self, screen, gamestate):
14         """ Render the scene. """