diff demos/shooter/scripts/world.py @ 453:cf53848fb187

Scene now gets updated when an object moves from one node to another. Player is now part of the scene. Projectiles can be files by both player and enemies. Some code cleanup.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 06 Apr 2010 19:12:41 +0000
parents f463ab431cc0
children bd7e8f708adf
line wrap: on
line diff
--- a/demos/shooter/scripts/world.py	Sat Apr 03 19:19:33 2010 +0000
+++ b/demos/shooter/scripts/world.py	Tue Apr 06 19:12:41 2010 +0000
@@ -88,7 +88,7 @@
 		self.mainwindow.show()
 		
 		#give player the default weapon
-		self.scene.player.weapon = Weapon(self.model, self.map.getLayer('objects'), self.scene.player, 200)
+		self.scene.player.weapon = Weapon(self.scene, self.scene.player, 200)
 		self.scene.initScene(self.map)
 		
 	def initCameras(self):