![]() |
Routines |
| Prev: BE26 | Up: Map | Next: BE8D |
|
Used by the routine at next_part_boxes.
After the part in the record's own page: the part to the right, then the part above, and when the box reaches past both edges, last, the part above and right (both at once). Each goes on to work out the box in its page (place_collision_box's second half). direction_flag is set while the part to the right is still to do.
|
||||
| next_part | BE43 | LD A,(ground_cell) | the last of four: above and right | |
| BE46 | CP $01 | |||
| BE48 | JR NZ,next_part_0 | |||
| BE4A | LD A,(stick_out_right) | |||
| BE4D | AND A | |||
| BE4E | JR Z,next_part_0 | |||
| BE50 | LD A,(stick_out_up) | |||
| BE53 | AND A | |||
| BE54 | JR Z,next_part_0 | |||
| BE56 | CALL part_above | |||
| BE59 | CALL part_right | |||
| BE5C | LD A,(stick_out_up) | |||
| BE5F | LD (piece_y),A | |||
| BE62 | JP place_collision_box_2 | |||
| next_part_0 | BE65 | LD A,(stick_out_right) | the part to the right, at the record's own line | |
| BE68 | AND A | |||
| BE69 | JR Z,next_part_1 | |||
| BE6B | LD A,(direction_flag) | |||
| BE6E | AND A | |||
| BE6F | JR Z,next_part_1 | |||
| BE71 | XOR A | |||
| BE72 | LD (direction_flag),A | |||
| BE75 | CALL part_right | |||
| BE78 | LD HL,(tile_mirrored_left_right) | |||
| BE7B | LD (moved_y),HL | |||
| BE7E | JP place_collision_box_2 | |||
| next_part_1 | BE81 | CALL part_above | the part above, at the record's own x | |
| BE84 | LD HL,(move_across_kept) | |||
| BE87 | LD (moved_x),HL | |||
| BE8A | JP place_collision_box_2 | |||
| Prev: BE26 | Up: Map | Next: BE8D |