From 957c64c7b8b5e98d8a03dd84c7e27e7991fb9dbc Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Mon, 6 Apr 2026 17:04:05 -0400 Subject: Initial commit --- micro/micro.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 micro/micro.c (limited to 'micro/micro.c') diff --git a/micro/micro.c b/micro/micro.c new file mode 100644 index 0000000..0a87a6d --- /dev/null +++ b/micro/micro.c @@ -0,0 +1,38 @@ +#include + +#include "common.h" +#include "context.h" +#include "uscript.h" + +int main(void) +{ + init_mem(); + + us_init(); + us_load_file("main.us"); + us_deinit(); + + // struct ctx ctx; + // struct ctx_hints hints = { + // .win_width = 800, + // .win_height = 400, + // .win_title = "microengine", + // .ticrate = 20, + // }; + // init_ctx(&ctx, hints); + // + // while (is_game_running(&ctx)) { + // int tics = game_tick(&ctx); + // for (int i = 0; i < tics; i++) { + // printf("tick\n"); + // } + // game_draw(&ctx); + // + // free_temp_allocs(); + // } + // + // deinit_ctx(&ctx); + + deinit_mem(); + return 0; +} -- cgit v1.3-2-g0d8e