Prev: BE8F Up: Map Next: BF7F
BF66: Move a record through the world by its speed
Used for every moving thing: the ship, the shots, the objects. The world is a ring $60 pages round, 224 pixels to a page, and a stack of pages 160 lines high (see move_across and move_down).
Input
IX the record
move_object BF66 CALL move_across across: page, x and fraction into +1 +2 +3
BF69 LD (IX+$01),H
BF6C LD (IX+$02),L
BF6F LD (IX+$03),E
BF72 CALL move_down down: page, line and fraction into +4 +5 +6
BF75 LD (IX+$04),H
BF78 LD (IX+$05),L
BF7B LD (IX+$06),E
BF7E RET
Prev: BE8F Up: Map Next: BF7F