From bf2cce96c3c5657946070a07b8dcda5dad199481 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 23 Feb 2020 16:30:47 +0100 Subject: Trying life bars --- inc/cub3d.h | 2 ++ inc/cub3d_structs.h | 1 + 2 files changed, 3 insertions(+) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index 7ebf492..e8e3249 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -85,5 +85,7 @@ void ft_draw_texture(t_cub *cl, int x, int y, int tex_y); int8_t ft_check_not_found(const char *path); void ft_calc_tex(t_cub *clist); void ft_draw_hud(t_cub *clist); +void ft_draw_life_bar(size_t map_w, uint16_t scale, + int8_t life, t_cub *cl); # endif diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 639de11..b185d92 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -67,6 +67,7 @@ typedef struct s_player float cam_x; float plane_x; float plane_y; + int8_t life; } t_player; typedef struct s_ray -- cgit v1.2.3