sanisoclem / triangle-apocalypse

Home Page:https://triangle-apocalypse.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

https://triangle-apocalypse.vercel.app/


Languages

Language:Rust 54.3%Language:JavaScript 32.8%Language:WGSL 12.2%Language:HTML 0.7%