示例#1
0
    public void endGame()
    {
        startMenu.setIsGameOver(true);
        startMenu.updateScores(timeText.getText());

        _isStarted           = false;
        _isStartingProcedure = false;
        ball.useGravity(false);
        ball.resetPosition();

        lifesCount      = 3;
        survivedTime    = 0f;
        currTimePeriod  = 0f;
        timePeriodCount = 1;

        timeText.updateText_Time(survivedTime);
        updateLifes(lifesCount);

        screenDarken.setOpacity(0f);
    }