Prev: 62572 Up: Map Next: 62662
62603: Explode Ship
Used by the routine at RunLife.
Runs the frames of the explosion of the ship, once it has been destroyed, with the scroll speeds at zero and the fuel gauge empty, until the explosion counter at 36691 gets to 80. It then plays a tune, fades out the playfield and takes away a life, and goes on to PrepareLife.
ExplodeShip 62603 XOR A Clear A.
62604 LD (52411),A Update the horizontal scroll speed.
62607 LD (52410),A Update the vertical scroll speed.
62610 LD HL,48640 The rotate step of doubling a number.
62613 LD (52299),HL Update the fuel level.
62616 CALL DrawShipTop Call DrawShipTop.
62619 CALL DrawMainFlame Call DrawMainFlame.
ExplodeShip_Loop 62622 CALL RunFrame Call RunFrame.
62625 CALL CheckPause Call CheckPause.
62628 CALL UpdateFuelGauge Call UpdateFuelGauge.
62631 CALL UpdateEnemies Call UpdateEnemies.
62634 CALL CheckItemDelivery Call CheckItemDelivery.
62637 CALL UpdateFuelGauge Call UpdateFuelGauge.
62640 LD A,(36691) The ship state.
62643 CP 80 Jump to ExplodeShip_Loop if A is not 80.
62645 JR NZ,ExplodeShip_Loop
62647 LD DE,62685 The tune: ship destroyed.
62650 CALL PlayMusic Call PlayMusic.
62653 CALL FadeOutAndClearPlayfield Call FadeOutAndClearPlayfield.
62656 CALL LoseLife Call LoseLife.
62659 JP PrepareLife Jump to PrepareLife.
Prev: 62572 Up: Map Next: 62662