comparison eosd @ 500:777544d11578

[Boss rush] Mark removed lasers as such
author Thibaut Girka <thib@sitedethib.com>
date Fri, 08 Nov 2013 13:40:53 +0100
parents 5426825c11a6
children c622eaf64428
comparison
equal deleted inserted replaced
499:5426825c11a6 500:777544d11578
90 def cleanup(self): 90 def cleanup(self):
91 boss_wait = any(ecl_runner.boss_wait for ecl_runner in self.ecl_runners) 91 boss_wait = any(ecl_runner.boss_wait for ecl_runner in self.ecl_runners)
92 if not (self.boss or self.msg_wait or boss_wait): 92 if not (self.boss or self.msg_wait or boss_wait):
93 self.enemies = [enemy for enemy in self.enemies 93 self.enemies = [enemy for enemy in self.enemies
94 if enemy.boss_callback or enemy.frame > 1] 94 if enemy.boss_callback or enemy.frame > 1]
95 for laser in self.lasers:
96 if laser.frame <= 1:
97 laser.removed = True
95 self.lasers = [laser for laser in self.lasers if laser.frame > 1] 98 self.lasers = [laser for laser in self.lasers if laser.frame > 1]
96 self.effects = [effect for effect in self.effects
97 if not hasattr(effect, '_laser')
98 or effect._laser in self.lasers]
99 self.bullets = [bullet for bullet in self.bullets if bullet.frame > 1] 99 self.bullets = [bullet for bullet in self.bullets if bullet.frame > 1]
100 Game.cleanup(self) 100 Game.cleanup(self)
101 101
102 102
103 def main(window, path, data, stage_num, rank, character, replay, save_filename, 103 def main(window, path, data, stage_num, rank, character, replay, save_filename,