-
Notifications
You must be signed in to change notification settings - Fork 3
/
stage.p8
185 lines (161 loc) · 8.34 KB
/
stage.p8
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
;
; Set up
;
stage {
; Each stage consists of 2 "waves" of deployment
; each sub sub patter conists of
const ubyte STG_LINE_ACTIVE = 0 ; Is this line in use set to 1
const ubyte STG_PAT = 1 ; Deployment pattern
const ubyte STG_DEPL_DELAY = 2 ; Delay from sub stage start before depolyment starts
const ubyte STG_WAVE_DELAY = 3 ; Delay from stage start
const ubyte STG_ENEMY_TYPE = 4 ; from 4 - 11 are the enemy types on the line
const ubyte FIELD_COUNT = 12
const ubyte MAX_STAGE = 20
ubyte[] bonus_times = [ 20, 20, 23, 23, 26, 26, 29, 29, 32, 32, 35, 35,
38, 38, 41, 41, 44, 44, 47, 47 ]
ubyte[] stage1 = [
1, move_patterns.TOP_FROM_LEFT_1, 0, 0,
enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1,
enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1,
1, move_patterns.MID_FROM_RIGHT_1, 38, 70,
enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1,
enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1 ]
ubyte[] stage2 = [
1, move_patterns.TOP_FROM_RIGHT_1, 0, 0,
enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1,
enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1,
1, move_patterns.MID_FROM_LEFT_1, 38, 70,
enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1,
enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1, enemy.RAIDER1 ]
ubyte[] stage3 = [
1, move_patterns.TOP_FROM_LEFT_2, 0, 0,
enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER1, enemy.RAIDER2,
enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER1, enemy.RAIDER2,
1, move_patterns.MID_FROM_RIGHT_1, 38, 70,
enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER1, enemy.RAIDER2,
enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER1, enemy.RAIDER2 ]
ubyte[] stage4 = [
1, move_patterns.TOP_FROM_RIGHT_2, 0, 0,
enemy.RAIDER2, enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER1,
enemy.RAIDER2, enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER1,
1, move_patterns.MID_FROM_LEFT_1, 38, 70,
enemy.RAIDER2, enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER1,
enemy.RAIDER2, enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER1 ]
ubyte[] stage5 = [
1, move_patterns.TOP_FROM_LEFT_1, 0, 0,
enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER5,
enemy.RAIDER5, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER1,
1, move_patterns.MID_FROM_RIGHT_2, 38, 70,
enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER2,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER1 ]
ubyte[] stage6 = [
1, move_patterns.TOP_FROM_RIGHT_1, 0, 0,
enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER5,
enemy.RAIDER5, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER1,
1, move_patterns.MID_FROM_LEFT_2, 38, 70,
enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER2,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER1 ]
ubyte[] stage7 = [
1, move_patterns.TOP_FROM_LEFT_2, 0, 0,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER5,
enemy.RAIDER5, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER2,
1, move_patterns.MID_FROM_RIGHT_2, 38, 70,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER5,
enemy.RAIDER5, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER2 ]
ubyte[] stage8 = [
1, move_patterns.TOP_FROM_RIGHT_2, 0, 0,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER5,
enemy.RAIDER5, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER2,
1, move_patterns.MID_FROM_LEFT_2, 38, 70,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER5,
enemy.RAIDER5, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER2 ]
ubyte[] stage9 = [
1, move_patterns.TOP_FROM_LEFT_1, 0, 0,
enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER3,
enemy.RAIDER3, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER1,
1, move_patterns.MID_FROM_RIGHT_2, 38, 70,
enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER3,
enemy.RAIDER3, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER1 ]
ubyte[] stage10 = [
1, move_patterns.TOP_FROM_RIGHT_1, 0, 0,
enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER3,
enemy.RAIDER3, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER1,
1, move_patterns.MID_FROM_LEFT_2, 38, 70,
enemy.RAIDER1, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER3,
enemy.RAIDER3, enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER1 ]
ubyte[] stage11 = [
1, move_patterns.TOP_FROM_LEFT_2, 0, 0,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER3, enemy.RAIDER3,
enemy.RAIDER3, enemy.RAIDER3, enemy.RAIDER2, enemy.RAIDER2,
1, move_patterns.MID_FROM_RIGHT_1, 38, 70,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER3, enemy.RAIDER3,
enemy.RAIDER3, enemy.RAIDER3, enemy.RAIDER2, enemy.RAIDER2 ]
ubyte[] stage12 = [
1, move_patterns.TOP_FROM_RIGHT_2, 0, 0,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER3, enemy.RAIDER3,
enemy.RAIDER3, enemy.RAIDER3, enemy.RAIDER2, enemy.RAIDER2,
1, move_patterns.MID_FROM_LEFT_1, 38, 70,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER3, enemy.RAIDER3,
enemy.RAIDER3, enemy.RAIDER3, enemy.RAIDER2, enemy.RAIDER2 ]
ubyte[] stage13 = [
1, move_patterns.TOP_FROM_LEFT_1, 0, 0,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER5, enemy.RAIDER5,
enemy.RAIDER5, enemy.RAIDER5, enemy.RAIDER2, enemy.RAIDER2,
1, move_patterns.MID_FROM_RIGHT_1, 38, 70,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER3, enemy.RAIDER3,
enemy.RAIDER3, enemy.RAIDER3, enemy.RAIDER2, enemy.RAIDER2 ]
ubyte[] stage14 = [
1, move_patterns.TOP_FROM_RIGHT_1, 0, 0,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER5, enemy.RAIDER5,
enemy.RAIDER5, enemy.RAIDER5, enemy.RAIDER2, enemy.RAIDER2,
1, move_patterns.MID_FROM_LEFT_1, 38, 70,
enemy.RAIDER2, enemy.RAIDER2, enemy.RAIDER3, enemy.RAIDER3,
enemy.RAIDER3, enemy.RAIDER3, enemy.RAIDER2, enemy.RAIDER2 ]
ubyte[] stage15 = [
1, move_patterns.TOP_FROM_LEFT_2, 0, 0,
enemy.RAIDER2, enemy.RAIDER4, enemy.RAIDER5, enemy.RAIDER5,
enemy.RAIDER5, enemy.RAIDER5, enemy.RAIDER4, enemy.RAIDER2,
1, move_patterns.MID_FROM_RIGHT_1, 38, 70,
enemy.RAIDER2, enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER6,
enemy.RAIDER6, enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER2 ]
ubyte[] stage16 = [
1, move_patterns.TOP_FROM_RIGHT_2, 0, 0,
enemy.RAIDER2, enemy.RAIDER4, enemy.RAIDER5, enemy.RAIDER5,
enemy.RAIDER5, enemy.RAIDER5, enemy.RAIDER4, enemy.RAIDER2,
1, move_patterns.MID_FROM_LEFT_1, 38, 70,
enemy.RAIDER2, enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER6,
enemy.RAIDER6, enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER2 ]
ubyte[] stage17 = [
1, move_patterns.TOP_FROM_LEFT_1, 0, 0,
enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER6, enemy.RAIDER6,
enemy.RAIDER6, enemy.RAIDER6, enemy.RAIDER4, enemy.RAIDER4,
1, move_patterns.MID_FROM_RIGHT_2, 38, 70,
enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER4,
enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER4 ]
ubyte[] stage18 = [
1, move_patterns.TOP_FROM_RIGHT_1, 0, 0,
enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER6, enemy.RAIDER6,
enemy.RAIDER6, enemy.RAIDER6, enemy.RAIDER4, enemy.RAIDER4,
1, move_patterns.MID_FROM_LEFT_2, 38, 70,
enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER4,
enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER4 ]
ubyte[] stage19 = [
1, move_patterns.TOP_FROM_LEFT_2, 0, 0,
enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER6, enemy.RAIDER6,
enemy.RAIDER6, enemy.RAIDER6, enemy.RAIDER4, enemy.RAIDER4,
1, move_patterns.MID_FROM_RIGHT_2, 38, 70,
enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER6, enemy.RAIDER6,
enemy.RAIDER6, enemy.RAIDER6, enemy.RAIDER4, enemy.RAIDER4 ]
ubyte[] stage20 = [
1, move_patterns.TOP_FROM_RIGHT_2, 0, 0,
enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER6, enemy.RAIDER6,
enemy.RAIDER6, enemy.RAIDER6, enemy.RAIDER4, enemy.RAIDER4,
1, move_patterns.MID_FROM_LEFT_2, 38, 70,
enemy.RAIDER4, enemy.RAIDER4, enemy.RAIDER6, enemy.RAIDER6,
enemy.RAIDER6, enemy.RAIDER6, enemy.RAIDER4, enemy.RAIDER4 ]
uword[] list = [ &stage1, &stage2, &stage3, &stage4,
&stage5, &stage6, &stage7, &stage8,
&stage9, &stage10, &stage11, &stage12,
&stage13, &stage14, &stage15, &stage16,
&stage17, &stage18, &stage19, &stage20 ]
}