Skip to content
Snippets Groups Projects
Commit 0f79a64d authored by Charlie Darques's avatar Charlie Darques
Browse files

modif affichage

parent b169b9be
No related branches found
No related tags found
No related merge requests found
...@@ -63,13 +63,13 @@ class Main { ...@@ -63,13 +63,13 @@ class Main {
Random rand = new Random(); Random rand = new Random();
// arrivée de l'ennemi
level.ennemyShowing();
Input input = new Input(); Input input = new Input();
input.newInput(); input.newInput();
Display.goToDialogBox(); Display.goToDialogBox();
// arrivée de l'ennemi
level.ennemyShowing();
if (input.getInput().equals("a")) { if (input.getInput().equals("a")) {
...@@ -125,6 +125,11 @@ class Main { ...@@ -125,6 +125,11 @@ class Main {
level.displayEndOfLevel(); level.displayEndOfLevel();
} }
if (player.isDead()) {
level.playerDying();
level.gameOver();
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment