Skip to content

sanisoclem/triangle-apocalypse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Triangle Apocalypse

Available to play at https://triangle-apocalypse.vercel.app/, also see known issues.

Running from source

Natively

# run in release
$ cargo run --release
# enable hot asset reloading
$ cargo run --release --feature hotreload
# enable hot reload and debug screens
$ cargo run --release --features="hotreload,debug"

Wasm

Install prerequisites:

$ rustup target add wasm32-unknown-unknown
$ cargo install wasm-bindgen-cli
$ cargo install basic-http-server
$ RUSTFLAGS=--cfg=web_sys_unstable_apis cargo build --profile wasm-release --target wasm32-unknown-unknown
$ wasm-bindgen --out-name jam4 \
  --out-dir wasm/target \
  --target web target/wasm32-unknown-unknown/wasm-release/bevy-jam-4.wasm
$ basic-http-server wasm

Known issues:

  • wasm build only works on chrome - webgpu is needed for compute shaders created by bevy_hanabi
  • particle effects are buggy when using Chrome on Windows
  • .DS_Store files in /assets/preload causes the app to crash. This happens on mac when browsing the assets folder in finder.

Credits:

All other art and assets were created by me