Unnötige Variable entfernt
This commit is contained in:
parent
635aef047a
commit
d835ec3460
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -29,9 +29,6 @@ public class HappyBirdMain extends Application {
|
|||||||
/* Formatierungsklasse */
|
/* Formatierungsklasse */
|
||||||
private final FormatingClass formatingClass = new FormatingClass();
|
private final FormatingClass formatingClass = new FormatingClass();
|
||||||
|
|
||||||
/* Testen des Endscreens */
|
|
||||||
private final Button endscreenTest = new Button("Endscreentest");
|
|
||||||
|
|
||||||
/* Datenbank einlesen */
|
/* Datenbank einlesen */
|
||||||
private final MariaDB datenbank = new MariaDB();
|
private final MariaDB datenbank = new MariaDB();
|
||||||
|
|
||||||
@ -712,14 +709,12 @@ public class HappyBirdMain extends Application {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*ESC-Tast drücken, um das Pause-Menü aufzurufen*/
|
|
||||||
scene.setOnKeyPressed(e -> {
|
|
||||||
if (e.getCode() == KeyCode.ESCAPE && !menuScreenRunning) {
|
|
||||||
pauseButtonClick(gameRunning);
|
|
||||||
gameRunning = !gameRunning;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ESC-Taste zum Öffnen des Pause-Screens einbinden -
|
||||||
|
* Tasten W und S einbinden zum Verändern der Höhe des Vogels
|
||||||
|
* (W bewegt den Vogel hoch / S bewegt den Vogel runter)
|
||||||
|
*/
|
||||||
birdPositionMovedBy = 0;
|
birdPositionMovedBy = 0;
|
||||||
scene.setOnKeyPressed(event -> {
|
scene.setOnKeyPressed(event -> {
|
||||||
if (event.getCode() == KeyCode.S) {
|
if (event.getCode() == KeyCode.S) {
|
||||||
@ -730,6 +725,10 @@ public class HappyBirdMain extends Application {
|
|||||||
moveBirdUp();
|
moveBirdUp();
|
||||||
System.out.println(birdPositionMovedBy);
|
System.out.println(birdPositionMovedBy);
|
||||||
}
|
}
|
||||||
|
if (event.getCode() == KeyCode.ESCAPE && !menuScreenRunning) {
|
||||||
|
pauseButtonClick(gameRunning);
|
||||||
|
gameRunning = !gameRunning;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user