parent
a9b71ce79f
commit
bc0d194dce
Binary file not shown.
|
@ -79,7 +79,8 @@ load_effects(void)
|
||||||
effects[PLAYER_HIT1] = load_effect("Sounds/FX/fistpunch_vocal_02.wav");
|
effects[PLAYER_HIT1] = load_effect("Sounds/FX/fistpunch_vocal_02.wav");
|
||||||
effects[PLAYER_HIT2] = load_effect("Sounds/FX/fistpunch_vocal_03.wav");
|
effects[PLAYER_HIT2] = load_effect("Sounds/FX/fistpunch_vocal_03.wav");
|
||||||
effects[DAGGER_PICKUP] = load_effect("Sounds/FX/dagger_pickup.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
|
void
|
||||||
|
|
|
@ -42,7 +42,8 @@ typedef enum Fx_t {
|
||||||
TRIPPLE_SWORD_HIT,
|
TRIPPLE_SWORD_HIT,
|
||||||
BONK,
|
BONK,
|
||||||
DEATH,
|
DEATH,
|
||||||
FALL,
|
FALL0,
|
||||||
|
FALL1,
|
||||||
COIN,
|
COIN,
|
||||||
BOTTLE,
|
BOTTLE,
|
||||||
BUBBLE0,
|
BUBBLE0,
|
||||||
|
|
|
@ -163,7 +163,7 @@ has_collided(Player *player, RoomMatrix *matrix, Vector2d direction)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (space->lethal && !collided) {
|
if (space->lethal && !collided) {
|
||||||
mixer_play_effect(FALL);
|
mixer_play_effect(FALL0 + get_random(2) - 1);
|
||||||
player->state = FALLING;
|
player->state = FALLING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue