Prev: 64548 Up: Map Next: 64623
64582: Display cyan "game over" window and return to control selection menu
Used by the routines at 38205, 38841, 40258, 40598, 41748, 43636, 44216, 44253, 45723, 46560 and 62877.
Input
HL Points to location of a string
IY 23610
64582 RES 0,(IY+65) Reset game-in-progress flag
64586 LD DE,49228 Adjust height of window 24 ("game over" window) to accommodate text...
64589 CALL 45617 ...
64592 PUSH HL Store HL (points to first character of text to display)
64593 LD A,24 Draw window 24 ("game over" window)...
64595 CALL 47193 ...
64598 LD HL,50779 Point to string for percentage completion
64601 LD DE,50791 Point to string for time left
64604 CALL 45522 Insert current time and score into "time left" and "percentage completion" texts
64607 LD HL,50756 Point HL at "GAME OVER / TOTAL COMPLETION XX% / TIME LEFT XX HOURS" text...
64610 CALL 46902 ...and print to screen
64613 POP HL Restore HL (points to first character of text to display)
64614 CALL 46902 Print text to screen
64617 CALL 64230 Wait for interrupt then display "PRESS FIRE TO CONTINUE" window and wait for fire to be pressed
64620 JP 37689 Wait for interrupt then display and handle input device selection menu
Prev: 64548 Up: Map Next: 64623