aboutsummaryrefslogtreecommitdiff
path: root/src/engine/bullet.h
diff options
context:
space:
mode:
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);