feat: Made sprites dynamic in memory and allocated in heap

This commit is contained in:
Theo Champion 2025-08-07 12:35:01 +02:00
parent 2e0fd93831
commit 10576f5751
5 changed files with 35 additions and 76 deletions

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:59:37 by kcolin #+# #+# */
/* Updated: 2025/08/05 15:44:27 by tchampio ### ########.fr */
/* Updated: 2025/08/07 11:28:49 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
@ -36,7 +36,7 @@ typedef struct s_cub3d_data
int *screen_matrix;
int delta;
int last_tick;
t_sprite static_sprite[4];
t_sprite **sprite_list;
double zbuffer[WIDTH];
int sprite_order[MAX_SPRITES];
double sprite_distances[MAX_SPRITES];