feat: Added sprites

This commit is contained in:
Theo Champion 2025-08-06 14:06:15 +02:00
parent 7a1e8c18df
commit 258372bf09
9 changed files with 198 additions and 29 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 13:37:57 by tchampio ### ########.fr */
/* Updated: 2025/08/05 15:44:27 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
@ -37,6 +37,9 @@ typedef struct s_cub3d_data
int delta;
int last_tick;
t_sprite static_sprite[4];
double zbuffer[WIDTH];
int sprite_order[MAX_SPRITES];
double sprite_distances[MAX_SPRITES];
} t_cub3d_data;
#endif // CUB3D_DATA_H