Prev: A2F8 Up: Map Next: A312
A305: Handler: Extra Life
Handles the extra life (sprite ID 85). If the player touches it then a life is added, otherwise it is drawn.
Input
IX Actor record of the extra life
HandlerExtraLife A305 LD BC,$0C0C Set how far above and to the right of the extra life the player can be in BC to 0C0C (see TestPlayerTouchingActor).
A308 CALL TestPlayerTouchingActor Test whether the player is touching the extra life.
A30B JR NC,ColourPickup Jump to ColourPickup to draw the extra life if the player is not touching it.
A30D CALL AddLife Add a life.
A310 JR CollectPickup Jump to CollectPickup to collect the extra life.
Prev: A2F8 Up: Map Next: A312