Mercurial > touhou
comparison pytouhou/game/enemy.py @ 209:005ea47e11e0
Create enemy with negative life as it should be.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 08 Nov 2011 23:01:18 -0800 |
parents | 709f42eaa55e |
children | f5be441d2c42 |
comparison
equal
deleted
inserted
replaced
208:d07506a2e16e | 209:005ea47e11e0 |
---|---|
34 self._was_visible = False | 34 self._was_visible = False |
35 | 35 |
36 self.frame = 0 | 36 self.frame = 0 |
37 | 37 |
38 self.x, self.y = pos | 38 self.x, self.y = pos |
39 self.life = life | 39 self.life = 1 if life < 0 else life |
40 self.max_life = life | 40 self.max_life = life |
41 self.touchable = True | 41 self.touchable = True |
42 self.damageable = True | 42 self.damageable = True |
43 self.death_flags = 0 | 43 self.death_flags = 0 |
44 self.boss = False | 44 self.boss = False |