diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asset_defs.h | 2 | ||||
| -rw-r--r-- | include/guns.h | 1 | ||||
| -rw-r--r-- | include/wall_item.h | 33 |
3 files changed, 36 insertions, 0 deletions
diff --git a/include/asset_defs.h b/include/asset_defs.h index ee520ea..480f97f 100644 --- a/include/asset_defs.h +++ b/include/asset_defs.h @@ -8,6 +8,8 @@ font* fnt_20; image* img_icon_bullets; +image* img_icon_nova; + void load_assets(); #endif
\ No newline at end of file diff --git a/include/guns.h b/include/guns.h index 0363cae..1b93781 100644 --- a/include/guns.h +++ b/include/guns.h @@ -25,6 +25,7 @@ gun guns[GUN_ALL] = { {GUN_NOVA, "Nova", 12, 80, 0.2f, 3, 1.2f}, }; +image* get_image_of_gun(gun_type type); gun get_gun_by_type(gun_type type); #endif
\ No newline at end of file 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 <projectbase/project_base.h> + +#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 |
