diff demos/shooter/scripts/ships/enemies.py @ 460:5e1d6e40d19d

Fixed bounding boxes. Added bounding box renderer. The player is now better confined to the screen. Added more enemies to the map.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 09 Apr 2010 21:42:28 +0000
parents 302a69c5141d
children c4f745a566d6
line wrap: on
line diff
--- a/demos/shooter/scripts/ships/enemies.py	Fri Apr 09 17:35:52 2010 +0000
+++ b/demos/shooter/scripts/ships/enemies.py	Fri Apr 09 21:42:28 2010 +0000
@@ -32,7 +32,7 @@
 		super(Saucer1, self).__init__(scene, name, findInstance)
 		self._dir = 0
 		self._time = 500
-		self.width = 0.075
+		self.width = 0.2
 		self.height = 0.075
 		self.velocity.x = -0.5
 		
@@ -91,7 +91,7 @@
 	def __init__(self, scene, name, direction, findInstance=True):
 		super(DiagSaucer, self).__init__(scene, name, findInstance)
 		self.width = 0.2
-		self.height = 0.2
+		self.height = 0.075
 		
 		if direction == 0:
 			self._ythrust = 0.25
@@ -109,6 +109,9 @@
 	def __init__(self, scene, name, findInstance=True):
 		super(Streaker, self).__init__(scene, name, findInstance)
 		
+		self.width = 0.2
+		self.height = 0.2		
+		
 		self._maxvelocity = 2.0
 		
 		self.weapon = Cannon(self._scene, self, 2000)