| Prev: 65CB | Up: Map | Next: 65F3 |
65DE: Switch to Player 1 after Player 2 death
|
This routine is called when Player 2 dies and Player 1 has lives remaining. It switches the current player to Player 1 and restarts gameplay, or triggers game over if Player 1 has no lives.
|
||||
| switch_to_player_1 | 65DE | LD A,$01 | Set current player to PLAYER_1. | |
| 65E0 | LD ($923D),A | |||
|
This entry point is used by the routine at handle_player_2_death.
|
||||
| check_player_1_lives | 65E3 | LD A,($923B) | If Player 1 has no lives, trigger game over. | |
| 65E6 | CP $00 | |||
| 65E8 | JP Z,game_over | |||
| 65EB | LD A,$01 | Set current player to PLAYER_1 and restart gameplay. | ||
| 65ED | LD ($923D),A | |||
| 65F0 | JP restart_current_player | |||
| Prev: 65CB | Up: Map | Next: 65F3 |