forked from LiquidDazee/PyWeek30
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.py
More file actions
38 lines (32 loc) · 779 Bytes
/
settings.py
File metadata and controls
38 lines (32 loc) · 779 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
# define some colors (R, G, B)
WHITE = (229, 229, 229)
BLACK = (0, 0, 0)
DARKGREY = (40, 40, 40)
LIGHTGREY = (100, 100, 100)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
YELLOW = (255, 255, 0)
# game settings
WIDTH = 1024 # 16 * 64 or 32 * 32 or 64 * 16
HEIGHT = 768 # 16 * 48 or 32 * 24 or 64 * 12
FPS = 60
TITLE = "The Loast Coast"
BGCOLOR = DARKGREY
TILESIZE = 64
GRIDWIDTH = WIDTH / TILESIZE
GRIDHEIGHT = HEIGHT / TILESIZE
# player settings
PLAYER_SPEED_MODIFIER = 1
PLAYER_SPEED = 400
PLAYER_IMG = 'manBlue.png'
# mob settings
MOB_IMG = 'enemy.png'
MOB_SPEED = 500
DETECT_RADIUS = 300
# effects
NIGHT_COLOR = (20,20,20)
LIGHT_RADIUS = (450, 450)
TORCH_RADIUS = (900,900)
LIGHT_MASK = "light_350_soft.png"
# items
ITEM_IMAGES={'torch':'torch.png', 'feather':'feather.png'}