aboutsummaryrefslogtreecommitdiff
path: root/src/engine/bullet.h
diff options
context:
space:
mode:
authorUnavailableDev <ggwildplay@gmail.com>2023-03-22 10:29:24 +0100
committerUnavailableDev <ggwildplay@gmail.com>2023-03-22 10:29:24 +0100
commitcd9f96be0d1ca49f269d8dc7c801479ef382d21b (patch)
treed3768b4d9a8ef8cb1c6ee5e6dcea785adb902d5c /src/engine/bullet.h
parent439be80c80498586a299c28ce1be3ea765b414a9 (diff)
parent746b9a43b745e6f7cbac4cbe529d3f5f719d1eea (diff)
Merge branch 'dev' of https://github.com/heavydemon21/avans-arcade into game-engine
Diffstat (limited to 'src/engine/bullet.h')
-rw-r--r--src/engine/bullet.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/engine/bullet.h b/src/engine/bullet.h
new file mode 100644
index 0000000..ad67d84
--- /dev/null
+++ b/src/engine/bullet.h
@@ -0,0 +1,16 @@
+#pragma once
+#include "player_controller.h"
+
+typedef struct {
+ int x;
+ int y;
+ int velocity;
+ int isActive;
+ int hit;
+} Bullet;
+
+
+//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);