Prev: CCB0 Up: Map Next: CCC5
CCB2: Do two objects overlap in Y?
do_objs_intersect_on_x for Y, with the mover's dY in L and the half-depths at +$05.
Input
IX the moving object
IY the other object
L the mover's dY
F carry set on exit if they overlap
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