diff options
| author | iamcheeseman <[email protected]> | 2026-04-06 17:04:05 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-04-06 17:06:53 -0400 |
| commit | 957c64c7b8b5e98d8a03dd84c7e27e7991fb9dbc (patch) | |
| tree | f5fc230703791cee8d8e7851fb87eaef07ae63a2 /micro/micro.c | |
Initial commit
Diffstat (limited to 'micro/micro.c')
| -rw-r--r-- | micro/micro.c | 38 |
1 files changed, 38 insertions, 0 deletions
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 <stdio.h> + +#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; +} |
