comparison pytouhou/game/enemy.py @ 177:6e8653ff2b23

Fix boss mode and don’t suicide the boss when she just want to kill the other enemies.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 23 Oct 2011 01:53:44 -0700
parents 35d850502d1f
children 184196480f59
comparison
equal deleted inserted replaced
176:80a4c7ed43b3 177:6e8653ff2b23
39 self.life = life 39 self.life = 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.extended_bullet_attributes = (0, 0, 0, 0, 0., 0., 0., 0.) 45 self.extended_bullet_attributes = (0, 0, 0, 0, 0., 0., 0., 0.)
45 self.bullet_attributes = None 46 self.bullet_attributes = None
46 self.bullet_launch_offset = (0, 0) 47 self.bullet_launch_offset = (0, 0)
47 self.death_callback = None 48 self.death_callback = None
48 self.boss_callback = None 49 self.boss_callback = None