Mercurial > touhou
diff pytouhou/game/game.py @ 248:77b83064b57e
Use the correct animation for player death.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 21 Jan 2012 21:03:53 +0100 |
parents | 5afc75f71fed |
children | a0d6b1915591 |
line wrap: on
line diff
--- a/pytouhou/game/game.py +++ b/pytouhou/game/game.py @@ -116,9 +116,8 @@ class Game(object): self.bullets = [] - def new_death(self, pos, index): - anim = {0: 3, 1: 4, 2: 5}[index % 256] # The TB is wanted, if index isn’t in these values the original game crashs. - self.effects.append(Effect(pos, anim, self.etama4)) + def new_effect(self, pos, anim, anm_wrapper=None): + self.effects.append(Effect(pos, anim, anm_wrapper or self.etama4)) def new_particle(self, pos, color, size, amp):