Prev: C7F9 Up: Map Next: C808
C7FE: Is an object near a point?
Used by the routines at arch_nudge_loop and near_arch_loop.
Input
IX a record whose +$09 to +$0B hold the point's x, y and z
IY the object's record
L the limit along x
H the limit along y
F on exit, carry set if the object's x, y and z are all within the limits (z within 4)
is_near_to C7FE LD A,(IX+$09) the distance along x
C801 SUB (IY+$01)
C804 JR NC,near_check_y
C806 NEG
Prev: C7F9 Up: Map Next: C808