Ants colony basic behavior simulation written in Typescript and using Canvas 2D as renderer. Inspired by Sebastian Lague and Pezza work.
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.
Check Pezzza's Work explanation here. Implemented rules should be the same in my simulation.
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.