Let’s create a tank game in Unity + MUD!
NOTE: This tutorial uses the optional studio-mud
package, you can remove it from the Unity package manager and interact directly with UniMUD!
This tutorial assumes you have already installed all the prerequisites.
git clone -b tankmud-tutorial <https://github.com/emergenceland/UniMUD.git
>templates/tankmud/
pnpm install
to install MUDpackages/contracts/
in your preferred code editor.We’re ready to begin creating our onchain logic.
Open mud.config.ts
from the contracts folder
We want tanks to do 2 things: move and attack. This means we need the following components/tables.
(x: int32, y: int32)
,bool
,int32
,int32