Fixing a collision detection bug in Slick2D
- by Jesse Prescott
My game has a bug with collision detection.
If you go against the wall and tap forward/back sometimes the game thinks the speed you travelled at is 0 and the game doesn't know how to get you out of the wall.
My collision detection works by getting the speed you hit the wall at and if it is positive it moves you back, if it is negative it moves you…