formations.module
README.md
rtsKit.formations
Where each unit of a group stands for every formation. layout(id, units) returns offsets in the group's frame, front rank first: melee lead, ranged follow, siege at the back or in the middle, and each rank keeps left units on the left so nobody crosses the group. defineShape(id, fn) adds a formation of your own.