-
Notifications
You must be signed in to change notification settings - Fork 0
/
move.c
37 lines (32 loc) · 1.16 KB
/
move.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* move.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: eteyssed <eteyssed@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/12/08 17:41:46 by eteyssed #+# #+# */
/* Updated: 2014/12/08 17:42:27 by eteyssed ### ########.fr */
/* */
/* ************************************************************************** */
#include "head.h"
void move_up(t_all *all)
{
all->posimg.y -= 5;
all->re = 1;
}
void move_down(t_all *all)
{
all->posimg.y += 5;
all->re = 1;
}
void move_left(t_all *all)
{
all->posimg.x -= 5;
all->re = 1;
}
void move_right(t_all *all)
{
all->posimg.x += 5;
all->re = 1;
}