From f0323f1f6120c42fe24aefd6ce216a5a90218265 Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Sat, 21 Jan 2023 00:30:41 +0100 Subject: [PATCH] create ending methode --- src/main/java/game/StartDarkSoulsGame.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index 2f5b065..55e49ea 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/src/main/java/game/StartDarkSoulsGame.java @@ -281,6 +281,21 @@ public class StartDarkSoulsGame { choice3.setVisible(false); choice4.setVisible(false); } + public void ending () { + position = "endig"; + mainTextArea.setText("No Way. The ASHEN ONE is real.\n" + + "You killed him! you killed the SOUl OF CINDER.\n" + + "Welcome Aschen one to our Town.\n" + + ""); + 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();