5 releases
Uses new Rust 2024
0.1.5 | Jun 27, 2025 |
---|---|
0.1.4 | Jun 27, 2025 |
0.1.3 | Jun 26, 2025 |
0.1.2 | Jun 17, 2025 |
0.1.0 | Jun 17, 2025 |
#742 in Game dev
622 downloads per month
140KB
2.5K
SLoC
RPGX Dioxus Plugin
This package provides the Dioxus integration for the RPGX game engine, enabling reactive user interfaces for grid-based RPGs using the Dioxus Rust framework.
Features
- Seamless integration with RPGX core engine
- Reactive UI components for RPGs
- Support for both desktop and web platforms via Dioxus
Example
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,
}
}
}
Prerequisites
- Rust toolchain
dioxus-cli
for development and building
Install Dioxus CLI:
cargo install --locked dioxus-cli
Development
To start the Dioxus application in development mode:
make dev-dioxus-desktop
# or for web
make dev-dioxus-web
Building
To build the Dioxus application for production:
make build-dioxus-desktop
# or for web
make build-dioxus-web
Usage
Import and use the Dioxus driver components in your Dioxus app to render and interact with RPGX game state.
License
RPGX is licensed under the MIT License.
Dependencies
~16–62MB
~1M SLoC