I have interesting bug with collision detection, where the player speed is doubled when they go down and collision doesn’t detect
I’m programming a top down 2d game in java with 8 directional movement, and while writing my next big advancement which is collision detection I’ve run into a major bug. As described in the question the player character (Which is a box at this point) will double their speed and go out of the map boundaries and then the game will crash (but not close) they player will become stuck in place (see the image below).