comparison pytouhou/game/enemy.py @ 345:2c4589370cc6

Display a boss remaining lives and timeout.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 05 Jul 2012 00:11:19 +0200
parents 94fdb6c782c1
children 862011266f2c
comparison
equal deleted inserted replaced
344:eab591728abf 345:2c4589370cc6
393 if death_flags == 0: 393 if death_flags == 0:
394 self.removed = True 394 self.removed = True
395 return 395 return
396 396
397 if death_flags == 1: 397 if death_flags == 1:
398 self.boss = False #TODO: really?
399 self._game.boss = None
398 self.touchable = False 400 self.touchable = False
399 elif death_flags == 2: 401 elif death_flags == 2:
400 pass # Just that? 402 pass # Just that?
401 elif death_flags == 3: 403 elif death_flags == 3:
402 #TODO: disable boss mode 404 self.boss = False #TODO: really?
405 self._game.boss = None
403 self.damageable = False 406 self.damageable = False
404 self.life = 1 407 self.life = 1
405 self.death_flags = 0 408 self.death_flags = 0
406 409
407 if death_flags != 0 and self.death_callback > -1: 410 if death_flags != 0 and self.death_callback > -1: