Mercurial > touhou
comparison pytouhou/game/enemy.py @ 320:1a4ffdda8735
Cancel the bullets when a boss is killed and transfer them to the score.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 23 May 2012 19:33:17 +0200 |
parents | 9a4119e2cc74 |
children | 56523a16db1d |
comparison
equal
deleted
inserted
replaced
319:9a4119e2cc74 | 320:1a4ffdda8735 |
---|---|
348 self.die_anim() | 348 self.die_anim() |
349 | 349 |
350 #TODO: verify if the score is added with all the different flags. | 350 #TODO: verify if the score is added with all the different flags. |
351 self._game.players[0].state.score += self.die_score #TODO: better distribution amongst the players. | 351 self._game.players[0].state.score += self.die_score #TODO: better distribution amongst the players. |
352 | 352 |
353 #TODO: verify if that should really be there. | |
354 if self.boss: | |
355 self._game.change_bullets_into_bonus() | |
356 | |
353 if death_flags < 4: | 357 if death_flags < 4: |
354 if self.bonus_dropped > -1: | 358 if self.bonus_dropped > -1: |
355 self.drop_particles(7, 0) | 359 self.drop_particles(7, 0) |
356 self._game.drop_bonus(self.x, self.y, self.bonus_dropped) | 360 self._game.drop_bonus(self.x, self.y, self.bonus_dropped) |
357 elif self.bonus_dropped == -1: | 361 elif self.bonus_dropped == -1: |