Prev: 28291 Up: Map Next: 28346
28323: Move Magic Knight one room to the left if possible
Used by the routine at 28277.
Input
A (Entry at 28333 only) Magic Knight's new x-coordinate (pixels)
28323 LD DE,0 Set DE to zero (dealing with current room's left exit)
28326 LD A,228 Load A with Magic Knight's new x-coordinate when he arrives in new room (228 is near right-hand side of room)
28328 CALL 28291 Change Magic Knight's current room (if possible) based upon left exit of his current room
28331 JR Z,28340 If Magic Knight can't leave his current room then jump to 28340
This entry point is used by the routine at 28346.
28333 LD (25156),A Set Magic Knight's x-coordinate
28336 CALL 27765 Draw Magic Knight's current room, draw objects and characters and initialise room-specific data
28339 RET Return
28340 LD A,1 Set Magic Knight's temporary-movement flags to 1 (Magic Knight can't move left because he can't leave his current room)...
28342 LD (23463),A ...
28345 RET Return
Prev: 28291 Up: Map Next: 28346