|
@@ -29,14 +29,8 @@
|
29
|
29
|
#include "light.h"
|
30
|
30
|
#include "dark.h"
|
31
|
31
|
#include "shoot.h"
|
32
|
|
-#include "bar_1.h"
|
33
|
|
-#include "bar_2.h"
|
34
|
|
-#include "bar_3.h"
|
35
|
|
-#include "bar_4.h"
|
36
|
|
-#include "bar_5.h"
|
37
|
|
-#include "bar_6.h"
|
38
|
|
-#include "bar_7.h"
|
39
|
|
-#include "bar_8.h"
|
|
32
|
+#include "bar_spr8.h"
|
|
33
|
+#include "expl_spr16.h"
|
40
|
34
|
|
41
|
35
|
const palette_color_t power_palettes[4] = {
|
42
|
36
|
//RGB8( 0, 0, 0), RGB8(240, 0, 0), RGB8(196, 0, 0), RGB8(116, 0, 0)
|
|
@@ -47,8 +41,10 @@ const palette_color_t power_palettes[4] = {
|
47
|
41
|
struct sprites metasprites[SPRITE_COUNT] = {
|
48
|
42
|
{ // SPR_SHIP_0
|
49
|
43
|
.ms = rockshp_0_metasprites,
|
|
44
|
+ .ms_n = ARR_LEN(rockshp_0_metasprites),
|
50
|
45
|
.ti = rockshp_0_tiles,
|
51
|
46
|
.pa = rockshp_0_palettes,
|
|
47
|
+ .pa_n = rockshp_0_PALETTE_COUNT,
|
52
|
48
|
.pa_i = OAMF_CGB_PAL0,
|
53
|
49
|
.cnt = rockshp_0_TILE_COUNT,
|
54
|
50
|
.off = TILE_NUM_START,
|
|
@@ -56,8 +52,10 @@ struct sprites metasprites[SPRITE_COUNT] = {
|
56
|
52
|
},
|
57
|
53
|
{ // SPR_SHIP_90
|
58
|
54
|
.ms = rockshp_90_metasprites,
|
|
55
|
+ .ms_n = ARR_LEN(rockshp_90_metasprites),
|
59
|
56
|
.ti = rockshp_90_tiles,
|
60
|
57
|
.pa = NULL,
|
|
58
|
+ .pa_n = rockshp_90_PALETTE_COUNT,
|
61
|
59
|
.pa_i = OAMF_CGB_PAL0,
|
62
|
60
|
.cnt = rockshp_90_TILE_COUNT,
|
63
|
61
|
.off = TILE_NUM_START,
|
|
@@ -65,8 +63,10 @@ struct sprites metasprites[SPRITE_COUNT] = {
|
65
|
63
|
},
|
66
|
64
|
{ // SPR_THRUST_0
|
67
|
65
|
.ms = thrust_0_metasprites,
|
|
66
|
+ .ms_n = ARR_LEN(thrust_0_metasprites),
|
68
|
67
|
.ti = thrust_0_tiles,
|
69
|
68
|
.pa = thrust_0_palettes,
|
|
69
|
+ .pa_n = thrust_0_PALETTE_COUNT,
|
70
|
70
|
.pa_i = OAMF_CGB_PAL1,
|
71
|
71
|
.cnt = thrust_0_TILE_COUNT,
|
72
|
72
|
.off = TILE_NUM_START,
|
|
@@ -74,8 +74,10 @@ struct sprites metasprites[SPRITE_COUNT] = {
|
74
|
74
|
},
|
75
|
75
|
{ // SPR_THRUST_90
|
76
|
76
|
.ms = thrust_90_metasprites,
|
|
77
|
+ .ms_n = ARR_LEN(thrust_90_metasprites),
|
77
|
78
|
.ti = thrust_90_tiles,
|
78
|
79
|
.pa = NULL,
|
|
80
|
+ .pa_n = thrust_90_PALETTE_COUNT,
|
79
|
81
|
.pa_i = OAMF_CGB_PAL1,
|
80
|
82
|
.cnt = thrust_90_TILE_COUNT,
|
81
|
83
|
.off = TILE_NUM_START,
|
|
@@ -83,8 +85,10 @@ struct sprites metasprites[SPRITE_COUNT] = {
|
83
|
85
|
},
|
84
|
86
|
{ // SPR_LIGHT
|
85
|
87
|
.ms = light_metasprites,
|
|
88
|
+ .ms_n = ARR_LEN(light_metasprites),
|
86
|
89
|
.ti = light_tiles,
|
87
|
90
|
.pa = light_palettes,
|
|
91
|
+ .pa_n = light_PALETTE_COUNT,
|
88
|
92
|
.pa_i = OAMF_CGB_PAL2,
|
89
|
93
|
.cnt = light_TILE_COUNT,
|
90
|
94
|
.off = TILE_NUM_START,
|
|
@@ -92,8 +96,10 @@ struct sprites metasprites[SPRITE_COUNT] = {
|
92
|
96
|
},
|
93
|
97
|
{ // SPR_DARK
|
94
|
98
|
.ms = dark_metasprites,
|
|
99
|
+ .ms_n = ARR_LEN(dark_metasprites),
|
95
|
100
|
.ti = dark_tiles,
|
96
|
101
|
.pa = dark_palettes,
|
|
102
|
+ .pa_n = dark_PALETTE_COUNT,
|
97
|
103
|
.pa_i = OAMF_CGB_PAL3,
|
98
|
104
|
.cnt = dark_TILE_COUNT,
|
99
|
105
|
.off = TILE_NUM_START,
|
|
@@ -101,8 +107,10 @@ struct sprites metasprites[SPRITE_COUNT] = {
|
101
|
107
|
},
|
102
|
108
|
{ // SPR_SHOT
|
103
|
109
|
.ms = shoot_metasprites,
|
|
110
|
+ .ms_n = ARR_LEN(shoot_metasprites),
|
104
|
111
|
.ti = shoot_tiles,
|
105
|
112
|
.pa = shoot_palettes,
|
|
113
|
+ .pa_n = shoot_PALETTE_COUNT,
|
106
|
114
|
.pa_i = OAMF_CGB_PAL4,
|
107
|
115
|
.cnt = shoot_TILE_COUNT,
|
108
|
116
|
.off = TILE_NUM_START,
|
|
@@ -110,8 +118,10 @@ struct sprites metasprites[SPRITE_COUNT] = {
|
110
|
118
|
},
|
111
|
119
|
{ // SPR_SHOT_LIGHT
|
112
|
120
|
.ms = shoot_metasprites,
|
|
121
|
+ .ms_n = ARR_LEN(shoot_metasprites),
|
113
|
122
|
.ti = shoot_tiles,
|
114
|
123
|
.pa = NULL,
|
|
124
|
+ .pa_n = shoot_PALETTE_COUNT,
|
115
|
125
|
.pa_i = OAMF_CGB_PAL2,
|
116
|
126
|
.cnt = shoot_TILE_COUNT,
|
117
|
127
|
.off = SPR_SHOT,
|
|
@@ -119,155 +129,46 @@ struct sprites metasprites[SPRITE_COUNT] = {
|
119
|
129
|
},
|
120
|
130
|
{ // SPR_SHOT_DARK
|
121
|
131
|
.ms = shoot_metasprites,
|
|
132
|
+ .ms_n = ARR_LEN(shoot_metasprites),
|
122
|
133
|
.ti = shoot_tiles,
|
123
|
134
|
.pa = NULL,
|
|
135
|
+ .pa_n = shoot_PALETTE_COUNT,
|
124
|
136
|
.pa_i = OAMF_CGB_PAL3,
|
125
|
137
|
.cnt = shoot_TILE_COUNT,
|
126
|
138
|
.off = SPR_SHOT,
|
127
|
139
|
.bank = BANK(shoot),
|
128
|
140
|
},
|
129
|
|
- { // SPR_HEALTH_1
|
130
|
|
- .ms = bar_1_metasprites,
|
131
|
|
- .ti = bar_1_tiles,
|
132
|
|
- .pa = bar_1_palettes,
|
|
141
|
+ { // SPR_HEALTH
|
|
142
|
+ .ms = bar_spr8_metasprites,
|
|
143
|
+ .ms_n = ARR_LEN(bar_spr8_metasprites),
|
|
144
|
+ .ti = bar_spr8_tiles,
|
|
145
|
+ .pa = bar_spr8_palettes,
|
|
146
|
+ .pa_n = bar_spr8_PALETTE_COUNT,
|
133
|
147
|
.pa_i = OAMF_CGB_PAL5,
|
134
|
|
- .cnt = bar_1_TILE_COUNT,
|
|
148
|
+ .cnt = bar_spr8_TILE_COUNT,
|
135
|
149
|
.off = TILE_NUM_START,
|
136
|
|
- .bank = BANK(bar_1),
|
|
150
|
+ .bank = BANK(bar_spr8),
|
137
|
151
|
},
|
138
|
|
- { // SPR_HEALTH_2
|
139
|
|
- .ms = bar_2_metasprites,
|
140
|
|
- .ti = bar_2_tiles,
|
141
|
|
- .pa = NULL,
|
142
|
|
- .pa_i = OAMF_CGB_PAL5,
|
143
|
|
- .cnt = bar_2_TILE_COUNT,
|
144
|
|
- .off = TILE_NUM_START,
|
145
|
|
- .bank = BANK(bar_2),
|
146
|
|
- },
|
147
|
|
- { // SPR_HEALTH_3
|
148
|
|
- .ms = bar_3_metasprites,
|
149
|
|
- .ti = bar_3_tiles,
|
150
|
|
- .pa = NULL,
|
151
|
|
- .pa_i = OAMF_CGB_PAL5,
|
152
|
|
- .cnt = bar_3_TILE_COUNT,
|
153
|
|
- .off = TILE_NUM_START,
|
154
|
|
- .bank = BANK(bar_3),
|
155
|
|
- },
|
156
|
|
- { // SPR_HEALTH_4
|
157
|
|
- .ms = bar_4_metasprites,
|
158
|
|
- .ti = bar_4_tiles,
|
159
|
|
- .pa = NULL,
|
160
|
|
- .pa_i = OAMF_CGB_PAL5,
|
161
|
|
- .cnt = bar_4_TILE_COUNT,
|
162
|
|
- .off = TILE_NUM_START,
|
163
|
|
- .bank = BANK(bar_4),
|
164
|
|
- },
|
165
|
|
- { // SPR_HEALTH_5
|
166
|
|
- .ms = bar_5_metasprites,
|
167
|
|
- .ti = bar_5_tiles,
|
168
|
|
- .pa = NULL,
|
169
|
|
- .pa_i = OAMF_CGB_PAL5,
|
170
|
|
- .cnt = bar_5_TILE_COUNT,
|
171
|
|
- .off = TILE_NUM_START,
|
172
|
|
- .bank = BANK(bar_5),
|
173
|
|
- },
|
174
|
|
- { // SPR_HEALTH_6
|
175
|
|
- .ms = bar_6_metasprites,
|
176
|
|
- .ti = bar_6_tiles,
|
177
|
|
- .pa = NULL,
|
178
|
|
- .pa_i = OAMF_CGB_PAL5,
|
179
|
|
- .cnt = bar_6_TILE_COUNT,
|
180
|
|
- .off = TILE_NUM_START,
|
181
|
|
- .bank = BANK(bar_6),
|
182
|
|
- },
|
183
|
|
- { // SPR_HEALTH_7
|
184
|
|
- .ms = bar_7_metasprites,
|
185
|
|
- .ti = bar_7_tiles,
|
186
|
|
- .pa = NULL,
|
187
|
|
- .pa_i = OAMF_CGB_PAL5,
|
188
|
|
- .cnt = bar_7_TILE_COUNT,
|
189
|
|
- .off = TILE_NUM_START,
|
190
|
|
- .bank = BANK(bar_7),
|
191
|
|
- },
|
192
|
|
- { // SPR_HEALTH_8
|
193
|
|
- .ms = bar_8_metasprites,
|
194
|
|
- .ti = bar_8_tiles,
|
195
|
|
- .pa = NULL,
|
196
|
|
- .pa_i = OAMF_CGB_PAL5,
|
197
|
|
- .cnt = bar_8_TILE_COUNT,
|
198
|
|
- .off = TILE_NUM_START,
|
199
|
|
- .bank = BANK(bar_8),
|
200
|
|
- },
|
201
|
|
- { // SPR_POWER_1
|
202
|
|
- .ms = bar_1_metasprites,
|
203
|
|
- .ti = bar_1_tiles,
|
|
152
|
+ { // SPR_POWER
|
|
153
|
+ .ms = bar_spr8_metasprites,
|
|
154
|
+ .ms_n = ARR_LEN(bar_spr8_metasprites),
|
|
155
|
+ .ti = bar_spr8_tiles,
|
204
|
156
|
.pa = power_palettes,
|
|
157
|
+ .pa_n = bar_spr8_PALETTE_COUNT,
|
205
|
158
|
.pa_i = OAMF_CGB_PAL6,
|
206
|
|
- .cnt = bar_1_TILE_COUNT,
|
207
|
|
- .off = SPR_HEALTH_1,
|
208
|
|
- .bank = BANK(bar_1),
|
209
|
|
- },
|
210
|
|
- { // SPR_POWER_2
|
211
|
|
- .ms = bar_2_metasprites,
|
212
|
|
- .ti = bar_2_tiles,
|
213
|
|
- .pa = NULL,
|
214
|
|
- .pa_i = OAMF_CGB_PAL6,
|
215
|
|
- .cnt = bar_2_TILE_COUNT,
|
216
|
|
- .off = SPR_HEALTH_2,
|
217
|
|
- .bank = BANK(bar_2),
|
218
|
|
- },
|
219
|
|
- { // SPR_POWER_3
|
220
|
|
- .ms = bar_3_metasprites,
|
221
|
|
- .ti = bar_3_tiles,
|
222
|
|
- .pa = NULL,
|
223
|
|
- .pa_i = OAMF_CGB_PAL6,
|
224
|
|
- .cnt = bar_3_TILE_COUNT,
|
225
|
|
- .off = SPR_HEALTH_3,
|
226
|
|
- .bank = BANK(bar_3),
|
227
|
|
- },
|
228
|
|
- { // SPR_POWER_4
|
229
|
|
- .ms = bar_4_metasprites,
|
230
|
|
- .ti = bar_4_tiles,
|
231
|
|
- .pa = NULL,
|
232
|
|
- .pa_i = OAMF_CGB_PAL6,
|
233
|
|
- .cnt = bar_4_TILE_COUNT,
|
234
|
|
- .off = SPR_HEALTH_4,
|
235
|
|
- .bank = BANK(bar_4),
|
236
|
|
- },
|
237
|
|
- { // SPR_POWER_5
|
238
|
|
- .ms = bar_5_metasprites,
|
239
|
|
- .ti = bar_5_tiles,
|
240
|
|
- .pa = NULL,
|
241
|
|
- .pa_i = OAMF_CGB_PAL6,
|
242
|
|
- .cnt = bar_5_TILE_COUNT,
|
243
|
|
- .off = SPR_HEALTH_5,
|
244
|
|
- .bank = BANK(bar_5),
|
245
|
|
- },
|
246
|
|
- { // SPR_POWER_6
|
247
|
|
- .ms = bar_6_metasprites,
|
248
|
|
- .ti = bar_6_tiles,
|
249
|
|
- .pa = NULL,
|
250
|
|
- .pa_i = OAMF_CGB_PAL6,
|
251
|
|
- .cnt = bar_6_TILE_COUNT,
|
252
|
|
- .off = SPR_HEALTH_6,
|
253
|
|
- .bank = BANK(bar_6),
|
254
|
|
- },
|
255
|
|
- { // SPR_POWER_7
|
256
|
|
- .ms = bar_7_metasprites,
|
257
|
|
- .ti = bar_7_tiles,
|
258
|
|
- .pa = NULL,
|
259
|
|
- .pa_i = OAMF_CGB_PAL6,
|
260
|
|
- .cnt = bar_7_TILE_COUNT,
|
261
|
|
- .off = SPR_HEALTH_7,
|
262
|
|
- .bank = BANK(bar_7),
|
263
|
|
- },
|
264
|
|
- { // SPR_POWER_8
|
265
|
|
- .ms = bar_8_metasprites,
|
266
|
|
- .ti = bar_8_tiles,
|
267
|
|
- .pa = NULL,
|
268
|
|
- .pa_i = OAMF_CGB_PAL6,
|
269
|
|
- .cnt = bar_8_TILE_COUNT,
|
270
|
|
- .off = SPR_HEALTH_8,
|
271
|
|
- .bank = BANK(bar_8),
|
|
159
|
+ .cnt = bar_spr8_TILE_COUNT,
|
|
160
|
+ .off = SPR_HEALTH,
|
|
161
|
+ .bank = BANK(bar_spr8),
|
|
162
|
+ },
|
|
163
|
+ { // SPR_EXPL
|
|
164
|
+ .ms = expl_spr16_metasprites,
|
|
165
|
+ .ms_n = ARR_LEN(expl_spr16_metasprites),
|
|
166
|
+ .ti = expl_spr16_tiles,
|
|
167
|
+ .pa = expl_spr16_palettes,
|
|
168
|
+ .pa_n = expl_spr16_PALETTE_COUNT,
|
|
169
|
+ .pa_i = OAMF_CGB_PAL0 | PALETTE_DYNAMIC_LOAD,
|
|
170
|
+ .cnt = expl_spr16_TILE_COUNT,
|
|
171
|
+ .off = TILE_NUM_START,
|
|
172
|
+ .bank = BANK(expl_spr16),
|
272
|
173
|
}
|
273
|
174
|
};
|