From 89984db7afa433e2842c4ef8c8c265a3e3993636 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 16 Dec 2022 23:21:47 +0100 Subject: work --- include/wall_item.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 include/wall_item.h (limited to 'include/wall_item.h') diff --git a/include/wall_item.h b/include/wall_item.h new file mode 100644 index 0000000..2e6bdd3 --- /dev/null +++ b/include/wall_item.h @@ -0,0 +1,33 @@ +#ifndef INCLUDE_WALL_ITEM +#define INCLUDE_WALL_ITEM + +#include + +#include "guns.h" + +typedef enum t_wall_item_type { + WALLITEM_GUN, +} wall_item_type; + +typedef union t_wall_item_data { + gun_type gun; +} wall_item_data; + +typedef struct t_wall_item { + bool active; + vec3f position; + float time_active; + float start_h; + wall_item_type item; + wall_item_data data; + image* img; +} wall_item; + +#define MAX_WALLITEMS (20) +wall_item wallitems[MAX_WALLITEMS] = {0}; + +void update_wallitems(); +void draw_wallitems(platform_window* window); +void create_wallitem(vec3f position, wall_item_type item, wall_item_data data); + +#endif \ No newline at end of file -- cgit v1.2.3-70-g09d2