> For the complete documentation index, see [llms.txt](https://developer.opzeknd.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.opzeknd.xyz/unity-sdk/tiles-evm-example.md). Agents can also search and read this documentation through its [MCP server](https://developer.opzeknd.xyz/~gitbook/mcp).

# 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 <a href="#development" id="development"></a>

#### #1. Run your own DappChain <a href="#id-1-run-your-own-dappchain" id="id-1-run-your-own-dappchain"></a>

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

#### #2. Download the example project (Unity Tiles Chain EVM) <a href="#id-2-download-the-example-project-unity-tiles-chain-evm" id="id-2-download-the-example-project-unity-tiles-chain-evm"></a>

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

#### #3. Start the DappChain <a href="#id-3-start-the-dappchain" id="id-3-start-the-dappchain"></a>

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 <a href="#id-4-build-the-unity-client" id="id-4-build-the-unity-client"></a>

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