add resetCounter method to player entity and integrate into game reset

This commit is contained in:
2026-03-23 19:34:24 +01:00
parent 70a250f775
commit 04c5192e0e
3 changed files with 11 additions and 0 deletions

View File

@@ -621,5 +621,14 @@ public class Entity {
invincibleCount = 0;
}
}
public void resetCounter() {
spriteCount = 0;
actionLock = 0;
invincibleCount = 0;
shotAvailableCount = 0;
dyingCount = 0;
hpBarCount = 0;
knockbackCount = 0;
}
}