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

Game game;

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

	load_assets();

	game_init(&game, game_state_menu);
}

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

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