style: move consts header to src folder

This commit is contained in:
Khaïs COLIN 2025-07-17 14:55:04 +02:00
parent 7000634228
commit 38a05423dd
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
3 changed files with 10 additions and 10 deletions

26
src/consts.h Normal file
View file

@ -0,0 +1,26 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* consts.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:54:36 by kcolin #+# #+# */
/* Updated: 2025/07/17 14:57:09 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CONSTS_H
# define CONSTS_H
# define HEIGHT 800
# define WIDTH 800
# define RESSOURCE_DIR "ressources"
# define MOVEMENT_SPEED 0.01
# ifdef BONUS
# define COMPILED_TEXT "Compiled with bonuses"
# else
# define COMPILED_TEXT " "
# endif
#endif

View file

@ -6,14 +6,14 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:14:30 by kcolin #+# #+# */
/* Updated: 2025/07/17 14:35:52 by kcolin ### ########.fr */
/* Updated: 2025/07/17 14:55:29 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
#include "../libft/includes/libft.h"
#include "../includes/structs.h"
#include "../mlx/mlx.h"
#include "../includes/cub3d_consts.h"
#include "consts.h"
#include "map/map_checker.h"
#include "draw/draw_map.h"
#include "utils/hooks.h"

View file

@ -6,11 +6,11 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:22:57 by kcolin #+# #+# */
/* Updated: 2025/07/17 14:28:18 by kcolin ### ########.fr */
/* Updated: 2025/07/17 14:55:42 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
#include "../../includes/cub3d_consts.h"
#include "../consts.h"
#include "../../includes/structs.h"
#include "frees.h"
#include <X11/keysym.h>