diff pytouhou/game/enemy.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 fb3a263213d1
children 4b549894ef6b
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -175,7 +175,8 @@ class Enemy(object):
 
 
     def die_anim(self):
-        self._game.new_death((self.x, self.y), self.death_anim)
+        anim = {0: 3, 1: 4, 2: 5}[self.death_anim % 256] # The TB is wanted, if index isn’t in these values the original game crashs.
+        self._game.new_effect((self.x, self.y), anim)
 
 
     def drop_particles(self, number, color):