diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-20 23:08:22 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-20 23:08:22 +0100 |
commit | b4dd0c8956f1c81836e4f3020efe2f85b3d91902 (patch) | |
tree | 658f08795c5774df8e0ee646e5212ffa82e09ba3 /src/main.c | |
parent | d489b6ef92ae9f61bbceb5f594026a51e71538f2 (diff) | |
download | gold-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.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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(); |