Skip to content

volodalexey/bevy-wasm-ball-shooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bevy Ball Shooter

Main goal is WASM with touch/mouse support

Compile to WASM (WebAssembly) and build for browser

Add WebAssembly support to your Rust installation

rustup target install wasm32-unknown-unknown

Install wasm-bindgen CLI

cargo install wasm-bindgen-cli

Run build script

./wasm/build.sh
  • Magneitic force can be applied only to dynamic rigid bodies
  • Kinematic rigid bodies used as attraction point for rigid bodies
  • Dynamic rigid bodies used as attraction point for other dynamic rigid bodies
  • Balls within nearest distance have attraction
  • Each dynamic ball have small to-top attraction force also
  • Whenever collision between balls start - I send FindCluster event
  • System for find clusters accumulates entities from events and run find cluster from time to time

TODO shoot multiple projectiles show next projectile from one side and multiple items switch next projectile show first row partially and avoid clusted detection for first row responsive layout and scale UI bottom show info sprites for balls and buttons WASM audio

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages