summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaveState <pgattic@gmail.com>2019-05-14 22:03:33 -0400
committerSaveState <pgattic@gmail.com>2019-05-14 22:03:33 -0400
commit91de63f6fcfaea2442fd0067853086efce31e885 (patch)
tree23363678578a44a604113d6c289082879b6ff0a3
parent4d480e2f53b2602585fc2e33e0d216e03e642292 (diff)
Created Running Shoes in Pokemon Red (markdown)
-rw-r--r--Running-Shoes-in-Pokemon-Red.md39
1 files changed, 39 insertions, 0 deletions
diff --git a/Running-Shoes-in-Pokemon-Red.md b/Running-Shoes-in-Pokemon-Red.md
new file mode 100644
index 0000000..0f61486
--- /dev/null
+++ b/Running-Shoes-in-Pokemon-Red.md
@@ -0,0 +1,39 @@
+Hi guys! This code was provided to me by [Luna](https://github.com/TheFakeMateo) so credit to that person!
+
+Anyway, what this code does is it makes the player run at double walking speed when holding B, 4x walking speed while holding B on bike, and the surfing speed is also double running speed.
+Here are the changes required in [home/overworld.asm](https://github.com/pret/pokered/blob/master/home/overworld.asm) starting at about line 284:
+```diff
+...
+
+ ld a, [wd736]
+ bit 6, a ; jumping a ledge?
+ jr nz, .normalPlayerSpriteAdvancement
++ ; Bike is normally 2x walking speed
++ ; Holding B makes the bike even faster
++ ld a, [hJoyHeld]
++ and B_BUTTON
++ jr z, .notMachBike
++ call DoBikeSpeedup
+ call DoBikeSpeedup
++.notMachBike
++ call DoBikeSpeedup
++ jr .notRunning
+ .normalPlayerSpriteAdvancement
++ ; surf at 2x walking speed
++ ld a, [wWalkBikeSurfState]
++ cp $02
++ jr z, .surfFaster
++ ; Holding B makes you run at 2x walking speed
++ ld a, [hJoyHeld]
++ and B_BUTTON
++ jr z, .notRunning
++.surfFaster
++ call DoBikeSpeedup
++.notRunning
++ ;original .normalPlayerSpriteAdvancement continues here
+ call AdvancePlayerSprite
+ ld a, [wWalkCounter]
+ and a
+...
+```
+Done! not too bad, huh? \ No newline at end of file