Hello, I am a complete newb in this forum and in java gaming in general. Reason why I started java gaming is because JAVA IS THE FUTURE
ok so with that out of the way I have a question.
I have made simple 2D java game, and for collision detection I use AABB(bounding box) method, and it was working just fine, as long as the amount of objects I used was below 30. But now that my map got bigger, the method checks for collision of every single object with main character and its slowing down the gameplay greatly.
So I was wondering how to do collision detection with objects that are in close proximity of main character rather than all the objects on map.
If someone could guide me to a great collision detection tutorial, I would be ever so thankful.
All my collision detection knowledge came only from http://www.metanetsoftware.com/technique/tutorialA.html
Thanks in advance to all who help ^^