Prev: 41754 Up: Map Next: 41787
41763: Collect Pickup
Used by the routines at HandlerExtraLife and HandlerPickup.
Collects a pickup: it is erased from the screen, removed from the table of room objects so that it does not come back, and is worth 150 points. A tone is then played by PlayHighTone.
Input
IX Actor record of the pickup
CollectPickup 41763 CALL DrawEntity Erase the pickup from the screen.
Remove the object from the table of objects in the room.
41766 LD L,(IX+6) Fetch the low byte of the address of the pickup's entry in the table of room objects.
41769 LD H,(IX+7) Fetch the high byte of the address of the pickup's entry.
41772 LD (HL),0 Clear the table entry so that the pickup is gone from the room.
41774 LD (IX+0),0 Remove the pickup by setting its sprite ID to 0.
Add 150 points to the player's score.
41778 LD BC,336 Set the points to award in BC to 150 (stored as BCD).
41781 CALL AddPointsToScore Add the points to the score.
41784 JP PlayHighTone Jump to PlayHighTone to play the high tone.
Prev: 41754 Up: Map Next: 41787