Commits

Dominic Kexel  committed fccf5a6 Draft

fixed display of fog

  • Participants
  • Parent commits be13685

Comments (0)

Files changed (3)

File src/curse.py

         # create screen
         size = (640, 480)
         self.screen = pygame.display.set_mode(size)
-        self.main_screen=pygame.Surface((384,384))
-        self.gui_screen=pygame.Surface((232,384))
-        self.message_screen=pygame.Surface((384,72))
-        self.key_screen=pygame.Surface((232,72))
+        self.main_screen = pygame.Surface((384,384))
+        self.gui_screen = pygame.Surface((232,384))
+        self.message_screen = pygame.Surface((384,72))
+        self.key_screen = pygame.Surface((232,72))
         
         self.message_scroller=MessageScroller()
         pygame.display.set_caption("Curse of the Keys - A C64-Remake")
         
         # create gui
-        self.gui=gui(self)
+        self.gui = gui(self)
         
         # flags
         self.rumour=False
             #self.screen.blit(image, (OFFSET, OFFSET))
             x, y=self.player.pos
             self.main_screen.blit(self.player.image, (x*TILESIZE, y*TILESIZE))
-            for fog in self.fogs:
-                fog.draw(self.screen)
         
         if not no_gui:
             self.gui.draw(self.player)
         self.screen.blit(self.message_screen,(8,8+384+8))
         
         self.screen.blit(self.main_screen,(8,8))
-        
+        for fog in self.fogs:
+            fog.draw(self.screen)
+
         pygame.display.flip()      
 
     def enter(self, loc):

File src/curse.pyc

Binary file modified.

File src/world.pyc

Binary file modified.