diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-23 16:30:47 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-23 16:30:47 +0100 |
commit | bf2cce96c3c5657946070a07b8dcda5dad199481 (patch) | |
tree | af6bb51948d880494d7841c5e5da0f9aff862166 /src/ft_draw_hud.c | |
parent | Colors fix (diff) | |
download | 42-cub3d-bf2cce96c3c5657946070a07b8dcda5dad199481.tar.gz 42-cub3d-bf2cce96c3c5657946070a07b8dcda5dad199481.tar.bz2 42-cub3d-bf2cce96c3c5657946070a07b8dcda5dad199481.tar.xz 42-cub3d-bf2cce96c3c5657946070a07b8dcda5dad199481.tar.zst 42-cub3d-bf2cce96c3c5657946070a07b8dcda5dad199481.zip |
Trying life bars
Diffstat (limited to 'src/ft_draw_hud.c')
-rw-r--r-- | src/ft_draw_hud.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ft_draw_hud.c b/src/ft_draw_hud.c index 46662fa..038d1f2 100644 --- a/src/ft_draw_hud.c +++ b/src/ft_draw_hud.c @@ -61,7 +61,7 @@ static void *(int*)(cl->img.ptr + (x * 4 + (y * cl->img.sizeline))) = col; if (!(y % 3)) { - if (col < 0x00AAAAAA) + if (col < 0x00aaaaaa) col += 0x00010101; } y++; @@ -90,7 +90,7 @@ static void *(int*)(cl->img.ptr + (x * 4 + (y * cl->img.sizeline))) = col; if (!(y % 2)) { - if (col < 0x00AAAAAA) + if (col < 0x00aaaaaa) col += 0x00010101; } y++; @@ -110,4 +110,6 @@ void ft_draw_hud_back_top_r(clist->mlist->map_h, clist->mlist->map_w, clist->wlist, clist); ft_draw_map(clist->mlist->map, clist); + ft_draw_life_bar(clist->mlist->map_w, clist->mlist->scale, + clist->plist->life, clist); } |