aboutsummaryrefslogtreecommitdiff
path: root/main.c
blob: 4f1c979e94c1ac6097505d79eaa280e39a875047 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "game.h"
#include "standard.h"

Game game;

void on_init(int argc, char** argv) {
	init_renderer();

	load_assets();

	game_init(&game, game_state_menu);
}

void on_update() {
	renderer_begin_frame();
	game_update(&game);
}

void on_deinit() {
	game_deinit(&game);
}