In the collision code, there was a function called checkCollision that would check for collision, but now the collision code is back to the original collision code which didn't work as well which is one of the reasons why the collision isn't working anymore. I can't figure out what changed it because all of the code gets updated when your code editor automatically changes all of the indentation so can you please just use VS Code like I do and not have any problems like this.
In the collision code, there was a function called checkCollision that would check for collision, but now the collision code is back to the original collision code which didn't work as well which is one of the reasons why the collision isn't working anymore. I can't figure out what changed it because all of the code gets updated when your code editor automatically changes all of the indentation so can you please just use VS Code like I do and not have any problems like this.