mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
Reformat MoveBoulderDustFunctionPointerTable
This commit is contained in:
parent
7b2eb6b252
commit
c2ad19728a
|
@ -51,22 +51,16 @@ GetMoveBoulderDustFunctionPointer:
|
||||||
pop hl
|
pop hl
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
boulder_dust_adjust: MACRO
|
||||||
|
db \1, \2 ; coords
|
||||||
|
dw \3 ; function
|
||||||
|
ENDM
|
||||||
|
|
||||||
MoveBoulderDustFunctionPointerTable:
|
MoveBoulderDustFunctionPointerTable:
|
||||||
; facing down
|
boulder_dust_adjust -1, 0, AdjustOAMBlockYPos ; down
|
||||||
db $FF,$00
|
boulder_dust_adjust 1, 0, AdjustOAMBlockYPos ; up
|
||||||
dw AdjustOAMBlockYPos
|
boulder_dust_adjust 1, 1, AdjustOAMBlockXPos ; left
|
||||||
|
boulder_dust_adjust -1, 1, AdjustOAMBlockXPos ; right
|
||||||
; facing up
|
|
||||||
db $01,$00
|
|
||||||
dw AdjustOAMBlockYPos
|
|
||||||
|
|
||||||
; facing left
|
|
||||||
db $01,$01
|
|
||||||
dw AdjustOAMBlockXPos
|
|
||||||
|
|
||||||
; facing right
|
|
||||||
db $FF,$01
|
|
||||||
dw AdjustOAMBlockXPos
|
|
||||||
|
|
||||||
LoadSmokeTileFourTimes::
|
LoadSmokeTileFourTimes::
|
||||||
ld hl, vChars1 tile $7c
|
ld hl, vChars1 tile $7c
|
||||||
|
|
Loading…
Reference in a new issue