Prev: 961B Up: Map Next: 96AF
9641: Show Game Statistics
Used by the routines at GameOver and GameComplete.
GameStats 9641 CALL CalcRoomsVisited Call CalcRoomsVisited.
Handle printing the time.
9644 LD HL,$4040 HL=4040 (screen buffer location).
9647 LD DE,$967F DE=StringTime.
964A CALL PrintStringColour Call PrintStringColour.
Handle printing the score.
964D LD HL,$5040 HL=5040 (screen buffer location).
9650 LD DE,$968F DE=StringScore.
9653 CALL PrintStringColour Call PrintStringColour.
Handle printing the money total.
9656 LD HL,$6040 HL=6040 (screen buffer location).
9659 LD DE,$969F DE=StringMoney.
965C CALL PrintStringColour Call PrintStringColour.
Handle printing the clock.
965F LD HL,$BFCC Write main font "0" to FontPointer.
9662 LD ($5E01),HL
9665 LD HL,$4080 HL=4080 (screen buffer location).
9668 CALL PrintClock Call PrintClock.
Handle printing the "visited percentage".
966B LD HL,$5080 HL=5080 (screen buffer location).
966E CALL PrintScore_0 Call PrintScore_0.
9671 LD HL,$6080 HL=6080 (screen buffer location).
9674 CALL ScreenAddress Call ScreenAddress.
9677 LD DE,$5E54 DE=VisitedPercentage.
967A LD B,$01 B=01.
967C JP PrintScore_Loop Jump to PrintScore_Loop.
StringTime 967F DEFM $45 Attribute: 45 + "TIME".
9680 DEFM "TIME # "," "+$80
StringScore 968F DEFM $45 Attribute: 45 + "SCORE".
9690 DEFM "SCORE "," "+$80
StringMoney 969F DEFM $45 Attribute: 45 + "".
96A0 DEFM "$ "," "+$80
Prev: 961B Up: Map Next: 96AF