From c162e010ae85c636131ff59e8d810be4e9960caa Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 4 Nov 2023 16:48:51 +0100 Subject: throwables ui --- include/asset_defs.h | 3 +++ include/players.h | 4 ++++ include/throwables.h | 1 + 3 files changed, 8 insertions(+) (limited to 'include') 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 +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 -- cgit v1.2.3-70-g09d2