Prev: 45730 Up: Map Next: 45817
45783: Kill Jetman
Turn Jetman into the dying type (220) and bounce him away, then continue into HideDistantObjects.
Input
IX Actor slot
TickThenExplode_KillJetman 45783 LD DE,47591 DE=47591.
45786 CALL QueueTune Call QueueTune.
45789 LD HL,24696 HL=Jetman_Slot.
45792 LD (HL),220 Write 220 as Jetman's type.
Pick the bounce direction from the actor screen column.
45794 LD HL,24701 HL=Jetman_Speed.
45797 LD A,(IX+1) Fetch the actor screen column.
45800 CP 120 Jump to BounceJetmanRight if it is less than 120.
45802 JR C,BounceJetmanRight
45804 LD (HL),192 Write 192 as Jetman's speed.
Set Jetman's thrust, then write 6 into two bytes of his slot.
TickThenExplode_Loop 45806 INC HL Move onto Jetman's thrust.
45807 LD (HL),1 Write 1 as Jetman's thrust.
45809 LD HL,24714 HL=24714.
45812 LD (HL),6 Write 6.
45814 INC HL Move onto the next byte.
45815 LD (HL),6 Write 6.
Prev: 45730 Up: Map Next: 45817