From 1578b7d98eba18ae68222dfb925ef631c55cda29 Mon Sep 17 00:00:00 2001 From: fdai4616 Date: Wed, 8 Feb 2023 20:15:57 +0100 Subject: [PATCH] update --- src/main/java/PingPong/Score.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/PingPong/Score.java b/src/main/java/PingPong/Score.java index 73b2ee1..7068698 100644 --- a/src/main/java/PingPong/Score.java +++ b/src/main/java/PingPong/Score.java @@ -10,7 +10,10 @@ public class Score extends Rectangle { int player_1; int player_2; - + Score(int FRAME_WIDTH, int FRAME_HEIGHT){ + Score.FRAME_WIDTH = FRAME_WIDTH; + Score.FRAME_HEIGHT = FRAME_HEIGHT; + } public void draw(Graphics g) { g.setColor(Color.white);