summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Chrissomallis <46578092+Nick-PC@users.noreply.github.com>2021-03-29 08:29:38 -0400
committerNick Chrissomallis <46578092+Nick-PC@users.noreply.github.com>2021-03-29 08:29:38 -0400
commitba0c2451aba8e37bc8db8750bb800c57f334215b (patch)
tree3d60ea99e0926f3277b55c0b2ed21a9f3ed5d4eb
parenta02e582e0fee57ea88d0d9f5a9450937b1ab3c1e (diff)
Fixed a formatting oddity in the player_movement.asm diff section
-rw-r--r--Add-spinner-tiles-from-Generation-I-Rocket-Hideout.md16
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