dujo09 / Ant-Colony-Simulator

An ant colony simulator coded in Java that uses LibGdx for rendering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ant colony simulator

This simulates how ants work as a hive to find food. Ants place pheromones to tell other ants where they found food or where their base is. Blue dots represent "to colony" pheromones and green ones represent "to food" pheromones. When ants deplete a food source they will lay a repellent and degrade any pheromone trails leading to that depleted food source to deter other ants from venturing there.

This project is coded in Java and uses LibGdx for rendering

Controls:

Button/Key Action
WASD move camera
QE zoom in/out
YX toggle pheromones
C toggle ants
HJK toggle colonies
123 Space Time scale
PL increase/decrease brush size
MMB place colony
LMB place wall
LMB + R remove wall
RMB place food
RMB + R remove food

References

johnBuffer AntSimulator
Sebastian Lague Ant Simulation

About

An ant colony simulator coded in Java that uses LibGdx for rendering


Languages

Language:Java 100.0%