- Read all of this: https://www.redblobgames.com/grids/hexagons/
- Then read all of this: https://www.redblobgames.com/grids/hexagons/implementation.html
- Goto 1
- Added
[lib]
:crate-type = ["cydlib"]
- Added dependency:
wasm-bindgen = "^0.2"
- Previously installed wasm-pack:
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- Build initial WASM:
wasm-pack build
- Build initial web app:
npm init wasm-app rust-hex-app