Prev: 8D1F Up: Map Next: 8D3D
8D29: 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 8D29 CALL FreeObjectSlot Clear the slot.
8D2C CALL CopyPosition Copy the position of the player.
8D2F LD (IX+$07),$1C Set the horizontal speed of the piece.
8D33 LD A,($5C1D) Fetch the speed from TileNumber.
8D36 LD (IX+$09),A Set the vertical speed of the piece.
8D39 JP MoveObject Jump to MoveObject.
8D3C DEFB $00
Prev: 8D1F Up: Map Next: 8D3D