Tiles EVM Example

This document shows how to use the zeknd Unity SDK to build a simple Unity game that interacts with an EVM-based zeknd 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/zekndnetwork/unity-tiles-chain-evm

#3. Start the DappChain

First, let's download zeknd:

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

Once zeknd is downloaded, we need to configure it:

./zeknd init
cp genesis.example.json genesis.json

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

./zeknd run

#4. Build the Unity client

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

Last updated