diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 16:20:10 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 16:20:10 +0200 |
commit | f3ef7f448c8551df9c723d22d33a6fac0b966c22 (patch) | |
tree | 982d3e931f77d30a2cc7c2d28ea6129c5f7467ca /src/ft_tex_init.c | |
parent | Less fat sprites (diff) | |
download | 42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.tar.gz 42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.tar.bz2 42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.tar.xz 42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.tar.zst 42-cub3d-f3ef7f448c8551df9c723d22d33a6fac0b966c22.zip |
Fixed conditionnal jump btw
Diffstat (limited to 'src/ft_tex_init.c')
-rw-r--r-- | src/ft_tex_init.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ft_tex_init.c b/src/ft_tex_init.c index 1a58421..95c18dd 100644 --- a/src/ft_tex_init.c +++ b/src/ft_tex_init.c @@ -41,6 +41,10 @@ ** 20: weapon three sprite ** 21: health caption ** 22: ammo caption +** 23: enemy waiting +** 24: enemy walking +** 25: enemy firing +** 26: enemy dead */ static void @@ -54,6 +58,22 @@ static void FT_CAP_AMMO_PATH, &cl->tlist[22].img_w, &cl->tlist[22].img_h); cl->tlist[22].ptr = mlx_get_data_addr(cl->tlist[22].img, &cl->tlist[22].bpp, &cl->tlist[22].sizeline, &cl->tlist[22].endian); + cl->tlist[23].img = mlx_xpm_file_to_image(cl->wlist.wlx, + FT_ENMY_WAIT_PATH, &cl->tlist[23].img_w, &cl->tlist[23].img_h); + cl->tlist[23].ptr = mlx_get_data_addr(cl->tlist[23].img, + &cl->tlist[23].bpp, &cl->tlist[23].sizeline, &cl->tlist[23].endian); + cl->tlist[24].img = mlx_xpm_file_to_image(cl->wlist.wlx, + FT_ENMY_WALK_PATH, &cl->tlist[24].img_w, &cl->tlist[24].img_h); + cl->tlist[24].ptr = mlx_get_data_addr(cl->tlist[24].img, + &cl->tlist[24].bpp, &cl->tlist[24].sizeline, &cl->tlist[24].endian); + cl->tlist[25].img = mlx_xpm_file_to_image(cl->wlist.wlx, + FT_ENMY_FIRE_PATH, &cl->tlist[25].img_w, &cl->tlist[25].img_h); + cl->tlist[25].ptr = mlx_get_data_addr(cl->tlist[25].img, + &cl->tlist[25].bpp, &cl->tlist[25].sizeline, &cl->tlist[25].endian); + cl->tlist[26].img = mlx_xpm_file_to_image(cl->wlist.wlx, + FT_ENMY_DEAD_PATH, &cl->tlist[26].img_w, &cl->tlist[26].img_h); + cl->tlist[26].ptr = mlx_get_data_addr(cl->tlist[26].img, + &cl->tlist[26].bpp, &cl->tlist[26].sizeline, &cl->tlist[26].endian); } static void |