Prev: 60AA Up: Map Next: 611B
60FD: Show Game Over For 1UP
Used by the routines at GameOver_Controller and GameOver_ControllerRestart.
Shows "GAME OVER PLAYER 1" or "GAME OVER PLAYER 2" on a blank game window and pauses for a couple of seconds. The player number is written over the last character of the message at GameOver_Text.
Before After
game-over-1up-before game-over-1up-after
Set up altering the "GAME OVER PLAYER X" message for 1UP.
GameOver_1UP 60FD LD A,"1"+$80 A="1" + 80 (escape character).
This entry point is used by the routine at GameOver_2UP.
Print the messaging and pause to show it for a period of time.
GameOver_Write 60FF LD ($6175),A Write ASCII player number to 6175.
6102 CALL CreateWindow Create the game window using CreateWindow.
6105 LD DE,$6163 DE=GameOver_Text.
6108 LD HL,$7038 HL=7038 (screen position).
This entry point is used by the routines at PlayerTurnEnds and StartGame.
Print message and pause, also used by PlayerTurnEnds and StartGame.
GameOverPrint_Pause 610B CALL PrintStringColour Print the message using PrintStringColour.
Introduce a pause by counting down from 10000 four times.
610E LD B,$04 Set the number of countdowns to 04.
This entry point is used by the routine at LevelComplete.
PauseForCount 6110 LD HL,$0000 HL=00 (the start of a countdown of 10000 steps).
GameOver_Pause 6113 DEC HL Decrease the countdown by one.
6114 LD A,H Loop back to GameOver_Pause until the countdown has reached zero.
6115 OR L
6116 JR NZ,GameOver_Pause
6118 DJNZ GameOver_Pause Decrease the number of countdowns by one and loop back to GameOver_Pause until the pause is over.
611A RET Return.
Prev: 60AA Up: Map Next: 611B