Skip to content

πŸ¦€ "Roguelike Tutorial in Rust - using RLTK" course materials

License

Notifications You must be signed in to change notification settings

s373r/course-rustrogueliketutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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+

About

πŸ¦€ "Roguelike Tutorial in Rust - using RLTK" course materials

Topics

Resources

License

Stars

Watchers

Forks