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);