-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathso_long.c
32 lines (29 loc) · 1.23 KB
/
so_long.c
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* so_long.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jmorcom- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/08/08 23:47:42 by jmorcom- #+# #+# */
/* Updated: 2023/08/08 23:47:44 by jmorcom- ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
int main(int argc, char **argv)
{
t_long game;
if (argc != 2)
{
perror("Error, missing map\n");
exit(0);
}
init_game(&game);
init_map(&game, argv);
check_map(&game);
print_map(&game);
mlx_hook(game.win_ptr, 2, 0, hook, &game);
mlx_hook(game.win_ptr, 17, 0, destroy_game, &game);
mlx_loop(game.mlx_ptr);
destroy_game(&game);
}