Browse Source

fixed ending game not shown & added monster hit points value

master
Yazan Alaamer 2 years ago
parent
commit
357748a122
  1. 3
      src/main/java/game/StartDarkSoulsGame.java

3
src/main/java/game/StartDarkSoulsGame.java

@ -157,6 +157,7 @@ public class StartDarkSoulsGame {
} }
public void PlayerSetup() { public void PlayerSetup() {
playerHP = 15; playerHP = 15;
monsterHP = 20;
hpLabelNumber.setText(""+ playerHP); hpLabelNumber.setText(""+ playerHP);
weapon = "Knife"; weapon = "Knife";
weaponLabelName.setText(weapon); weaponLabelName.setText(weapon);
@ -323,7 +324,7 @@ public class StartDarkSoulsGame {
switch(position) { switch(position) {
case "townGate": case "townGate":
switch(yourChoice) { switch(yourChoice) {
case "c1": talkGuard(); break;
case "c1": if(AshuraRing == 1) ending(); else { talkGuard();} break;
case "c2": attackGuard(); break; case "c2": attackGuard(); break;
case "c3": crossRoad(); break; case "c3": crossRoad(); break;
} }

Loading…
Cancel
Save