Add very hacky level loading.
[tabakrolletjie.git] / tabakrolletjie / scenes / night.py
1 """ In the night, the mould attacks. """
2
3 import pygame.locals as pgl
4
5 from .base import BaseScene
6 from ..events import SceneChangeEvent
7
8
9 class NightScene(BaseScene):
10     def enter(self, gamestate):
11         import pprint
12         pprint.pprint(gamestate.station)
13
14     def render(self, surface, gamestate):
15         surface.fill((0, 0, 255))
16
17     def event(self, ev, gamestate):
18         if ev.type == pgl.KEYDOWN:
19             if ev.key in (pgl.K_q, pgl.K_ESCAPE):
20                 from .menu import MenuScene
21                 SceneChangeEvent.post(scene=MenuScene())