Prev: 53073 Up: Map Next: 53150
53115: Erase Magic Knight from display, advance his current position then redraw
Used by the routines at 27136 and 27357.
53115 PUSH IX Store IX
53117 LD DE,23909 Point DE at table of background bitmap data
53120 HALT Wait for interrupt
53121 CALL 53076 Restore background bitmap data (i.e. remove Magic Knight bitmap data from display)
53124 LD A,(23705) If player-attribute-update flag is set...
53127 OR A ...
53128 CALL NZ,53278 ...then restore background attribute data at Magic Knight's current location
53131 POP IX Restore IX
53133 LD HL,25156 Point HL at Magic Knight's current x-coordinate
53136 LD A,(25160) Load A with Magic Knight's current x-velocity...
53139 ADD A,(HL) ...and add to this Magic Knight's current x-coordinate
53140 LD (HL),A Set this as Magic Knight's new x-coordinate
53141 INC HL Advance HL to Magic Knight's y-coordinate
53142 LD A,(25161) Load A with Magic Knight's current y-velocity...
53145 ADD A,(HL) ...and add to this Magic Knight's current y-coordinate
53146 LD (HL),A Set this as Magic Knight's new y-coordinate
53147 XOR A Set A to zero (see trivia)
53148 JR 53152 Store background attributes if appropriate, then draw Magic Knight to display, then return
Prev: 53073 Up: Map Next: 53150