-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathso_long.c
More file actions
37 lines (33 loc) · 1.43 KB
/
so_long.c
File metadata and controls
37 lines (33 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* so_long.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mait-elk <mait-elk@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/22 22:18:59 by mait-elk #+# #+# */
/* Updated: 2024/01/22 01:10:53 by mait-elk ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
void _nsx_init_vars(t_mlx *mlx_info)
{
mlx_info->p_steps_count = 0;
mlx_info->p_coll_n = 0;
mlx_info->coll_goal = 0;
_nsx_initialize_vect(&mlx_info->window_size, 0, 0);
}
int main(int ac, char **av)
{
t_mlx mlx_info;
_nsx_check_extension_args(ac, av);
mlx_info.maps = _nsx_read_maps(av[1]);
mlx_info.mlx_ptr = mlx_init();
if (!mlx_info.mlx_ptr)
_nsx_exit("MLX Can't Init The Connection", -1, 'E');
_nsx_init_vars(&mlx_info);
_nsx_check_maps(&mlx_info);
_nsx_flood_fill_help(&mlx_info, av[1]);
_nsx_start_game(&mlx_info);
return (0);
}