comparison pytouhou/game/enemy.py @ 346:862011266f2c

Add a gauge and use it for the enemy life bar.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 05 Jul 2012 00:38:47 +0200
parents 2c4589370cc6
children b3049fb5c448
comparison
equal deleted inserted replaced
345:2c4589370cc6 346:862011266f2c
40 40
41 self.frame = 0 41 self.frame = 0
42 42
43 self.x, self.y, self.z = pos 43 self.x, self.y, self.z = pos
44 self.life = 1 if life < 0 else life 44 self.life = 1 if life < 0 else life
45 self.max_life = life
46 self.touchable = True 45 self.touchable = True
47 self.collidable = True 46 self.collidable = True
48 self.damageable = True 47 self.damageable = True
49 self.death_flags = 0 48 self.death_flags = 0
50 self.boss = False 49 self.boss = False