added display for player stats
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user