target/classes/breakout/Ball.java
static void checkForMiss(Circle myBall, Text myLives, Rectangle myPaddle) {
        double y = myBall.getCenterY();

        if (y >= HEIGHT) {
            // Subtract a life
            LIVES -= 1;
            myLives.setText("Lives Remaining: " + LIVES);

            // Move ball back to start & launch
            myBall.setCenterX((float) (myPaddle.getX() + (Paddle.PADDLE_WIDTH / 2)));
            myBall.setCenterY(myPaddle.getY() - BALL_RADIUS);
            BALL_Y = true;
            BALL_X = true;
        }
    }
// BALL GOES BEYOND BOTTOM SCREEN ? MISS
BALL GOES BEYOND BOTTOM SCREEN . MISS
BALL GOES BEYOND BOTTOM SCREEN . MISS
static void checkForMiss(Circle myBall, Text myLives, Rectangle myPaddle) {
        double y = myBall.getCenterY();
        if (y >= HEIGHT) {
            LIVES -= 1;
            myLives.setText("Lives Remaining: " + LIVES);
            myBall.setCenterX((float) (myPaddle.getX() + (Paddle.PADDLE_WIDTH / 2)));
            myBall.setCenterY(myPaddle.getY() - BALL_RADIUS);
            BALL_Y = true;
            BALL_X = true;
        }
    }
static void checkForMiss ( Circle myBall , Text myLives , Rectangle myPaddle ) { double y = myBall . getCenterY ( ) ; if ( y >= HEIGHT ) { LIVES -= 1 ; myLives . setText ( "Lives Remaining: " + LIVES ) ; myBall . setCenterX ( ( float ) ( myPaddle . getX ( ) + ( Paddle . PADDLE_WIDTH / 2 ) ) ) ; myBall . setCenterY ( myPaddle . getY ( ) - BALL_RADIUS ) ; BALL_Y = true ; BALL_X = true ; } }
BALL GOES BEYOND BOTTOM SCREEN ?
BALL GOES BEYOND BOTTOM SCREEN ?
// Subtract a life // Move ball back to start & launch