Adds swoosh sound to charge skill

This commit is contained in:
Linus Probert 2018-03-01 19:46:23 +01:00
parent b05f9333dc
commit b6c5edbd92
4 changed files with 3 additions and 0 deletions

BIN
assets/Sounds/FX/swoosh.wav Normal file

Binary file not shown.

View File

@ -60,6 +60,7 @@ load_effects(void)
effects[SWING0] = load_effect("Sounds/FX/swing.wav");
effects[SWING1] = load_effect("Sounds/FX/swing2.wav");
effects[SWING2] = load_effect("Sounds/FX/swing3.wav");
effects[SWOOSH] = load_effect("Sounds/FX/swoosh.wav");
effects[TRIPPLE_SWING] = load_effect("Sounds/FX/tripple_swing.wav");
effects[SWORD_HIT] = load_effect("Sounds/FX/sword_hit.wav");
effects[DOUBLE_SWORD_HIT] = load_effect("Sounds/FX/double_sword_hit.wav");

View File

@ -34,6 +34,7 @@ typedef enum Fx_t {
SWING0,
SWING1,
SWING2,
SWOOSH,
TRIPPLE_SWING,
SWORD_HIT,
DOUBLE_SWORD_HIT,

View File

@ -193,6 +193,7 @@ skill_charge(Skill *skill, SkillData *data)
speedLinePos = playerDestinationPos;
particle_engine_speed_lines(speedLinePos, particleArea, horizontal);
mixer_play_effect(SWOOSH);
if (matrix->spaces[destination.x][destination.y].monster) {
Monster *monster = matrix->spaces[destination.x][destination.y].monster;