comparison clients/rio_de_hola/scripts/world.py @ 5:427bb0de3e29

small fixes to techdemo to enable usage of beach map. Still segfaults when enabled from settings.py
author jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 04 Jul 2008 19:02:53 +0000
parents 4a0efb7baf70
children b153abbd9900
comparison
equal deleted inserted replaced
4:75d6b257af83 5:427bb0de3e29
96 self.filename = filename 96 self.filename = filename
97 self.reset() 97 self.reset()
98 self.map = loadMapFile(filename, self.engine) 98 self.map = loadMapFile(filename, self.engine)
99 self.maplistener = MapListener(self.map) 99 self.maplistener = MapListener(self.map)
100 100
101 self.agentlayer = self.map.getLayer('TechdemoMapObjectLayer') 101 self.agentlayer = self.map.getLayer('TechdemoMapGroundObjectLayer')
102 self.hero = Hero(self.model, 'PC', self.agentlayer) 102 self.hero = Hero(self.model, 'PC', self.agentlayer)
103 self.instance_to_agent[self.hero.agent.getFifeId()] = self.hero 103 self.instance_to_agent[self.hero.agent.getFifeId()] = self.hero
104 self.hero.start() 104 self.hero.start()
105 105
106 self.girl = Girl(self.model, 'NPC:girl', self.agentlayer) 106 self.girl = Girl(self.model, 'NPC:girl', self.agentlayer)