By TxPipe

Build Ship

Creates a ShipState UTxO locking min ada and a ShipToken (minted in this tx), specifying in the datum the initial pos_x and pos_y coordinates of the ship, and setting fuel to an initial amount. Also adds to the AsteriaUTxO value the SHIP_MINT_FEE paid by the user.

createShip diagram

Lucid Example

You can use the following Lucid script to build your ship. The supporting files are available here.