Prev: 29514 Up: Map Next: 29576
29546: Move Magic Knight one room to the right if possible
Used by the routine at 29468.
29546 LD HL,34838 Set instruction at 34821 to jump to 34838 (right-facing version of update Magic Knight's current frame routine)...
29549 LD (34822),HL ...
29552 LD DE,1 Set DE to one (dealing with current room's right exit)
29555 LD A,4 Load A with Magic Knight's new coordinate when he arrives in new room (4 is near left-hand side of room)
29557 CALL 29482 Change Magic Knight's current room (if possible) based upon right exit of his current room
29560 JR Z,29570 If Magic Knight's can't leave his current room then jump to 29570
29562 LD HL,34838 Set instruction at 34821 to jump to 34824 (right-facing version of update Magic Knight's current frame routine)...
29565 LD (34822),HL ...
29568 JR 29530 Set Magic Knight's x-coordinate and new room, draw the room and return
29570 LD A,2 Set Magic Knight's temporary-movement flags to 2 (Magic Knight can't move right because he can't leave his current room)...
29572 LD (23410),A ...
29575 RET Return
Prev: 29514 Up: Map Next: 29576