-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
46 lines (37 loc) · 907 Bytes
/
config.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
import pygame
pygame.font.init()
# GAMEPLAY
AUTONOMOUS_MODE = True # Toggle True to disable keyboard input and allow AI to takeover gameplay
# RANDOM SEED
RANDOM_SEED = 123
# REINFORCEMENT LEARNING VARIABLES
MAX_MEMORY_LEN = 50000
# GENERAL VARIABLES
gameW, gameH = 400, 600
playerW, playerH = 60, 120
gridLength = 5
# COLORS
colors = {
'ball': (234, 206, 205),
'flipper': (226, 135, 80),
'wall': (30, 23, 36),
'releaser': (18, 13, 21),
'bg': (56, 45, 62),
'score': (95, 86, 100),
'white': (255, 255, 255),
'black': (0, 0, 0)
}
# FONTS
muli = {
"15": pygame.font.Font("fonts/muli.ttf", 15),
"20": pygame.font.Font("fonts/muli.ttf", 20),
"30": pygame.font.Font("fonts/muli.ttf", 30),
"70": pygame.font.Font("fonts/muli.ttf", 70)
}
# ACCELERATION // 1.11m/s
TABLE_ACCELERATION = 0.2
# STATES
TITLE_SCREEN = 1
GAME_OVER = 2
STAGE_ONE = 3
STAGE_TWO = 4