Browse Source

update

main
fdai4616 2 years ago
parent
commit
2b5154085b
  1. 4
      src/main/java/PingPong/CollisionChecker.java

4
src/main/java/PingPong/CollisionChecker.java

@ -9,4 +9,8 @@ public class CollisionChecker {
public Boolean didTouchPaddle(Rectangle ball, Rectangle paddle) {
return ball.intersects(paddle);
}
public Boolean didTouchLeftEdge(Integer ballXCoordinate) {
return ballXCoordinate <= 0;
}
}
Loading…
Cancel
Save