42_cube3D/main.c
Etienne Rey-bethbeder ad754bb579 Header and init
2023-04-26 12:55:14 +02:00

34 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/26 12:44:55 by erey-bet #+# #+# */
/* Updated: 2023/04/26 12:52:13 by erey-bet ### ########.fr */
/* */
/* ************************************************************************** */
#include "cube3D.h"
int main(int argc, char **argv)
{
t_map *map;
if (argc != 2)
{
return (1);
}
map = map_parsing(argv[1]);
if (!map)
{
return (2);
}
if (start_game(map))
{
return (3);
}
return (0);
}