Prev: C2EC Up: Map Next: C323
C302: Show Victory Screen
Used by the routine at RunPentagramStone.
Shows the screen for when the pentagram is complete, which is a frame with six lines of text in it. It is followed by the game over screen, which carries on from where this ends.
The victory screen
show-victory
Show the victory screen.
ShowVictoryScreen C302 CALL ClearScreenBuffer Call ClearScreenBuffer to clear the buffer.
C305 LD A,$45 Set the attribute in A to bright cyan ink on a black paper.
C307 CALL FillAttributes Call FillAttributes to set all the attributes to it.
C30A LD DE,$C3E9 Take the colours of the lines, VictoryColours.
C30D EXX Switch to the shadow registers.
C30E LD HL,$C3DD Take the positions of the lines, VictoryPositions.
C311 LD DE,$C38B Take the text of the lines, VictoryText.
C314 LD B,$06 Set a counter in BC' of six lines.
C316 XOR A Write 00 to BorderDrawnFlag, so that the frame will be drawn.
C317 LD ($A734),A
C31A CALL DisplayMenu_Next Call DisplayMenu_Next to draw the lines of text and the frame, and to copy the buffer to the screen.
Play the victory tune.
C31D LD DE,$D86F Take the victory tune, VictoryTune.
C320 CALL PlayMusic Call PlayMusic to play it.
Prev: C2EC Up: Map Next: C323