From a88810c8a70c8e3a7533a266774ab61a84a9adf4 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 2 Jul 2023 21:31:19 +0100 Subject: Add sound support --- src/game.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c index b45989b..60a986a 100644 --- a/src/game.c +++ b/src/game.c @@ -3,6 +3,7 @@ #include "keyb.h" #include "vga.h" +#include "sound.h" #include "text.h" #include "map.h" #include "data.h" @@ -85,6 +86,8 @@ static void hud_render() { sprintf(b, "%02d", time); put_text(172, 4, b, time > 10 ? 1 : 15); + if (time <= 10) + sound_play_efx(EFX_TIME); } if (hud & HUD_STAGE) -- cgit v1.2.3