Additional fall sounds

Wilhelm scream
This commit is contained in:
Linus Probert 2018-05-16 15:52:39 +02:00
parent a9b71ce79f
commit bc0d194dce
5 changed files with 5 additions and 3 deletions

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

Binary file not shown.

View File

@ -79,7 +79,8 @@ load_effects(void)
effects[PLAYER_HIT1] = load_effect("Sounds/FX/fistpunch_vocal_02.wav");
effects[PLAYER_HIT2] = load_effect("Sounds/FX/fistpunch_vocal_03.wav");
effects[DAGGER_PICKUP] = load_effect("Sounds/FX/dagger_pickup.wav");
effects[FALL] = load_effect("Sounds/FX/fall.wav");
effects[FALL0] = load_effect("Sounds/FX/fall0.wav");
effects[FALL1] = load_effect("Sounds/FX/fall1.wav");
}
void

View File

@ -42,7 +42,8 @@ typedef enum Fx_t {
TRIPPLE_SWORD_HIT,
BONK,
DEATH,
FALL,
FALL0,
FALL1,
COIN,
BOTTLE,
BUBBLE0,

View File

@ -163,7 +163,7 @@ has_collided(Player *player, RoomMatrix *matrix, Vector2d direction)
}
if (space->lethal && !collided) {
mixer_play_effect(FALL);
mixer_play_effect(FALL0 + get_random(2) - 1);
player->state = FALLING;
}