comparison eosd @ 340:39bc59953dfa

Increase player's power stats during skipped frames in boss rush mode.
author Thibaut Girka <thib@sitedethib.com>
date Wed, 04 Jul 2012 22:52:02 +0200
parents 7a05edbab88a
children 61caded6b4f5
comparison
equal deleted inserted replaced
339:7a05edbab88a 340:39bc59953dfa
33 33
34 class EoSDGameBossRush(EoSDGame): 34 class EoSDGameBossRush(EoSDGame):
35 def run_iter(self, keystate): 35 def run_iter(self, keystate):
36 for i in range(20): 36 for i in range(20):
37 EoSDGame.run_iter(self, (keystate | 256) if i == 0 else 0) 37 EoSDGame.run_iter(self, (keystate | 256) if i == 0 else 0)
38 if not self.enemies and self.frame % 90 == 0:
39 for player in self.players:
40 if player.state.power < 128:
41 player.state.power += 1
38 if (self.enemies or self.items 42 if (self.enemies or self.items
39 or self.lasers or self.bullets or self.cancelled_bullets): 43 or self.lasers or self.bullets or self.cancelled_bullets):
40 break 44 break
41 45
42 def cleanup(self): 46 def cleanup(self):