Prev: A305 Up: Map Next: A31A
A312: Handler: Pickup
Handles the pickups (sprite IDs 80 to 84 and 86 to 8F). If the player touches one then it is collected, otherwise it is drawn.
Input
IX Actor record of the pickup
HandlerPickup A312 LD BC,$0C0C Set how far above and to the right of the pickup the player can be in BC to 0C0C (see TestPlayerTouchingActor).
A315 CALL TestPlayerTouchingActor Test whether the player is touching the pickup.
A318 JR C,CollectPickup Jump to CollectPickup to collect the pickup if the player is touching it.
Prev: A305 Up: Map Next: A31A