diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-17 20:24:57 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-17 20:24:57 +0100 |
commit | be34d7c8b2565ac055f9dc77111a1029ebd87d77 (patch) | |
tree | 750ceb2402800c855c04c3e66a7294f11c09a7b1 /src/ft_basic_keys.c | |
parent | Multi-key in progress (diff) | |
download | 42-cub3d-be34d7c8b2565ac055f9dc77111a1029ebd87d77.tar.gz 42-cub3d-be34d7c8b2565ac055f9dc77111a1029ebd87d77.tar.bz2 42-cub3d-be34d7c8b2565ac055f9dc77111a1029ebd87d77.tar.xz 42-cub3d-be34d7c8b2565ac055f9dc77111a1029ebd87d77.tar.zst 42-cub3d-be34d7c8b2565ac055f9dc77111a1029ebd87d77.zip |
sex
Diffstat (limited to '')
-rw-r--r-- | src/ft_basic_keys.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_basic_keys.c b/src/ft_basic_keys.c index d147486..ff74262 100644 --- a/src/ft_basic_keys.c +++ b/src/ft_basic_keys.c @@ -17,7 +17,7 @@ int ft_w_key(t_cub *clist) { t_player *pl; - const float move_speed = 0.2; + const float move_speed = FT_MOVE_SPEED; pl = clist->plist; pl->pos_y += move_speed * pl->dir_x; @@ -29,7 +29,7 @@ int ft_a_key(t_cub *clist) { t_player *pl; - const float move_speed = 0.1; + const float move_speed = FT_STRAFE_SPEED; pl = clist->plist; pl->pos_y += move_speed * -pl->dir_y; @@ -41,7 +41,7 @@ int ft_s_key(t_cub *clist) { t_player *pl; - const float move_speed = 0.2; + const float move_speed = FT_MOVE_SPEED; pl = clist->plist; pl->pos_y += move_speed * -pl->dir_x; @@ -53,7 +53,7 @@ int ft_d_key(t_cub *clist) { t_player *pl; - const float move_speed = 0.1; + const float move_speed = FT_STRAFE_SPEED; pl = clist->plist; pl->pos_y += move_speed * pl->dir_y; |