The purple balls just spawn really close to me and shoot their homing bullets with a slight curve, perfect through my defense. Every. Single. Time. Annoying af.
In the end having one of each type of maxed out soldier worked best, then upgrade attack and defense. Even on the last hard wave, I couldn't max out my squad though :-)
Keep trying <3