|0.8.7||Oct 4, 2022|
|0.8.1||Apr 29, 2020|
|0.8.0||Apr 8, 2020|
|0.7.0||Feb 22, 2020|
#1331 in Game dev
2,818 downloads per month
Used in 3 crates
Welcome to bracket-lib
You can read a tutorial series on writing a Roguelike with this library at: https://bfnightly.bracketproductions.com/rustbook/
Bracket-lib is the primary support library for my book, Hands-on Rust. Please consider checking out my book.
Early work has begun on writing a manual. You can find it in the
manual folder, or read it online.
BREAKING CHANGE ALERT: The
crossterm feature is now
cross_term if you are using
bracket-terminal directly. It's still
IMPORTANT: If you are running the
webgpu backend, you need to add
resolver = 2 to your
Cargo.toml file. WGPU requires it for platform selection.
What happened to RLTK?
This is RLTK, renamed because it is increasingly finding usage outside of just Roguelikes. It's also been divided into a number of crates, to make it easy to pick-and-choose the features you need.
bracket-liband re-exports in the
rltk::preludenamespace. This preserves compatibility with all existing RLTK projects.
bracket-algorithm-traitsexposes the traits required for the various algorithm systems in other crates.
bracket-coloris my RGB/HSV color management system.
bracket-geometryexposes various geometric primitives and helpers. Supports other crates.
bracket-noiseis a port of Auburn's FastNoise to Rust.
bracket-pathfindingprovides a high-performance A* (A-Star) pathing system, as well as Dijkstra maps.
bracket-randomis a dice-oriented random number generator, including parsing of RPG-style dice strings such as
Cargo.toml file, include:
[dependencies] bracket-lib = "~0.8"
There are a few feature flags designed to aide integration with other systems:
bracket-libsub-systems to export important primitives as having Specs'
bracket-libsub-systems to support using
threadedenables multi-threading on some sub-systems.
bracket-lib runs in OpenGL mode (or WebGL if it detects that you are compiling for
wasm32-unknown-unknown). If you want to use other rendering back-ends, disable default features and apply one of the following feature flags:
webgputo use the
wgpusystem as a back-end, supporting Vulkan, Metal and WebGPU.
crosstermto use the excellent
pdcursessupport depending upon your platform.