Ejemplo n.º 1
0
  @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);
  }
Ejemplo n.º 2
0
 @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);
 }