Ant Simulation

By: Daniel Shumway and Tony Hoang

Inspired by bugs that eat their children, we made the ants cannibals as they grow up; the ants themselves are the foodsource. Ants start off as infants which when mature are capable of mating with one another. During an ant's lifetime, an ant will attempt to consume other ants/corpses that are roughly smaller than itself to continue living. Corpses are decaying at a fixed rate and will disappear from the canvas when completely decomposed. As a form of population control, the ants are capable of poisoning each other which kills off the victim in a short amount of time. The dead bodies of poisoned victims still carry a trace of poison and can afflict the consumer.

Left-click anywhere on the canvas to spawn a swam of baby ants unto the world and watch the mayhem.


your browser does not support canvas
Show Color - Show quadTree -