shura

shura is a safe, fast and cross-platform 2D component-based game framework written in rust. shura helps you to manage big games with it's scene managing, group system and component system which is designed to easily share components between projects (therefore allowing for a ecosystem of components). shura has everything your 2D game needs such as physics, controller input, audio, easy extensible rendering, serializing, deserializing, text rendering, gui, animations and many more. See the features section for all of shura's features.

shura is currently in an early version and things might change in the future or don't work as intended. Feel free to create an issue if you encounter bugs, have feedback or have questions.

Getting started

To see some examples head to the /examples directory or run cargo run --release --example bunnymark

Get started by copying the template. The template includes the library, some introduction and has some additional configuration to make sure your game runs on all supported platforms.

OR:

Add the following to your Cargo.toml: [dependencies] shura = "0.3.0"

A good way to learn shura is through the provided examples or through reading the code documentation.

Features

Cross-platform

shura is currently only tested on Windows 10 / 11, Linux, Android and on the web with WASM. macOS and iOS are currently untested, but are likely to work.

The template uses run-wasm to run on the web and cargo-apk to run on android.

Android

When compiling for android make sure the following is added in the Cargo.toml:

[lib] crate-type = ["cdylib"] path = "src/main.rs"