aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_drawmap.c2
-rw-r--r--src/ft_key_events.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/src/ft_drawmap.c b/src/ft_drawmap.c
index ff5363b..eac41ba 100644
--- a/src/ft_drawmap.c
+++ b/src/ft_drawmap.c
@@ -49,7 +49,7 @@ static void
const size_t x = plist->pos_x;
const size_t y = plist->pos_y;
- ft_drawsquare(40 + (x * 41), 40 + (y * 41), 0x001443fa, clist);
+ ft_drawsquare(40 + (x * 41), 40 + (y * 41), 0x009843fa, clist);
}
void
diff --git a/src/ft_key_events.c b/src/ft_key_events.c
index c34d28f..3fbfc6f 100644
--- a/src/ft_key_events.c
+++ b/src/ft_key_events.c
@@ -21,7 +21,6 @@ static int
t_player *pl;
pl = clist->plist;
- ft_printf("[W]\n");
if (pl->view_side == 1)
pl->pos_y -= 1;
else if (pl->view_side == 2)
@@ -40,7 +39,6 @@ static int
t_player *pl;
pl = clist->plist;
- ft_printf("[A]\n");
pl->view_side -= 1;
if (pl->view_side == 0)
pl->view_side = 4;
@@ -53,7 +51,6 @@ static int
t_player *pl;
pl = clist->plist;
- ft_printf("[S]\n");
if (pl->view_side == 1)
pl->pos_y += 1;
else if (pl->view_side == 2)
@@ -72,7 +69,6 @@ static int
t_player *pl;
pl = clist->plist;
- ft_printf("[D]\n");
pl->view_side += 1;
if (pl->view_side == 5)
pl->view_side = 1;