diff gamelib/loadlevel.py @ 433:8643893635e7

Seperate toolbar and gameboard
author Neil Muller <drnlmuller@gmail.com>
date Sat, 21 Nov 2009 16:59:49 +0000
parents fbef17cab632
children 3a8a64bbe2d8
line wrap: on
line diff
--- a/gamelib/loadlevel.py	Sat Nov 21 16:54:05 2009 +0000
+++ b/gamelib/loadlevel.py	Sat Nov 21 16:59:49 2009 +0000
@@ -8,6 +8,7 @@
 import data
 import imagecache
 import gameboard
+import constants
 
 def make_load_screen(level):
     """Create a screen for selecting the levels"""
@@ -100,7 +101,8 @@
         space = self.style.font.size(" ")
         w, h = board.tv.size
 
-        map_image = pygame.Surface((20*w, 20*h))
+        map_image = pygame.Surface((constants.TILE_DIMENSIONS[0] * w,
+            constants.TILE_DIMENSIONS[1] * h))
         board.tv.loop()
         board.tv.paint(map_image)