36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* algo.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: grobledo <grobledo@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/09/30 15:45:59 by grobledo #+# #+# */
|
|
/* Updated: 2024/10/01 18:57:39 by grobledo ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef ALGO_H
|
|
#define ALGO_H
|
|
|
|
#include <unistd.h>
|
|
#include <math.h>
|
|
|
|
typedef struct s_player
|
|
{
|
|
// pos player on map
|
|
double posX;
|
|
double posY;
|
|
// orientation player on map
|
|
double dirX;
|
|
double dirY;
|
|
// orientation cam on map
|
|
double planeX;
|
|
double planeY;
|
|
// current frame
|
|
double currtime;
|
|
// last frame
|
|
double oldtime;
|
|
} t_player;
|
|
|
|
#endif
|