![]() |
Routines |
| Prev: 653D | Up: Map | Next: 6581 |
|
Used by the routine at Lose_Life.
|
||||
| Start_Level | 655C | LD HL,$50F0 | HL=50F0 (screen buffer location). | |
| 655F | CALL PrintCharacter | Call PrintCharacter. | ||
|
This entry point is used by the routines at MainMenu and Handle_Level_Complete.
|
||||
| SetUpNewLevel | 6562 | LD A,$06 | Write 06 to *CurrentRoom. | |
| 6564 | LD ($5FC5),A | |||
| 6567 | CALL PopulateRoomBuffer | Call PopulateRoomBuffer. | ||
| 656A | LD B,$60 | Set a counter in B for 60 loops (enough to fill the energy bar completely). | ||
| FillEnergyBar_Loop | 656C | CALL UpdateEnergyBar_Refill_Shift | Call UpdateEnergyBar_Refill_Shift. | |
| 656F | 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.
|
||||
| 6571 | LD HL,$DAC0 | Write 38 to *Percy_X_Position. | ||
| 6574 | LD (HL),$38 | |||
| 6576 | INC HL | Write 9E to *Percy_Y_Position. | ||
| 6577 | LD (HL),$9E | |||
| 6579 | INC HL | Write WHITE to *Percy_Colour. | ||
| 657A | LD (HL),$07 | |||
| 657C | XOR A | Write 00 to *FallingState. | ||
| 657D | LD ($5FA7),A | |||
| 6580 | RET | Return. | ||
| Prev: 653D | Up: Map | Next: 6581 |