diff demos/shooter/scripts/ships/shipbase.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 f87f686b5b59
line wrap: on
line diff
--- a/demos/shooter/scripts/ships/shipbase.py	Fri Apr 09 17:35:52 2010 +0000
+++ b/demos/shooter/scripts/ships/shipbase.py	Fri Apr 09 21:42:28 2010 +0000
@@ -62,6 +62,9 @@
 		self._flashrate = rate * 2
 		self._flashnumber = number * 2
 	
+	def destroy(self):
+		self._scene.removeObjectFromScene(self)
+		super(Ship, self).destroy()
 	
 	def update(self):
 		if self._flashing: