diff options
author | davesilver <nibor123@gmail.com> | 2010-08-03 17:33:01 (GMT) |
---|---|---|
committer | davesilver <nibor123@gmail.com> | 2010-08-03 17:33:01 (GMT) |
commit | 3192aed83907375d86d43fc0901c0f10bd2615c7 (patch) | |
tree | 318c70d10da6e97f17ab352e05356d361a25f16a /MAFH2/Dungeon.py | |
parent | de2e929e64f75d9834c1880c5ec939be124fddde (diff) |
Working on integration
Diffstat (limited to 'MAFH2/Dungeon.py')
-rw-r--r-- | MAFH2/Dungeon.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/MAFH2/Dungeon.py b/MAFH2/Dungeon.py index 8af66fc..a53f905 100644 --- a/MAFH2/Dungeon.py +++ b/MAFH2/Dungeon.py @@ -303,9 +303,6 @@ class Dungeon(GameEngineElement): # \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ # def draw(self,screen,time_delta): - - for door in self.doorsList: door.makeTransparent(True) - profile = self.game_engine.get_object('profile') dir = profile.playerFacing current_room = self.rooms[profile.position] @@ -314,12 +311,18 @@ class Dungeon(GameEngineElement): left, front, right = self.normalize_dir() if current_room.get_door( left ) != '0': self.doorsList[0].makeTransparent(False) + else: + self.doorsList[0].makeTransparent(True) if current_room.get_door( front ) != '0': self.doorsList[1].makeTransparent(False) + else: + self.doorsList[0].makeTransparent(True) if current_room.get_door( right ) != '0': self.doorsList[2].makeTransparent(False) + else: + self.doorsList[0].makeTransparent(True) # Draw Items img_list = [] |