blob: 0a87a6d2f473ed964207d19d13afd0456167bc66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
}
|