https://github.com/killercup/marmalade
https://github.com/killercup/marmalade
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/killercup/marmalade
- Owner: killercup
- Created: 2022-02-25T16:08:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-23T12:09:59.000Z (about 3 years ago)
- Last Synced: 2025-02-09T23:15:28.674Z (about 1 year ago)
- Language: Rust
- Size: 504 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jam Bevy Jam
This is a [Bevy](https://bevyengine.org/) game for the first [Bevy Jam](https://itch.io/jam/bevy-jam-1).
## Setup
- [Install Rust](https://rustup.rs/)
- Use VSCode with "rust analyzer" extension
## Start developing
1. Run `cargo start` in some terminal, e.g. that of VSCode.
This will compile for a hot minute the first time you run it.
2. Edit code
3. See either beautiful game window or long error messages.
4. Go to 2
## Build for WASM
Tools: `cargo install wasm-bindgen`, `brew install binaryen`
Build:
```
cd dist
cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --web --out-dir=. $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/marmalade.wasm
wasm-opt -Oz -o marmalade_bg.wasm marmalade_bg.wasm
```
- Try `opt-level = "z"` or `s`
- Make sure to copy `assets/` next to `index.html`