Example #1
0
 public void moveRight() {
   if (lives > 0) {
     bucket = bucket.moveRight();
     if (bucket.getLocation().getX() > WIDTH + Bucket.WIDTH / 2)
       bucket = bucket.moveTo(-Bucket.WIDTH / 2, (int) bucket.getLocation().getY());
   }
 }