Prev: 24863 Up: Map Next: 24891
24871: End Game
Used by the routine at PlayerTurnEnds.
Both players are out of lives. Updates the high score, shows the "GAME OVER" message for the current player and then returns to the game selection screen.
This is a controller with a jump to Game_Restart to return to the game selection screen.
GameOver_ControllerRestart 24871 CALL UpdateHighScore Update the high score using UpdateHighScore.
24874 LD A,(24094) Jump to GameOver_Restart2UP if the current player (Current_Player) is not 0 (2UP).
24877 AND A
24878 JR NZ,GameOver_Restart2UP
24880 CALL GameOver_1UP Show the "GAME OVER PLAYER 1" message using GameOver_1UP.
GameOver_Restart 24883 JP Game_Restart Jump to Game_Restart.
GameOver_Restart2UP 24886 CALL GameOver_2UP Show the "GAME OVER PLAYER 2" message using GameOver_2UP.
24889 JR GameOver_Restart Jump to GameOver_Restart.
Prev: 24863 Up: Map Next: 24891