This repository contains a plugin for the Dojo framework, which allows to connect to Torii and Starknet using Bevy.
- Install Dojo
1.5.1
by running:
dojoup install 1.5.1
- Clone the dojo-intro repository and compiles it.
git clone https://github.com/dojoengine/dojo-intro.git
cd dojo-intro/contracts
sozo build
- Run Katana and migrate (still in the
dojo-intro/contracts
directory):
katana --config ./katana.toml
sozo migrate
- Run Torii:
torii --config ./torii_dev.toml
- Run this example:
cargo run --example intro
More is coming with better UI but currently you can:
- Press
C
to connect to Torii and Starknet. - Press
S
to subscribe to Torii entities updates. - Press
Space
to spawn a cube at position(10, 10)
. - Press the arrows to move the cube.