/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_basic_keys.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:43:55 by rbousset #+# #+# */ /* Updated: 2020/02/14 17:43:56 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include int ft_w_key(t_cub *clist) { t_player *pl; pl = clist->plist; pl->pos_y += 0.2 * (-1); pl->pos_x += 0; return (0); } int ft_a_key(t_cub *clist) { t_player *pl; pl = clist->plist; pl->pos_x -= 0.2; return (0); } int ft_s_key(t_cub *clist) { t_player *pl; pl = clist->plist; pl->pos_y += 0.2; return (0); } int ft_d_key(t_cub *clist) { t_player *pl; pl = clist->plist; pl->pos_x += 0.2; return (0); }