comparison pytouhou/game/bullet.pyx @ 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
133 (self.speed,), 16) 133 (self.speed,), 16)
134 134
135 135
136 def collide(Bullet self): 136 def collide(Bullet self):
137 self.cancel() 137 self.cancel()
138 self._game.new_particle((self.x, self.y), 1, 3., 256) #TODO: find the real size. 138 self._game.new_particle((self.x, self.y), 10, 256) #TODO: find the real size.
139 139
140 140
141 def cancel(Bullet self): 141 def cancel(Bullet self):
142 # Cancel animation 142 # Cancel animation
143 bt = self._bullet_type 143 bt = self._bullet_type