
Added features: - Check if the room is valid - Pathfinding - Firsk - Camera Changes: - Borders Dev: - new test rooms - ber.vim plugin
36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* env.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/02/26 15:26:13 by mcolonna #+# #+# */
|
|
/* Updated: 2024/04/15 18:01:07 by mcolonna ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef ENV_H
|
|
# define ENV_H
|
|
|
|
# define WINDOW_WIDTH 600
|
|
# define WINDOW_HEIGHT 400
|
|
# define WINDOW_TITLE "undretale"
|
|
# define FPS 20
|
|
|
|
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;
|
|
|
|
extern t_env g_env;
|
|
|
|
#endif
|