I’ve looked on Google and still couldn’t find anything. I had an idea for a simple Snake type game or like a ‘Coin Collection’ game using 2D graphics, but if a coin is a graphic and the moving character is a graphic, how do I check if the character goes over the coin? I’m stumped. Any ideas?
Share
For a crude implementation have all your sprites backed by a Rectangle2D object, and use the intersects method to test for collision. Caveat, this is very crude!