InvalidateTheWorld.post()
def succeed(self):
+ raise NotImplementedError("Success not implemented.")
from naja.scenes.menu import MenuScene
sound.play_sound('chirp.ogg', volume=0.5)
SceneChangeEvent.post(MenuScene)
else:
self.succeed()
+ def succeed(self):
+ from naja.scenes.menu import MenuScene
+ sound.play_sound('chirp.ogg', volume=0.5)
+ SceneChangeEvent.post(MenuScene)
+
class LoadGameScene(LoadSaveGameBase):
def perform_action(self, slot_num):
self.succeed()
else:
self.fail()
+
+ def succeed(self):
+ from naja.scenes.game import GameScene
+ sound.play_sound('chirp.ogg', volume=0.5)
+ SceneChangeEvent.post(GameScene)