Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Ants simulator inspired by Pezza's and Sebastian Lague work.

Notifications You must be signed in to change notification settings

lafusew/browser-ants-simulation

Repository files navigation

Ants Simulation

Trying to simulate Ants

Ants colony basic behavior simulation written in Typescript and using Canvas 2D as renderer. Inspired by Sebastian Lague and Pezza work.

What are we simulating?

For now, not much... But the goal is to model a simple pheromone-based Colony behavior. Ants aren't organized like humans are. Similarly to boids each ant follows a set of rules. Putting all those single behavior together results in an organized-looking behavior as a whole.

How does ants move

Check Pezzza's Work explanation here. Implemented rules should be the same in my simulation.

Optimization

Pre generating random numbers at start and picking them at run time. Other than that for now nothing has been done to try to optimize simulation. At some point we might want to delegate some processing to an other thread using a web-worker. Or even write movement logic in a Web Assembly module.

About

Ants simulator inspired by Pezza's and Sebastian Lague work.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published