aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-02 21:31:19 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-02 21:31:19 +0100
commita88810c8a70c8e3a7533a266774ab61a84a9adf4 (patch)
tree9ec78cd5e20f06a6cbcbd0251e215f2ecaae71c4 /src/game.c
parent6e03fe85b19bc533888a4689572aab0ccf68edc4 (diff)
downloadgold-mine-run-a88810c8a70c8e3a7533a266774ab61a84a9adf4.tar.gz
gold-mine-run-a88810c8a70c8e3a7533a266774ab61a84a9adf4.zip
Add sound support
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c3
1 files changed, 3 insertions, 0 deletions
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)