diff 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
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -42,7 +42,6 @@ class Enemy(object):
 
         self.x, self.y, self.z = pos
         self.life = 1 if life < 0 else life
-        self.max_life = life
         self.touchable = True
         self.collidable = True
         self.damageable = True