Prev: 28714 Up: Map Next: 28747
28728: Hit Object
Used by the routine at PlaceObject.
The car has hit an object. Changes the object to a tombstone (sprite 15), removes the two cars and makes the player's car explode.
HitObject 28728 LD HL,(24122) Fetch the pointer to the map point after the object (ObjectMapPointer).
28731 DEC HL Move back to the sprite ID.
28732 LD (HL),15 Write 15 (a tombstone) to the map point.
This entry point is used by the routine at HandlerCar.
HitObject_DestroyPlayer 28734 XOR A Write 0 to
28735 LD (24204),A
28738 LD (24216),A
28741 LD A,3 Write 3 to Entity_Player (the player's car is exploding).
28743 LD (24192),A
28746 RET Return.
Prev: 28714 Up: Map Next: 28747