/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* algo.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: grobledo +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/10/01 16:24:58 by grobledo #+# #+# */ /* Updated: 2024/10/01 18:57:51 by grobledo ### ########.fr */ /* */ /* ************************************************************************** */ #include "algo.h" int algo(struct) { double posX; double posY; //position x et y du joueur sur la map double dirX; double dirY; // orientation du joeur sur la map double planeX; double planeY;// position de la cam double currtime; // temps frame actuelle double oldtime; // temps derniere frame posX = 2; posY = 2; dirX = -1; dirY = 0; planeX = 0; planeY = 0.66; // FOV de 66 degres currtime = 0; oldtime = 0; } // int initalgo(struct) // { // posX = 2; // posY = 2; // dirX = -1; // dirY = 0; // planeX = 0; // planeY = 0.66; // FOV de 66 degres // currtime = 0; // oldtime = 0; // return (0); // } // https://github.com/iciamyplant/Cub3d-Linux // https://lodev.org/cgtutor/raycasting.html // https://www.youtube.com/watch?v=js7HW65MmNw&list=PL0H9-oZl_QOHM34HvD3DiGmwmj5X7GvTW