aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_events.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 18:37:31 +0100
committerRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 18:37:31 +0100
commit5e40352aa28c29c7e10b11c576a743d03beeaaf1 (patch)
treea80a1ca9cefa7c61c26441df3d4d088ded83c708 /src/ft_key_events.c
parentSmooth (diff)
download42-cub3d-5e40352aa28c29c7e10b11c576a743d03beeaaf1.tar.gz
42-cub3d-5e40352aa28c29c7e10b11c576a743d03beeaaf1.tar.bz2
42-cub3d-5e40352aa28c29c7e10b11c576a743d03beeaaf1.tar.xz
42-cub3d-5e40352aa28c29c7e10b11c576a743d03beeaaf1.tar.zst
42-cub3d-5e40352aa28c29c7e10b11c576a743d03beeaaf1.zip
Changed move speed
Diffstat (limited to 'src/ft_key_events.c')
-rw-r--r--src/ft_key_events.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_key_events.c b/src/ft_key_events.c
index 5dbfde0..2112d2e 100644
--- a/src/ft_key_events.c
+++ b/src/ft_key_events.c
@@ -21,7 +21,7 @@ static int8_t
t_player *pl;
pl = clist->plist;
- pl->pos_y += 0.3 * (-1); /* pl->mult; */
+ pl->pos_y += 0.2 * (-1); /* pl->mult; */
pl->pos_x += 0;
return (0);
}
@@ -32,7 +32,7 @@ static int8_t
t_player *pl;
pl = clist->plist;
- pl->pos_x -= 0.3;
+ pl->pos_x -= 0.2;
return (0);
}
@@ -42,7 +42,7 @@ static int8_t
t_player *pl;
pl = clist->plist;
- pl->pos_y += 0.3;
+ pl->pos_y += 0.2;
return (0);
}
@@ -52,7 +52,7 @@ static int8_t
t_player *pl;
pl = clist->plist;
- pl->pos_x += 0.3;
+ pl->pos_x += 0.2;
return (0);
}