X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=tabakrolletjie%2Fscenes%2Fnight.py;h=630dab3ef7fa46d7ace48ce3b6ea74efd25b3cc5;hb=19f99777bd660ab328e8cf3cf63389bc32a3c66e;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=f3600c28cd6e96abe7c0916860b0cc56b444545f;p=tabakrolletjie.git diff --git a/tabakrolletjie/scenes/night.py b/tabakrolletjie/scenes/night.py index e69de29..630dab3 100644 --- a/tabakrolletjie/scenes/night.py +++ b/tabakrolletjie/scenes/night.py @@ -0,0 +1,21 @@ +""" In the night, the mould attacks. """ + +import pygame.locals as pgl + +from .base import BaseScene +from ..events import SceneChangeEvent + + +class NightScene(BaseScene): + def enter(self, gamestate): + import pprint + pprint.pprint(gamestate.station) + + def render(self, surface, gamestate): + surface.fill((0, 0, 255)) + + def event(self, ev, gamestate): + if ev.type == pgl.KEYDOWN: + if ev.key in (pgl.K_q, pgl.K_ESCAPE): + from .menu import MenuScene + SceneChangeEvent.post(scene=MenuScene())