34 lines
1.1 KiB
C
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/05/19 17:03:29 by erey-bet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "cube3D.h"
|
|
#include "map/map.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
t_map map;
|
|
|
|
if (argc != 2)
|
|
{
|
|
ft_eprintf("No argument");
|
|
return (1);
|
|
}
|
|
if (map_parsing(argv[1], &map)
|
|
|| start_game(map))
|
|
{
|
|
map_freer(&map);
|
|
return (2);
|
|
}
|
|
map_freer(&map);
|
|
return (0);
|
|
}
|