Prev: 24746 Up: Map Next: 24859
24829: 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 24829 LD A,"1"+128 A="1" + 128 (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 24831 LD (24949),A Write ASCII player number to 24949.
24834 CALL CreateWindow Create the game window using CreateWindow.
24837 LD DE,24931 DE=GameOver_Text.
24840 LD HL,28728 HL=28728 (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 24843 CALL PrintStringColour Print the message using PrintStringColour.
Introduce a pause by counting down from 65536 four times.
24846 LD B,4 Set the number of countdowns to 4.
This entry point is used by the routine at LevelComplete.
PauseForCount 24848 LD HL,0 HL=0 (the start of a countdown of 65536 steps).
GameOver_Pause 24851 DEC HL Decrease the countdown by one.
24852 LD A,H Loop back to GameOver_Pause until the countdown has reached zero.
24853 OR L
24854 JR NZ,GameOver_Pause
24856 DJNZ GameOver_Pause Decrease the number of countdowns by one and loop back to GameOver_Pause until the pause is over.
24858 RET Return.
Prev: 24746 Up: Map Next: 24859