diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-21 22:47:49 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-21 22:47:49 +0100 |
commit | ba2a2dbe3434a1ffc10542ca38e6116c0bde7b65 (patch) | |
tree | c97712775a6111b5ffc81bf222a6c03a14f6fc61 /src/menu.c | |
parent | 03d0053c9531c3f545025654d14541f8a89ce2f7 (diff) | |
download | gold-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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |