This document shows how to use the Loom Unity SDK to build a simple Unity game that interacts with an EVM-based Loom DappChain.

Game instructions

Use the mouse cursor to click on the black canvas area to create colored tiles. Each new player will have a different color on the canvas which is shared amongst all players.

Development

1. Run your own DappChain

Please consult the this page for further instruction on running your own DappChain.

2. Download the example project (Unity Tiles Chain EVM)

git clone https://github.com/loomnetwork/unity-tiles-chain-evm

3. Start the DappChain

First, let's download loom:

cd unity-tiles-chain-evm
cd dappchain
wget https://downloads.loomx.io/loom/osx/stable/loom
chmod +x loom

Once loom is downloaded, we need to configure it:

./loom init
cp genesis.example.json genesis.json

We're now ready to spin up a Loom DAppChain:

./loom run

4. Build the Unity client

Open the Unity project located in unityclient folder. Next, open the LoomTilesChainEvm scene and build it.