That’s not correct
First kill the boundary check for the lower screen border
Instead just put
if(ball.x>=paddle.x&& ball.x<paddle.x plus paddle width && ball.y > paddle.y)
bounce
Pseudo-code
That’s not correct
First kill the boundary check for the lower screen border
Instead just put
if(ball.x>=paddle.x&& ball.x<paddle.x plus paddle width && ball.y > paddle.y)
bounce
Pseudo-code