Kleine Bugfixes - Punkte werden beim Pause-Button ins Hauptmenü zurückgesetzt & ESC-Taste im Spiel fixen

This commit is contained in:
Mats Pape 2022-02-09 13:56:56 +01:00
parent f2f88c404d
commit 635aef047a
9 changed files with 3 additions and 5 deletions

View File

@ -788,7 +788,9 @@ public class HappyBirdMain extends Application {
private void menuButtonPauseClick() {
/*alles vom pauseScreen entfernen*/
pause.getChildren().clear();
pipesArrayList.clear();
collectedPoints = 0;
currentScoreLabel.setText("SCORE: " + collectedPoints);
/*pause von pane entfernen*/
pane.getChildren().clear();
@ -1083,10 +1085,6 @@ public class HappyBirdMain extends Application {
backMenuButton.setOnAction(event -> backMenuButtonClick());
personalHighscoresButton.setOnAction(event -> personalHighscoresButtonClick());
restartGameButton.setOnAction(event -> restartGameButtonClick());
//AB HIER MÜLL
}
/***