Browse Source

create ending methode

master
Yazan Alaamer 2 years ago
parent
commit
f0323f1f61
  1. 15
      src/main/java/game/StartDarkSoulsGame.java

15
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"
+ "<THE End>");
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();

Loading…
Cancel
Save