Mercurial > touhou
comparison 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 |
comparison
equal
deleted
inserted
replaced
273:595b227886b1 | 274:f037bca24f2d |
---|---|
237 self._sprite._changed = True | 237 self._sprite._changed = True |
238 | 238 |
239 if time > 30: | 239 if time > 30: |
240 for bullet in self._game.bullets: | 240 for bullet in self._game.bullets: |
241 bullet.cancel() | 241 bullet.cancel() |
242 for laser in self._game.lasers: | |
243 laser.cancel() | |
242 | 244 |
243 if time > 90: # start the bullet hell again | 245 if time > 90: # start the bullet hell again |
244 self.death_time = 0 | 246 self.death_time = 0 |
245 | 247 |
246 self._anmrunner.run_frame() | 248 self._anmrunner.run_frame() |