WeiterspielenButton
This commit is contained in:
@@ -603,6 +603,15 @@ public class HappyBirdMain extends Application {
|
||||
pause.getChildren().clear();
|
||||
pane.getChildren().remove(pause);
|
||||
|
||||
/*Pausieren der Transitions/ Pipes*/
|
||||
for(Transition transition : transitions) {
|
||||
transition.play();
|
||||
System.out.println(transition.toString());
|
||||
}
|
||||
|
||||
/*Pausieren der Timeline, sodass keine neuen Pipes spawnen*/
|
||||
timeline.play();
|
||||
|
||||
/*gameRunning auf false setzen, da sonst 2x Click auf Pause-Button bzw. ESC*/
|
||||
gameRunning = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user