42_so_long/includes/main/env.h
mcolonna 7b1e519db6 feat: multi level management *
when called without arguments, use the default levels
2024-04-19 14:16:25 +02:00

54 lines
1.5 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* env.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/26 15:26:13 by mcolonna #+# #+# */
/* Updated: 2024/04/19 14:14:09 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef ENV_H
# define ENV_H
# define WINDOW_WIDTH 600
# define WINDOW_HEIGHT 400
# define WINDOW_TITLE "undretale"
# define FPS 20
# define TEXT_SPACE 9
# define LEVEL_COUNT 3
extern const t_const_string g_levels[LEVEL_COUNT];
typedef struct s_env
{
// GLOBAL
t_memclass mc;
// IO
// display
void *mlx;
void *win;
// input
bool input[4];
bool enter;
// GAME
// levels
const t_const_string *levels;
int level_count;
int level_current;
// room
t_room room;
t_camera camera;
int ketchup;
int max_ketchup;
// moves
int moves;
} t_env;
extern t_env g_env;
#endif