From 2cccc823811792a8a4ccfbdb9b65249bdd950613 Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Fri, 20 Jan 2023 21:32:18 +0100 Subject: [PATCH] add & display weapon name to player setup --- src/main/java/game/StartDarkSoulsGame.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index 89dd37b..017aaa8 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/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); @@ -140,7 +141,9 @@ public class StartDarkSoulsGame { } public void PlayerSetup() { playerHP = 15; - hpLabelNumber.setText(""+ playerHP); + hpLabelNumber.setText(""+ playerHP); + weapon = "Knife"; + weaponLabelName.setText(weapon); } public class TitelScreenHandler implements ActionListener{