Mercurial > touhou
diff pytouhou/game/game.py @ 290:18e4ed141dd8
Display lasers' “launch anim”.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Wed, 15 Feb 2012 18:37:52 +0100 |
parents | 4838e9bab0f9 |
children | ab618c2bbce8 |
line wrap: on
line diff
--- a/pytouhou/game/game.py +++ b/pytouhou/game/game.py @@ -160,7 +160,7 @@ class Game(object): # 2. Filter out destroyed enemies self.enemies = [enemy for enemy in self.enemies if not enemy._removed] - self.effects = [enemy for enemy in self.effects if not enemy._removed] + self.effects = [effect for effect in self.effects if not effect._removed] self.bullets = [bullet for bullet in self.bullets if not bullet._removed] self.cancelled_bullets = [bullet for bullet in self.cancelled_bullets if not bullet._removed] self.items = [item for item in self.items if not item._removed] @@ -307,6 +307,7 @@ class Game(object): if not bullet._removed] self.cancelled_bullets = [bullet for bullet in self.cancelled_bullets if not bullet._removed] + self.effects = [effect for effect in self.effects if not effect._removed] # Filter “timed-out” lasers self.lasers = [laser for laser in self.lasers if not laser._removed]