Source

pygamegsoc12 / alchemymadness / layout.py

Diff from to

File alchemymadness/layout.py

     small_block_rect = Rect(0, 0, 12, 12)
     grid_size = Rect(0, 0, 10, 15) # size in blocks
     grid_rects = (
-        Rect(50, 50, block_rect.w * grid_size[0], block_rect.h * grid_size[1]),
-        Rect(330, 58, small_block_rect.w * grid_size[0], small_block_rect.h * grid_size[1]),
-        Rect(478, 58, small_block_rect.w * grid_size[0], small_block_rect.h * grid_size[1]),
-        Rect(626, 58, small_block_rect.w * grid_size[0], small_block_rect.h * grid_size[1]),
+        Rect(50, 50, block_rect.w * grid_size.w, block_rect.h * grid_size.h),
+        Rect(330, 58, small_block_rect.w * grid_size.w, small_block_rect.h * grid_size.h),
+        Rect(478, 58, small_block_rect.w * grid_size.w, small_block_rect.h * grid_size.h),
+        Rect(626, 58, small_block_rect.w * grid_size.w, small_block_rect.h * grid_size.h),
     )
     potion_rect = Rect(372, 360, 130, 194)
     small_potion_rect = Rect(553, 454, 68, 100)