aboutsummaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-21 22:47:49 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-21 22:47:49 +0100
commitba2a2dbe3434a1ffc10542ca38e6116c0bde7b65 (patch)
treec97712775a6111b5ffc81bf222a6c03a14f6fc61 /src/menu.c
parent03d0053c9531c3f545025654d14541f8a89ce2f7 (diff)
downloadgold-mine-run-ba2a2dbe3434a1ffc10542ca38e6116c0bde7b65.tar.gz
gold-mine-run-ba2a2dbe3434a1ffc10542ca38e6116c0bde7b65.zip
Add hiscore to the menu screen
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/menu.c b/src/menu.c
index a74568e..24c24c7 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -1,15 +1,20 @@
#include <stdint.h>
+#include <stdio.h>
#include "keyb.h"
#include "vga.h"
#include "text.h"
#include "data.h"
+#include "game.h"
uint8_t run_menu()
{
+ char b[10];
+
blit_erase(0);
- put_text(124, 10, "HI 000000", 5);
+ sprintf(b, "HI %06li", get_hiscore());
+ put_text(124, 10, b, 5);
Rect dst = { 80, 45, 160, 38 };
blit(binary_title_start, &dst);