diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cub3d.h | 9 | ||||
-rw-r--r-- | inc/cub3d_defines.h | 11 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 3 |
3 files changed, 20 insertions, 3 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 2d9853c..5f1c6f8 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -79,10 +79,17 @@ int ft_key_release(int keycode, t_cub *clist); int8_t ft_check_ext(const char *filep, const char *ext); int32_t ft_convert_keycode(const int32_t tmp_code); int ft_key_loop(t_cub *cl); -void ft_draw_circle(int32_t a, int32_t b, +void ft_draw_circle(float a, float b, int32_t color, t_cub *cl); void ft_draw_texture(t_cub *cl, int x, int y, int tex_y); int8_t ft_check_not_found(const char *path); +void ft_calc_tex(t_cub *clist); +void ft_draw_hud(t_cub *clist); +void ft_draw_life_bar(size_t map_w, + const uint16_t scale, + const int8_t life, + t_cub *cl); +void ft_music(t_cub *cl); void ft_draw_sprite(t_cub *cl, int i); # endif diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index f591f14..c4be489 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -49,7 +49,7 @@ ** ====== MOVE SPEED ====== */ -# define FT_MOVE_SPEED 0.3 +# define FT_MOVE_SPEED 0.2 # define FT_STRAFE_SPEED 0.1 # define FT_ROT_SPEED 0.09 @@ -62,6 +62,15 @@ # endif /* +** ====== OTHERS ====== +*/ + +# ifndef FT_OS +# define FT_OS "Darwin" +# endif + + +/* ** ====== MAP ERROR MSG ====== */ diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 4c397b2..a173e8c 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -125,9 +125,10 @@ typedef struct s_map typedef struct s_cub { uint8_t w_side; - uint8_t minimap; + uint8_t ishud; char errmsg[40]; int32_t key_input[5]; + int (*key_ptr[6])(struct s_cub*); struct s_win *wlist; struct s_player *plist; struct s_map *mlist; |