aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_loop.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 12:38:21 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 12:38:21 +0100
commitb236416db21d03f7749e1c80d5b7abee70ea07d5 (patch)
tree69d7ddceef69415ec70bf383f1365552b8b8c7e1 /src/ft_key_loop.c
parentPerfect collision on them traps (diff)
download42-cub3d-b236416db21d03f7749e1c80d5b7abee70ea07d5.tar.gz
42-cub3d-b236416db21d03f7749e1c80d5b7abee70ea07d5.tar.bz2
42-cub3d-b236416db21d03f7749e1c80d5b7abee70ea07d5.tar.xz
42-cub3d-b236416db21d03f7749e1c80d5b7abee70ea07d5.tar.zst
42-cub3d-b236416db21d03f7749e1c80d5b7abee70ea07d5.zip
Pretty cool animation
Diffstat (limited to 'src/ft_key_loop.c')
-rw-r--r--src/ft_key_loop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c
index d19daaa..29718df 100644
--- a/src/ft_key_loop.c
+++ b/src/ft_key_loop.c
@@ -58,6 +58,7 @@ static void
{
pl->pos_x = old_x + ((old_x - x) / 4);
pl->pos_y = old_y + ((old_y - y) / 4);
+ ft_suffer_animation(cl);
x = ft_find_x(key, pl);
y = ft_find_y(key, pl);
}