Prev: 34914 Up: Map Next: 35141
35101: Display cyan "game over" window and return to pre-game menu
Used by the routines at 27176, 27865, 29800, 29880, 29915, 30602, 32390, 32876, 33180, 33269, 35993, 55461 and 55478.
Input
HL Points to location of a string (e.g. "YOU DIED OF EXHAUSTION...")
IY 23610
35101 RES 0,(IY+65) Reset update-game-time-and-locate-arrow-glow flag
35105 LD A,(HL) Set height of window to accommodate text...
35106 LD (42141),A ...
35109 INC HL Advance to first character of message...
35110 PUSH HL ...and store for later use
35111 LD A,33 Draw window 33 ("game over" window with modified height, as above)...
35113 CALL 36987 ...
35116 LD HL,43247 Point to string for percentage completion
35119 LD DE,43259 Point to string for time left
35122 CALL 34268 Insert current time and score into "TIME LEFT" and "PERCENTAGE COMPLETION" texts
35125 LD HL,43224 Point HL at "GAME OVER / TOTAL COMPLETION XX% / TIME LEFT XX HOURS" text...
35128 CALL 36725 ...and print it to screen
35131 POP HL Restore HL (pointer to first character of message pointed to on entry to routine)...
35132 CALL 36725 ...and print it to screen
35135 CALL 38749 Display "PRESS SPACE OR FIRE TO CONTINUE" window and wait for space / fire
35138 JP 26673 Jump back to pre-game menu (select input device, view instructions, play game, etc.)
Prev: 34914 Up: Map Next: 35141