Mercurial > fife-parpg
comparison demos/shooter/scripts/world.py @ 448:5e2ec84902a7
Did a little re-factoring.
Introduced the scene graph for collision detection.
Changed the time scale to be accurate.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 01 Apr 2010 17:03:34 +0000 |
parents | 2046a1f2f5f2 |
children | ba6817013343 |
comparison
equal
deleted
inserted
replaced
447:64676ea55472 | 448:5e2ec84902a7 |
---|---|
86 self.mainwindow.position = (0,0) | 86 self.mainwindow.position = (0,0) |
87 self.mainwindow.show() | 87 self.mainwindow.show() |
88 | 88 |
89 #give player the default weapon | 89 #give player the default weapon |
90 self.scene.player.weapon = Weapon(self.model, self.map.getLayer('objects'), self.scene.player, 100) | 90 self.scene.player.weapon = Weapon(self.model, self.map.getLayer('objects'), self.scene.player, 100) |
91 self.scene.initScene(self.map) | |
91 | 92 |
92 def initCameras(self): | 93 def initCameras(self): |
93 """ | 94 """ |
94 Before we can actually see something on screen we have to specify the render setup. | 95 Before we can actually see something on screen we have to specify the render setup. |
95 This is done through Camera objects which offer a viewport on the map. | 96 This is done through Camera objects which offer a viewport on the map. |