|
|
@ -201,7 +201,7 @@ public class StartDarkSoulsGame { |
|
|
|
} |
|
|
|
public void north() { |
|
|
|
position= "north"; |
|
|
|
mainTextArea.setText("You Are at Siofra River.\n is Water is blessed Drink it. \n ( + 2HP)"); |
|
|
|
mainTextArea.setText("You Are at Siofra River.\n this Water is blessed Drink it. \n ( + 2HP)"); |
|
|
|
playerHP = playerHP +2; |
|
|
|
hpLabelNumber.setText(""+ playerHP); |
|
|
|
choice1.setText("GO south"); |
|
|
@ -209,7 +209,17 @@ public class StartDarkSoulsGame { |
|
|
|
choice3.setText(""); |
|
|
|
choice4.setText(""); |
|
|
|
} |
|
|
|
|
|
|
|
public void east() { |
|
|
|
position = "east"; |
|
|
|
mainTextArea.setText("You are at forest of Ashina Depths.\n" |
|
|
|
+ " you just found a sword. \n (\nGracious Gift of Tears) "); |
|
|
|
weapon = "Gift of Tears"; |
|
|
|
weaponLabelName.setText(weapon); |
|
|
|
choice1.setText(">"); |
|
|
|
choice2.setText(""); |
|
|
|
choice3.setText(""); |
|
|
|
choice4.setText(""); |
|
|
|
} |
|
|
|
|
|
|
|
public class TitelScreenHandler implements ActionListener{ |
|
|
|
public void actionPerformed(ActionEvent event) { |
|
|
@ -242,7 +252,7 @@ public class StartDarkSoulsGame { |
|
|
|
case "crossRoad": |
|
|
|
switch(yourChoice) { |
|
|
|
case "c1": north(); break; |
|
|
|
case "c2": break; |
|
|
|
case "c2": east(); break; |
|
|
|
case "c3": townGate(); break; |
|
|
|
case "c4": break; |
|
|
|
} |
|
|
@ -251,6 +261,13 @@ public class StartDarkSoulsGame { |
|
|
|
switch(yourChoice) { |
|
|
|
case "c1":crossRoad(); break; |
|
|
|
} |
|
|
|
break; |
|
|
|
case "east": |
|
|
|
switch(yourChoice) { |
|
|
|
case "c1": crossRoad(); |
|
|
|
break; |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|