-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
50 lines (44 loc) · 999 Bytes
/
settings.py
File metadata and controls
50 lines (44 loc) · 999 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Game options / settings
# Define basic colors
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
DARKGREY = (40, 40, 40)
LIGHTGREY = (100, 100, 100)
YELLOW = (255, 255, 0)
LIGHTBLUE = (0, 155, 155)
# Basic window config
WIDTH = 600
HEIGHT = 768
FPS = 60
TITLE = "My Game"
BGCOLOR = LIGHTBLUE
FONT_NAME = 'arial'
HS_FILE = "highscore.txt"
SPRITESHEET = "spritesheet_jumper.png"
TILESIZE = 32
GRIDWIDTH = WIDTH / TILESIZE
GRIDHEIGHT = HEIGHT / TILESIZE
# Player proprieties
PLAYER_ACC = 0.5
PLAYER_FRICTION = -0.12
PLAYER_GRAVITY = 0.8
PLAYER_JUMPPOWER = 22
# Game proprieties
BOOST_POWER = 60
POWER_SPAWN_RATE = 7
MOB_FRAQ = 5000
PLAYER_LAYER = 2
MOB_LAYER = 2
PLATFORM_LAYER = 1
POWER_LAYER = 1
CLOUD_LAYER = 0
# Starting Platforms
PLATFORM_LIST = [(0, HEIGHT - 60),
(WIDTH / 2 - 150, HEIGHT * 3 / 4),
(125, HEIGHT - 250),
(350, 300),
(175, 200),
(375, 50)]