aboutsummaryrefslogtreecommitdiff
path: root/src/engine/bullet.h
diff options
context:
space:
mode:
authorNielsCoding <48092678+heavydemon21@users.noreply.github.com>2023-04-04 15:25:34 +0200
committerNielsCoding <48092678+heavydemon21@users.noreply.github.com>2023-04-04 15:25:34 +0200
commit854a80001b9798d1454e4308e4efba96431e44d8 (patch)
tree8e023b13df43b3aaef5241e59bcbe5c90b1a2f8a /src/engine/bullet.h
parentf6c1eb582ac44b92c86816352bd56da5a6f4f1b5 (diff)
bullet/player/enemy/gameplay
bullet only needs different directions player is done enemy needs ai(Bjorn) gameplay may need some finetuning
Diffstat (limited to 'src/engine/bullet.h')
-rw-r--r--src/engine/bullet.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/engine/bullet.h b/src/engine/bullet.h
index 4084327..4133032 100644
--- a/src/engine/bullet.h
+++ b/src/engine/bullet.h
@@ -4,13 +4,15 @@
#include "types.h"
#include "input.h"
-#define hh_ppu_bullet_fg_offset_idx 10
hh_entity* hh_init_bullets(int size);
-static 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*);
-static void hh_update_bullet(hh_entity* , vec_cor );
+/** @brief updates single bullet position*/
+void hh_update_bullet(hh_entity* );
-static void hh_draw_bullet(hh_entity, int);
+/** @brief calculates all the bullets positions and which to shoot */
+void hh_multiple_bullets(vec2 player, hh_entity* bullets);
-void hh_multiple_bullets(vec2 player, vec_cor cam_pos, hh_entity* bullets);
+void hh_bullet_death(hh_entity* bullet);