Prev: 8FF4 Up: Map Next: 9020
9005: Launch Jetman
Used by the routines at Handler_Jetman and Handler_JetmanWalk.
Switch to the flying frames, apply upward thrust and lift Jetman three pixels.
Input
IX Actor slot
Decrease to the 0-based sprite index, reset bit 3 to switch from walking to flying frames, then write the 1-based ID back.
LaunchJetman 9005 LD A,(IX+$00) Fetch the actor type.
9008 DEC A Decrease it to a 0-based sprite index.
9009 RES 3,A Reset the walking-frame bit.
900B INC A Restore the 1-based sprite ID.
900C LD (IX+$00),A Write it back to *IX+00.
F0 is a signed -10 upward thrust. Lift Jetman three pixels off the ground line.
900F LD A,$F0 Write F0 to the vertical thrust.
9011 LD (IX+$06),A
9014 DEC (IX+$04) Decrease Jetman's Y position by three.
9017 DEC (IX+$04)
901A DEC (IX+$04)
Draw the flying sprite and continue the movement handler.
901D JP Handler_JetmanMovement_Draw Jump to Handler_JetmanMovement_Draw.
Prev: 8FF4 Up: Map Next: 9020