Prev: 36127 Up: Map Next: 36157
36137: Start Debris Piece
Used by the routine at ExplodePlayerShip.
Starts a piece of debris at the position of the player's ship.
Input
IX Address of the slot
IY Address of the player's object
StartDebrisPiece 36137 CALL FreeObjectSlot Clear the slot.
36140 CALL CopyPosition Copy the position of the player.
36143 LD (IX+7),28 Set the horizontal speed of the piece.
36147 LD A,(23581) Fetch the speed from TileNumber.
36150 LD (IX+9),A Set the vertical speed of the piece.
36153 JP MoveObject Jump to MoveObject.
36156 DEFB 0
Prev: 36127 Up: Map Next: 36157