tmp push merge resolution not finished

This commit is contained in:
Baptiste GOULARD 2024-11-28 16:02:06 +01:00
parent 2568aa69a6
commit 00dc0e9e67
16 changed files with 454 additions and 59 deletions

26
mlx_layer/looks.c Normal file
View file

@ -0,0 +1,26 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* looks.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/28 14:11:28 by bgoulard #+# #+# */
/* Updated: 2024/11/28 14:51:53 by bgoulard ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub3d.h"
#include "cub3d_struct.h"
void look_left(t_info *data)
{
rotate_plane(&data->player.dir, ROT_SPEED);
rotate_plane(&data->player.plane, ROT_SPEED);
}
void look_right(t_info *data)
{
rotate_plane(&data->player.dir, -ROT_SPEED);
rotate_plane(&data->player.plane, -ROT_SPEED);
}