aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_structs.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r--inc/cub3d_structs.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 329f8bb..9ebc305 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -104,8 +104,8 @@ typedef struct s_sprite
int32_t y;
int32_t tex_x;
int32_t tex_y;
- uint64_t s_pos_x;
- uint64_t s_pos_y;
+ double s_pos_x;
+ double s_pos_y;
double spritex;
double spritey;
int8_t exists;
@@ -124,8 +124,8 @@ typedef struct s_sprite
typedef struct s_player
{
- float pos_x;
- float pos_y;
+ double pos_x;
+ double pos_y;
float pos_z;
float start_x;
float start_y;
@@ -228,7 +228,8 @@ typedef struct s_bad_boy
{
int8_t life;
int8_t does;
- void (*act[3])(struct s_sprite*, struct s_map*);
+ int8_t sleep;
+ void (*act[3])(struct s_bad_boy*, struct s_sprite*, t_map*);
} t_bad_boy;
typedef struct s_cub