about summary refs log tree commit diff homepage
path: root/brutalmaze/constants.py
diff options
context:
space:
mode:
Diffstat (limited to 'brutalmaze/constants.py')
-rw-r--r--brutalmaze/constants.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/brutalmaze/constants.py b/brutalmaze/constants.py
index 37ed569..e742858 100644
--- a/brutalmaze/constants.py
+++ b/brutalmaze/constants.py
@@ -44,11 +44,12 @@ if mixer is None: pygame.mixer.quit()
 
 SQRT2 = 2 ** 0.5
 INIT_SCORE = 5**0.5/2 + 0.5     # golden mean
-MAZE_SIZE = 10
-ROAD_WIDTH = 5  # grids
-CELL_WIDTH = ROAD_WIDTH * 2     # grids
-MIDDLE = (MAZE_SIZE + MAZE_SIZE%2 - 1)*ROAD_WIDTH + ROAD_WIDTH//2
-LAST_ROW = (MAZE_SIZE-1) * ROAD_WIDTH * 2
+ROAD_WIDTH = 3  # grids
+WALL_WIDTH = 4  # grids
+CELL_WIDTH = WALL_WIDTH + ROAD_WIDTH*2  # grids
+CELL_NODES = ROAD_WIDTH, ROAD_WIDTH + WALL_WIDTH, 0
+MAZE_SIZE = 10  # cells
+MIDDLE = MAZE_SIZE // 2 * CELL_WIDTH
 HEAL_SPEED = 1  # HP/s
 HERO_SPEED = 5  # grid/s
 ENEMY_SPEED = 6 # grid/s