Perturb:
Too cumbersome. Would need to use two arrays and keep empty spots in arrays at the end or search the arrays for empty spots each time a sprite is added and removed. Would confuse uers looking to make changes to the system as well.
Puki:
That's similar to perturbatio's suggestion. One alternative I considered which is also similar though would be to keep a list for each sprite of the sprites that have been collided with it. But that would require me to loop through that list to check it with each collision. Might not be fast and definitely not elegant.
Too cumbersome. Would need to use two arrays and keep empty spots in arrays at the end or search the arrays for empty spots each time a sprite is added and removed. Would confuse uers looking to make changes to the system as well.
Puki:
That's similar to perturbatio's suggestion. One alternative I considered which is also similar though would be to keep a list for each sprite of the sprites that have been collided with it. But that would require me to loop through that list to check it with each collision. Might not be fast and definitely not elegant.