blob: b106978fd1bbab577bb289f34b8e5957466abc77 (
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
|
#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);
sprite_system(&world);
}
void on_deinit() {
}
|