@Override protected void stopAction() { Vector2f pos = getLevelBowPosition(); Vector2f speed = controllerUtils.getCurrentDirection(SPEED, getScreenBowPosition()); projectileController.add( new Arrow( pos.getX(), pos.getY(), playerController.getPlayer(), speed.getX(), speed.getY())); soundController.play(bowSound, 0.7f); }
@Override protected void startAction() { soundController.play(bowStringSound); }
@Override protected void updateAction(PickaxeItem item, int delta) { blockEndurance -= delta * item.getStrength(); digEffect.setCurrentEndurance(blockEndurance); soundController.playUnique(pickaxeSound); }