From 17a9d765f17ad62d326fd6d9a60bf0c467e0c068 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Mon, 24 Feb 2020 17:15:39 +0100 Subject: Removed lifebars --- src/ft_draw_life_bar.c | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/ft_draw_life_bar.c (limited to 'src/ft_draw_life_bar.c') diff --git a/src/ft_draw_life_bar.c b/src/ft_draw_life_bar.c deleted file mode 100644 index bfe642b..0000000 --- a/src/ft_draw_life_bar.c +++ /dev/null @@ -1,28 +0,0 @@ -#include -#include - -void - ft_draw_life_bar(size_t map_w, - const uint16_t scale, - const int8_t life, - t_cub *cl) -{ - uint32_t x; - uint32_t y; - int32_t col; - - (void)life; - col = 0x0022fa38; - x = (map_w * scale) + (scale * 15); - y = cl->wlist->y_size - (scale * 4); - while (x < cl->wlist->x_size - (map_w * scale) - (scale * 15)) - { - while (y < cl->wlist->y_size - (scale * 2)) - { - *(int*)(cl->img.ptr + (x * 4 + (y * cl->img.sizeline))) = col; - y++; - } - y = cl->wlist->y_size - (scale * 4); - x++; - } -} -- cgit v1.2.3