860 B
860 B
Build instructions
- Make sure you have
wasm32-unknown-unknown
target installed in rustup (if not, do:rustup target add wasm32-unknown-unknown
) - Make sure you have
wasm-pack
installed (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-server
installed (if not, do:cargo install basic-http-server
). - Clone assets to the
executor-wasm
directory. Alternatively, clone everything exceptCargo.toml
andsrc
directory to the root of your project (../
). - Execute
basic-http-server
inexecutor-wasm
directory (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.