Browse Source

update

main
fdai4616 2 years ago
parent
commit
a310b4b123
  1. 4
      src/main/java/PingPong/Ball.java

4
src/main/java/PingPong/Ball.java

@ -34,4 +34,8 @@ Random random;
x += xVelocity;
y += yVelocity;
}
public void draw(Graphics g){
g.setColor(Color.red);
g.fillOval(x, y, width, height);
}
}
Loading…
Cancel
Save