Skip to content

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

Notifications You must be signed in to change notification settings

dujo09/Ant-Colony-Simulator

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages