feat: utility func to get cardinal direction from angle

This commit is contained in:
Khaïs COLIN 2025-07-28 14:10:01 +02:00 committed by freddy_vqr
parent dd82d902a5
commit 8fd70cb18a
5 changed files with 78 additions and 14 deletions

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:54:36 by kcolin #+# #+# */
/* Updated: 2025/07/25 14:53:56 by tchampio ### ########.fr */
/* Updated: 2025/07/28 15:03:19 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
@ -15,8 +15,19 @@
# define HEIGHT 800
# define WIDTH 800
# define SIZE 64
# define MAP_SIZE 10
extern const float g_north;
extern const float g_south;
extern const float g_east;
extern const float g_west;
extern const float g_northwest;
extern const float g_northeast;
extern const float g_southwest;
extern const float g_southeast;
# define RESSOURCE_DIR "ressources"
# define MOVEMENT_SPEED 6.4
# define ROTATION_SPEED 0.1