Prev: B8A2 Up: Map Next: B8CC
B8B7: Do two objects overlap in V?
DO_OBJS_INTERSECT_ON_U for V, with the mover's dV in L and the half-sizes at +$05.
Input
IX the moving object
IY the other object
L the mover's dV
Output
F carry set if they overlap
DO_OBJS_INTERSECT_ON_V B8B7 LD A,(IX+$05) D = the two half-sizes
B8BA ADD A,(IY+$05)
B8BD LD D,A
B8BE LD A,(IX+$02) A = |V + dV - the other's V|
B8C1 ADD A,L
B8C2 SUB (IY+$02)
B8C5 JP P,DO_OBJS_INTERSECT_ON_V_0
B8C8 NEG
DO_OBJS_INTERSECT_ON_V_0 B8CA SUB D carry if less than D
B8CB RET
Prev: B8A2 Up: Map Next: B8CC