aboutsummaryrefslogtreecommitdiff
path: root/src/engine/bullet.h
diff options
context:
space:
mode:
authorUnavailableDev <ggwildplay@gmail.com>2023-04-05 20:49:23 +0200
committerUnavailableDev <ggwildplay@gmail.com>2023-04-05 20:49:23 +0200
commit06b9a5e3c252713c211d77b5643143276db209ba (patch)
tree8fb96c3086904969207fab1e77e786a916346aa6 /src/engine/bullet.h
parent30ed47e6ea66872951140711323844698a278fff (diff)
parent854a80001b9798d1454e4308e4efba96431e44d8 (diff)
Merge branch 'dev' of https://github.com/heavydemon21/avans-arcade into dev
Diffstat (limited to 'src/engine/bullet.h')
-rw-r--r--src/engine/bullet.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/engine/bullet.h b/src/engine/bullet.h
index 5f07b2e..4133032 100644
--- a/src/engine/bullet.h
+++ b/src/engine/bullet.h
@@ -1,11 +1,18 @@
#pragma once
#include "player_controller.h"
#include "engine/sprite_controller.h"
+#include "types.h"
#include "input.h"
+hh_entity* hh_init_bullets(int size);
-void hh_shoot_bullet(vec2 playerPos, vec_cor cam_pos, hh_entity*);
+/** @brief checks if player hit button and sets the activate bullet*/
+void hh_shoot_bullet(vec2 playerPos, hh_entity*);
-void hh_update_bullet(hh_entity* , vec_cor );
+/** @brief updates single bullet position*/
+void hh_update_bullet(hh_entity* );
-void hh_draw_bullet(hh_entity);
+/** @brief calculates all the bullets positions and which to shoot */
+void hh_multiple_bullets(vec2 player, hh_entity* bullets);
+
+void hh_bullet_death(hh_entity* bullet);