added display for player stats

This commit is contained in:
2025-11-30 02:36:31 +01:00
parent 9970ef687f
commit 587a852ffb
7 changed files with 123 additions and 59 deletions

View File

@@ -88,14 +88,11 @@ public class Player extends Entity {
}
}
System.out.println("cancel: "+attackCancel);
if(keyH.spacePressed && !attackCancel) {
System.out.println("entered");
panel.playSE(7);
attacking = true;
spriteCounter = 0;
}
System.out.println("attacking: "+attacking);
attackCancel = false;
panel.keyH.spacePressed = false;

View File

@@ -10,7 +10,7 @@ public class ShieldWoodObj extends Entity {
super(panel);
name = "shield-wood";
type = EntityType.ITEM;
down1 = initEntitySprites("assets/objects/shield_wood");
down1 = initEntitySprites("objects/shield_wood");
defenseValue = 1;
}

View File

@@ -11,7 +11,7 @@ public class SwordNormalObj extends Entity {
name = "sword-normal";
type = EntityType.ITEM;
down1 = initEntitySprites("assets/objects/sword_normal");
down1 = initEntitySprites("objects/sword_normal");
attackValue = 1;
}