Rust type guessing game!
Find a file
2024-11-15 14:36:59 -05:00
src move markdown error response boilerplate to markdown module 2024-11-15 14:36:59 -05:00
.gitignore initial commit - shuttle template 2024-11-14 19:27:48 -05:00
Cargo.lock move markdown error response boilerplate to markdown module 2024-11-15 14:36:59 -05:00
Cargo.toml move markdown error response boilerplate to markdown module 2024-11-15 14:36:59 -05:00
LICENSE license :D 2024-11-14 19:49:44 -05:00
Makefile initial commit - shuttle template 2024-11-14 19:27:48 -05:00
README.md initial commit - shuttle template 2024-11-14 19:27:48 -05:00
Shuttle.toml initial commit - shuttle template 2024-11-14 19:27:48 -05:00

Example of how you can compile Bevy to WASM and run it on Shuttle.

Instructions

Make sure you have wasm-bindgen-cli and the rustup wasm32-unknown-unknown compilation target added. If you don't, you can get them by running the following:

cargo install wasm-bindgen-cli
rustup target add wasm32-unknown-unknown

You can try the example out by simply running cargo run, or go straight to compilation if you want to get your game straight to the browser.

In the Makefile, there is a command for compiling the game to WASM. If you don't have make installed, you can run the command manually.

make build

Go to the project workspace root or the server folder, run shuttle run, then visit http://localhost:8000/game, you should see your Bevy program in action!