start of attacking

This commit is contained in:
2025-11-29 01:23:28 +01:00
parent ead9abbe74
commit 65061d721d
26 changed files with 33 additions and 13 deletions

View File

@@ -31,6 +31,7 @@ public class Entity {
int dialogueIndex = 0;
public boolean collisionOn = false;
public boolean invincible = false;
boolean attacking = false; //TODO: https://youtu.be/HL39xRzPpm4?t=551
// COUNTER
public int spriteCounter = 0;
@@ -127,4 +128,13 @@ public class Entity {
return null;
}
public BufferedImage initEntitySprites(String name, int width, int height) {
try {
return Utility.scaleImage(ImageIO.read(new FileInputStream("assets/" + name + ".png")), width, height);
} catch (IOException e) {
Boot.logger.log(Level.SEVERE, "Could not load entity-image", e);
}
return null;
}
}