← 9BEE Move the bat with inertia Map 9CA6 → Drag the bat's extension down
9C99: Drag the bat's extension up
Raises the bat extension in lockstep with the bat. A no-op while no extension is attached.
The extension's downward drag is its counterpart.
Input
B this frame's bat step, in pixels
drag_attached_up 9C99 LD A,(expand_active) No extension attached? Nothing to drag.
9C9C OR A
9C9D RET Z
9C9E LD A,(bat_ext_y) Move the extension up by the step: subtract B from its Y.
9CA1 SUB B
9CA2 LD (bat_ext_y),A
9CA5 RET
← 9BEE Move the bat with inertia Map 9CA6 → Drag the bat's extension down
Fork me on GitHub