Structure-of-arrays entity system with a spatial hash: blue and red cylinder squads flock (separation, alignment, cohesion) and seek enemies to fight. Add fifty a side.
Simulation
For games or crowded controls, open the demo in a new tab for the most room.
ECS Battles & Swarms · 5 labs
Playing a game or need more room? Open demo in a new tab
JavaScript runs this experiment. Open demo in a new tab