ref: c2ad19728aad7df0f5ed7a39dc7dc37fe21c2c74
parent: 7b2eb6b2524db4c441e8c050e5dc703601575b23
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Mon May 31 09:09:33 EDT 2021
Reformat MoveBoulderDustFunctionPointerTable
--- a/engine/overworld/dust_smoke.asm
+++ b/engine/overworld/dust_smoke.asm
@@ -51,22 +51,16 @@
pop hl
ret
-MoveBoulderDustFunctionPointerTable:
-; facing down
- db $FF,$00
- dw AdjustOAMBlockYPos
+boulder_dust_adjust: MACRO
+ db \1, \2 ; coords
+ dw \3 ; function
+ENDM
-; facing up
- db $01,$00
- dw AdjustOAMBlockYPos
-
-; 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