Adds swoosh sound to charge skill
This commit is contained in:
parent
b05f9333dc
commit
b6c5edbd92
Binary file not shown.
|
@ -60,6 +60,7 @@ load_effects(void)
|
||||||
effects[SWING0] = load_effect("Sounds/FX/swing.wav");
|
effects[SWING0] = load_effect("Sounds/FX/swing.wav");
|
||||||
effects[SWING1] = load_effect("Sounds/FX/swing2.wav");
|
effects[SWING1] = load_effect("Sounds/FX/swing2.wav");
|
||||||
effects[SWING2] = load_effect("Sounds/FX/swing3.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[TRIPPLE_SWING] = load_effect("Sounds/FX/tripple_swing.wav");
|
||||||
effects[SWORD_HIT] = load_effect("Sounds/FX/sword_hit.wav");
|
effects[SWORD_HIT] = load_effect("Sounds/FX/sword_hit.wav");
|
||||||
effects[DOUBLE_SWORD_HIT] = load_effect("Sounds/FX/double_sword_hit.wav");
|
effects[DOUBLE_SWORD_HIT] = load_effect("Sounds/FX/double_sword_hit.wav");
|
||||||
|
|
|
@ -34,6 +34,7 @@ typedef enum Fx_t {
|
||||||
SWING0,
|
SWING0,
|
||||||
SWING1,
|
SWING1,
|
||||||
SWING2,
|
SWING2,
|
||||||
|
SWOOSH,
|
||||||
TRIPPLE_SWING,
|
TRIPPLE_SWING,
|
||||||
SWORD_HIT,
|
SWORD_HIT,
|
||||||
DOUBLE_SWORD_HIT,
|
DOUBLE_SWORD_HIT,
|
||||||
|
|
|
@ -193,6 +193,7 @@ skill_charge(Skill *skill, SkillData *data)
|
||||||
speedLinePos = playerDestinationPos;
|
speedLinePos = playerDestinationPos;
|
||||||
|
|
||||||
particle_engine_speed_lines(speedLinePos, particleArea, horizontal);
|
particle_engine_speed_lines(speedLinePos, particleArea, horizontal);
|
||||||
|
mixer_play_effect(SWOOSH);
|
||||||
|
|
||||||
if (matrix->spaces[destination.x][destination.y].monster) {
|
if (matrix->spaces[destination.x][destination.y].monster) {
|
||||||
Monster *monster = matrix->spaces[destination.x][destination.y].monster;
|
Monster *monster = matrix->spaces[destination.x][destination.y].monster;
|
||||||
|
|
Loading…
Reference in New Issue