enhancement: Added a nuzzle flash for the gun

This commit is contained in:
Theo Champion 2025-09-16 15:59:07 +02:00
parent b94e722ab9
commit c3cb34c3bb
6 changed files with 6695 additions and 8 deletions

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/08/06 11:29:14 by kcolin #+# #+# */
/* Updated: 2025/09/10 15:58:32 by tchampio ### ########.fr */
/* Updated: 2025/09/16 14:59:49 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
@ -66,6 +66,7 @@ void init_player(t_cub3d_data *data, t_player *player, t_mapdata *map)
ft_bzero(player->perk_order, 3);
ft_bzero(&player->weapon, sizeof(t_weapon));
player->weapon.texture = load_hud_texture(data, "ressources/weapon.xpm");
player->weapon.shoot_texture = load_hud_texture(data, "ressources/weapon_shooting.xpm");
if (dir == 'N' || dir == 'S')
init_lon(player, dir);
else