Prev: CE40 Up: Map Next: CE62
CE49: Remember an object's screen rectangle
Used by the routine at update_sprite_loop.
Called by the main loop at update_sprite_loop for every object before its handler runs: copies the current width, height and pixel position (+$18 to +$1B) to +$1C to +$1F. Whatever the handler then does, set_draw_objs_overlapped can compare the new rectangle with the one the object had at the start of the frame, and render_dynamic_objects knows which area to wipe.
Input
IX the object
save_2d_info CE49 LD A,(IX+$18) +$18..+$1B to +$1C..+$1F
CE4C LD (IX+$1C),A
CE4F LD A,(IX+$19)
CE52 LD (IX+$1D),A
CE55 LD A,(IX+$1A)
CE58 LD (IX+$1E),A
CE5B LD A,(IX+$1B)
CE5E LD (IX+$1F),A
CE61 RET
Prev: CE40 Up: Map Next: CE62