From a310b4b123619b2f2e92158225b095366a1181ed Mon Sep 17 00:00:00 2001 From: fdai4616 Date: Tue, 7 Feb 2023 21:56:43 +0100 Subject: [PATCH] update --- src/main/java/PingPong/Ball.java | 4 ++++ 1 file changed, 4 insertions(+) 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); + } }