Prev: BA21 Up: Map Next: BA4D
BA2E: Test the next part of a record's box against its page's boxes
Used by the routine at next_box.
The loop of collide_with_landscape: from the top it sets up the next part (next_part); collide_with_landscape joins after that for the first. For each box in the page's list, its kind goes into pieces_left and it is tested as a solid block (hit_block) or a slope (hit_slope); both come back to next_box.
next_part_boxes BA2E CALL next_part the next part's place and page (next_part)
This entry point is used by the routine at collide_with_landscape.
next_part_boxes_0 BA31 LD A,(IX+$00) the page's list: empty, the next part
BA34 AND A
BA35 JR Z,next_box_1
BA37 INC IX
This entry point is used by the routine at next_box.
next_part_boxes_1 BA39 PUSH IX for each box: no hit yet; its kind in pieces_left; a block or a slope
BA3B EX AF,AF'
BA3C XOR A
BA3D LD (scratch_count),A
BA40 LD A,(IX+$04)
BA43 LD (pieces_left),A
BA46 AND $3C
BA48 JR NZ,hit_block
BA4A JP hit_slope
Prev: BA21 Up: Map Next: BA4D