Prev: D2E1 Up: Map Next: D319
D303: Move to the next piece's collision box and back to the current-piece record
Used by the routine at draw_landscape.
Called by draw_landscape once a piece's visibility has been decided. Moves the pointer collision_object on by the five bytes of a box, points IX back at the current-piece record current_piece, clears its "first step set up" byte (+1) and stores the piece's direction at +3.
Input
IX Box just used
B' Direction (in the other register set)
next_piece_box D303 LD DE,$0005 Advance the box pointer.
D306 ADD IX,DE
D308 LD (collision_object),IX
D30C LD IX,current_piece IX = current-piece record; switch register sets; clear +1; keep the direction at +3.
D310 EXX
D311 LD (IX+$01),$00
D315 LD (IX+$03),B
D318 RET
Prev: D2E1 Up: Map Next: D319