/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/04/26 12:44:55 by erey-bet #+# #+# */ /* Updated: 2023/05/03 12:50:25 by cchauvet ### ########.fr */ /* */ /* ************************************************************************** */ #include "cube3D.h" #include "libftx/libftx.h" int main(int argc, char **argv) { t_map *map; if (argc != 2) { printf("No argument"); return (1); } map = map_parsing(argv[1]); if (!map) return (2); ft_printf("%S", map->map); return (2); (void)argv; map = malloc(sizeof(t_map)); map->map = malloc(sizeof(char *) * 5); map->map[0] = "11111"; map->map[1] = "10001"; map->map[2] = "10S01"; map->map[3] = "10101"; map->map[4] = "11111"; map->size_x = 5; map->size_y = 5; map->ply_x = 3; map->ply_y = 3; if (start_game(map)) { return (3); } return (0); }