48 lines
1.4 KiB
C
48 lines
1.4 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* main.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/04/26 12:44:55 by erey-bet #+# #+# */
|
|
/* Updated: 2023/05/04 13:39:00 by erey-bet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "cube3D.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
t_map map;
|
|
|
|
if (argc != 2)
|
|
{
|
|
printf("No argument");
|
|
return (1);
|
|
}
|
|
/*map = map_parsing(&map, argv[1]);
|
|
if (!map)
|
|
{
|
|
return (2);
|
|
}*/
|
|
(void)argv;
|
|
map.map = malloc(sizeof(char *) * 10);
|
|
map.map[0] = "111111";
|
|
map.map[1] = "100101";
|
|
map.map[2] = "101001";
|
|
map.map[3] = "100001";
|
|
map.map[4] = "100001";
|
|
map.map[5] = "101001";
|
|
map.map[6] = "111111";
|
|
map.size_x = 6;
|
|
map.size_y = 7;
|
|
map.ply_x = 2;
|
|
map.ply_y = 4;
|
|
if (start_game(map))
|
|
{
|
|
return (3);
|
|
}
|
|
return (0);
|
|
}
|