How do I add collision between player projectile and enemies?

Thanks! I want the player to be able to collide with the enemies and the enemies projectile. The player and enemy projectiles should also be able to collide

The player projectiles are stored in an array list. The enemies are also stored in an arraylist, and their projectiles will be in their own array list as well.

Would I have to loop through each of these array lists every draw() and check for collision?

1 Like