-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
88 lines (75 loc) · 1.72 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import pygame as pg
#Game options/settings
TITLE = "Demo"
# WIDTH = 360
# HEIGHT = 480
# WIDTH = 512
# HEIGHT = 384
WIDTH = 768
HEIGHT = 576
# WIDTH = 1024
# HEIGHT = 768
FPS = 60
TILESIZE = 32 #32
TILESIZE_TRACK = 32
GRIDWIDTH = WIDTH / TILESIZE
GRIDHEIGHT = HEIGHT / TILESIZE
TIME_FOR_EASY_Q = 10
TIME_FOR_MEDIUM_Q = 15
TIME_FOR_HARD_Q = 20
MENU_SCREENS = ["settingsMenu",
"mainMenu",
"levelSelect",
"stats",
"leaderboard",
"shop",
"startScreen",
"gameOverScreen",
"pause",
"levelComplete",
"levelFailed",
"instructions"]
LEVEL_SCREENS = ["level1",
"level2",
"level3",
"level4",
"level5",
"level6",
"level7",
"level8",
"minigame"]
#Player properties
PLAYER_ACC = 0.65
BRAKE_ACC = 0.4
PLAYER_FRICTION = -0.08
PLAYER_GRAV = 0.8
#Layers
PLAYER_LAYER = 2
PLATFORM_LAYER = 1
WALL_LAYER = 1
TRACK_LAYER = 1
RECTANGLE_LAYER = 2
QUESTION_LAYER = 3
COIN_LAYER = 3
INPUT_BOX_LAYER = 1
BUTTON_LAYER = 1
# define colours
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
YELLOW = (255, 255, 0)
ORANGE = (255, 165, 0)
LIGHT_RED = (210, 0, 0)
LIGHT_GREEN = (0, 150, 0)
LIGHT_BLUE = (0,0,210)
HUD_COLOUR = BLACK
#Images
COIN_IMAGES = ["coin1.png",
"coin2.png",
"coin3.png",
"coin4.png",
"coin5.png",
"coin6.png"]
QUESTION_IMAGE = "boxQuestion.png"