Skip to content

Latest commit

 

History

History
154 lines (134 loc) · 6.95 KB

README.md

File metadata and controls

154 lines (134 loc) · 6.95 KB

Course: Roguelike Tutorial - in Rust

Course link: https://github.com/amethyst/rustrogueliketutorial

Status: 🚧

Preparations

  1. Install WASM-related components
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli
  1. [Optional] Install system dependencies for native target: cmake, c++, fontconfig
# For Fedora
sudo dnf install cmake g++ fontconfig-devel
  1. [Optional] Install simple-http-server for file serving
cargo install simple-http-server

Run

Native

cargo run

Web

Build

cargo build --release --target wasm32-unknown-unknown
wasm-bindgen target/wasm32-unknown-unknown/release/*wasm --out-dir wasm --no-modules --no-typescript

Serve

simple-http-server -- wasm

... or use Python for serving

python3 -m http.server -d wasm

Open http://0.0.0.0:8000/

Index legend

  • 📝 - a link to a book page
  • ✏️ - a link to an .rs file (code)
  • 👷 - a page under construction in the course
  • 🚧 - not finished

Index

Notes

Comments

  • Some of my thoughts are prefixed with NOTE(DP):
    • Example: // NOTE(DP): Algorithm complexity: O(n)
  • Resolved course TODOs are prefixed with DONE:
    • Example: // NOTE(DP): ^ Uncomment the above 2 lines to see the compiler error
  • Other comments copied from the course

Code conduction

This project uses Gitmoji for commit messages

License

GPLv3+