1 """ In the night, the mould attacks. """
4 import pygame.locals as pgl
6 from .base import BaseScene
7 from ..events import SceneChangeEvent
10 class NightScene(BaseScene):
11 def render(self, surface, gamestate):
12 surface.fill((0, 0, 255))
14 def event(self, ev, gamestate):
15 if ev.type == pgl.KEYDOWN:
16 if ev.key in (pgl.K_q, pgl.K_ESCAPE):
17 from .menu import MenuScene
18 SceneChangeEvent.post(scene=MenuScene())