| Crates.io | rpgx-dioxus |
| lib.rs | rpgx-dioxus |
| version | 0.1.5 |
| created_at | 2025-06-17 08:56:48.019345+00 |
| updated_at | 2025-06-27 09:28:32.840725+00 |
| description | Dioxus plugin for the RPGX engine |
| homepage | https://github.com/LorenzoRottigni/rpgx |
| repository | https://github.com/LorenzoRottigni/rpgx |
| max_upload_size | |
| id | 1715437 |
| size | 159,398 |
This package provides the Dioxus integration for the RPGX game engine, enabling reactive user interfaces for grid-based RPGs using the Dioxus Rust framework.
use rpgx::prelude::*;
use rpgx_dioxus::components::engine::Engine as EngineComponent;
let library = Library::new(/* Configure library */)
let engine = Engine::new(/* Configure engine */)
rsx! {
div { class: "rpgx",
EngineComponent {
engine: engine.clone(),
library: library.clone(),
square_size: 30,
}
}
}
dioxus-cli for development and buildingInstall Dioxus CLI:
cargo install --locked dioxus-cli
To start the Dioxus application in development mode:
make dev-dioxus-desktop
# or for web
make dev-dioxus-web
To build the Dioxus application for production:
make build-dioxus-desktop
# or for web
make build-dioxus-web
Import and use the Dioxus driver components in your Dioxus app to render and interact with RPGX game state.
RPGX is licensed under the MIT License.