aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-24 17:15:39 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-24 17:15:39 +0100
commit17a9d765f17ad62d326fd6d9a60bf0c467e0c068 (patch)
treedf357d9017b1504b86c627879088a454928a58f5 /src
parentMap update (diff)
download42-cub3d-17a9d765f17ad62d326fd6d9a60bf0c467e0c068.tar.gz
42-cub3d-17a9d765f17ad62d326fd6d9a60bf0c467e0c068.tar.bz2
42-cub3d-17a9d765f17ad62d326fd6d9a60bf0c467e0c068.tar.xz
42-cub3d-17a9d765f17ad62d326fd6d9a60bf0c467e0c068.tar.zst
42-cub3d-17a9d765f17ad62d326fd6d9a60bf0c467e0c068.zip
Removed lifebars
Diffstat (limited to 'src')
-rw-r--r--src/ft_draw_hud.c2
-rw-r--r--src/ft_draw_life_bar.c28
-rw-r--r--src/ft_init_lists.c1
3 files changed, 0 insertions, 31 deletions
diff --git a/src/ft_draw_hud.c b/src/ft_draw_hud.c
index 038d1f2..9cb5b1c 100644
--- a/src/ft_draw_hud.c
+++ b/src/ft_draw_hud.c
@@ -110,6 +110,4 @@ 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);
}
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 <cub3d.h>
-#include <stdint.h>
-
-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++;
- }
-}
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index b9dbfd3..5592358 100644
--- a/src/ft_init_lists.c
+++ b/src/ft_init_lists.c
@@ -45,7 +45,6 @@ static t_player
plist->dir_y = 0;
plist->plane_x = 0;
plist->plane_y = 0.66666666;
- plist->life = 100;
return (plist);
}