Prev: 59813 Up: Map Next: 59866
59839: Extra Life
Used by the routine at LevelComplete.
Give the player an extra life.
ExtraLife 59839 LD HL,55335 HL=Lives.
59842 INC (HL) Increment *HL by one.
Handle "uncovering" the life icon.
First; move the icon pointer two character blocks to the left.
59843 LD HL,(55410) HL=*LifeIcons_ScreenPosition.
59846 DEC HL Decrease HL by two.
59847 DEC HL
59848 LD (55410),HL Write HL to *LifeIcons_ScreenPosition.
Next; give the icon some colour to make it appear.
59851 LD (HL),40 Write INK: BLACK, PAPER: CYAN to *HL.
59853 INC HL Increment HL by one.
59854 LD (HL),40 Write INK: BLACK, PAPER: CYAN to *HL.
Move down one line, and left one character block.
59856 LD DE,31 HL+=0031.
59859 ADD HL,DE
Lastly; colour the bottom part of the icon.
59860 LD (HL),40 Write INK: BLACK, PAPER: CYAN to *HL.
59862 INC HL Increment HL by one.
59863 LD (HL),40 Write INK: BLACK, PAPER: CYAN to *HL.
59865 RET Return.
Prev: 59813 Up: Map Next: 59866