tmp push merge resolution not finished
This commit is contained in:
parent
2568aa69a6
commit
00dc0e9e67
16 changed files with 454 additions and 59 deletions
26
mlx_layer/looks.c
Normal file
26
mlx_layer/looks.c
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue