Flocking simulation with boids, written in Typescript. Uses ESNext module syntax and Webpack packaging.
- Follows the video from Coding Train
- Read the original paper by Craig Reynolds
Tested:
npm: 8.1.4
node: 14.18.1
git clone https://github.com/l00sed/p5js-boids-ts.git
cd p5js-boids-ts
npm install
(only once, to install dependencies and setup NPM environment)npm start
(run Webpack based on config, start local server on port 8080)- F5 to start the debugger in Chrome
Use npm run build
to build a /dist
folder.