Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/MAFH2/Dungeon.py
diff options
context:
space:
mode:
authorJustin Lewis <jtl1728@rit.edu>2010-02-18 18:10:08 (GMT)
committer Justin Lewis <jtl1728@rit.edu>2010-02-18 18:10:08 (GMT)
commitf75b1b29b11ad3853382d81434ef67f4c5ede639 (patch)
tree105a916244079defe49d26924f48c45b2b4e1c8d /MAFH2/Dungeon.py
parent9933d35ca9f2fea7c25645b7272f203d78936e89 (diff)
More battle engine code, and converted hud to spritesheet
Diffstat (limited to 'MAFH2/Dungeon.py')
-rw-r--r--MAFH2/Dungeon.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/MAFH2/Dungeon.py b/MAFH2/Dungeon.py
index 0988b1e..00e230e 100644
--- a/MAFH2/Dungeon.py
+++ b/MAFH2/Dungeon.py
@@ -266,10 +266,10 @@ class Dungeon(GameEngineElement):
dir = profile.playerFacing
current_room = self.rooms[profile.position]
-
-
+ # Draw Room Background
screen.blit(self.__images['room'],(0,0,1200,700))
+ # Draw Room Doors
left, front, right = self.normalize_dir()
if current_room.get_door( left ) != '0':
screen.blit(self.__images['side'],(2,15,192, 559))
@@ -280,14 +280,10 @@ class Dungeon(GameEngineElement):
if current_room.get_door( right ) != '0':
screen.blit(pygame.transform.flip(self.__images['side'], True, False),(1010,10,192, 559))
-
- # Draw background
-
# Draw Items
img_list = []
for i in range( dir, (dir + 4) ):
-
#imod for room rotation
imod = i % 4