diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-11-04 16:48:51 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-11-04 16:48:51 +0100 |
| commit | c162e010ae85c636131ff59e8d810be4e9960caa (patch) | |
| tree | 03d2e88a7fdb7730b54eb4524abf436c098b8249 /include | |
| parent | 88e4037c0b526e33cd03f0b62783b198d8585768 (diff) | |
throwables ui
Diffstat (limited to 'include')
| -rw-r--r-- | include/asset_defs.h | 3 | ||||
| -rw-r--r-- | include/players.h | 4 | ||||
| -rw-r--r-- | include/throwables.h | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/include/asset_defs.h b/include/asset_defs.h index 0fc0f92..cdf9614 100644 --- a/include/asset_defs.h +++ b/include/asset_defs.h @@ -3,6 +3,7 @@ #include <projectbase/project_base.h> +font* fnt_32; font* fnt_24; font* fnt_20; @@ -17,6 +18,8 @@ image* img_3d; image* img_tiles; image* img_sunny; image* img_disconnected; +image* img_icon_grenade; +image* img_icon_molotov; // Objects image* img_spawner; diff --git a/include/players.h b/include/players.h index 0c7433e..d34f83a 100644 --- a/include/players.h +++ b/include/players.h @@ -51,6 +51,10 @@ typedef struct t_player { sprite sprite; vec3f velocity; network_state connection_state; + struct { + int grenades; + int molotovs; + } throwables; } player; #include "protocol.h" diff --git a/include/throwables.h b/include/throwables.h index 5e49c16..4053826 100644 --- a/include/throwables.h +++ b/include/throwables.h @@ -12,6 +12,7 @@ typedef enum t_throwable_type { THROWABLE_NONE = 0, THROWABLE_GRENADE, + THROWABLE_MOLOTOV, } throwable_type; typedef enum t_throwable_state |
