Prev: C54A Up: Map Next: C55F
C554: Does a thrown object touch its villain?
Used by the routine at OBJECT_FLIGHT.
For OBJECT_FLIGHT, the update routine of a thrown object. Its villain is the record 64 bytes on from its own -- the object and villain records are in the same order (RANDOM) -- and this is the only test made, so an object passes through the other three villains harmlessly.
Input
IX the object's record
Output
F carry if it touches its villain
OBJECT_STRIKE C554 PUSH IX IY = its villain; the overlap test
C556 POP IY
C558 LD DE,$0040
C55B ADD IY,DE
C55D JR TOUCH_TEST
Prev: C54A Up: Map Next: C55F