When looking at my code for enemy AI, I found a mistake that was making the algorithm take an average of 90 loops per enemy when finding the normal angle. It now takes an average of 2 loops. I just ran a test level with 36 hoppers onscreen at one time and there was no slowdown whatsoever.
|
|