Hex WebAssembly
A solo hex game based on wasm-pack.
Dependencies
Rust & Rustup
Rust minimal version : Rust 1.30 Refer to your distribution documentation for how to install Rust. We recommand to use Rustup.
NPM
You can go to the NPM website to know how to install NPM.
wasm-pack
Run the following command in terminal :
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
Rust toolchain
If you don't have rust stable toolchain installed, you can do it with this command :
rustup default stable
Usage
Build with make (wasm-pack build)
make install
Run in browser
make start
Run in browser with debug and hot reloading
make dev
You can now see the running app into your default web browser.
wasm-pack test
Test in Headless Browsers with make test