aboutsummaryrefslogtreecommitdiff
path: root/main.c
blob: 7cfaf836823af8ae320e9ffd388ccaf4b31e4649 (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
24
25
26
27
28
29
30
31
#include "asset.h"
#include "player.h"
#include "render.h"
#include "standard.h"
#include "systems.h"
#include "world.h"

World world;

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

	init_renderer();

	load_assets();

	init_world(&world);

	init_player(&world.player, &world);
}

void on_update() {
	renderer_begin_frame();
	update_player(&world.player, &world);
	animation_system(&world);
	sprite_system(&world);
}

void on_deinit() {

}