Prev: 84BB Up: Map Next: 84F7
84D8: Create Game Window
Blanks the screen, draws the banner and writes the score line.
game-window
Blank the screen and write the banner.
CreateWindow 84D8 CALL ResetAttributes Call ResetAttributes.
84DB CALL ResetScreen Call ResetScreen.
84DE CALL PrintBanner Call PrintBanner.
Colour the score line INK:YELLOW, PAPER:BLACK (BRIGHT).
84E1 LD HL,$5820 Set the attribute pointer to 5820.
84E4 LD BC,$2046 Set the column counter to 20 and the colour to INK:YELLOW, PAPER:BLACK (BRIGHT).
CreateWindow_Loop 84E7 LD (HL),C Write INK:YELLOW, PAPER:BLACK (BRIGHT) to the attribute buffer.
84E8 INC L Move onto the next column.
84E9 DJNZ CreateWindow_Loop Decrease the column counter by one and loop back to CreateWindow_Loop until the line is done.
Display the current 1UP and 2UP levels.
84EB CALL PrintPlayerLevels Call PrintPlayerLevels.
Write the 1UP, 2UP and HI scores.
84EE CALL Score_1UP Call Score_1UP.
84F1 CALL Score_2UP Call Score_2UP.
84F4 JP Score_HI Jump to Score_HI.
View the equivalent code in;
Prev: 84BB Up: Map Next: 84F7