Exemple #1
0
  public void update() {

    if (left) {
      paddle.move(true);
    }
    if (right) {
      paddle.move(false);
    }
    ball.move(this, paddle);
  }