![]() |
Routines |
| Prev: 9FA3 | Up: Map | Next: A03D |
|
Used by the routine at Run_Game.
Draws a small Sabreman icon and prints the number of lives left (see PlayerLives) at the top right of the screen. The entry at Draw_Lives_Print_Number only prints the number of lives.
|
||||||||
| Draw_Lives | A021 | PUSH IX | Stash IX on the stack. | |||||
| A023 | LD IX,$A03D | Point at the object record of the icon (Extra_Life_Icon_Record). | ||||||
| A027 | CALL DrawEntity | Draw the icon. | ||||||
| A02A | CALL ColourEntity | Colour the icon. | ||||||
| A02D | POP IX | Restore IX from the stack. | ||||||
|
This entry point is used by the routines at Collect_Extra_Life and Handle_Death.
|
||||||||
| Draw_Lives_Print_Number | A02F | LD HL,$08F0 | Set the x position to F0 and the y position to 08 (08F0). | |||||
| A032 | CALL ScreenAddress | Convert the position into a screen address. | ||||||
| A035 | LD DE,$8EDA | Point at the number of lives (PlayerLives). | ||||||
| A038 | LD B,$01 | Set the number of digits to print to 01. | ||||||
| A03A | JP Print_Status_Panel_Digits | Jump to Print_Status_Panel_Digits to print the digits. | ||||||
| Prev: 9FA3 | Up: Map | Next: A03D |