Moving the ball is as simple as moving the paddles, as you will see.
UpdateBall. At first, we will update the ball's X and Y position:
Method UpdateBall:Int() bX += bdX 'Add the X speed of the ball to its X position bY += bdY 'Add the Y speed of the ball to its Y position
We could end here, but then the ball would not bounce of the walls and would just disappear in nowhere land.
If bY < 10.0 then bY = 10.0 'Set the Y position back to 10.0 bdY *= -1 'Inverse the balls Y speed Endif
If bY > 470.0 then bY = 470.0 'Set ...