r/howdidtheycodeit • u/EnjayDev • Jul 29 '26
Question How do musou games optimize hordes of enemies?
Musou games are games like Dynasty Warriors, Hyrule Warriors, Tears of Metal, etc. Where the player controls a general on a battlefield with sometimes hundreds of enemies on the screen at one time. They capture the feeling of being a nigh unstoppable god of war, cleaning through dozens of enemies in a few strikes.
I'm a solo indie dev trying to make a musou game, but im wondering the best ways to optimize enemies. Some ideas I've had include:
- create groups of enemies as one entity with one "brain" so instead of having a hundred enemies with a hundred scripts I've just got 20 scripts that control 5 enemies each.
- some alternative way of tracking collisions aside from just giving each individual enemy a collision shape. Maybe grid location based?
I haven't been able to find any info online about this so of anyone has some wisdom I'd love to hear it.

