From 02955219fd0a1bd42e3009f77911f5f258d59d34 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Mon, 9 Mar 2020 21:03:16 +0100 Subject: get next sprite --- inc/cub3d_structs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inc/cub3d_structs.h') diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index d650110..13f81fa 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -177,6 +177,7 @@ typedef struct s_map size_t map_w; size_t map_h; size_t mapl_len; + uint8_t sprite_var; int32_t sprite_nbr; int32_t sprite_order[12]; size_t line_chk; @@ -217,7 +218,7 @@ typedef struct s_cub struct s_rgb f_rgb; struct s_rgb c_rgb; struct s_img tlist[8]; - struct s_sprite sprites[12]; + struct s_sprite sprites[12][12]; } t_cub; # endif -- cgit v1.2.3 From 44387601203a68b359f80d2a0be9bf63179b41ef Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Mon, 9 Mar 2020 21:12:13 +0100 Subject: still retard --- inc/cub3d_structs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/cub3d_structs.h') diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 13f81fa..a2cf5b5 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -177,8 +177,8 @@ typedef struct s_map size_t map_w; size_t map_h; size_t mapl_len; - uint8_t sprite_var; int32_t sprite_nbr; + uint8_t sprite_var; int32_t sprite_order[12]; size_t line_chk; size_t map_start; -- cgit v1.2.3 From b252f8d58790381d5fbece9748e188d42e769aa5 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Tue, 10 Mar 2020 17:46:21 +0100 Subject: 2 sprites max ??? --- inc/cub3d_structs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'inc/cub3d_structs.h') 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; -- cgit v1.2.3