← 9C99 Drag the bat's extension up Map 9CB3 → Per-frame prize/effect object animation manager
9CA6: Drag the bat's extension down
Lowers the bat extension in lockstep with the bat. The counterpart of the extension's upward drag, gated the same way.
Input
B this frame's bat step, in pixels
drag_attached_down 9CA6 LD A,(expand_active) No extension attached? Nothing to drag.
9CA9 OR A
9CAA RET Z
9CAB LD A,(bat_ext_y) Move the extension down by the step: add B to its Y.
9CAE ADD A,B
9CAF LD (bat_ext_y),A
9CB2 RET
← 9C99 Drag the bat's extension up Map 9CB3 → Per-frame prize/effect object animation manager
Fork me on GitHub