Mercurial > parpg-source
diff gamemap.py @ 44:98f26f7636d8
Changes to make PARPG "runable" with grease. (With the correct modified assets)
author | KarstenBock@gmx.net |
---|---|
date | Tue, 06 Sep 2011 15:22:51 +0200 |
parents | 06145a6ee387 |
children | 80672955ab70 |
line wrap: on
line diff
--- a/gamemap.py Tue Sep 06 15:21:36 2011 +0200 +++ b/gamemap.py Tue Sep 06 15:22:51 2011 +0200 @@ -137,7 +137,7 @@ """Add the player character to the map @return: None""" # Update gamestate.player_character - self.model.game_state.player_character.behaviour.onNewMap(self.agent_layer) + self.model.game_state.getObjectById("PlayerCharacter").fifeagent.behaviour.onNewMap(self.agent_layer) self.centerCameraOnPlayer() def toggleRenderer(self, r_name): @@ -167,5 +167,5 @@ def centerCameraOnPlayer(self): """Center the camera on the player""" camera = self.cameras[self.my_cam_id] - player_agent = self.model.game_state.player_character.behaviour.agent + player_agent = self.model.game_state.getObjectById("PlayerCharacter").fifeagent.behaviour.agent camera.setLocation(player_agent.getLocation())