added health bar to monster
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user