Prev: 45447 Up: Map Next: 45483
45471: Enter Room Right
Used by the routine at MoveActor.
Used by MoveActor when an actor has gone off the right of the screen. The actor is put at the left of the room to the right (the room number is one more, but the room stays in the same row of the map).
Input
IX Actor record
Output
E New X position
EnterRoomRight 45471 LD E,0 Set the X position to the left edge of the screen (0).
45473 LD A,(IX+1) Fetch the room of the actor.
45476 LD C,A Stash the room in C.
45477 INC A Move to the room on the right.
45478 LD (IX+1),A Set the new room of the actor.
45481 JR EnterRoomLeft_Row Jump to EnterRoomLeft_Row.
Prev: 45447 Up: Map Next: 45483