mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-04-19 00:23:20 +12:00
named animation functions/variables
This commit is contained in:
parent
e6d02b4b7b
commit
82512e4491
41 changed files with 781 additions and 642 deletions
|
|
@ -8,14 +8,14 @@ AnimateBoulderDust: ; 79f54 (1e:5f54)
|
|||
ld a, %11100100
|
||||
ld [rOBP1], a
|
||||
call LoadSmokeTileFourTimes
|
||||
callba WriteCutTreeBoulderDustAnimationOAMBlock
|
||||
callba WriteCutOrBoulderDustAnimationOAMBlock
|
||||
ld c, 8 ; number of steps in animation
|
||||
.loop
|
||||
push bc
|
||||
call GetMoveBoulderDustFunctionPointer
|
||||
ld bc, .returnAddress
|
||||
push bc
|
||||
ld c, $4
|
||||
ld c, 4
|
||||
jp [hl]
|
||||
.returnAddress
|
||||
ld a, [rOBP1]
|
||||
|
|
@ -36,7 +36,7 @@ GetMoveBoulderDustFunctionPointer: ; 79f92 (1e:5f92)
|
|||
ld b, $0
|
||||
add hl, bc
|
||||
ld a, [hli]
|
||||
ld [wd08a], a
|
||||
ld [wCoordAdjustmentAmount], a
|
||||
ld a, [hli]
|
||||
ld e, a
|
||||
ld a, [hli]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue