mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
feat: Made sprites dynamic in memory and allocated in heap
This commit is contained in:
parent
2e0fd93831
commit
10576f5751
5 changed files with 35 additions and 76 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue