blob: 9d2aff865efcd74c2421216b23474dd89438c306 (
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
32
33
34
35
36
37
|
#include "asset.h"
#include "player.h"
#include "render.h"
#include "standard.h"
#include "systems.h"
#include "world.h"
#include "enemy.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);
new_skull(&world, 0, 0);
}
void on_update() {
renderer_begin_frame();
update_player(&world.player, &world);
enemy_system(&world);
bullet_system(&world);
collision_system(&world);
animation_system(&world);
sprite_system(&world);
}
void on_deinit() {
}
|