comparison pytouhou/game/enemy.py @ 358:488c094ed51d

Make bosses clean their mess when timeouting
author Thibaut Girka <thib@sitedethib.com>
date Sun, 08 Jul 2012 01:23:47 +0200
parents 26f78fc7acea
children 7dc012f631dc
comparison
equal deleted inserted replaced
357:26f78fc7acea 358:488c094ed51d
418 self.low_life_callback = -1 418 self.low_life_callback = -1
419 self.low_life_trigger = -1 419 self.low_life_trigger = -1
420 self.timeout_callback = -1 420 self.timeout_callback = -1
421 elif self.timeout != -1 and self.frame == self.timeout: 421 elif self.timeout != -1 and self.frame == self.timeout:
422 self.timeout = -1 422 self.timeout = -1
423 self._game.kill_enemies()
424 self._game.cancel_bullets()
423 425
424 if self.low_life_trigger > 0: 426 if self.low_life_trigger > 0:
425 self.life = self.low_life_trigger 427 self.life = self.low_life_trigger
426 self.low_life_trigger = -1 428 self.low_life_trigger = -1
427 429