Prev: 36852 Up: Map Next: 36896
36869: Launch Jetman
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 36869 LD A,(IX+0) Fetch the actor type.
36872 DEC A Decrease it to a 0-based sprite index.
36873 RES 3,A Reset the walking-frame bit.
36875 INC A Restore the 1-based sprite ID.
36876 LD (IX+0),A Write it back to *IX+0.
240 is a signed -16 upward thrust. Lift Jetman three pixels off the ground line.
36879 LD A,240 Write 240 to the vertical thrust.
36881 LD (IX+6),A
36884 DEC (IX+4) Decrease Jetman's Y position by three.
36887 DEC (IX+4)
36890 DEC (IX+4)
Draw the flying sprite and continue the movement handler.
36893 JP Handler_JetmanMovement_Draw Jump to Handler_JetmanMovement_Draw.
Prev: 36852 Up: Map Next: 36896