added health bar to monster

This commit is contained in:
2025-11-30 00:38:00 +01:00
parent 9aae9ad20f
commit 8ec1805877
3 changed files with 18 additions and 5 deletions

View File

@@ -160,7 +160,10 @@ public class Player extends Entity {
public void interactNPC(int index) {
if(index == 999) {
if(panel.keyH.spacePressed) attacking = true;
if(panel.keyH.spacePressed) {
attacking = true;
//panel.playSE(7); //remains disabled because game does weird things while playing the sound
}
return;
}
//if(!panel.keyH.spacePressed) return; //Only uncomment if text should only appear if player hits space