Prev: B9BB Up: Map Next: BA09
B9EC: Set the ship's speed in the world from this pass's scroll
Used by the routines at toggle_carried_part, build_ship_sprite and ship_pass.
The ship's record, at ship_record, holds its position in the world (+1 to +6) like any object's; it moves exactly as the landscape scrolls, the other way: across and up by minus the steps in scroll_down, whole pixels.
Output
IX the ship's record
ship_speed_from_scroll B9EC LD IX,ship_record the speeds, no fractions
B9F0 LD A,(scroll_across)
B9F3 NEG
B9F5 LD (IX+$07),A
B9F8 LD A,(scroll_down)
B9FB NEG
B9FD LD (IX+$09),A
BA00 LD (IX+$08),$00
BA04 LD (IX+$0A),$00
BA08 RET
Prev: B9BB Up: Map Next: BA09