aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_life_bar.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-02-23 16:30:58 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-02-23 16:30:58 +0100
commit06163949b116123c75834b64f05ddf0597fa17bc (patch)
tree933955dc1545d77fd00b16baa0ce931d82b74bb3 /src/ft_draw_life_bar.c
parentTrying life bars (diff)
download42-cub3d-06163949b116123c75834b64f05ddf0597fa17bc.tar.gz
42-cub3d-06163949b116123c75834b64f05ddf0597fa17bc.tar.bz2
42-cub3d-06163949b116123c75834b64f05ddf0597fa17bc.tar.xz
42-cub3d-06163949b116123c75834b64f05ddf0597fa17bc.tar.zst
42-cub3d-06163949b116123c75834b64f05ddf0597fa17bc.zip
New file for life bars drawing
Diffstat (limited to 'src/ft_draw_life_bar.c')
-rw-r--r--src/ft_draw_life_bar.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ft_draw_life_bar.c b/src/ft_draw_life_bar.c
new file mode 100644
index 0000000..ae02edb
--- /dev/null
+++ b/src/ft_draw_life_bar.c
@@ -0,0 +1,16 @@
+#include <cub3d.h>
+#include <stdint.h>
+
+void
+ ft_draw_life_bar(size_t map_w, uint16_t scale, int8_t life, t_cub *cl)
+{
+ (void)map_w;
+ (void)scale;
+ (void)life;
+ (void)cl;
+ uint32_t x;
+ uint32_t y;
+ int32_t col;
+
+ col = 0x00229037;
+}