1 """ Main menu scene. """
3 from pgzero.constants import keys
4 from .base import Scene, ChangeSceneEvent
5 from .credits import CreditsScene
6 from .level import LevelScene
9 class MenuScene(Scene):
10 """ Main menu scene. """
12 def draw(self, screen):
14 screen.draw.text("Main menu", (300, 300))
16 def on_key_down(self, key, mod, unicode):
18 return [ChangeSceneEvent(CreditsScene())]
20 return [ChangeSceneEvent(LevelScene('level1'))]