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;