Mercurial > touhou
diff pytouhou/game/player.py @ 190:dbe6b7b2d3fc
Fix a few things about particles.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 27 Oct 2011 15:09:42 -0700 |
parents | 54eb6b254b7b |
children | d2b58a26c908 |
line wrap: on
line diff
--- a/pytouhou/game/player.py +++ b/pytouhou/game/player.py @@ -78,6 +78,8 @@ class Player(object): if not self.state.invulnerable_time and not self.death_time and self.state.touchable: # Border Between Life and Death self.death_time = self._game.frame self._game.new_death((self.state.x, self.state.y), 2) + for i in range(16): + self._game.new_particle((self.state.x, self.state.y), 2, 4., 256, delay=True) #TODO: find the real size and range. def collect(self, item): @@ -141,9 +143,6 @@ class Player(object): end_pos=(self._game.prng.rand_double() * 288 + 48, self._game.prng.rand_double() * 192 - 64)) - for i in range(16): - self._game.new_particle((self.state.x, self.state.y), 0, 4., 256) #TODO: find the real size and range. - elif time == 7: self._sprite.mirrored = False self._sprite.fade(24, 128, lambda x: x)