Skip to content
Snippets Groups Projects
Commit db5d89fd authored by Gabriel Mille's avatar Gabriel Mille
Browse files

suppr if input == a

parent 820ee5b0
No related branches found
No related tags found
No related merge requests found
...@@ -60,11 +60,9 @@ class Main { ...@@ -60,11 +60,9 @@ class Main {
level.ennemyShowing(); level.ennemyShowing();
Input input = new Input(); Input input = new Input();
input.newInput(in);
Display.goToDialogBox(); Display.goToDialogBox();
if (input.getInput().equals("a")) {
while (!input.getInput().equals("q") && !enemy.isDead() && !player.isDead()) { while (!input.getInput().equals("q") && !enemy.isDead() && !player.isDead()) {
...@@ -140,7 +138,6 @@ class Main { ...@@ -140,7 +138,6 @@ class Main {
} }
}
in.close(); in.close();
Save.saveObject("res/gamedata", gamedata); Save.saveObject("res/gamedata", gamedata);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment