Prev: F4FC Up: Map Next: F54D
F52A: Finish Planet
Used by the routine at RunLife.
Used when the planet has been completed. It clears the playfield, runs CompletePlanet and plays a tune. After a short delay it clears the playfield and the map cells at CurrentPlayerState_MapCells again, and carries on with PrepareLife.
FinishPlanet F52A CALL ClearPlayfield Call ClearPlayfield.
F52D CALL CompletePlanet Call CompletePlanet.
F530 LD DE,$F56A The tune: planet complete.
F533 CALL PlayMusic Call PlayMusic.
F536 LD B,$0E B=0E.
FinishPlanet_Wait F538 CALL Delay Call Delay.
F53B DJNZ FinishPlanet_Wait Decrease B and jump to FinishPlanet_Wait until none remain.
F53D CALL ClearPlayfield Call ClearPlayfield.
F540 XOR A Clear A.
F541 LD ($F5EA),A Update the bitmap of map cells.
F544 LD ($F5EB),A The second byte of the map-cell bitmap.
F547 LD ($F5EC),A The third byte of the map-cell bitmap.
F54A JP PrepareLife Jump to PrepareLife.
Prev: F4FC Up: Map Next: F54D