comparison pytouhou/game/player.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 741860192b56
children 0aab9b34299e
comparison
equal deleted inserted replaced
247:fb3a263213d1 248:77b83064b57e
89 89
90 90
91 def collide(self): 91 def collide(self):
92 if not self.state.invulnerable_time and not self.death_time and self.state.touchable: # Border Between Life and Death 92 if not self.state.invulnerable_time and not self.death_time and self.state.touchable: # Border Between Life and Death
93 self.death_time = self._game.frame 93 self.death_time = self._game.frame
94 self._game.new_death((self.state.x, self.state.y), 2) 94 self._game.new_effect((self.state.x, self.state.y), 17)
95 self._game.modify_difficulty(-1600) 95 self._game.modify_difficulty(-1600)
96 for i in range(16): 96 for i in range(16):
97 self._game.new_particle((self.state.x, self.state.y), 2, 4., 256) #TODO: find the real size and range. 97 self._game.new_particle((self.state.x, self.state.y), 2, 4., 256) #TODO: find the real size and range.
98 98
99 99