Ignore:
Timestamp:
05/11/09 13:42:45 (11 years ago)
Author:
maximinus_parpg
Message:

Made it so we only have one keycheck function (sanity at last!)
A few more Rio oddities removed.
Some minor script clean-up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PARPG/scripts/engine.py

    r55 r58  
    123123            self.view.addObject(float(i[0]),float(i[1]),i[2]) 
    124124 
     125    def addNPCs(self): 
     126        """Add all of the NPCs we found into the fife map""" 
     127        for i in self.npcs: 
     128            self.view.addObject(float(i[0]),float(i[1]),i[2]) 
     129 
    125130    def loadMap(self,map_file): 
    126131        """Load a new map 
     
    131136        self.view.load(map_file) 
    132137        # finally, we update FIFE with the PC, NPC and object details 
    133         self.view.addPC(self.pc[0],self.pc[1]) 
     138        self.view.addPC(float(self.pc[0]),float(self.pc[1])) 
     139        self.addNPCs() 
    134140        self.addObjects() 
    135141 
Note: See TracChangeset for help on using the changeset viewer.