Player cords int to double
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/11/25 19:47:02 by aortigos #+# #+# */
|
/* Created: 2025/11/25 19:47:02 by aortigos #+# #+# */
|
||||||
/* Updated: 2026/02/10 16:56:59 by aortigos ### ########.fr */
|
/* Updated: 2026/02/10 17:16:26 by aortigos ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
# define WALL_SIZE 64
|
# define WALL_SIZE 64
|
||||||
# define FOV 60
|
# define FOV 60
|
||||||
# define ROTATION_SPEED 0.045
|
# define ROTATION_SPEED 0.045
|
||||||
# define PLAYER_SPEED 2.0
|
# define PLAYER_SPEED 8
|
||||||
# define COLLISION_MARGIN 1
|
# define COLLISION_MARGIN 1
|
||||||
|
|
||||||
# define ERR_INV_COP "Error: invalid argument\n"
|
# define ERR_INV_COP "Error: invalid argument\n"
|
||||||
@@ -66,8 +66,8 @@ typedef struct s_texture_list
|
|||||||
// Storage for player data
|
// Storage for player data
|
||||||
typedef struct s_player
|
typedef struct s_player
|
||||||
{
|
{
|
||||||
int plyr_x;
|
double plyr_x;
|
||||||
int plyr_y;
|
double plyr_y;
|
||||||
double angle;
|
double angle;
|
||||||
float fov_rd;
|
float fov_rd;
|
||||||
int rot;
|
int rot;
|
||||||
|
|||||||
Reference in New Issue
Block a user