![]() |
Routines |
| Prev: A2BD | Up: Map | Next: A305 |
|
Used by the routine at HandlerExtraLife.
Gives the player an extra life, up to a maximum of nine, and updates the lives on the screen.
|
||||
| AddLife | A2F8 | LD A,($96BD) | Fetch the number of lives from ActivePlayer_Lives. | |
| A2FB | CP $09 | Return if the player already has 09 lives. | ||
| A2FD | RET NC | |||
| A2FE | INC A | Add a life. | ||
| A2FF | LD ($96BD),A | Store the number of lives in ActivePlayer_Lives. | ||
| A302 | JP DisplayPlayerLives | Jump to DisplayPlayerLives to update the lives display. | ||
| Prev: A2BD | Up: Map | Next: A305 |