aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_structs.h
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-03-12 16:52:18 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-03-12 16:52:18 +0100
commit3212c77bf30acdf7538bfc103d27a46cae03d250 (patch)
treef151d61c350cab0acddbe1fab473e4badb6c02c2 /inc/cub3d_structs.h
parentClang is cool anyway (diff)
parentNORMED AND FIXED .......!!! (diff)
download42-cub3d-3212c77bf30acdf7538bfc103d27a46cae03d250.tar.gz
42-cub3d-3212c77bf30acdf7538bfc103d27a46cae03d250.tar.bz2
42-cub3d-3212c77bf30acdf7538bfc103d27a46cae03d250.tar.xz
42-cub3d-3212c77bf30acdf7538bfc103d27a46cae03d250.tar.zst
42-cub3d-3212c77bf30acdf7538bfc103d27a46cae03d250.zip
Merge branch 'multis'
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r--inc/cub3d_structs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 7a30d09..8fba623 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;
@@ -182,6 +183,7 @@ typedef struct s_map
size_t map_h;
size_t mapl_len;
int32_t sprite_nbr;
+ uint8_t sprite_var;
int32_t sprite_order[4096];
int32_t traps_nbr;
int32_t traps_order[512];
@@ -227,7 +229,7 @@ typedef struct s_cub
struct s_rgb f_rgb;
struct s_rgb c_rgb;
struct s_img tlist[16];
- struct s_sprite sprites[4096];
+ struct s_sprite sprites[8][4096];
struct s_sprite traps[512];
} t_cub;