Player cords int to double

This commit is contained in:
2026-02-10 17:21:16 +01:00
parent df68426fa5
commit bcf7c224e3

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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 FOV 60
# define ROTATION_SPEED 0.045
# define PLAYER_SPEED 2.0
# define PLAYER_SPEED 8
# define COLLISION_MARGIN 1
# define ERR_INV_COP "Error: invalid argument\n"
@@ -66,8 +66,8 @@ typedef struct s_texture_list
// Storage for player data
typedef struct s_player
{
int plyr_x;
int plyr_y;
double plyr_x;
double plyr_y;
double angle;
float fov_rd;
int rot;