-
Notifications
You must be signed in to change notification settings - Fork 0
/
Constants.py
37 lines (32 loc) · 1.03 KB
/
Constants.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
class Constants:
"""
class containing constants about the game settings, but not game data
"""
FPS = 60
SCREEN_SIZE = (1080, 720)
GAME_NAME = "Disk Cleanup" ##can change name later
BACKGROUND_COLOR = (255, 255, 255)
THROWING_TYPES = { # different types of game objects to be thrown over
0 : "basic",
1 : "gravity",
2 : "bounce",
3 : "avoid"
}
THROWING_TYPES_SCORES = {
"basic" : 1,
"gravity" : 1,
"bounce" : 2,
"avoid" : 3
}
THROW_OVER_HEIGHT = 50
GAME_LENGTH = 180 #in seconds
COLOR_BLACK = (255, 255, 255)
COLOR_WHITE = (0, 0, 0)
COLOR_LIGHTGRAY = (211, 211, 211)
SPAWN_PROBABILITY = 100 #1/[SPAWN_PROBABILITY]*100% chance to spawn 1 throwable object per frame
#connectivity
HEADER_LENGTH = 1024 #tells us how long the header sent is. header used to tell how many bites the message sent from client is
PORT = 5050 # Port which all data will pass through
FORMAT = 'utf-8'
def init():
pass