Mercurial > touhou
comparison pytouhou/game/game.py @ 358:488c094ed51d
Make bosses clean their mess when timeouting
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 08 Jul 2012 01:23:47 +0200 |
parents | 94fdb6c782c1 |
children | 704bea2e4360 |
comparison
equal
deleted
inserted
replaced
357:26f78fc7acea | 358:488c094ed51d |
---|---|
173 self.bullets = [] | 173 self.bullets = [] |
174 player.state.score += score | 174 player.state.score += score |
175 #TODO: display the final bonus score. | 175 #TODO: display the final bonus score. |
176 | 176 |
177 | 177 |
178 def kill_enemies(self): | |
179 for enemy in self.enemies: | |
180 if enemy.boss: | |
181 pass # Bosses are immune to 96 | |
182 elif enemy.touchable: | |
183 enemy.life = 0 | |
184 elif enemy.death_callback > 0: | |
185 #TODO: check | |
186 enemy.process.switch_to_sub(enemy.death_callback) | |
187 enemy.death_callback = -1 | |
188 | |
189 | |
178 def new_effect(self, pos, anim, anm_wrapper=None): | 190 def new_effect(self, pos, anim, anm_wrapper=None): |
179 self.effects.append(Effect(pos, anim, anm_wrapper or self.etama4)) | 191 self.effects.append(Effect(pos, anim, anm_wrapper or self.etama4)) |
180 | 192 |
181 | 193 |
182 def new_particle(self, pos, color, size, amp): | 194 def new_particle(self, pos, color, size, amp): |