|
@ -36,7 +36,7 @@ public class StartDarkSoulsGame { |
|
|
titleNamePanel = new JPanel(); |
|
|
titleNamePanel = new JPanel(); |
|
|
titleNamePanel.setBounds(100,100,600, 150); |
|
|
titleNamePanel.setBounds(100,100,600, 150); |
|
|
titleNamePanel.setBackground(Color.black); |
|
|
titleNamePanel.setBackground(Color.black); |
|
|
titelNameLabel = new JLabel("Dark souls 4 "); |
|
|
|
|
|
|
|
|
titelNameLabel = new JLabel("Dark Souls 4 "); |
|
|
titelNameLabel.setForeground(Color.white); |
|
|
titelNameLabel.setForeground(Color.white); |
|
|
titelNameLabel.setFont(titelFont); |
|
|
titelNameLabel.setFont(titelFont); |
|
|
StartButtonPanel = new JPanel (); |
|
|
StartButtonPanel = new JPanel (); |
|
@ -247,7 +247,7 @@ public class StartDarkSoulsGame { |
|
|
playerDamage = new java.util.Random().nextInt(3); |
|
|
playerDamage = new java.util.Random().nextInt(3); |
|
|
} |
|
|
} |
|
|
else if (weapon.equals("Gift of Tears")) { |
|
|
else if (weapon.equals("Gift of Tears")) { |
|
|
playerDamage = new java.util.Random().nextInt(8); |
|
|
|
|
|
|
|
|
playerDamage = new java.util.Random().nextInt(7); |
|
|
} |
|
|
} |
|
|
mainTextArea.setText("monster has been attacked: "+ playerDamage +" Damage "); |
|
|
mainTextArea.setText("monster has been attacked: "+ playerDamage +" Damage "); |
|
|
monsterHP = monsterHP - playerDamage; |
|
|
monsterHP = monsterHP - playerDamage; |
|
|