diff options
-rw-r--r-- | Add-spinner-tiles-from-Generation-I-Rocket-Hideout.md | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Add-spinner-tiles-from-Generation-I-Rocket-Hideout.md b/Add-spinner-tiles-from-Generation-I-Rocket-Hideout.md index 9c01572..51b2bbc 100644 --- a/Add-spinner-tiles-from-Generation-I-Rocket-Hideout.md +++ b/Add-spinner-tiles-from-Generation-I-Rocket-Hideout.md @@ -88,6 +88,9 @@ Now that we have our constants in order, we have to add functionality specific t Edit [engine/overworld/player_movement.asm](../blob/master/engine/overworld/player_movement.asm) ```diff DoPlayerMovement:: + + ... + jr z, .bump cp 2 jr z, .bump @@ -101,7 +104,6 @@ DoPlayerMovement:: ... - DoPlayerMovement:: xor a ret @@ -121,10 +123,9 @@ DoPlayerMovement:: .TrySurf: ... - - DoPlayerMovement:: + dw .TurningStep - dw .BackJumpStep + dw .BackJumpStep dw .FinishFacing + dw .SpinStep @@ -133,7 +134,6 @@ DoPlayerMovement:: ... - DoPlayerMovement:: db $80 | UP db $80 | LEFT db $80 | RIGHT @@ -147,10 +147,7 @@ DoPlayerMovement:: ld a, 0 ... - - DoPlayerMovement:: - ret - + .CheckForced: -; When sliding on ice, input is forced to remain in the same direction. +; When sliding on ice or spinning, input is forced to remain in the same direction. @@ -166,7 +163,6 @@ DoPlayerMovement:: ... - DoPlayerMovement:: cp 0 ret z |