Browse Source

create weapon label

master
Yazan Alaamer 2 years ago
parent
commit
715723010b
  1. 8
      src/main/java/game/StartDarkSoulsGame.java

8
src/main/java/game/StartDarkSoulsGame.java

@ -22,6 +22,7 @@ public class StartDarkSoulsGame {
JTextArea mainTextArea; JTextArea mainTextArea;
JLabel hpLabel; JLabel hpLabel;
JLabel hpLabelNumber; JLabel hpLabelNumber;
JLabel weaponLabel;
Font titelFont = new Font("Times new Roman", Font.PLAIN, 90); Font titelFont = new Font("Times new Roman", Font.PLAIN, 90);
Font normalFont = new Font ("Times new Roman", Font.PLAIN, 28); Font normalFont = new Font ("Times new Roman", Font.PLAIN, 28);
JButton startButton; JButton startButton;
@ -120,7 +121,12 @@ public class StartDarkSoulsGame {
hpLabelNumber = new JLabel(); hpLabelNumber = new JLabel();
hpLabelNumber.setFont(normalFont); hpLabelNumber.setFont(normalFont);
hpLabelNumber.setForeground(Color.white); hpLabelNumber.setForeground(Color.white);
playerPanel.add(hpLabelNumber);
playerPanel.add(hpLabelNumber);
weaponLabel = new JLabel("Weapon:");
weaponLabel.setFont(normalFont);
weaponLabel.setForeground(Color.white);
playerPanel.add(weaponLabel);
con.add(playerPanel); con.add(playerPanel);
} }

Loading…
Cancel
Save