comparison pytouhou/game/player.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 dc6ed7b1c6de
children b11953cf1d3b
comparison
equal deleted inserted replaced
387:e1f5dcd4b83e 388:ac2891afb0bb
102 self.death_time = self._game.frame 102 self.death_time = self._game.frame
103 self._game.new_effect((self.state.x, self.state.y), 17) 103 self._game.new_effect((self.state.x, self.state.y), 17)
104 self._game.modify_difficulty(-1600) 104 self._game.modify_difficulty(-1600)
105 self.play_sound('pldead00') 105 self.play_sound('pldead00')
106 for i in range(16): 106 for i in range(16):
107 self._game.new_particle((self.state.x, self.state.y), 2, 4., 256) #TODO: find the real size and range. 107 self._game.new_particle((self.state.x, self.state.y), 11, 256) #TODO: find the real size and range.
108 108
109 109
110 def start_focusing(self): 110 def start_focusing(self):
111 self.state.focused = True 111 self.state.focused = True
112 112