diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-12-05 20:24:20 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-12-05 20:24:20 -0800 |
commit | ddc29bf8cfbfb2a455b627805174697863046bfd (patch) | |
tree | d5190cdf061fb3dc4d10b0381ce08a51f1afd9d3 /src/game.c | |
parent | bbbff43ca835b91682eaeaff61b5968c1f27bb00 (diff) |
sfx,game: introduce baby_hatted.wav sound effect
This plays whenever a baby dons a mask as a hat.
Diffstat (limited to 'src/game.c')
-rw-r--r-- | src/game.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -387,6 +387,7 @@ static void infect_entity(game_t *game, entity_t *entity, const char *name) static void hat_baby(game_t *game, baby_t *baby, mask_t *mask) { (void) baby_hatted_node_new(&(stage_conf_t){ .stage = baby->entity.node, .replace = 1, .name = "baby-hatted", .active = 1, .alpha = 1.f }, &game->sars->projection_x, &baby->entity.model_x); + sfx_play(sfx.baby_hatted); stage_set_active(mask->entity.node, 0); } |