Prev: 5FAF Up: Map Next: 5FE1
5FB7: Create Game Window
Used by the routines at 5FE1, GameInitialisation and GameOver_1UP.
Blank the screen and write the banner.
CreateWindow 5FB7 CALL ResetAttributes Call ResetAttributes.
5FBA CALL ResetScreen Call ResetScreen.
5FBD CALL PrintBanner Call PrintBanner.
Set the attributes for the 1UP lives graphic.
5FC0 LD HL,$5808 HL=5808.
5FC3 LD A,$47 A=47.
5FC5 LD (HL),A Write A to HL.
5FC6 INC HL Increment HL by one.
5FC7 LD (HL),A Write A to HL.
Set the attributes for the 2UP lives graphic.
5FC8 LD HL,$5816 HL=5816.
5FCB LD (HL),A Write A to HL.
5FCC INC HL Increment HL by one.
5FCD LD (HL),A Write A to HL.
Set the attributes for the score line (the whole line is INK:45).
5FCE LD HL,$5820 HL=5820.
5FD1 LD BC,$2045 BC=counter:20 INK:45.
CreateWindow_Loop 5FD4 LD (HL),C Write 45 to the attribute buffer.
5FD5 INC L Move onto the next column.
5FD6 DJNZ CreateWindow_Loop Decrease counter by one and loop back to CreateWindow_Loop until counter is zero.
Write the 1UP, 2UP and HI scores.
5FD8 CALL Score_1UP Call Score_1UP.
5FDB CALL Score_2UP Call Score_2UP.
5FDE JP Score_HI Jump to Score_HI.
Prev: 5FAF Up: Map Next: 5FE1