Nate
Explore posts from serversPing Pong Game (Need Helping Adjusting AI Move)
private void MoveComputerPaddle()
{
// Moves the computer paddle position to align with the ball
if (pcbComp.Left + (pcbComp.Width / 2) < pcbBall.Left)
{
pcbComp.Left += (int)dblSpeed/1;
}
else if (pcbComp.Left + (pcbComp.Width / 2) > pcbBall.Left)
{
pcbComp.Left -= (int)dblSpeed/1;
}
}
12 replies