Prev: 62DA Up: Map Next: 62E8
62E0: Decrease vertical coordinate of the object by the value of state_speed.
Subtracts the current scroll delta from an object's Y coordinate. Used to reverse the adjustment made by advance_object after collision checking.
Input
B Current Y coordinate
Output
B New Y coordinate (B - scroll_delta)
retract_object 62E0 LD A,($5F64) Load scroll delta from state_speed and subtract from B.
62E3 LD H,A
62E4 LD A,B
62E5 SUB H
62E6 LD B,A
62E7 RET
Prev: 62DA Up: Map Next: 62E8