def __init__(self, stage, navigation, frame, bgm): super(ResultSequence,self).__init__() self.stage = stage self.bgm = bgm self.navigation = navigation self.frame = frame self.window = Result(stage, navigation)
class ResultSequence(Scene, Singleton): def __init__(self, stage, navigation, frame, bgm): super(ResultSequence,self).__init__() self.stage = stage self.bgm = bgm self.navigation = navigation self.frame = frame self.window = Result(stage, navigation) def ready(self, *args, **kwargs): Mouse.show_cursor() self.bgm.change(u'../resources/bgm/result_intro.wav', -1, u'../resources/bgm/result_loop.wav', 500) self.window.ready() self.draw() self.bgm.play() def update(self): self.window.update() def draw(self): self.frame.draw() self.window.draw() return [Rect(0,0, 800, 600)]