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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -