Prev: 50488 Up: Map Next: 50527
50516: Check Overlap With Next Object
Used by the routine at UpdateThrownItem.
Checks whether the object at IX overlaps the object that is four places further along the object table.
Input
IX Object
Output
F The carry flag is set if the objects overlap
CheckOverlapWithNextObject 50516 PUSH IX Point IY at the same object (using the stack).
50518 POP IY
50520 LD DE,64 Move IY on by four objects.
50523 ADD IY,DE
50525 JR CheckObjectsOverlap Jump to CheckObjectsOverlap to check whether they overlap.
Prev: 50488 Up: Map Next: 50527