- MRPGI_WEB_GAME env (default games/lost-fuse via .cargo/config.toml) selects the game include_dir! embeds; web/build.sh <game-dir> stages just game.json+rooms+sprites (a repo's raw art was ballooning the wasm to 41MB; now 1.9MB) and ships the game's web/index.html and music/. - sound.rs: file overrides load through macroquad's loader (fs on native, HTTP fetch on web), and AudioOut now loads inside a coroutine behind LazyAudio — browsers gate audio decoding behind a user gesture, and blocking boot on it was a black screen. First frame draws immediately; music starts when ready, remembering the requested mood/mute. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||