diff pytouhou/game/enemy.py @ 388:ac2891afb0bb

Make particles behave as in the original game.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 21 Oct 2012 23:02:40 +0200
parents 690b5faaa0e6
children b11953cf1d3b
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -236,8 +236,9 @@ class Enemy(object):
         if color == 0:
             if self._game.stage in [1, 2, 7]:
                 color = 3
+        color += 9
         for i in range(number):
-            self._game.new_particle((self.x, self.y), color, 3., 256) #TODO: find the real size.
+            self._game.new_particle((self.x, self.y), color, 256) #TODO: find the real size.
 
 
     def set_aux_anm(self, number, script):