diff options
author | quou <quou@disroot.org> | 2023-05-05 09:25:39 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-05 09:25:39 +1000 |
commit | 280552fa4750b5dac9243782f9c0a7e0b7eea6f8 (patch) | |
tree | 6385dc740cc965dad7dc628e8b10738724ec0a42 /main.c | |
parent | 0a083f5a9a747083bbc3a1f0689e76ac5fc3a3b9 (diff) |
Add a basic enemy.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -4,6 +4,7 @@ #include "standard.h" #include "systems.h" #include "world.h" +#include "enemy.h" World world; @@ -17,11 +18,14 @@ void on_init(int argc, char** argv) { 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); animation_system(&world); sprite_system(&world); |