/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* env.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: mcolonna +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/02/26 15:26:13 by mcolonna #+# #+# */ /* Updated: 2024/04/19 23:08:32 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 10 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; int level_to_load; // room t_room room; t_camera camera; int ketchup; int max_ketchup; // moves int moves; } t_env; extern t_env g_env; #endif