Ejemplo n.º 1
0
 def __init__(self, scene, *args, **kwargs):
     self.scene = scene
     super(Sequence, self).__init__()
     self.text = Animation(u"../resources/image/main/text/game.png", AnimationInfo(-1, 0, 1, 360, 225, 1))
     self.text.animation_enable = False
     self.text.x = settings.SCREENWIDTH/2-180
     self.text.y = settings.SCREENHEIGHT/2-180
Ejemplo n.º 2
0
 def ready(self):
     self.win = Animation(u"../resources/image/main/text/win.png", AnimationInfo(-1, 0, 1, 360, 225, 1))
     finish_sound = Sound("../resources/sound/finish.wav")
     finish_sound.play()
     self.win.animation_enable = False
     self.win.x = settings.SCREENWIDTH/2-180
     self.win.y = settings.SCREENHEIGHT/2-180
     self.text.ainfo.index = 3
     self.winner = self.scene.world.get_winner()
     self.result_timer = Timer(settings.FPS*2.5)
     self.result_timer.play()