summaryrefslogtreecommitdiff
path: root/include/bullets.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-08 15:41:08 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-08 15:41:08 +0100
commitf84639d4b1eda622bf7667a7223a4a335c093437 (patch)
treefa78998a68bfaac01b1be34ab1b354b86516d6fd /include/bullets.h
parentf8b97f2450bb789ae54a1d8d3845110342ff6134 (diff)
work
Diffstat (limited to 'include/bullets.h')
-rw-r--r--include/bullets.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/bullets.h b/include/bullets.h
new file mode 100644
index 0000000..e8ddb86
--- /dev/null
+++ b/include/bullets.h
@@ -0,0 +1,23 @@
+#ifndef INCLUDE_BULLETS
+#define INCLUDE_BULLETS
+
+#include <projectbase/project_base.h>
+
+#include "players.h"
+#include "objects.h"
+#include "map.h"
+
+typedef struct t_bullet {
+ bool active;
+ vec3f position;
+ float endx;
+ float endy;
+ float alive_time;
+} bullet;
+
+bullet bullets[500] = {0};
+int max_bullets = 500;
+
+void draw_bullets(platform_window* window);
+
+#endif \ No newline at end of file