Rust rogue-like game tutorial: https://bfnightly.bracketproductions.com/
Go to file
2022-02-04 09:53:30 -05:00
raws Populate the dark elf city, completing section 5.32 2022-02-04 09:42:11 -05:00
resources Update tutorial resource files 2021-11-29 14:59:01 -05:00
src Some code clarity tweaks 2022-02-04 09:53:30 -05:00
wasm Some various tweaks and fixes 2022-02-03 16:14:39 -05:00
.gitignore Add FPS display, get webassembly build working 2022-02-03 11:46:29 -05:00
Cargo.toml Move developer-type code options to 'debug' feature 2022-02-04 09:52:09 -05:00
help-system.mk Finish implmentation of ranged weapons, completing section 5.28 2022-01-31 15:00:00 -05:00
Makefile Move developer-type code options to 'debug' feature 2022-02-04 09:52:09 -05:00
README.md Finally add a README 2022-02-03 12:00:37 -05:00
rustfmt.toml Finish refactoring of map builders 2021-12-15 11:36:17 -05:00

Rust Roguelike

A rogue-like game, implemented in Rust, with the specs ECS library, and rltk roguelike toolkit.

Rust Setup

Follow the instructions on the Getting Started page of the Rust language website.You should then have rustup and cargo available in your terminal. If you want to run on a Raspberry Pi, or via WebAseembly, you will also need make.

Running the game

cargo run or make run

Running the game (Raspberry Pi)

make run-pi

WebAssembly Build

  • Install the WebAssembly target via rustup: rustup target add wasm32-unknown-unknown
  • Install wasm-bindgen: cargo install wasm-bindgen-cli
  • Run make build-wasm
  • Serve the wasm folder with a web server (wasm will not work straight from the html file)

Makefile

If you want to see what else you can run with Makefile, run make help. This will list commands and what they do.