Skip to content
Snippets Groups Projects
Commit f6cc9c83 authored by Jeyda Parlar's avatar Jeyda Parlar :hibiscus:
Browse files

maj level

parent 2fc85676
No related branches found
No related tags found
No related merge requests found
...@@ -112,9 +112,9 @@ public class Level{ ...@@ -112,9 +112,9 @@ public class Level{
} }
// annonce la mort du joueur // annonce la mort du joueur
public void playerDying() { /*public void playerDying() {
System.out.println(this.player.getName() + " is dead!"); System.out.println(this.player.getName() + " is dead!");
} }*/
// action quand le joueur n'est pas épuisé // action quand le joueur n'est pas épuisé
public void playerHasEnergy(Attack attack) { public void playerHasEnergy(Attack attack) {
......
...@@ -4,9 +4,20 @@ import java.io.IOException; ...@@ -4,9 +4,20 @@ import java.io.IOException;
public class LevelTest { public class LevelTest {
public static void main(String[] args) throws IOException, InterruptedException { public static void main(String[] args) throws IOException, InterruptedException {
//Level.fightScene(); Enemy enemy = new Enemy("BAD PAUL", 1);
//Level.bigFightScene(); Player player = new Player("play");
//Level.gameOver(); Level level = new Level(1, player, enemy);
// Level.defeat(); level.fightScene();
level.bigFightScene();
Thread.sleep(1250);
Display.clearScreen();
level.displayLifePoints();
Thread.sleep(1250);
Display.clearScreen();
level.gameOver();
level.defeat();
Thread.sleep(1250);
Display.clearScreen();
level.victory();
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment