diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-05-31 13:09:33 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-05-31 13:09:33 -0400 |
commit | c2ad19728aad7df0f5ed7a39dc7dc37fe21c2c74 (patch) | |
tree | 191e3562997c6f502b8c1697ae9cf2e7a1b1d717 | |
parent | 7b2eb6b2524db4c441e8c050e5dc703601575b23 (diff) |
Reformat MoveBoulderDustFunctionPointerTable
-rw-r--r-- | engine/overworld/dust_smoke.asm | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/engine/overworld/dust_smoke.asm b/engine/overworld/dust_smoke.asm index a20a0591..bb291567 100644 --- a/engine/overworld/dust_smoke.asm +++ b/engine/overworld/dust_smoke.asm @@ -51,22 +51,16 @@ GetMoveBoulderDustFunctionPointer: pop hl ret -MoveBoulderDustFunctionPointerTable: -; facing down - db $FF,$00 - dw AdjustOAMBlockYPos - -; facing up - db $01,$00 - dw AdjustOAMBlockYPos +boulder_dust_adjust: MACRO + db \1, \2 ; coords + dw \3 ; function +ENDM -; facing left - db $01,$01 - dw AdjustOAMBlockXPos - -; facing right - db $FF,$01 - dw AdjustOAMBlockXPos +MoveBoulderDustFunctionPointerTable: + boulder_dust_adjust -1, 0, AdjustOAMBlockYPos ; down + boulder_dust_adjust 1, 0, AdjustOAMBlockYPos ; up + boulder_dust_adjust 1, 1, AdjustOAMBlockXPos ; left + boulder_dust_adjust -1, 1, AdjustOAMBlockXPos ; right LoadSmokeTileFourTimes:: ld hl, vChars1 tile $7c |