summaryrefslogtreecommitdiff
path: root/include/bullets.h
diff options
context:
space:
mode:
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