From e2423af4cd1b4baec8584c7f29feb872e14e83b7 Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Sat, 21 Jan 2023 00:09:16 +0100 Subject: [PATCH] added west location --- src/main/java/game/StartDarkSoulsGame.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index 2541cf2..01400d4 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/src/main/java/game/StartDarkSoulsGame.java @@ -220,6 +220,15 @@ public class StartDarkSoulsGame { choice3.setText(""); choice4.setText(""); } + public void west() { + position = "west"; + mainTextArea.setText("you are encounter with THE SOUl OF CINDER.\n" + + "THE SOUl OF CINDER: ashen one long time no see \n hhhhhhhhhhhhhhhh "); + choice1.setText("Fight"); + choice2.setText("Run for your live"); + choice3.setText(""); + choice4.setText(""); + } public class TitelScreenHandler implements ActionListener{ public void actionPerformed(ActionEvent event) { @@ -254,7 +263,7 @@ public class StartDarkSoulsGame { case "c1": north(); break; case "c2": east(); break; case "c3": townGate(); break; - case "c4": break; + case "c4":west(); break; } break; case "north": @@ -268,6 +277,11 @@ public class StartDarkSoulsGame { break; } break; + case "west": + switch(yourChoice) { + case "c1": break; + case "c2": crossRoad(); break; + } } }