Ignore:
Timestamp:
03/01/11 21:31:31 (9 years ago)
Author:
aspidites
Message:

Patch by Aspidites

+ fixed defined speed in gamemodel.py properly
+ npc's no longer walk backwards

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/active/character_customization/game/parpg/gamemodel.py

    r757 r770  
    648648        self.game_state.player_character = player_char 
    649649        self.game_state.player_character.setup()         
    650         print self.game_state.player_character 
    651         print self.game_state.player_character.behaviour.speed 
    652         pc_speed = self.settings.parpg.PCSpeed 
    653         self.game_state.player_character.behaviour.speed = pc_speed 
     650        self.game_state.player_character.behaviour.speed = self.settings.parpg.PCSpeed 
     651 
    654652 
    655653    def addObject(self, layer, obj): 
     
    676674            # create the agent 
    677675            obj.setup() 
     676            obj.behaviour.speed = self.settings.parpg.PCSpeed - 1 
    678677            # create the PlayerCharacter agent 
    679678            obj.start() 
Note: See TracChangeset for help on using the changeset viewer.