Routines |
Prev: E9A5 | Up: Map | Next: E9DA |
Used by the routine at LevelComplete.
|
||||
Give the player an extra life.
|
||||
ExtraLife | E9BF | LD HL,$D827 | HL=Lives. | |
E9C2 | INC (HL) | Increment *HL by one. | ||
Handle "uncovering" the life icon.
First; move the icon pointer two character blocks to the left.
|
||||
E9C3 | LD HL,($D872) | HL=*LifeIcons_ScreenPosition. | ||
E9C6 | DEC HL | Decrease HL by two. | ||
E9C7 | DEC HL | |||
E9C8 | LD ($D872),HL | Write HL to *LifeIcons_ScreenPosition. | ||
Next; give the icon some colour to make it appear.
|
||||
E9CB | LD (HL),$28 | Write INK: BLACK, PAPER: CYAN to *HL. | ||
E9CD | INC HL | Increment HL by one. | ||
E9CE | LD (HL),$28 | Write INK: BLACK, PAPER: CYAN to *HL. | ||
Move down one line, and left one character block.
|
||||
E9D0 | LD DE,$001F | HL+=001F. | ||
E9D3 | ADD HL,DE | |||
Lastly; colour the bottom part of the icon.
|
||||
E9D4 | LD (HL),$28 | Write INK: BLACK, PAPER: CYAN to *HL. | ||
E9D6 | INC HL | Increment HL by one. | ||
E9D7 | LD (HL),$28 | Write INK: BLACK, PAPER: CYAN to *HL. | ||
E9D9 | RET | Return. |
Prev: E9A5 | Up: Map | Next: E9DA |