Add sound and animations to melee weapon attack

This commit is contained in:
2022-08-17 21:30:37 +02:00
parent 785e1ac524
commit da77d25f6d
10 changed files with 31 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ public class Enemy extends Character implements NPC {
setSpeed(template.getSpeed());
setAnimationSpeed(template.getAnimationSpeed());
setBlocking(template.isBlocking());
setWeapon(new MeleeWeapon(((DemoRunner) context.getGameRunner()).getMeleeWeaponDAO().get(template.getMeleeWeapon())));
setWeapon(new MeleeWeapon(context, ((DemoRunner) context.getGameRunner()).getMeleeWeaponDAO().get(template.getMeleeWeapon())));
}
@Override