Changeset 757


Ignore:
Timestamp:
03/01/11 21:30:37 (8 years ago)
Author:
aspidites
Message:

Patch by Aspidites:

+ fixed walk speed regression, though in the future, it may be more elegant

to pass the model's settings instance to a PlayableCharacter? constructor

Location:
branches/active/character_customization/game/parpg
Files:
2 edited

Legend:

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

    r756 r757  
    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 
    650654 
    651655    def addObject(self, layer, obj): 
  • branches/active/character_customization/game/parpg/objects/actors.py

    r756 r757  
    4949        self.agent.addActionListener(self) 
    5050        self.state = _AGENT_STATE_NONE 
    51         # TODO: rework/improve 
    52         #self.speed = Settings.get("PARPG", "PCSpeed") - 1 
    5351         
    5452    def getX(self): 
     
    8785        self.parent = parent 
    8886        self.idle_counter = 1 
    89         # TODO: rework/improve 
    90         #self.speed = Settings.get("PARPG", "PCSpeed") 
     87        self.speed = 0 
    9188        self.nextAction = None 
    9289        self.agent = None 
Note: See TracChangeset for help on using the changeset viewer.