![]() |
Routines |
| Prev: 40867 | Up: Map | Next: 41021 |
|
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 | 40993 | PUSH IX | Stash IX on the stack. | |||||
| 40995 | LD IX,41021 | Point at the object record of the icon (Extra_Life_Icon_Record). | ||||||
| 40999 | CALL DrawEntity | Draw the icon. | ||||||
| 41002 | CALL ColourEntity | Colour the icon. | ||||||
| 41005 | 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 | 41007 | LD HL,2288 | Set the x position to 240 and the y position to 8 (2288). | |||||
| 41010 | CALL ScreenAddress | Convert the position into a screen address. | ||||||
| 41013 | LD DE,36570 | Point at the number of lives (PlayerLives). | ||||||
| 41016 | LD B,1 | Set the number of digits to print to 1. | ||||||
| 41018 | JP Print_Status_Panel_Digits | Jump to Print_Status_Panel_Digits to print the digits. | ||||||
| Prev: 40867 | Up: Map | Next: 41021 |