aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-09 18:24:54 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-09 18:24:54 +0100
commitbb1b197934bd9bcfa15d853dd99141d0edc1c16c (patch)
treee5850ea32f61f0e7211c01ad956938d4ce0f6feb /src
parentin progress (diff)
download42-cub3d-bb1b197934bd9bcfa15d853dd99141d0edc1c16c.tar.gz
42-cub3d-bb1b197934bd9bcfa15d853dd99141d0edc1c16c.tar.bz2
42-cub3d-bb1b197934bd9bcfa15d853dd99141d0edc1c16c.tar.xz
42-cub3d-bb1b197934bd9bcfa15d853dd99141d0edc1c16c.tar.zst
42-cub3d-bb1b197934bd9bcfa15d853dd99141d0edc1c16c.zip
Screenres ok
Diffstat (limited to 'src')
-rw-r--r--src/ft_key_events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_key_events.c b/src/ft_key_events.c
index 168d6c0..7955dc6 100644
--- a/src/ft_key_events.c
+++ b/src/ft_key_events.c
@@ -15,6 +15,7 @@
#include <cub3d.h>
#include <stdlib.h>
+#include <stdio.h>
static int
ft_w_key(t_cub *clist)
{
@@ -29,6 +30,7 @@ static int
pl->pos_y += 0.3;
else if (pl->view_side == 4)
pl->pos_x -= 0.3;
+ printf("PosX> %f\nPosY> %f\n", pl->pos_x, pl->pos_y);
ft_drawmap(clist);
return (0);
}