comparison 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
comparison
equal deleted inserted replaced
289:e7f40bff72fc 290:18e4ed141dd8
158 if self.frame % (32*60) == (32*60): #TODO: check if that is really that frame. 158 if self.frame % (32*60) == (32*60): #TODO: check if that is really that frame.
159 self.modify_difficulty(+100) 159 self.modify_difficulty(+100)
160 160
161 # 2. Filter out destroyed enemies 161 # 2. Filter out destroyed enemies
162 self.enemies = [enemy for enemy in self.enemies if not enemy._removed] 162 self.enemies = [enemy for enemy in self.enemies if not enemy._removed]
163 self.effects = [enemy for enemy in self.effects if not enemy._removed] 163 self.effects = [effect for effect in self.effects if not effect._removed]
164 self.bullets = [bullet for bullet in self.bullets if not bullet._removed] 164 self.bullets = [bullet for bullet in self.bullets if not bullet._removed]
165 self.cancelled_bullets = [bullet for bullet in self.cancelled_bullets if not bullet._removed] 165 self.cancelled_bullets = [bullet for bullet in self.cancelled_bullets if not bullet._removed]
166 self.items = [item for item in self.items if not item._removed] 166 self.items = [item for item in self.items if not item._removed]
167 167
168 168
305 if not bullet._removed] 305 if not bullet._removed]
306 self.players_bullets = [bullet for bullet in self.players_bullets 306 self.players_bullets = [bullet for bullet in self.players_bullets
307 if not bullet._removed] 307 if not bullet._removed]
308 self.cancelled_bullets = [bullet for bullet in self.cancelled_bullets 308 self.cancelled_bullets = [bullet for bullet in self.cancelled_bullets
309 if not bullet._removed] 309 if not bullet._removed]
310 self.effects = [effect for effect in self.effects if not effect._removed]
310 311
311 # Filter “timed-out” lasers 312 # Filter “timed-out” lasers
312 self.lasers = [laser for laser in self.lasers if not laser._removed] 313 self.lasers = [laser for laser in self.lasers if not laser._removed]
313 314
314 # Filter out-of-scren items 315 # Filter out-of-scren items