diff options
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; +} |
