aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-15 22:35:39 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-15 22:35:39 +0100
commit07e829e591394fa182e75ecab86051f1fb850ce7 (patch)
treee3b59887aaa463400392040ccf601eab862eba82 /src/main.c
parent671803751cc9487ea781eb264ab2d76575c345e8 (diff)
downloadgold-mine-run-07e829e591394fa182e75ecab86051f1fb850ce7.tar.gz
gold-mine-run-07e829e591394fa182e75ecab86051f1fb850ce7.zip
Started with the game
Added hud (WIP)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c
index 9985159..306f5f1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,9 +6,8 @@
#include "keyb.h"
#include "vga.h"
-#include "text.h"
-#include "map.h"
#include "data.h"
+#include "game.h"
/* disable paging because our int handlers are written in C */
int _crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY;
@@ -36,14 +35,9 @@ int main(int argc, char *argv[])
blit_erase(0);
wait_vsync();
-
- map_init(binary_stage_start);
- map_render();
-
blit_update();
- while (!keys[KEY_ESC])
- wait_vsync();
+ run_game();
set_mode(3);
close_framebuffer();