-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
50 lines (44 loc) · 1.26 KB
/
settings.py
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
WIDTH = 600
HEIGHT = 600
# Colors
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED = (239, 52, 52)
GREEN = (26, 255, 26)
LIGHT_GRAY = (200, 200, 200)
DARK_GRAY = (24, 24, 24)
ANTIQUE_WHITE = (238, 212, 210)
DARK_SLATE_GRAY = (40, 75, 75)
# Board position and size
BOARD_POS = (75, 100)
BOARD_SIZE = WIDTH - BOARD_POS[0] * 2
CELL_SIZE = int(BOARD_SIZE / 9)
# Turn dark mode on or off
DARK_MODE = True
# The color of UI parts based on theme
if DARK_MODE:
THEME_COLOR_1 = BLACK
THEME_COLOR_2 = WHITE
SELECTED_CELL_COLOR = DARK_GRAY
INITIAL_CELL_COLOR = DARK_SLATE_GRAY
else:
THEME_COLOR_1 = WHITE
THEME_COLOR_2 = BLACK
SELECTED_CELL_COLOR = ANTIQUE_WHITE
INITIAL_CELL_COLOR = LIGHT_GRAY
# The path of the song in the instructions menu
SONG_PATH = "assets/sounds/menu.mp3"
SONG = SONG_PATH
# Play with a predefined board if you want. If a number
# from 1 to 9 is added below, `BOARD` will be used.
BOARD = [
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0]
]