This is a test game that I have created so I can figure out the code for collision with the ground + walls and scrolling. I'm having trouble figuring out the collision part. Click "See Inside" and read the comments next to my flawed code. See if you can help me figure out everything wrong with it.
Pink Square Guy made by my last braincell