rpgx-dioxus

Crates.iorpgx-dioxus
lib.rsrpgx-dioxus
version0.1.5
created_at2025-06-17 08:56:48.019345+00
updated_at2025-06-27 09:28:32.840725+00
descriptionDioxus plugin for the RPGX engine
homepagehttps://github.com/LorenzoRottigni/rpgx
repositoryhttps://github.com/LorenzoRottigni/rpgx
max_upload_size
id1715437
size159,398
Lorenzo Rottigni (LorenzoRottigni)

documentation

https://docs.rs/rpgx-dioxus

README

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.

Commit count: 181

cargo fmt