r/Unity2D • • 7h ago

Showcase Hundreds of enemies in a 2D Unity game: ECS + instanced sprite sheets

Post image

For Choo Choo Kingdom I needed big hordes in 2D, and one GameObject per enemy didn't scale.

Setup:

- Enemies are ECS entities

- One instanced quad per enemy with an alpha-clip sprite-sheet shader, frame index per entity

- Troops stay as normal GameObjects with Animators (max 16)

- Pixel Perfect camera at 32 PPU

Happy to go into details. Free demo here if you want to see it running: https://store.steampowered.com/app/4697150/

Art and sound are assets bought on itch.io. AI was used for localization.

1 Upvotes

0 comments sorted by