From be34d7c8b2565ac055f9dc77111a1029ebd87d77 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Mon, 17 Feb 2020 20:24:57 +0100 Subject: sex --- inc/cub3d.h | 3 ++- inc/cub3d_defines.h | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index eacb997..2362d07 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -76,6 +76,7 @@ int ft_left_key(t_cub *clist); int ft_right_key(t_cub *clist); 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); +int32_t ft_convert_keycode(const int32_t tmp_code); +int ft_key_loop(t_cub *cl); # endif diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index 0c9a294..209d0bc 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -45,6 +45,14 @@ # define FT_TAB_KEY 48 # endif +/* +** ====== MOVE SPEED ====== +*/ + +# define FT_MOVE_SPEED 0.1 +# define FT_STRAFE_SPEED 0.05 +# define FT_ROT_SPEED 0.07 + /* ** ====== SCREEN ====== */ -- cgit v1.2.3