diff --git a/src/main/java/PingPong/Ball.java b/src/main/java/PingPong/Ball.java index 489760e..8c17da9 100644 --- a/src/main/java/PingPong/Ball.java +++ b/src/main/java/PingPong/Ball.java @@ -4,8 +4,12 @@ import java.awt.*; public class Ball extends Rectangle { int xVelocity; +int yVelocity; public void setXDirection (int randomXDirection){ xVelocity = randomXDirection; } + public void setYDirection (int randomYDirection){ + yVelocity = randomYDirection; + } }