feat: the exit works :D

This commit is contained in:
mcolonna 2024-04-18 17:16:53 +02:00
parent 0e745f82b3
commit d3c7d8c08f
36 changed files with 3645 additions and 51 deletions

View file

@ -6,7 +6,7 @@
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/26 15:26:13 by mcolonna #+# #+# */
/* Updated: 2024/04/15 18:01:07 by mcolonna ### ########.fr */
/* Updated: 2024/04/18 18:21:35 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
@ -20,16 +20,19 @@
typedef struct s_env
{
t_memclass mc;
void *mlx;
void *win;
t_room room;
bool input[4];
int ketchup;
int max_ketchup;
int moves;
t_camera camera;
} t_env;
t_memclass mc;
void *mlx;
void *win;
t_room room;
bool input[4];
int ketchup;
int max_ketchup;
int moves;
t_camera camera;
t_const_string *levels;
int level_count;
int level_current;
} t_env;
extern t_env g_env;

19
includes/main/levels.h Normal file
View file

@ -0,0 +1,19 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* levels.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/18 17:45:16 by mcolonna #+# #+# */
/* Updated: 2024/04/18 18:00:50 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef LEVELS_H
# define LEVELS_H
void init_levels(int count, t_const_string *srcs);
void win(void);
#endif