diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-15 22:35:39 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-15 22:35:39 +0100 |
commit | 07e829e591394fa182e75ecab86051f1fb850ce7 (patch) | |
tree | e3b59887aaa463400392040ccf601eab862eba82 /src/main.c | |
parent | 671803751cc9487ea781eb264ab2d76575c345e8 (diff) | |
download | gold-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.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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(); |