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

@@ -78,7 +78,7 @@ public class DemoRunner implements GameRunner {
this.player.setAnimationSpeed(0.005f);
this.player.setBlocking(true);
this.player.setCoordinates(0, 11);
this.player.setWeapon(new MeleeWeapon(meleeWeaponDAO.get("wooden_sword")));
this.player.setWeapon(new MeleeWeapon(context, meleeWeaponDAO.get("wooden_sword")));
}
public void newGame() {