diff pytouhou/game/enemy.py @ 181:184196480f59

Don’t use the useless eff00.anm and implement particles (grazing, death, and more).
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 23 Oct 2011 14:50:44 -0700
parents 6e8653ff2b23
children 20843875ad8f
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -156,7 +156,11 @@ class Enemy(object):
 
 
     def die_anim(self):
-        self._game.new_effect((self.x, self.y), self.death_anim)
+        self._game.new_death((self.x, self.y), self.death_anim)
+        #TODO: 8 white particles are used only in stage 3 to 6,
+        # in other stages they are 2 red and 6 blue.
+        for i in range(8):
+            self._game.new_particle((self.x, self.y), 0, 3., 192)
 
 
     def set_pos(self, x, y, z):