Skip to content

๐Ÿ•Š๏ธ Flocking Birds as WebAssembly NPM package

License

Notifications You must be signed in to change notification settings

nSimonFR/wasm-boids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

wasm-boids

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

Demo available @ nsimon.fr ๐Ÿ‘€

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

About

๐Ÿ•Š๏ธ Flocking Birds as WebAssembly NPM package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published