aboutsummaryrefslogtreecommitdiff
path: root/src/engine/bullet.h
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2023-04-03 09:52:40 +0200
committerGitHub <noreply@github.com>2023-04-03 09:52:40 +0200
commit0a014f39c375c0cf28de70ebaab6cb0a5266f3c2 (patch)
tree4ee2404a1e796e8803035dd9285debcfdcb7bbea /src/engine/bullet.h
parentd32a4942c7e16af5daf71a769906b17cb44de8e1 (diff)
parentcc23564547b736125fe7e7869de277ea4d4455ab (diff)
Merge branch 'lonkaars:dev' into dev
Diffstat (limited to 'src/engine/bullet.h')
-rw-r--r--src/engine/bullet.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/engine/bullet.h b/src/engine/bullet.h
index ad67d84..5f07b2e 100644
--- a/src/engine/bullet.h
+++ b/src/engine/bullet.h
@@ -1,16 +1,11 @@
#pragma once
#include "player_controller.h"
+#include "engine/sprite_controller.h"
+#include "input.h"
-typedef struct {
- int x;
- int y;
- int velocity;
- int isActive;
- int hit;
-} Bullet;
+void hh_shoot_bullet(vec2 playerPos, vec_cor cam_pos, hh_entity*);
-//Bullet* createBullet(float x, float y, float velocity, float direction);
-void shootBullet(vec2 playerPos, Bullet* bullet);
-void updateBullet(Bullet* bullet, int deltaTime);
-void drawBullet(Bullet* bullet);
+void hh_update_bullet(hh_entity* , vec_cor );
+
+void hh_draw_bullet(hh_entity);