Prev: 33979 Up: Map Next: 34039
34008: Create Game Window
Blanks the screen, draws the banner and writes the score line.
game-window
Blank the screen and write the banner.
CreateWindow 34008 CALL ResetAttributes Call ResetAttributes.
34011 CALL ResetScreen Call ResetScreen.
34014 CALL PrintBanner Call PrintBanner.
Colour the score line INK:YELLOW, PAPER:BLACK (BRIGHT).
34017 LD HL,22560 Set the attribute pointer to 22560.
34020 LD BC,8262 Set the column counter to 32 and the colour to INK:YELLOW, PAPER:BLACK (BRIGHT).
CreateWindow_Loop 34023 LD (HL),C Write INK:YELLOW, PAPER:BLACK (BRIGHT) to the attribute buffer.
34024 INC L Move onto the next column.
34025 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.
34027 CALL PrintPlayerLevels Call PrintPlayerLevels.
Write the 1UP, 2UP and HI scores.
34030 CALL Score_1UP Call Score_1UP.
34033 CALL Score_2UP Call Score_2UP.
34036 JP Score_HI Jump to Score_HI.
View the equivalent code in;
Prev: 33979 Up: Map Next: 34039