https://github.com/dojoengine/dojo.bevy
Bevy plugin to integrate Dojo.
https://github.com/dojoengine/dojo.bevy
Last synced: 11 months ago
JSON representation
Bevy plugin to integrate Dojo.
- Host: GitHub
- URL: https://github.com/dojoengine/dojo.bevy
- Owner: dojoengine
- Created: 2024-08-09T00:10:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-16T16:16:12.000Z (12 months ago)
- Last Synced: 2025-06-16T17:41:34.164Z (12 months ago)
- Language: Rust
- Size: 55.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dojo Bevy Plugin
This repository contains a plugin for the [Dojo](https://github.com/dojoengine/dojo) framework,
which allows to connect to Torii and Starknet using Bevy.
## Setup
1. Install Dojo `1.5.1` by running:
```bash
dojoup install 1.5.1
```
2. Clone the [dojo-intro](https://github.com/dojoengine/dojo-intro) repository and compiles it.
```bash
git clone https://github.com/dojoengine/dojo-intro.git
cd dojo-intro/contracts
sozo build
```
3. Run Katana and migrate (still in the `dojo-intro/contracts` directory):
```bash
katana --config ./katana.toml
sozo migrate
```
4. Run Torii:
```bash
torii --config ./torii_dev.toml
```
5. Run this example:
```bash
cargo run --example intro
```
## How to play
More is coming with better UI but currently you can:
1. Press `C` to connect to Torii and Starknet.
2. Press `S` to subscribe to Torii entities updates.
3. Press `Space` to spawn a cube at position `(10, 10)`.
4. Press the arrows to move the cube.