I am programming my game and have hit another snag. I am trying to get the ball to bounce from left to right. I managed to get that working, but when the ball hits the left boundary it intersects it as if you do a print screen you will see half the ball within the screen and half of it is outside the screen. What’s strange is this behaviour isn’t exhibited by the right boundary checking code. To make matters worse the code for the ball’s boundary checking is is almost the same as the paddle’s boundary checking code, yet that code works fine. Any assistance in the matter would be greatly appreciated. You can download the source code here
Sincerely,
8BitOoze