summaryrefslogtreecommitdiffhomepage
path: root/src/main.c
diff options
context:
space:
mode:
authorarngo <[email protected]>2023-05-26 17:33:14 -0400
committerarngo <[email protected]>2023-05-26 17:33:14 -0400
commit92a20f1c3f48eb0c6bf04585b8bb3ab0aea5c99a (patch)
tree4edb1d4eb4065c3272a245235fb7b945c62e3a82 /src/main.c
parent16afc70b4e30668ae65b241c8502d9747f2a139e (diff)
downloadTOJam2023-92a20f1c3f48eb0c6bf04585b8bb3ab0aea5c99a.tar.gz
TOJam2023-92a20f1c3f48eb0c6bf04585b8bb3ab0aea5c99a.zip
implement player damage from touching enemies
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 1078f46..0b6c15a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -189,6 +189,7 @@ main_loop(void)
draw_player();
draw_enemies();
detect_bullet_enemy_collisions();
+ detect_player_enemy_collisions();
rodeo_debug_text_draw(
1,
@@ -271,7 +272,7 @@ main(void)
init_player();
init_enemies();
spawn_enemy(240, 240);
- spawn_enemy(100, 100);
+ //spawn_enemy(100, 100);
spawn_enemy(300, 100);
spawn_enemy(200, 330);