Inspired by the 1-Button Jam. Work in progress game as I learn to use the Godot game engine. Also one of my first attempts to use Rust in an actual project, thanks to godot-rust.
Go to scroggo.itch.io/frogjump to play the web version.
General instructions can be found in the godot-rust book.
cargo +nightly build -Zbuild-std --target wasm32-unknown-emscripten
# debug build for testing- Test locally.
cargo +nightly build -Zbuild-std --target wasm32-unknown-emscripten --release
- Project -> Export -> Web (Runnable) -> Export Project...
cp web_export/anim.png web_export/raw/index.png
1zip web_export/zipped/<dest>.zip web_export/raw/* -v
Footnotes
-
anim.png
is an APNG file. Godot lets you specify an image file to show on the splash screen while loading, but it only supports (non-animated) PNG. However, you can replace the default file with an APNG, and many browsers animate it. (Others should display the first frame as a regular PNG.) ↩