diff --git a/src/main/java/PingPong/Ball.java b/src/main/java/PingPong/Ball.java index 6702635..42d9752 100644 --- a/src/main/java/PingPong/Ball.java +++ b/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); + } }