Prev: 25917 Up: Map Next: 25985
25948: Start Level
Used by the routine at Lose_Life.
Start_Level 25948 LD HL,20720 HL=20720 (screen buffer location).
25951 CALL PrintCharacter Call PrintCharacter.
This entry point is used by the routines at MainMenu and Handle_Level_Complete.
SetUpNewLevel 25954 LD A,6 Write 6 to *CurrentRoom.
25956 LD (24517),A
25959 CALL PopulateRoomBuffer Call PopulateRoomBuffer.
25962 LD B,96 Set a counter in B for 96 loops (enough to fill the energy bar completely).
FillEnergyBar_Loop 25964 CALL UpdateEnergyBar_Refill_Shift Call UpdateEnergyBar_Refill_Shift.
25967 DJNZ FillEnergyBar_Loop Decrease the energy bar loop counter by one and loop back to FillEnergyBar_Loop until the energy bar is completely full.
Initialise Percy's starting position and INK colour.
25969 LD HL,56000 Write 56 to *Percy_X_Position.
25972 LD (HL),56
25974 INC HL Write 158 to *Percy_Y_Position.
25975 LD (HL),158
25977 INC HL Write WHITE to *Percy_Colour.
25978 LD (HL),7
25980 XOR A Write 0 to *FallingState.
25981 LD (24487),A
25984 RET Return.
Prev: 25917 Up: Map Next: 25985