Split "gfx anims" into "pic anims" and "sprite anims"

Fixes #876
This commit is contained in:
Rangi
2022-06-22 21:07:46 -04:00
committed by Rangi
parent d3da137de8
commit a2e8f078a4
11 changed files with 1079 additions and 1059 deletions

View File

@@ -80,9 +80,9 @@ endr
BattleAnimOAMUpdate:
call InitBattleAnimBuffer
call GetBattleAnimFrame
cp dowait_command
cp oamwait_command
jp z, .done
cp delanim_command
cp oamdelete_command
jp z, .delete
push af

View File

@@ -29,9 +29,9 @@ GetBattleAnimFrame:
inc [hl]
call .GetPointer
ld a, [hli]
cp dorestart_command
cp oamrestart_command
jr z, .restart
cp endanim_command
cp oamend_command
jr z, .repeat_last
push af
@@ -44,7 +44,7 @@ GetBattleAnimFrame:
pop hl
.okay
ld a, [hl]
and Y_FLIP << 1 | X_FLIP << 1 ; The << 1 is compensated in the "frame" macro
and Y_FLIP << 1 | X_FLIP << 1 ; The << 1 is compensated in the "oamframe" macro
srl a
ld [wBattleAnimTempFrameOAMFlags], a
pop af