New answers tagged units
You mentioned an object pool for each enemy subclass... "It seems a bit weird." But it would work, right? Seems fine to me. Subclassing helps you organize your code, while object pools are inherently a space-for-time tradeoff. Another approach (which you allude to) would be to reduce your number of classes with parameterization. One extreme ...
Top 50 recent answers are included