Nov-18-2021, 06:37 AM
I've been working on my own version of Pong, and at the moment, I have been working on getting the ball to bounce off of the four sides of the screen. The ball successfully bounces off each side, but I want to slow the ball down, but in order to do that, I have to use decimal values to lower the speed, which aren't allowed when using rect values. How do I change my code to do that? I attached the code for the ball.