Fix flake8 issues.
[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 render(self, surface, gamestate):
11         surface.fill((0, 0, 255))
12
13     def event(self, ev, gamestate):
14         if ev.type == pgl.KEYDOWN:
15             if ev.key in (pgl.K_q, pgl.K_ESCAPE):
16                 from .menu import MenuScene
17                 SceneChangeEvent.post(scene=MenuScene())