Hi, first of all sorry for any grammical mistakes, english isn't my native language.
I am in the process of learning how to build a 2D game in java but I don't have a deep understanding in the subject so I have a few questions.
1. I am having a problem with the preformence in the collusion detection. I am using detection with rectangles that intersect, but in many cases, like the player jumping, there are sometimes glitches like the player image sink a bit into the floor because the detection was too late.
What might be the problem and how can I fix it?
Also, is it reasonable to have different collusion methods for different objects (player, enemy, objects and bullets)?
2. I understood it is worthwhile to use librarys like lwjgl for games. I tried to learn a bit from tutorials but I stopped because I never quite understood what are the advantages of the lwjgl, can someone explain a bit on the subject? Why I should use it and how its best to start learning it?
If you want to see source code of the game look or collusion method I can post it, but the game loop isn't uniqe in any way i think (just a lot of updates and repaint in the end) and the cullosion method checks for every rect if it intersects with the map, objects and so forth. Also in the collusion method there are some unnecessay booleans I think that I created trying to fix the problem I described.