mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 09:58:09 +01:00
feat: utility func to get cardinal direction from angle
This commit is contained in:
parent
dd82d902a5
commit
8fd70cb18a
5 changed files with 78 additions and 14 deletions
13
src/consts.h
13
src/consts.h
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue