Mercurial > touhou
comparison 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 |
comparison
equal
deleted
inserted
replaced
387:e1f5dcd4b83e | 388:ac2891afb0bb |
---|---|
234 | 234 |
235 def drop_particles(self, number, color): | 235 def drop_particles(self, number, color): |
236 if color == 0: | 236 if color == 0: |
237 if self._game.stage in [1, 2, 7]: | 237 if self._game.stage in [1, 2, 7]: |
238 color = 3 | 238 color = 3 |
239 color += 9 | |
239 for i in range(number): | 240 for i in range(number): |
240 self._game.new_particle((self.x, self.y), color, 3., 256) #TODO: find the real size. | 241 self._game.new_particle((self.x, self.y), color, 256) #TODO: find the real size. |
241 | 242 |
242 | 243 |
243 def set_aux_anm(self, number, script): | 244 def set_aux_anm(self, number, script): |
244 self.aux_anm[number] = Effect((self.x, self.y), script, self._anm_wrapper) | 245 self.aux_anm[number] = Effect((self.x, self.y), script, self._anm_wrapper) |
245 | 246 |