diff options
author | NielsCoding <48092678+heavydemon21@users.noreply.github.com> | 2023-04-05 20:46:53 +0200 |
---|---|---|
committer | NielsCoding <48092678+heavydemon21@users.noreply.github.com> | 2023-04-05 20:46:53 +0200 |
commit | dc5e246ff1e8d89e59acf70c149f180fb41dd584 (patch) | |
tree | de7f2c3849a4ab6889747531452b7963ecf59f8c /src/engine/enemy.c | |
parent | 854a80001b9798d1454e4308e4efba96431e44d8 (diff) |
enemy and ai, bullets and gameplay
ai needs finetuning
Diffstat (limited to 'src/engine/enemy.c')
-rw-r--r-- | src/engine/enemy.c | 10 |
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){ |