Mercurial > fife-parpg
diff demos/shooter/scripts/ships/enemies.py @ 472:3164715a0621
Added the FireBallBurst and FireBallSpread weapons which are now used by the boss.
Added rotatePoint function.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 16 Apr 2010 21:44:18 +0000 |
parents | 7a79dc2a0592 |
children | 10aff123c62c |
line wrap: on
line diff
--- a/demos/shooter/scripts/ships/enemies.py Thu Apr 15 15:53:06 2010 +0000 +++ b/demos/shooter/scripts/ships/enemies.py Fri Apr 16 21:44:18 2010 +0000 @@ -205,7 +205,7 @@ self._actionlistener = BossActionListener(self) - self.hitpoints = 20 + self.hitpoints = 30 self.scorevalue = 1000 def endLevel(self): @@ -225,4 +225,11 @@ def applyHit(self, hp): self.flash(2) - super(Boss, self).applyHit(hp) \ No newline at end of file + super(Boss, self).applyHit(hp) + + if self.hitpoints == 20: + self.weapon = FireBallBurst(self._scene, self, 2000, 100, 10) + + elif self.hitpoints == 10: + self.weapon = FireBallSpread(self._scene, self, 2000) + \ No newline at end of file