From ba2a2dbe3434a1ffc10542ca38e6116c0bde7b65 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 21 Jun 2023 22:47:49 +0100 Subject: Add hiscore to the menu screen --- src/menu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/menu.c') 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 +#include #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); -- cgit v1.2.3