wip: Adding weapon class and usage

This commit is contained in:
Theo Champion 2025-09-11 23:41:00 +02:00
parent 87c0a8a991
commit b0ac26a7f6
13 changed files with 82 additions and 43 deletions

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/08/18 13:05:31 by kcolin #+# #+# */
/* Updated: 2025/09/10 15:18:58 by tchampio ### ########.fr */
/* Updated: 2025/09/10 16:00:47 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
@ -65,23 +65,15 @@ void destroy_hud_textures(t_cub3d_data *data)
i = 0;
while (i < 10)
{
destroy_texture(data, data->point_figures[i++]);
}
i = 0;
while (i < 10)
{
destroy_texture(data, data->round_figures[i++]);
}
i = 0;
while (i < 5)
{
destroy_texture(data, data->tally_marks[i++]);
}
i = 0;
while (i < 3)
{
destroy_texture(data, data->perk_logos[i++]);
}
destroy_texture(data, data->gun);
destroy_texture(data, data->player.weapon.texture);
}