Prev: 55651 Up: Map Next: 55726
55685: Display cyan "game over" window and return to control selection menu
Used by the routines at 27136, 27762, 28470, 28482, 28494, 28542, 29488, 30940, 31312, 31468, 31688, 32252 and 53937.
Input
HL Points to location of a string
IY 23610
55685 RES 0,(IY+65) Reset game-in-progress flag
55689 LD DE,37283 Adjust height of window 24 ("game over" window) to accommodate text...
55692 CALL 33774 ...
55695 PUSH HL Store HL (points to first character of text to display)
55696 LD A,24 Draw window 24 ("game over" window)...
55698 CALL 34990 ...
55701 LD HL,44530 Point to string for percentage completion
55704 LD DE,44542 Point to string for time left
55707 CALL 33657 Insert current time and score into "time left" and "percentage completion" texts
55710 LD HL,44506 Point HL at "GAME OVER / TOTAL COMPLETION XX% / TIME LEFT XX DAYS" text...
55713 CALL 34762 ...and print to screen
55716 POP HL Restore HL (points to first character of text to display)
55717 CALL 34762 Print text to screen
55720 CALL 55138 Display "PRESS FIRE TO CONTINUE" window and wait for fire to be pressed
55723 JP 26670 Display and handle input device selection menu
Prev: 55651 Up: Map Next: 55726