Line collision in pygame
问题 So I am currently working on a 2D platformer game and i have realized a big issue with my collision programming. You see, to find out collisions with the player I just moved the player rect around, then when colliding i pushed the player away by looking at the x and y acceleration on him. The problem is though, when using this method, the player speed can make the player skip over targets he is supposed to collide with because the rect he is supposed to collide with is too small. For example