add player angle

This commit is contained in:
kinou-p 2022-06-14 16:01:31 +02:00
parent 498481c226
commit e58fd78ef7

View File

@ -6,7 +6,7 @@
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */ /* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/13 16:42:55 by apommier #+# #+# */ /* Created: 2022/02/13 16:42:55 by apommier #+# #+# */
/* Updated: 2022/06/14 15:59:20 by apommier ### ########.fr */ /* Updated: 2022/06/14 16:01:15 by apommier ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -93,7 +93,7 @@ void print_line(t_data *img, double x, double y)
int key_pressed(int type, t_data *img) int key_pressed(int type, t_data *img)
{ {
if (code == 65307) if (type == 65307)
quit_game(img); quit_game(img);
if (type == 'w') if (type == 'w')
img->player.front = 1; img->player.front = 1;