-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
122 lines (94 loc) · 2.07 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import sys
COLORKEY = (255, 0, 255)
SOUNDMUTED = "mute" in sys.argv
DEBUGMODE = "debug" in sys.argv
PLAYER_LIVES = 15
SHEETWIDTH = 16
SHEETHEIGHT = 16
WALLTILE = 16
BODYTILE = 32
TRACKTILE = 32
HEADTILE = 64
BULLETTILE = 32
EFFECTTILE = 64
BODYTILEX = BODYTILE*4
BODYTILEY = BODYTILE*3
TRACKTILEX = TRACKTILE*4
TRACKTILEY = TRACKTILE*3
HEADTILEX = HEADTILE*4
HEADTILEY = HEADTILE*3
BULLETTILEX = BULLETTILE*4
BULLETTILEY = BULLETTILE*3
EFFECTSCALE = EFFECTTILE*4
SCALE = WALLTILE
SCALEX = 4 * SCALE
SCALEY = 3 * SCALE
FIELDWIDTH = 22
FIELDHEIGHT = 16
# Screen dimensions cannot currently be changed, a lot of refactoring and fixing would be needed to fix this
SCREENWIDTH = FIELDWIDTH * SCALEX
SCREENHEIGHT = FIELDHEIGHT * SCALEY
TANKBODYSPEED = 0.02
TANKAIMSPEED = 0.2
TANKCOLLISION = 0.45
TANKTANKCOLLISION = 0.55
TRACKSPEED = 4
EFFECTSPEED = 0.4
MOVESOUNDSPEED = 4
FUSELENGTH = 360
ARMLENGTH = 80
MINERANGE = 2.2
MINEWALLRANGE = 2
BULLETSPEED = 0.1
ROCKETSPEED = 0.2
DETTANKRANGE = 0.7
DETMINERANGE = 0.8
DETBULLETRANGE = 0.2
TANKSHOTCOOLDOWN = 10
INTROLENGTH = 240
WINLENGTH = 120
LOSELENGTH = 120
TRANSITIONLENGTH = 30
FADEOUTLENGTH = 100
# bullet_limit, bullet_bounce, mine_limit, rocket, speed
TANKPROPERTIES = {
"white" : (5, 1, 2, False, 0.06),
"grey" : (1, 1, 0, False, 0),
"yellow" : (2, 0, 0, False, 0.02),
"blue" : (5, 2, 0, False, 0.04),
"green" : (0, 0, 5, False, 0.08),
"red" : (5, 3, 0, True, 0),
"black" : (2, 1, 2, True, 0.05),
}
CHANNELS = {
"flute" : 0,
"synth" : 1,
"snare" : 2,
"timpani1" : 3,
"timpani2" : 4,
"symbals1" : 5,
"symbals2" : 6,
"hihat1" : 7,
"hihat2" : 8,
"triangle" : 9,
"tuba" : 10,
"bells" : 11,
}
THEME_VERSIONS = {
"base" : (["flute", "snare", "triangle", "hihat2"], []),
"grey" : (["hihat1"], ["hihat2"]),
"yellow" : (["symbals1"], []),
"blue" : (["timpani1"], []),
"green" : (["tuba"], []),
"red" : (["bells"], []),
"black" : (["synth"], ["flute"]),
}
VOLUMES = {
"tank_move" : 0.10,
"mission_win" : 0.60,
"mission_lose" : 0.60,
"mission_intro" : 0.80,
}
STAGES = [
"1", "2", "3", "4", "5", "6", "7", "8", "ALPHA"
]