Prev: AAD7 Up: Map Next: ABA4
AB98: Test Box Against Ship
Used by the routines at CheckBeamHit and CheckItemPickup.
Tests the box at CollisionBox against the box in HL and DE.
Input
HL Position of the second box
D Width of the second box
E Height of the second box
Output
$5C1C Non-zero if the boxes overlap
TestBoxAgainstShip AB98 PUSH IX Stash IX on the stack.
AB9A LD IX,$ABA4 The collision box.
AB9E CALL TestBoxesOverlap Call TestBoxesOverlap.
ABA1 POP IX Bring IX back off the stack.
ABA3 RET Return.
Prev: AAD7 Up: Map Next: ABA4