diff demos/shooter/scripts/scene.py @ 470:3b04e921c93d

Added the fireball projectile. Added a new ship images for the boss. Some enemies now shoot directly at the player.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 14 Apr 2010 19:15:27 +0000
parents 5994e61cdebd
children 7a79dc2a0592
line wrap: on
line diff
--- a/demos/shooter/scripts/scene.py	Wed Apr 14 17:42:24 2010 +0000
+++ b/demos/shooter/scripts/scene.py	Wed Apr 14 19:15:27 2010 +0000
@@ -274,10 +274,6 @@
 				self.moveObjectInScene(obj)
 
 			if obj != self._player:
-				#TODO: enemy should fire weapon in their update function
-				if obj.running:
-					obj.fire(fife.DoublePoint(-1,0))
-			
 				if obj.running and obj.boundingbox.intersects(self._player.boundingbox):
 					#player touched an enemy.  Destroy player and 
 					#re-initialize scene