More work interpreting the sprite engine

This commit is contained in:
PikalaxALT
2015-12-02 13:24:18 -05:00
parent 92a8c491c3
commit be082943ed
17 changed files with 1165 additions and 1023 deletions

View File

@@ -30,7 +30,7 @@ Special_CelebiShrineEvent: ; 4989a
inc d
push de
ld a, $90
ld [wc3b5], a
ld [wOAMRetentionSize], a
callba DoNextFrameForAllSprites
call Function49935
ld c, 2

View File

@@ -660,7 +660,7 @@ Function16a66: ; 16a66
xor a
ld [Buffer1], a
predef FillMoves
callba Function170bf
callba InitEggMoves
ld hl, wEggMonID
ld a, [PlayerID]
ld [hli], a

View File

@@ -36,7 +36,7 @@ ShakeHeadbuttTree: ; 8c80a
add hl, bc
ld [hl], $84
ld a, 36 * 4
ld [wc3b5], a
ld [wOAMRetentionSize], a
callba DoNextFrameForAllSprites
call GetHeadbuttTreeRelativeLocation
ld a, $20
@@ -51,7 +51,7 @@ ShakeHeadbuttTree: ; 8c80a
jr z, .done
dec [hl]
ld a, 36 * 4
ld [wc3b5], a
ld [wOAMRetentionSize], a
callba DoNextFrameForAllSprites
call DelayFrame
jr .loop
@@ -68,7 +68,7 @@ ShakeHeadbuttTree: ; 8c80a
call ByteFill
ld de, Font
ld hl, VTiles1
lb bc, BANK(Font), $c
lb bc, BANK(Font), 12
call Get1bpp
call ReplaceKrisSprite
ret
@@ -124,8 +124,8 @@ OWCutAnimation: ; 8c940
ld a, [wJumptableIndex]
bit 7, a
jr nz, .finish
ld a, $90
ld [wc3b5], a
ld a, 36 * 4
ld [wOAMRetentionSize], a
callab DoNextFrameForAllSprites
call OWCutJumptable
call DelayFrame
@@ -341,8 +341,8 @@ FlyFromAnim: ; 8caed
ld a, [wJumptableIndex]
bit 7, a
jr nz, .exit
ld a, $0
ld [wc3b5], a
ld a, 0 * 4
ld [wOAMRetentionSize], a
callab DoNextFrameForAllSprites
call Function8cbc8
call DelayFrame
@@ -379,8 +379,8 @@ FlyToAnim: ; 8cb33
ld a, [wJumptableIndex]
bit 7, a
jr nz, .exit
ld a, $0
ld [wc3b5], a
ld a, 0 * 4
ld [wOAMRetentionSize], a
callab DoNextFrameForAllSprites
call Function8cbc8
call DelayFrame