diff options
author | salaaad2 <arthudurant263@gmail.com> | 2020-03-10 17:46:21 +0100 |
---|---|---|
committer | salaaad2 <arthudurant263@gmail.com> | 2020-03-10 17:46:21 +0100 |
commit | b252f8d58790381d5fbece9748e188d42e769aa5 (patch) | |
tree | 7c677a5bade2d4060cb69e33982742818be68682 /inc/cub3d_structs.h | |
parent | merge master (diff) | |
download | 42-cub3d-b252f8d58790381d5fbece9748e188d42e769aa5.tar.gz 42-cub3d-b252f8d58790381d5fbece9748e188d42e769aa5.tar.bz2 42-cub3d-b252f8d58790381d5fbece9748e188d42e769aa5.tar.xz 42-cub3d-b252f8d58790381d5fbece9748e188d42e769aa5.tar.zst 42-cub3d-b252f8d58790381d5fbece9748e188d42e769aa5.zip |
2 sprites max ???
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r-- | inc/cub3d_structs.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 20b64b5..1aaa1d5 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -87,6 +87,7 @@ typedef struct s_rgb typedef struct s_sprite { int32_t spritescreenx; + int32_t current_sprite; int32_t x; int32_t y; int32_t tex_x; @@ -180,7 +181,7 @@ typedef struct s_map size_t mapl_len; int32_t sprite_nbr; uint8_t sprite_var; - int32_t sprite_order[12]; + int32_t sprite_order[4096]; size_t line_chk; size_t map_start; uint8_t isspawn; @@ -219,7 +220,7 @@ typedef struct s_cub struct s_img img; struct s_rgb f_rgb; struct s_rgb c_rgb; - struct s_img tlist[8]; + struct s_img tlist[12]; struct s_sprite sprites[12][12]; } t_cub; |