script for generating bitmaps (via inkscape); initial roach bitmaps; moved source...
[koperkapel.git] / koperkapel / scenes / menu.py
1 """ Main menu scene. """
2
3 from pgzero.constants import keys
4 from .base import Scene, ChangeSceneEvent
5 from .credits import CreditsScene
6 from .level import LevelScene
7
8
9 class MenuScene(Scene):
10     """ Main menu scene. """
11
12     def draw(self, screen):
13         screen.clear()
14         screen.draw.text("Main menu", (300, 300))
15
16     def on_key_down(self, key, mod, unicode):
17         if key == keys.C:
18             return [ChangeSceneEvent(CreditsScene())]
19         if key == keys.L:
20             return [ChangeSceneEvent(LevelScene('level1'))]