aboutsummaryrefslogtreecommitdiff
path: root/src/engine/enemy.c
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2023-04-06 12:32:23 +0200
committerGitHub <noreply@github.com>2023-04-06 12:32:23 +0200
commitd1c00c98ca0f2ca498284e60fa057a610cc5c461 (patch)
treea2efebcb9917d7f4f3666a722338f50b9590e843 /src/engine/enemy.c
parent1771aaa12736b4dbc24419270cf595de6d345969 (diff)
parent93e9426d5642dfab7a13d5a34873b296de1d9642 (diff)
Merge pull request #58 from UnavailableDev/dev
Dynamic tilemap
Diffstat (limited to 'src/engine/enemy.c')
-rw-r--r--src/engine/enemy.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/engine/enemy.c b/src/engine/enemy.c
index 186cfa0..4ed48a2 100644
--- a/src/engine/enemy.c
+++ b/src/engine/enemy.c
@@ -1,14 +1,9 @@
#include "engine/enemy.h"
-void hh_update_enemy(hh_entity* enemy, vec_cor cam_pos){
- //Bjorn functions
-
-}
-
-void hh_multiple_enemies( vec_cor cam_pos, hh_entity* enemies, int total_enemies){
+void hh_multiple_enemies(hh_entity* enemies, hh_entity player, vec_cor cam_pos, int total_enemies){
for(int i=0; i < total_enemies;i++){
- hh_update_enemy(&enemies[i] , cam_pos);
+ hh_update_enemy(&enemies[i] , player, cam_pos);
}
}
@@ -22,6 +17,7 @@ void hh_enemy_death_check(hh_entity* enemy){
enemy->hp--;
}
}
+
void hh_solve_hitted_enemies(hh_entity* enemies, int total_enemies){
for(int i = 0; i < total_enemies; i++){
if(enemies[i].is_hit){