Browse Source

create lose methode

master
Yazan Alaamer 2 years ago
parent
commit
7a7fc2756b
  1. 14
      src/main/java/game/StartDarkSoulsGame.java

14
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();

Loading…
Cancel
Save