1.0.0 • Published 2 years ago

wasm-boids v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Flocking Birds as WebAssembly NPM package thanks to wasm-pack.

https://www.npmjs.com/package/wasm-boids

Built with 🦀🕸 by nSimon based on work from The Rust and WebAssembly Working Group

📚 About

Implements Boid, Vec2d, Universe & Rules - scales better than my previous JS-based implementation.

Based on the original paper on Boids by Craig Reynolds and the wasm tutorial wasm-game-of-life.

🚴 Usage

Example in HTML Canvas thanks to PixiJS: 1000-random sized and colored boid with wall avoidance and mouse attraction => example

📝 TODO

  • Better boid detection (Currently very naive box detection - should consider using Parry)
  • 3D implementation
1.0.0

2 years ago

0.1.0

2 years ago