Love2D implementation of the Boids simulation. https://en.wikipedia.org/wiki/Boids
- Space Pause/Unpause
- Right Click Spawn Boids
- C Remove all boids
- A Show/Hide viewing areas
- T Show/Hide trails
- B Enable/Disable turning on borders
- M Enable/Disable mouse follwing
- O Enable/Disable quadtree for collission checking (performance is worse though)
- S Change window scaling (pixelated look!). There are 3 scalings: Big, Medium (Default), Small.
- D Debug mode
The project requires Love2D. Simply run:
love .
on the project's root.
- Boids simulation: https://vanhunteradams.com/Pico/Animal_Movement/Boids-algorithm.html
- Boids simulation in p5: https://p5js.org/examples/simulate-flocking.html
- Steering behaviour: https://code.tutsplus.com/understanding-steering-behaviors-seek--gamedev-849t
- Love2D sliders: https://love2d.org/forums/viewtopic.php?t=80711
- Love2D Wiki: https://love2d.org/wiki/Main_Page
- Spatial Hash: https://www.youtube.com/watch?v=i0OHeCj7SOw