Prev: 52315 Up: Map Next: 52375
52362: Speed Player Up
Used by the routine at MovePlayer.
Raises the speed halfway towards TopSpeed and keeps it even.
Input
IX The address of the sheriff
Output
A The speed
Work out the average of the speed and TopSpeed.
SpeedPlayerUp 52362 LD A,(41503) Fetch TopSpeed.
52365 SUB (IX+5) Subtract the speed.
52368 SRL A Halve the difference.
52370 ADD A,(IX+5) Add the speed.
52373 AND %11111110 Keep it even.
Continue on to MovePlayerForward.
View the equivalent code in;
Prev: 52315 Up: Map Next: 52375