Crates.io | doryen-rs |
lib.rs | doryen-rs |
version | 1.3.0 |
source | src |
created_at | 2018-08-03 18:24:57.383624 |
updated_at | 2022-10-09 22:42:37.835213 |
description | Pure rust OpenGL accelerated roguelike console API with native/wasm support |
homepage | https://jice-nospam.github.io/doryen-rs/index.html |
repository | https://github.com/jice-nospam/doryen-rs |
max_upload_size | |
id | 77380 |
size | 7,372,120 |
Ascii roguelike library in rust with native and wasm support. Uses the uni-gl and uni-app crates from the unrust game engine.
+ [x] GLSL renderer
+ [x] RGBA, RGB and greyscale fonts
+ [x] mouse input
+ [x] keyboard input
+ [x] subcell resolution
+ [x] PNG image blitting
+ [x] unicode support
+ [x] screenshots
Visual demo |
Basic real-time walking @ |
Performance test |
Fonts demo |
Unicode demo |
Console blitting demo |
Image blitting demo |
Subcell resolution demo |
Transparent console demo |
Text input demo |
[dependencies]
doryen-rs="*"
Check the examples and documentation for more information.
cargo run --example basic
rustup target install wasm32-unknown-unknown
Change the path
variable in examples/Cargo.toml to select an example.
Compile the demo with
wasm-pack build examples
This creates a wasm package in examples/pkg
Run the demo with
cd www
npm install
npm run start
Open your browser at http://localhost:8080/
This code is released under the MIT license.
You can contribute to this library through pull requests. If you do so, please update the CHANGELOG.md and CREDITS.md files. If you provide a new feature, consider adding an example as a tutorial/showcase.