+ def handle_scene_event(self, ev):
+ if ev.type == pgl.KEYDOWN and ev.key in KEYS.QUIT:
+ from naja.scenes.menu import MenuScene
+ SceneChangeEvent.post(MenuScene)
+ return
+
+ def fail(self):
+ sound.play_sound('error.ogg')
+ InvalidateTheWorld.post()
+
+ def succeed(self):
+ from naja.scenes.menu import MenuScene
+ sound.play_sound('chirp.ogg', volume=0.5)
+ SceneChangeEvent.post(MenuScene)
+
+ def perform_action(self, slot_num):
+ raise NotImplementedError("Nothing to see here.")
+
+
+class SaveGameScene(LoadSaveGameBase):
+ def perform_action(self, slot_num):