![]() |
Routines |
| Prev: CC5B | Up: Map | Next: CC97 |
|
Used by the routine at MovePlayer.
Raises the speed halfway towards TopSpeed and keeps it even.
|
||||||||||||
|
Work out the average of the speed and TopSpeed.
|
||||||||||||
| SpeedPlayerUp | CC8A | LD A,($A21F) | Fetch TopSpeed. | |||||||||
| CC8D | SUB (IX+$05) | Subtract the speed. | ||||||||||
| CC90 | SRL A | Halve the difference. | ||||||||||
| CC92 | ADD A,(IX+$05) | Add the speed. | ||||||||||
| CC95 | AND %11111110 | Keep it even. | ||||||||||
|
Continue on to MovePlayerForward.
View the equivalent code in;
|
||||||||||||
| Prev: CC5B | Up: Map | Next: CC97 |