jetpac | Routines |
Prev: 6fc5 | Up: Map | Next: 70a4 |
706d | ld hl,$0040 | Screen column for Player 1 | ||
7070 | call $72d0 | HL=coord to screen address (using HL) | ||
7073 | call $70ac | A=Get player 1 lives count | ||
7076 | and a | |||
7077 | jr z,$7095 | Display empty space if no lives remaining | ||
7079 | call $7088 | Display lives counter and icon sprite | ||
Now display lives for inactive player.
|
||||
707c | ld hl,$00b0 | Screen column for Player 2 | ||
707f | call $72d0 | HL=coord to screen address (using HL) | ||
7082 | call $70ba | A=Get player 2 lives count | ||
7085 | and a | |||
7086 | jr z,$709a | Display empty space if no lives remaining | ||
Displays the lives count and sprite icon.
|
||||
7088 | add a,$30 | ASCII character starting at `0` character | ||
708a | call $7115 | Display font character | ||
708d | ld de,$70a4 | Sprite for the lives icon | ||
7090 | push bc | |||
7091 | push de | |||
7092 | jp $7124 | Now display the number of lives | ||
Current player has no lives remaining, display spaces.
|
||||
7095 | call $709a | Display " " for no lives | ||
7098 | jr $707c | Display inactive player lives count | ||
Display just spaces instead of number + sprite.
|
||||
709a | ld a,$20 | |||
709c | call $7115 | Display " " font character | ||
709f | ld a,$20 | |||
70a1 | jp $7115 | Display " " font character |
Prev: 6fc5 | Up: Map | Next: 70a4 |