Website powered by

The Antfarm

A simple anthill simulation to practice Goal Oriented Action Planning. Made as final project for the Artificial Intelligence subject at ULL's Videogame Developing Master.

The project consists of an automated anthill with three types of ants and an external menace in the shape of a spider. Each "agent" has its own goals with different priorities and act based on them. Outside the anthill food spawns randomly. The explorer ants (the green ones) go outside and explore, when they find food, they communicate with the workers (the yellow ants) and pass the location of the known food. The workers then pick up the food and store it inside the anthill. The workers are also in charge of feeding the queen's eggs when there is food stored. when the egg has enough food a new ant spawns. The queen lays eggs and needs a rest afterwards. All the creatures have a hunger meter that increases their urgency to feed the higher it is. Workers and explorers prioritize feeding on stored food but can eat from discovered outside food too. the queen only eats stored food. The spider wanders the exterior, claiming the food it discover as hers. When the ants take the claimed food to eat or store, her aggressiveness increases, attacking the ants when it's high enough. The creatures also have a life meter and a dying rate, making them all eventually de-spawn. High hunger multiplies the dying rate, and attacks from the spider takes a good chunk of health out.

You can play it or download it at: https://3delugar.itch.io/the-ant-farm