Create bar with player HP

This commit is contained in:
2022-08-18 10:23:12 +02:00
parent a2d95855c5
commit 2bd9d077cc
7 changed files with 90 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ public class Enemy extends Character implements NPC {
this.template = template;
name = template.getName();
hp = template.getHp();
maxHp = hp;
setSpeed(template.getSpeed());
setAnimationSpeed(template.getAnimationSpeed());
setBlocking(template.isBlocking());