Ejemplo n.º 1
0
 def checkHit(self, *args):
     if Map.mapvar.baseimg.collide_widget(self) and self.isAlive:
         self.die(base=True)
         Player.player.sound.playSound(Player.player.sound.hitBase,
                                       start=.5)
         if self.isBoss:
             if self.specialSend:
                 Player.player.health -= 2
             else:
                 Player.player.health -= 5
         else:
             Player.player.health -= 1
         Player.player.myDispatcher.Health = str(Player.player.health)
         MainFunctions.flashScreen('red', 2)
         if Player.player.health <= 0:
             Player.player.die()
         return