From 7a7fc2756b87193caf5284c893ca848fe6685d5d Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Sat, 21 Jan 2023 00:27:35 +0100 Subject: [PATCH] create lose methode --- src/main/java/game/StartDarkSoulsGame.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index 8411c45..2f5b065 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/src/main/java/game/StartDarkSoulsGame.java @@ -268,7 +268,19 @@ public class StartDarkSoulsGame { choice3.setText(""); choice4.setText(""); } - + public void lose() { + position = "lose"; + mainTextArea.setText("You are Dead. \n" + + "DU NPC hhhhhhhhhhhhh"); + choice1.setText(">"); + choice2.setText(""); + choice3.setText(""); + choice4.setText(""); + choice1.setVisible(false); + choice2.setVisible(false); + choice3.setVisible(false); + choice4.setVisible(false); + } public class TitelScreenHandler implements ActionListener{ public void actionPerformed(ActionEvent event) { createGameScreen();