![]() |
Routines |
| Prev: AFE8 | Up: Map | Next: B027 |
|
Used by the routine at MoveActor.
Used by MoveActor when the actor is moving left. The new X position is found by taking the speed away from the current position. If it goes below zero the actor has moved into the room on the left.
|
||||||||||||
| MoveActorLeft | B01A | NEG | Make the speed positive. | |||||||||
| B01C | LD E,A | Stash the speed in E. | ||||||||||
| B01D | LD A,(IX+$03) | Fetch the X position of the actor. | ||||||||||
| B020 | SUB E | Subtract the speed. | ||||||||||
| B021 | LD E,A | Stash the new X position in E. | ||||||||||
| B022 | JP C,EnterRoomLeft | Jump to EnterRoomLeft if the actor has left the screen on the left. | ||||||||||
| B025 | JR MoveActor_Vertical | Jump to MoveActor_Vertical to move the actor vertically. | ||||||||||
| Prev: AFE8 | Up: Map | Next: B027 |