Browse Source

add & display weapon name to player setup

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

5
src/main/java/game/StartDarkSoulsGame.java

@ -30,7 +30,8 @@ public class StartDarkSoulsGame {
JButton StartButton, choice1, choice2, choice3, choice4;
Container con;
TitelScreenHandler tsHandler= new TitelScreenHandler();
int playerHP ; // comit (19) add player hp
int playerHP ;
String weapon;
public StartDarkSoulsGame() {
gui.Frame.setSize(800, 600);
@ -141,6 +142,8 @@ public class StartDarkSoulsGame {
public void PlayerSetup() {
playerHP = 15;
hpLabelNumber.setText(""+ playerHP);
weapon = "Knife";
weaponLabelName.setText(weapon);
}
public class TitelScreenHandler implements ActionListener{

Loading…
Cancel
Save