Prev: 31312 Up: Map Next: 31537
31468: Show "WELL DONE" screen, jumping to game over on key-press
Used by the routine at 30940.
31468 IM 1 Set interrupt mode 1
31470 LD A,(23397) Increase bonus score by 5...
31473 ADD A,5 ...
31475 LD (23397),A ...
31478 CALL 55651 Flash border and screen (as in cast a spell)
31481 LD HL,16384 Blank out top two thirds of display file...
31484 LD DE,16385 ...
31487 LD BC,4095 ...
31490 LD (HL),L ...
31491 LDIR ...
31493 LD A,71 Load A with 71 (white INK, black PAPER, BRIGHT)...
31495 CALL 35677 ...and flood attribute file with this attribute
31498 LD A,22 Draw window 22...
31500 CALL 34990 ...
31503 LD HL,38366 Point HL at "WELL DONE..." text...
31506 CALL 34762 ...and print to screen
31509 LD HL,0 Set Magic Knight's x- and y-velocities to zero...
31512 LD (25160),HL ...
31515 LD HL,19320 Set Magic Knight's x-coordinate to 120 and y-coordinate to 75...
31518 LD (25156),HL ...
31521 XOR A Set unused data at 25158 to zero...
31522 LD (25158),A ...
31525 CALL 53150 Store background attributes if appropriate, then draw Magic Knight to display
31528 CALL 54575 If key-press was enqueued then load A with index of last key pressed, otherwise wait for key-press and load A with index
31531 LD HL,44571 Point HL at "YOU HAVE ESCAPED FROM THE FUTURE..." text
31534 JP 55685 Jump to "game over" window routine and return to control selection menu
Prev: 31312 Up: Map Next: 31537