Prev: 45032 Up: Map Next: 45095
45082: Move Actor Left
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.
Input
A X velocity in pixels (negative)
D New Y position
IX Actor record
MoveActorLeft 45082 NEG Make the speed positive.
45084 LD E,A Stash the speed in E.
45085 LD A,(IX+3) Fetch the X position of the actor.
45088 SUB E Subtract the speed.
45089 LD E,A Stash the new X position in E.
45090 JP C,EnterRoomLeft Jump to EnterRoomLeft if the actor has left the screen on the left.
45093 JR MoveActor_Vertical Jump to MoveActor_Vertical to move the actor vertically.
Prev: 45032 Up: Map Next: 45095