Java 2D Rectangle Collision? [on hold]

Posted by Andreas Elia on Game Development See other posts from Game Development or by Andreas Elia
Published on 2013-06-30T10:59:37Z Indexed on 2013/06/30 16:28 UTC
Read the original article Hit count: 234

Filed under:

I am just wanting to know of another (longer OR shorter) way of getting 100% effective collisions on a 2D plat-former. The current collision system that is in place works from coords on the level and does not always work reliably.

Thank you in advance for any help/support.

The current system draws a rectangle and is checking to see if any two points collide. From testing, the system can sometimes "glitch" and allow the player to collide into walls etc.

Player Class

Main Class

© Game Development or respective owner

Related posts about java

Related posts about 2d