Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/comba92/boids-automata

🐦 Love2D implementation of the Boids simulation.
https://github.com/comba92/boids-automata

game love2d lua simulation

Last synced: about 2 months ago
JSON representation

🐦 Love2D implementation of the Boids simulation.

Awesome Lists containing this project

README

        

# 🐦 Boids - Flocking simulation in Lua Love2D
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

![preview](images/preview_new.gif)

## Build
The project requires [Love2D](https://love2d.org/).
Simply run:
```
love .
```
on the project's root.

## References
- 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