A downloadable simulation for Windows

How It Works:

Ants wander until they find food.

Once they find some, they turn around and leave a trail behind to guide more ants to the food.

When ants bring food home, they turn around and follow the trail back to the food.

They also leave behind a different type of trail to guide other ants home.

Trails decay over time.

Controls:

Left Click to spawn ants.

Right Click to place food.

Press Space to view trails.

Prototype:

This is a very early prototype; haven't implemented some basic things like maximizing the window or moving it around. If you do resize the window and try to click, it won't work as expected. You must place food and ants when the window is at it's original size. If you click and drag the window, the simulation will be interrupted. There are probably plenty of other bugs, please comment if you find something interesting!

Source Code:

My Code: https://github.com/lcpckp/AntFarm

Graphics library: https://www.sfml-dev.org/

Download

Download
Ant Farm.zip 432 kB

Install instructions

Unzip the folder and run Ant Farm.exe

Leave a comment

Log in with itch.io to leave a comment.