Building Swarm Entropy : From Rock-Paper-Scissors to Neon Auto-Battler What started as a simple coding experiment quickly spiraled into absolute neon chaos. I set out to build a simple rock-paper-scissors simulation in a single HTML file: Leaf beats Water, Water beats Fire, Fire beats Leaf. Throw 60 units onto an HTML5 Canvas, make them chase each other, and see who wins. But as the engine took shape, the scope exploded. I introduced flocking algorithms, rigid-body physics, class-based combat (Snipers, Healers, Shields), environmental hazards like wormholes, and game-breaking powers. The result is Swarm Entropy : a zero-dependency, vanilla JavaScript auto-battler. Here is a look at how the game plays, and a deep dive into the custom engine running under the hood. The Game: Chaos on the Grid In Swarm Entropy, you don't directly control your units. You act as a commander: you pick your army, draft a game-breaking power, and release them onto the grid. The battles are broken into tw...
Personlig blog for Marc Sonne Dahl