-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathth13.anmm
More file actions
492 lines (460 loc) · 7.79 KB
/
th13.anmm
File metadata and controls
492 lines (460 loc) · 7.79 KB
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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
!anmmap
# mappings from zero318
!ins_names
## Section A
0 nop
1 anm_delete
2 anm_static
3 anm_halt
4 anm_halt_invisible
5 interrupt_label
6 wait
7 interrupt_return
## Section B
100 set_int
101 set_float
102 math_int_add_assign
103 math_float_add_assign
104 math_int_sub_assign
105 math_float_sub_assign
106 math_int_mul_assign
107 math_float_mul_assign
108 math_int_div_assign
109 math_float_div_assign
110 math_int_mod_assign
111 math_float_mod_assign
112 math_int_add
113 math_float_add
114 math_int_sub
115 math_float_sub
116 math_int_mul
117 math_float_mul
118 math_int_div
119 math_float_div
120 math_int_mod
121 math_float_mod
122 set_int_rand_bound
123 set_float_rand_bound
124 math_sin
125 math_cos
126 math_tan
127 math_acos
128 math_atan
129 math_reduce_angle
130 math_circle_pos_fast
131 math_circle_pos_rand
## Section C
200 jump
201 _loop
202 jump_int_equ
203 jump_float_equ
204 jump_int_neq
205 jump_float_neq
206 jump_int_lss
207 jump_float_lss
208 jump_int_leq
209 jump_float_leq
210 jump_int_gre
211 jump_float_gre
212 jump_int_geq
213 jump_float_geq
## Section D
300 sprite_set
301 sprite_set_rand_bound
302 render_mode
303 blend_mode
304 layer
305 anm_flag_disable_z_write
306 __anm_flag_unknown_std_A
307 rand_mode
308 scale_flip_x
309 scale_flip_y
310 anm_flag_visible
311 resample_mode
312 scroll_mode
## Section E
400 move_position
401 rotation
402 scale
403 alpha
404 color
405 alpha_gradient
406 color_gradient
407 move_position_interp
408 color_interp
409 alpha_interp
410 rotation_interp
411 spin_interp
412 scale_interp
413 color_gradient_interp
414 alpha_gradient_interp
415 rotation_speed
416 scale_speed
417 alpha_interp_linear
418 sprite_window
419 __anm_flag_continual_sprite_window
420 move_bezier
421 anchor_mode
422 position_inherit
423 color_mode
424 anm_flag_auto_rotate
425 scroll_speed_x
426 scroll_speed_y
427 scroll_speed_x_interp
428 scroll_speed_y_interp
429 uv_scale
430 uv_scale_interp
431 __anm_flag_unknown_T
432 anm_flag_slowdown_immune
433 move_velocity_interp
434 scale2
435 scale2_interp
436 anchor_offset
437 rotation_mode
438 origin_mode
## Section F
500 anm_create_child_back
501 anm_create_child_ui_back
502 anm_create_child_front
503 anm_create_child_ui_front
504 anm_create_back
505 anm_create_child_back_rel
506 anm_create_back_rel
507 __anm_flag_treat_as_root
508 effect_create_special
## Section G
600 textured_ring
601 textured_arc_A
602 textured_arc_B
603 polygon_rectangle
604 polygon
605 polygon_hollow
606 polygon_rectangle_gradient
607 polygon_rectangle_antialias
608 polygon_rectangle_gradient_antialias
!ins_signatures
## Section A
0
1
2
3
4
5 S(imm)
6 S
7
## Section B
100 SS
101 ff
102 SS
103 ff
104 SS
105 ff
106 SS
107 ff
108 SS
109 ff
110 SS
111 ff
112 SSS
113 fff
114 SSS
115 fff
116 SSS
117 fff
118 SSS
119 fff
120 SSS
121 fff
122 SU
123 ff
124 ff
125 ff
126 ff
127 ff
128 ff
129 f
130 ffff
131 ffff
## Section C
200 ot
201 Sot
202 SSot
203 ffot
204 SSot
205 ffot
206 SSot
207 ffot
208 SSot
209 ffot
210 SSot
211 ffot
212 SSot
213 ffot
## Section D
300 n
301 nU
302 b(imm;enum="RenderMode")---
303 b(imm;enum="BlendMode")---
304 b(imm;enum="AnmLayerIndex")---
305 b(imm;enum="bool")--- ## b(imm;enum="BitBool")---
306 b(imm;enum="bool")--- ## b(imm;enum="BitBool")---
307 b(imm;enum="RandMode")---
308
309
310 b(imm;enum="bool")--- ## b(imm;enum="BitBool")---
311 c(imm;enum="ResampleMode")---
312 U(enum="ScrollMode")U(enum="ScrollMode")
## Section E
400 fff
401 fff
402 ff
403 C
404 CCC
405 C
406 CCC
407 SU(imm;enum="InterpMode")fff
408 Sb(imm;enum="InterpMode")---CCC
409 Sb(imm;enum="InterpMode")---C
410 SU(imm;enum="InterpMode")fff
411 SU(imm;enum="InterpMode")f
412 Sb(imm;enum="InterpMode")---ff
413 Sb(imm;enum="InterpMode")---CCC
414 Sb(imm;enum="InterpMode")---C
415 fff
416 ff
417 b(imm;hex)---S
418
419 U(enum="bool") ## U(enum="BitBool")
420 Sfffffffff
421 b(imm;enum="AnchorModeX")-b(imm;enum="AnchorModeY")-
422
423 b(imm;enum="ColorMode")---
424 b(imm;enum="bool")---
425 f
426 f
427 SU(imm;enum="InterpMode")f
428 SU(imm;enum="InterpMode")f
429 ff
430 Sb(imm;enum="InterpMode")---ff
431 b(imm;enum="bool")--- ## b(imm;enum="BitBool")---
432 U(enum="bool") ## U(enum="BitBool")
433 SU(imm;enum="InterpMode")ff
434 ff
435 Sb(imm;enum="InterpMode")---ff
436 ff
437 U(enum="RotationMode")
438 b(imm;enum="OriginMode")---
## Section F
500 N
501 N
502 N
503 N
504 N
505 Nff
506 Nff
507 U(enum="bool") ## U(enum="BitBool")
508 U(enum="EffectID")
## Section G
600 U
601 U
602 U
603 ff
604 fS
605 fS
606 ff
607 ff
608 ff
!gvar_names
10000 I0
10001 I1
10002 I2
10003 I3
10004 F0
10005 F1
10006 F2
10007 F3
10008 IC0
10009 IC1
10010 RAND_ANGLE
10011 RAND_FLOAT
10012 RAND_FLOAT_SIGNED
10013 SELF_X
10014 SELF_Y
10015 SELF_Z
10016 CAMERA_POS_X
10017 CAMERA_POS_Y
10018 CAMERA_POS_Z
10019 CAMERA_FACING_X
10020 CAMERA_FACING_Y
10021 CAMERA_FACING_Z
10022 RAND_UINT
10023 SELF_X_ROT
10024 SELF_Y_ROT
10025 SELF_Z_ROT
10026 __ROOT_VM_Z_ROT
10027 RAND_SCALE
10028 RAND_ANGLE_SCALE
10029 RAND_UINT_RANGE
10030 RAND_ANGLE_REPLAY
10031 RAND_FLOAT_REPLAY
10032 RAND_FLOAT_SIGNED_REPLAY
!gvar_types
10000 $
10001 $
10002 $
10003 $
10004 %
10005 %
10006 %
10007 %
10008 $
10009 $
10010 %
10011 %
10012 %
10013 %
10014 %
10015 %
10016 %
10017 %
10018 %
10019 %
10020 %
10021 %
10022 $
10023 %
10024 %
10025 %
10026 %
10027 %
10028 %
10029 $
10030 %
10031 %
10032 %
!ins_intrinsics
5 Interrupt()
100 AssignOp(op="=";type="int")
101 AssignOp(op="=";type="float")
102 AssignOp(op="+=";type="int")
103 AssignOp(op="+=";type="float")
104 AssignOp(op="-=";type="int")
105 AssignOp(op="-=";type="float")
106 AssignOp(op="*=";type="int")
107 AssignOp(op="*=";type="float")
108 AssignOp(op="/=";type="int")
109 AssignOp(op="/=";type="float")
110 AssignOp(op="%=";type="int")
111 AssignOp(op="%=";type="float")
112 BinOp(op="+";type="int")
113 BinOp(op="+";type="float")
114 BinOp(op="-";type="int")
115 BinOp(op="-";type="float")
116 BinOp(op="*";type="int")
117 BinOp(op="*";type="float")
118 BinOp(op="/";type="int")
119 BinOp(op="/";type="float")
120 BinOp(op="%";type="int")
121 BinOp(op="%";type="float")
124 UnOp(op="sin";type="float")
125 UnOp(op="cos";type="float")
126 UnOp(op="tan";type="float")
127 UnOp(op="acos";type="float")
128 UnOp(op="atan";type="float")
200 Jmp()
201 CountJmp(op=">")
202 CondJmp(op="==";type="int")
203 CondJmp(op="==";type="float")
204 CondJmp(op="!=";type="int")
205 CondJmp(op="!=";type="float")
206 CondJmp(op="<";type="int")
207 CondJmp(op="<";type="float")
208 CondJmp(op="<=";type="int")
209 CondJmp(op="<=";type="float")
210 CondJmp(op=">";type="int")
211 CondJmp(op=">";type="float")
212 CondJmp(op=">=";type="int")
213 CondJmp(op=">=";type="float")
!enum(name="InterpMode")
0 Linear
1 AccelerateSlow
2 Accelerate
3 AccelerateFast
4 DecelerateSlow
5 Decelerate
6 DecelerateFast
7 ConstantVelocity
8 Bezier
9 AccelDecelSlow
10 AccelDecel
11 AccelDecelFast
12 DecelAccelSlow
13 DecelAccel
14 DecelAccelFast
15 Initial
16 Final
17 ConstantAccel
18 DecelerateSine
19 AccelerateSine
20 DecelAccelSine
21 AccelDecelSine
22 __AccelParabolaA
23 __AccelParabolaB
24 __AccelParabolaC
25 __AccelParabolaD
26 __AccelParabolaE
27 __DecelParabolaA
28 __DecelParabolaB
29 __DecelParabolaC
30 __DecelParabolaD
31 __DecelParabolaE
!enum(name="RenderMode")
!enum(name="BlendMode")
0 Normal
1 Additive
2 BlendMode2
3 BlendMode3
4 BlendMode4
5 BlendMode5
6 BlendMode6
7 BlendMode7
8 BlendMode8
9 BlendMode9
!enum(name="RandMode")
0 ReplayRNG
1 AnimationRNG
!enum(name="ResampleMode")
0 LinearInterp
1 NearestPoint
!enum(name="ScrollMode")
0 Wrap
1 Clamp
2 Mirror
!enum(name="AnchorModeX")
0 Center
1 Left
2 Right
!enum(name="AnchorModeY")
0 Center
1 Top
2 Bottom
!enum(name="ColorMode")
0 ColorOnly
1 GradientColorOnly
2 HorizontalGradient
3 VerticalGradient
4 ColorMode4
!enum(name="RotationMode")
0 XYZ
1 XZY
2 YXZ
3 YZX
4 ZXY
5 ZYX
6 None
!enum(name="OriginMode")
0 OriginMode0
1 OriginMode1
2 OriginMode2
!enum(name="AnmLayerIndex")
!enum(name="EffectID")