aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-21 22:42:28 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-21 22:42:28 +0100
commitb4c2ff850930cb29da1a331b17fcc8a9e561b5ff (patch)
treee3b5a6c0d4a4454cc13afc8cc72bdc1e476e8569 /src/game.c
parentd3c44c1472ab23a8ea37cc63f3f9f8678b0a6af5 (diff)
downloadgold-mine-run-b4c2ff850930cb29da1a331b17fcc8a9e561b5ff.tar.gz
gold-mine-run-b4c2ff850930cb29da1a331b17fcc8a9e561b5ff.zip
Add color text
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game.c b/src/game.c
index b5968ce..80c5a42 100644
--- a/src/game.c
+++ b/src/game.c
@@ -36,32 +36,32 @@ static void hud_render()
/* lives */
blitrc(binary_sprites_start, &src, &dst);
- put_text(136, 4, "TIME");
- put_text(249, 4, "STAGE");
+ put_text(136, 4, "TIME", 1);
+ put_text(249, 4, "STAGE", 1);
}
if (hud & HUD_LIVES)
{
sprintf(b, "%d", lives);
- put_text(18, 4, b);
+ put_text(18, 4, b, 1);
}
if (hud & HUD_SCORE)
{
sprintf(b, "%06li", score);
- put_text(34, 4, b);
+ put_text(34, 4, b, 1);
}
if (hud & HUD_TIME)
{
sprintf(b, "%02d", time);
- put_text(176, 4, b);
+ put_text(176, 4, b, time > 10 ? 1 : 15);
}
if (hud & HUD_STAGE)
{
sprintf(b, "%02d", stage + 1);
- put_text(297, 4, b);
+ put_text(297, 4, b, 1);
}
hud = HUD_CLEAN;