smokku / rust_roguelike_tutorial

Rust Roguelike Tutorial + Legion ECS + RON prefabs

Home Page:https://bfnightly.bracketproductions.com/rustbook/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust Roguelike Tutorial

This is a Roguelike Tutorial - in Rust implemented using Legion ECS (instead of Specs) and RON based prefabs (instead of JSON).

Still work in progress - as I progress through the tutorial.

Using

Commits in this repository follow the naming of Herbert's tutorial chapters and subchapters. If you would like to follow the tutorial, just checkout the commit corresponding to the chapter you are reading.

Running

Unfortunately, it requires master branch of Legion, so you will need to checkout legion submodule.

Either clone all together:

git clone --recursive https://github.com/smokku/rust_roguelike_tutorial.git

or after normal clone do:

git submodule update --init --recursive

Building for Web

cargo +nightly -Z features=itarget build --release --target wasm32-unknown-unknown
wasm-bindgen target/wasm32-unknown-unknown/release/rust_roguelike_tutorial.wasm --out-dir web --no-modules --no-typescript

serve web/

About

Rust Roguelike Tutorial + Legion ECS + RON prefabs

https://bfnightly.bracketproductions.com/rustbook/

License:MIT License


Languages

Language:Rust 99.4%Language:GLSL 0.5%Language:HTML 0.1%