mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
feat: Added sprites
This commit is contained in:
parent
7a1e8c18df
commit
258372bf09
9 changed files with 198 additions and 29 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue