Daniel Bauer ([email protected])
Pac-Man clone written in Rust.
$ sudo apt install librust-alsa-sys-dev libudev-dev libssl-dev
- Clone project repository
git clone https://github.com/bauerdaniel/rustman.git - Change to the source directory
cd rustman/rustman - Compile the game using Cargo
cargo run --release
Note: Compilation will take some time since all optimizations are enabled.
Alternatively, the game can also be run in the web browser using WebAssembly.
$ rustup target install wasm32-unknown-unknown
$ cargo install wasm-bindgen-cli
$ cargo build --release --target wasm32-unknown-unknown
$ wasm-bindgen --out-dir ./target/wasm/ --target web target/wasm32-unknown-unknown/release/rustman.wasm
$ cp -R assets target/wasm/assets && cp -R wasm target
$ python3 -m http.server --directory target/wasm