![]() |
Routines |
| Prev: CCB0 | Up: Map | Next: CCC5 |
|
Used by the routines at overlap_test_obj, is_on_or_near_obj, dX_obj_loop, dY_obj_hit_test and dZ_obj_loop.
do_objs_intersect_on_x for Y, with the mover's dY in L and the half-depths at +$05.
|
||||||||||||||
| do_objs_intersect_on_y | CCB2 | LD A,(IX+$05) | D = the two half-depths | |||||||||||
| CCB5 | ADD A,(IY+$05) | |||||||||||||
| CCB8 | LD D,A | |||||||||||||
| CCB9 | LD A,(IX+$02) | A = |Y + dY - other Y| | ||||||||||||
| CCBC | ADD A,L | |||||||||||||
| CCBD | SUB (IY+$02) | |||||||||||||
| CCC0 | JP P,intersect_y_result | |||||||||||||
| CCC3 | NEG | |||||||||||||
| Prev: CCB0 | Up: Map | Next: CCC5 |