860 B
860 B
Build instructions
- Make sure you have
wasm32-unknown-unknowntarget installed in rustup (if not, do:rustup target add wasm32-unknown-unknown) - Make sure you have
wasm-packinstalled (if not, do:cargo install wasm-pack) - To build the executor, do:
wasm-pack build --target web --release
How to run the game on localhost
- Make sure you have
basic-http-serverinstalled (if not, do:cargo install basic-http-server). - Clone assets to the
executor-wasmdirectory. Alternatively, clone everything exceptCargo.tomlandsrcdirectory to the root of your project (../). - Execute
basic-http-serverinexecutor-wasmdirectory (or in root folder if you you've used alternative path).
If everything has succeeded, open a web browser at http://localhost:4000/, click "Start" button and your game shoud load.