aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-09 14:35:38 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-09 14:35:38 +0100
commitc7eff3cd44ea22cc10a765deaba7925752ba790f (patch)
treeb9c7f32e6b6a6e2175001f5eaec4d6e37e08721f
parentAdded 101 header (diff)
download42-cub3d-c7eff3cd44ea22cc10a765deaba7925752ba790f.tar.gz
42-cub3d-c7eff3cd44ea22cc10a765deaba7925752ba790f.tar.bz2
42-cub3d-c7eff3cd44ea22cc10a765deaba7925752ba790f.tar.xz
42-cub3d-c7eff3cd44ea22cc10a765deaba7925752ba790f.tar.zst
42-cub3d-c7eff3cd44ea22cc10a765deaba7925752ba790f.zip
Twealed move speed
Diffstat (limited to '')
-rw-r--r--src/ft_key_events.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ft_key_events.c b/src/ft_key_events.c
index b1e5aa7..1b4b738 100644
--- a/src/ft_key_events.c
+++ b/src/ft_key_events.c
@@ -22,13 +22,13 @@ static int
pl = clist->plist;
if (pl->view_side == 1)
- pl->pos_y -= 0.4;
+ pl->pos_y -= 0.3;
else if (pl->view_side == 2)
- pl->pos_x += 0.4;
+ pl->pos_x += 0.3;
else if (pl->view_side == 3)
- pl->pos_y += 0.4;
+ pl->pos_y += 0.3;
else if (pl->view_side == 4)
- pl->pos_x -= 0.4;
+ pl->pos_x -= 0.3;
ft_drawmap(clist);
return (0);
}
@@ -52,13 +52,13 @@ static int
pl = clist->plist;
if (pl->view_side == 1)
- pl->pos_y += 0.4;
+ pl->pos_y += 0.3;
else if (pl->view_side == 2)
- pl->pos_x -= 0.4;
+ pl->pos_x -= 0.3;
else if (pl->view_side == 3)
- pl->pos_y -= 0.4;
+ pl->pos_y -= 0.3;
else if (pl->view_side == 4)
- pl->pos_x += 0.4;
+ pl->pos_x += 0.3;
ft_drawmap(clist);
return (0);
}