java - Best way to check for collision of multiple objects? -
I am making a breakout clone for fun as my first game. I am using Java and Android.
The way I was thinking of doing this, all the coded objects in it register their dimensions in a list, and then repeat through this list to check the collision of each frame. for .
The outer loop will first be examined by a simple fast, which will determine the distance, and if the ball is close to an object then it will detect more functioning.
Comments
Post a Comment