Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/comba92/boids-automata
- Owner: Comba92
- Created: 2023-11-21T20:21:58.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-24T14:28:42.000Z (12 months ago)
- Last Synced: 2024-11-10T11:02:47.068Z (3 months ago)
- Topics: game, love2d, lua, simulation
- Language: Lua
- Homepage:
- Size: 11.1 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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