diff pytouhou/game/player.py @ 274:f037bca24f2d

Partially implement lasers. “Launch animations”/“energy circles” are missing, aswell as collision and grazing.
author Thibaut Girka <thib@sitedethib.com>
date Sun, 05 Feb 2012 23:41:55 +0100
parents 0aab9b34299e
children 94c636f8f863
line wrap: on
line diff
--- a/pytouhou/game/player.py
+++ b/pytouhou/game/player.py
@@ -239,6 +239,8 @@ class Player(object):
             if time > 30:
                 for bullet in self._game.bullets:
                     bullet.cancel()
+                for laser in self._game.lasers:
+                    laser.cancel()
 
             if time > 90: # start the bullet hell again
                 self.death_time = 0