To compile, run:
cargo build --target wasm32-unknown-unknown
This builds the WASM blob at target/wasm32-unknown-unknown/debug/ld54.wasm
, which is already symlinked to dist/game.wasm
. (Note: This is the debug build; for final release, game.wasm
should be copied from target/wasm32-unknown-unknown/release/ld54.wasm
instead.)
dist/mq_js_bundle.js
has been copied wholesale from https://github.com/not-fl3/macroquad/blob/master/js/mq_js_bundle.js
, which has been made available under the MIT license or the Apache license by Fedor Logachev.
To serve locally:
cd dist; python -m http.server
(or any HTTP server of your choice)