summaryrefslogtreecommitdiffhomepage
path: root/src/main.c
diff options
context:
space:
mode:
authorarngo <[email protected]>2023-05-26 16:12:34 -0400
committerarngo <[email protected]>2023-05-26 16:12:34 -0400
commit33dc8e4cd4987a9f439767cf23812dce835fb4a5 (patch)
tree0693b0414d017db677296e9f00c3f050677f7ac2 /src/main.c
parenta6fe7c8e0f2b61c3950c7c8a6f6539f29875d39c (diff)
downloadTOJam2023-33dc8e4cd4987a9f439767cf23812dce835fb4a5.tar.gz
TOJam2023-33dc8e4cd4987a9f439767cf23812dce835fb4a5.zip
implement enemy bullet damage
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index d928615..1078f46 100644
--- a/src/main.c
+++ b/src/main.c
@@ -188,6 +188,7 @@ main_loop(void)
draw_bullets();
draw_player();
draw_enemies();
+ detect_bullet_enemy_collisions();
rodeo_debug_text_draw(
1,
@@ -270,6 +271,9 @@ main(void)
init_player();
init_enemies();
spawn_enemy(240, 240);
+ spawn_enemy(100, 100);
+ spawn_enemy(300, 100);
+ spawn_enemy(200, 330);
rodeo_mainLoop_run(
main_loop