Prev: BA9E Up: Map Next: BAD2
BAAB: The quest is complete
Used by the routine at game_over.
Shown in place of nothing else: blanks the screen, writes the six-line completion message, plays the completion tune to its end (no key cuts it short), waits up to 14 seconds or for a key, and then goes on to the ordinary summary at game_over_summary.
game_complete_msg BAAB CALL clear_scrn_buffer blank the buffer and the screen
BAAE CALL clear_scrn
BAB1 LD DE,complete_colours colours from complete_colours, positions from complete_xy, text from complete_text
BAB4 EXX
BAB5 LD HL,complete_xy
BAB8 LD DE,complete_text
BABB LD B,$06
BABD XOR A clearing $5BB8 makes display_text_list draw the border and show the screen as soon as the text is written
BABE LD ($5BB8),A
BAC1 CALL display_text_list
BAC4 LD DE,game_complete_tune the completion tune at game_complete_tune, played in full
BAC7 CALL play_audio
BACA LD B,$08 then the same summary as a failed game
BACC CALL wait_for_key_press
BACF JP game_over_summary
Prev: BA9E Up: Map Next: BAD2