Prev: 41733 Up: Map Next: 41754
41746: Handler: Pickup
Handles the pickups (sprite IDs 128 to 132 and 134 to 143). If the player touches one then it is collected, otherwise it is drawn.
Input
IX Actor record of the pickup
HandlerPickup 41746 LD BC,3084 Set how far above and to the right of the pickup the player can be in BC to 3084 (see TestPlayerTouchingActor).
41749 CALL TestPlayerTouchingActor Test whether the player is touching the pickup.
41752 JR C,CollectPickup Jump to CollectPickup to collect the pickup if the player is touching it.
Prev: 41733 Up: Map Next: 41754