31 lines
1.4 KiB
C
31 lines
1.4 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* const.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: mc <mc@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/10/31 17:00:59 by mc #+# #+# */
|
|
/* Updated: 2024/10/31 17:06:00 by mc ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef CONST_H
|
|
# define CONST_H
|
|
|
|
# include "include.h"
|
|
|
|
# define MAP_WIDTH 24 // cases (TODO test)
|
|
# define MAP_HEIGHT 24 // cases (TODO test)
|
|
# define MOVE_SPEED 0.05 // cases
|
|
# define PI 3.1415926535
|
|
# define ROT_SPEED_DIVIDE_PI 64 // pi/n rad
|
|
# define COLOR_WALL 0xFF0000 // 0xRRGGBB
|
|
# define COLOR_CEILING 0x29f8ff // 0xRRGGBB
|
|
# define COLOR_FLOOR 0xFF985C // 0xRRGGBB
|
|
# define SCREEN_WIDTH 640 // px
|
|
# define SCREEN_HEIGHT 480 // px
|
|
# define FOV 0.66 // ? TODO unit
|
|
# define HITBOX 0.25 // cases. should be more than MOVE_SPEED
|
|
|
|
#endif
|