forked from Kunal-Chauhan/Hoppy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
40 lines (35 loc) · 781 Bytes
/
settings.py
File metadata and controls
40 lines (35 loc) · 781 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
# game options and settings
WIDTH = 500
HEIGHT = 650
TITLE = "HOPPY!"
FPS = 60
FONT_NAME = 'arial'
HS_FILE = "Highscore.txt"
SPRITESHEET = "spritesheet_jumper.png"
PLAYER_LAYER = 2
PLATFORM_LAYER = 1
POW_LAYER = 1
MOB_LAYER = 2
CLOUD_LAYER = 0
# player properties
PLAYER_ACC = 0.8
PLAYER_FRICTION = -0.12
PLAYER_GRAV = 0.8
PLAYER_JUMP = 20
# player boosting properties
BOOST_POWER = 60
POW_SPAWN_PCT = 7
# mob
MOB_FREQ = 5000
# starting platfroms
PLATFORM_LIST = [(0, HEIGHT-40), (WIDTH/2-50, HEIGHT*3/4-50),
(125, HEIGHT-350), (350, 200), (175, 100)] # removed w and h
# defined 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)
LIGHTBLUE = (135, 206, 250)
BGCOLOR = LIGHTBLUE