-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbattle_anims.asm
301 lines (252 loc) · 4.89 KB
/
battle_anims.asm
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
anim_wait: MACRO
if \1 >= $d0
fail "anim_wait argument must be less than $d0."
endc
db \1
ENDM
; BattleAnimCommands indexes (see engine/battle_anims/anim_commands.asm)
enum_start $d0
enum anim_obj_command ; $d0
anim_obj: MACRO
db anim_obj_command
if _NARG <= 4
db \1 ; object
db \2 ; x
db \3 ; y
db \4 ; param
else
db \1 ; object
db (\2) * 8 + (\3) ; x_tile, x
db (\4) * 8 + (\5) ; y_tile, y
db \6 ; param
endc
ENDM
enum anim_1gfx_command ; $d1
anim_1gfx: MACRO
db anim_1gfx_command
db \1 ; gfx1
ENDM
enum anim_2gfx_command ; $d2
anim_2gfx: MACRO
db anim_2gfx_command
db \1 ; gfx1
db \2 ; gfx2
ENDM
enum anim_3gfx_command ; $d3
anim_3gfx: MACRO
db anim_3gfx_command
db \1 ; gfx1
db \2 ; gfx2
db \3 ; gfx3
ENDM
enum anim_4gfx_command ; $d4
anim_4gfx: MACRO
db anim_4gfx_command
db \1 ; gfx1
db \2 ; gfx2
db \3 ; gfx3
db \4 ; gfx4
ENDM
enum anim_5gfx_command ; $d5
anim_5gfx: MACRO
db anim_5gfx_command
db \1 ; gfx1
db \2 ; gfx2
db \3 ; gfx3
db \4 ; gfx4
db \5 ; gfx5
ENDM
enum anim_incobj_command ; $d6
anim_incobj: MACRO
db anim_incobj_command
db \1 ; object_id
ENDM
enum anim_setobj_command ; $d7
anim_setobj: MACRO
db anim_setobj_command
db \1 ; object_id
db \2 ; value
ENDM
enum anim_incbgeffect_command ; $d8
anim_incbgeffect: MACRO
db anim_incbgeffect_command
db \1 ; effect
ENDM
enum anim_enemyfeetobj_command ; $d9
anim_enemyfeetobj: MACRO
db anim_enemyfeetobj_command
ENDM
enum anim_playerheadobj_command ; $da
anim_playerheadobj: MACRO
db anim_playerheadobj_command
ENDM
enum anim_checkpokeball_command ; $db
anim_checkpokeball: MACRO
db anim_checkpokeball_command
ENDM
enum anim_transform_command ; $dc
anim_transform: MACRO
db anim_transform_command
ENDM
enum anim_raisesub_command ; $dd
anim_raisesub: MACRO
db anim_raisesub_command
ENDM
enum anim_dropsub_command ; $de
anim_dropsub: MACRO
db anim_dropsub_command
ENDM
enum anim_resetobp0_command ; $df
anim_resetobp0: MACRO
db anim_resetobp0_command
ENDM
enum anim_sound_command ; $e0
anim_sound: MACRO
db anim_sound_command
db (\1 << 2) | \2 ; duration, tracks
db \3 ; sound_id
ENDM
enum anim_cry_command ; $e1
anim_cry: MACRO
db anim_cry_command
db \1 ; pitch
ENDM
enum anim_minimizeopp_command ; $e2
anim_minimizeopp: MACRO
db anim_minimizeopp_command
ENDM
enum anim_oamon_command ; $e3
anim_oamon: MACRO
db anim_oamon_command
ENDM
enum anim_oamoff_command ; $e4
anim_oamoff: MACRO
db anim_oamoff_command
ENDM
enum anim_clearobjs_command ; $e5
anim_clearobjs: MACRO
db anim_clearobjs_command
ENDM
enum anim_beatup_command ; $e6
anim_beatup: MACRO
db anim_beatup_command
ENDM
enum anim_0xe7_command ; $e7
anim_0xe7: MACRO
db anim_0xe7_command
ENDM
enum anim_updateactorpic_command ; $e8
anim_updateactorpic: MACRO
db anim_updateactorpic_command
ENDM
enum anim_minimize_command ; $e9
anim_minimize: MACRO
db anim_minimize_command
ENDM
enum anim_0xea_command ; $ea
anim_0xea: MACRO
db anim_0xea_command
ENDM
enum anim_0xeb_command ; $eb
anim_0xeb: MACRO
db anim_0xeb_command
ENDM
enum anim_0xec_command ; $ec
anim_0xec: MACRO
db anim_0xec_command
ENDM
enum anim_0xed_command ; $ed
anim_0xed: MACRO
db anim_0xed_command
ENDM
enum anim_if_param_and_command ; $ee
anim_if_param_and: MACRO
db anim_if_param_and_command
db \1 ; value
dw \2 ; address
ENDM
enum anim_jumpuntil_command ; $ef
anim_jumpuntil: MACRO
db anim_jumpuntil_command
dw \1 ; address
ENDM
enum anim_bgeffect_command ; $f0
anim_bgeffect: MACRO
db anim_bgeffect_command
db \1 ; effect
db \2 ; unknown
db \3 ; unknown
db \4 ; unknown
ENDM
enum anim_bgp_command ; $f1
anim_bgp: MACRO
db anim_bgp_command
db \1 ; colors
ENDM
enum anim_obp0_command ; $f2
anim_obp0: MACRO
db anim_obp0_command
db \1 ; colors
ENDM
enum anim_obp1_command ; $f3
anim_obp1: MACRO
db anim_obp1_command
db \1 ; colors
ENDM
enum anim_clearsprites_command ; $f4
anim_clearsprites: MACRO
db anim_clearsprites_command
ENDM
enum anim_0xf5_command ; $f5
anim_0xf5: MACRO
db anim_0xf5_command
ENDM
enum anim_0xf6_command ; $f6
anim_0xf6: MACRO
db anim_0xf6_command
ENDM
enum anim_0xf7_command ; $f7
anim_0xf7: MACRO
db anim_0xf7_command
ENDM
enum anim_if_param_equal_command ; $f8
anim_if_param_equal: MACRO
db anim_if_param_equal_command
db \1 ; value
dw \2 ; address
ENDM
enum anim_setvar_command ; $f9
anim_setvar: MACRO
db anim_setvar_command
db \1 ; value
ENDM
enum anim_incvar_command ; $fa
anim_incvar: MACRO
db anim_incvar_command
ENDM
enum anim_if_var_equal_command ; $fb
anim_if_var_equal: MACRO
db anim_if_var_equal_command
db \1 ; value
dw \2 ; address
ENDM
enum anim_jump_command ; $fc
anim_jump: MACRO
db anim_jump_command
dw \1 ; address
ENDM
enum anim_loop_command ; $fd
anim_loop: MACRO
db anim_loop_command
db \1 ; count
dw \2 ; address
ENDM
enum anim_call_command ; $fe
anim_call: MACRO
db anim_call_command
dw \1 ; address
ENDM
enum anim_ret_command ; $ff
anim_ret: MACRO
db anim_ret_command
ENDM