@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); }