![]() |
Routines |
| Prev: DC43 | Up: Map | Next: DC71 |
|
Used by the routine at UpdatePlayerLegs.
Moves the player. When the control to move forward is used, the speed of the player is raised towards the maximum speed in MaximumSpeed. Otherwise the player slows down and stops at a position that is a multiple of eight units from the edge of a cell.
|
||||||||||
|
Walk if bit 2 is set.
|
||||||||||
| MovePlayer | DC60 | BIT 2,E | Jump to SpeedPlayerUp if the control to move forward is used. | |||||||
| DC62 | JR NZ,SpeedPlayerUp | |||||||||
|
Otherwise slow down in the direction of the heading.
|
||||||||||
| DC64 | LD A,(IX+$06) | Fetch the direction. | ||||||||
| DC67 | RLCA | Move the direction into the lowest two bits. | ||||||||
| DC68 | RLCA | |||||||||
| DC69 | AND %00000011 | Keep only the direction. | ||||||||
|
Jump to the routine for the direction, to find the part of the position that is along the way that the player is moving.
|
||||||||||
| DC6B | LD BC,$DC71 | Point BC at SlowDownRoutines. | ||||||||
| DC6E | JP JumpToTableRoutine | Jump to JumpToTableRoutine. | ||||||||
|
View the equivalent code in;
|
||||||||||
| Prev: DC43 | Up: Map | Next: DC71 |