-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
26 lines (20 loc) · 739 Bytes
/
Copy pathconstants.py
File metadata and controls
26 lines (20 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
'''
Module contains all game constants, that can be changed as per taste.
Only primary constants are to be changed, as they determine the value of the derived constants.
Note: All SIZE quantities are in px
'''
''' PRIMARY CONSTANTS'''
MATRIX_DIMENSIONS = (5, 5)
SQUARE_SIZE = 50
GRID_LINE_THICKNESS_SIZE = 2
SIDEBAR_WIDTH = 350
SCREENSHOT_SAVE_PATH = 'Ubongo-Solutions'
#COLORS
FREE_BLOCK_COLOR = 'white'
BOUNDARY_BLOCK_COLOR = 'black'
GRID_LINE_COLOR = 'black'
'''DERIVED CONSTANTS'''
GAME_WINDOW_SIZE = tuple(dim*SQUARE_SIZE for dim in MATRIX_DIMENSIONS)
SIDEBAR_TOPLEFT = (GAME_WINDOW_SIZE[0], 0)
SIDEBAR_SIZE = (SIDEBAR_WIDTH, GAME_WINDOW_SIZE[1])
TOTAL_WINDOW_SIZE = (GAME_WINDOW_SIZE[0] + SIDEBAR_SIZE[0], GAME_WINDOW_SIZE[1])