aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-15 23:01:19 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-15 23:01:19 +0100
commit3b23615b60284723240764c4fa92f112250caa50 (patch)
tree9848c43030146403c7cf5e798177dd1a9881eaa5 /src
parent68004a30170dc2092073cf249472ede6082a99ec (diff)
downloadgold-mine-run-3b23615b60284723240764c4fa92f112250caa50.tar.gz
gold-mine-run-3b23615b60284723240764c4fa92f112250caa50.zip
Tweak the HUD
Diffstat (limited to 'src')
-rw-r--r--src/game.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game.c b/src/game.c
index b49e859..d2f3bdd 100644
--- a/src/game.c
+++ b/src/game.c
@@ -28,37 +28,37 @@ void hud_render()
if (hud & HUD_ALL)
{
Rect src = { 128, 32, 144, 144};
- Rect dst = { 0, 0, 16, 16};
+ Rect dst = { 4, 0, 16, 16};
/* lives */
blitrc(binary_sprites_start, &src, &dst);
- put_text(132, 4, "TIME");
- put_text(256, 4, "STAGE");
+ put_text(136, 4, "TIME");
+ put_text(252, 4, "STAGE");
}
if (hud & HUD_LIVES)
{
sprintf(b, "%d", lives);
- put_text(14, 4, b);
+ put_text(18, 4, b);
}
if (hud & HUD_SCORE)
{
sprintf(b, "%06li", score);
- put_text(30, 4, b);
+ put_text(34, 4, b);
}
if (hud & HUD_TIME)
{
sprintf(b, "%02d", time);
- put_text(172, 4, b);
+ put_text(176, 4, b);
}
if (hud & HUD_STAGE)
{
sprintf(b, "%02d", stage);
- put_text(304, 4, b);
+ put_text(300, 4, b);
}
hud = HUD_CLEAN;