aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-20 23:08:22 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-20 23:08:22 +0100
commitb4dd0c8956f1c81836e4f3020efe2f85b3d91902 (patch)
tree658f08795c5774df8e0ee646e5212ffa82e09ba3 /src/main.c
parentd489b6ef92ae9f61bbceb5f594026a51e71538f2 (diff)
downloadgold-mine-run-b4dd0c8956f1c81836e4f3020efe2f85b3d91902.tar.gz
gold-mine-run-b4dd0c8956f1c81836e4f3020efe2f85b3d91902.zip
Add menu screen (WIP)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 0711cf9..6207b35 100644
--- a/src/main.c
+++ b/src/main.c
@@ -8,6 +8,7 @@
#include "keyb.h"
#include "vga.h"
#include "data.h"
+#include "menu.h"
#include "game.h"
/* disable paging because our int handlers are written in C */
@@ -41,11 +42,8 @@ int main(int argc, char *argv[])
return 1;
}
- blit_erase(0);
- wait_vsync();
- blit_update();
-
- run_game();
+ while (run_menu())
+ run_game();
set_mode(3);
close_framebuffer();