/
arenas.s
200 lines (190 loc) · 5.23 KB
/
arenas.s
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
.section .rodata
.align 2
.global arena_table
arena_table:
.word default, vtube, lozenge, gobacktospace, iceblocks, gnmmine, maelstrom
.word 0
@@@ Arena structure:
@@@ .byte flags (0000vhfb)
@@@ background
@@@ foreground
@@@ wrap h
@@@ wrap v
@@@ .byte gravity
@@@ .hword reserved
@@@ .byte spawn 1 x
@@@ .byte spawn 1 y
@@@ .byte spawn 2 x
@@@ .byte spawn 2 y
@@@ .word palette_ptr
@@@ .word midground_ptr
@@@ .word background_ptr if b bit set
@@@ .word foreground_ptr if f bit set
.local default, default_midground, default_palette, default_background
.align 2
default:
.byte 0b0101
.byte 50
.hword 0
.byte 42,100
.byte 90,4
.word default_palette
.word default_midground
.word default_background
default_midground:
.byte 30, 20
.incbin "data/arena_default_mg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_default_mg.tiles"
1:
default_background:
.byte 30, 20
.incbin "data/arena_default_bg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_default_bg.tiles"
1:
default_palette: .incbin "data/arena_default_mg.pal"
.local vtube, vtube_midground, vtube_palette, vtube_background
.align 2
vtube:
.byte 0b1001
.byte 50
.hword 0
.byte 42,100
.byte 90,4
.word vtube_palette
.word vtube_midground
.word vtube_background
vtube_midground:
.byte 30, 20
.incbin "data/arena_vtube_mg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_vtube_mg.tiles"
1:
vtube_background:
.byte 30, 20
.incbin "data/arena_vtube_bg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_vtube_bg.tiles"
1:
vtube_palette: .incbin "data/arena_vtube_mg.pal"
.local lozenge, lozenge_midground, lozenge_palette, lozenge_background
.align 2
lozenge:
.byte 0b0001
.byte 50
.hword 0
.byte 42,100
.byte 90,4
.word lozenge_palette
.word lozenge_midground
.word lozenge_background
lozenge_midground:
.byte 30, 20
.incbin "data/arena_lozenge_mg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_lozenge_mg.tiles"
1:
lozenge_background:
.byte 30, 20
.incbin "data/arena_lozenge_bg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_lozenge_bg.tiles"
1:
lozenge_palette: .incbin "data/arena_lozenge_mg.pal"
.local gobacktospace, gobacktospace_midground, gobacktospace_palette, gobacktospace_background
.align 2
gobacktospace:
.byte 0b0101
.byte 21
.hword 0
.byte 42,100
.byte 120,100
.word gobacktospace_palette
.word gobacktospace_midground
.word gobacktospace_background
gobacktospace_midground:
.byte 30, 20
.incbin "data/arena_gobacktospace_mg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_gobacktospace_mg.tiles"
1:
gobacktospace_background:
.byte 30, 20
.incbin "data/arena_gobacktospace_bg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_gobacktospace_bg.tiles"
1:
gobacktospace_palette: .incbin "data/arena_gobacktospace_mg.pal"
.local iceblocks, iceblocks_midground, iceblocks_palette, iceblocks_background
.align 2
iceblocks:
.byte 0b0101
.byte 45
.hword 0
.byte 42,100
.byte 120,100
.word iceblocks_palette
.word iceblocks_midground
.word iceblocks_background
iceblocks_midground:
.byte 30, 20
.incbin "data/arena_iceblocks_mg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_iceblocks_mg.tiles"
1:
iceblocks_background:
.byte 30, 20
.incbin "data/arena_iceblocks_bg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_iceblocks_bg.tiles"
1:
iceblocks_palette: .incbin "data/arena_iceblocks_mg.pal"
.local gnmmine, gnmmine_midground, gnmmine_palette, gnmmine_background
.align 2
gnmmine:
.byte 0b0101
.byte 55
.hword 0
.byte 42,100
.byte 120,100
.word gnmmine_palette
.word gnmmine_midground
.word gnmmine_background
gnmmine_midground:
.byte 30, 20
.incbin "data/arena_gnmmine_mg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_gnmmine_mg.tiles"
1:
gnmmine_background:
.byte 30, 20
.incbin "data/arena_gnmmine_bg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_gnmmine_bg.tiles"
1:
gnmmine_palette: .incbin "data/arena_gnmmine_mg.pal"
.local maelstrom, maelstrom_midground, maelstrom_palette, maelstrom_background
.align 2
maelstrom:
.byte 0b1101
.byte 40
.hword 0
.byte 42,100
.byte 120,100
.word maelstrom_palette
.word maelstrom_midground
.word maelstrom_background
maelstrom_midground:
.byte 30, 20
.incbin "data/arena_maelstrom_mg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_maelstrom_mg.tiles"
1:
maelstrom_background:
.byte 30, 20
.incbin "data/arena_maelstrom_bg.map"
.hword (1f - 0f)/32
0: .incbin "data/arena_maelstrom_bg.tiles"
1:
maelstrom_palette: .incbin "data/arena_maelstrom_mg.pal"