Changeset 39 for trunk/demo/scripts


Ignore:
Timestamp:
04/20/09 05:07:53 (11 years ago)
Author:
maximinus_parpg
Message:

Added some building tiles to simulate a building.
Added a 'blocking' tile to enable non-visual blocking.
Extanded map size a little.
Adjusted /utilities/transition.py and added instructions.
Rejigged map file to add a buildings layer (experimental).
Minor adjustment to /scripts/world.py to add new layer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/demo/scripts/world.py

    r38 r39  
    5353        self.filename = '' 
    5454        self.instance_to_agent = {} 
    55         self.transitions=[] 
     55        self.transitions = [] 
     56        self.building_layer = [] 
    5657 
    5758    def reset(self): 
     
    7778            if(layer.getId()[:size]=='TransitionLayer'): 
    7879                self.transitions.append(self.map.getLayer(layer.getId())) 
     80        # add layer for buildings (assume always present, even if empty) 
     81        self.building_layer = self.map.getLayer('BuildingLayer') 
    7982        self.PC = Hero(self.model,'PC',self.agentlayer) 
    8083        self.instance_to_agent[self.PC.agent.getFifeId()] = self.PC 
Note: See TracChangeset for help on using the changeset viewer.