# 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.

\
\&#xNAN;**#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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.opzeknd.xyz/unity-sdk/tiles-evm-example.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
