Browse Source

update

main
fdai4616 2 years ago
parent
commit
229a5e725f
  1. 4
      src/main/java/PingPong/Ball.java

4
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;
}
}
Loading…
Cancel
Save