feat(player): redid all the movement code more details in desc

- had to tamper at init with the map pointer to allow player to move
- tweaked movement speed
- allowed for multiple keys to be pressed at the same time
- added collisions
- had to modify minimap code because it segfaulted due to old code
This commit is contained in:
Theo Champion 2025-07-29 14:58:30 +02:00
parent ac94e9e937
commit faf5127829
11 changed files with 143 additions and 40 deletions

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:59:37 by kcolin #+# #+# */
/* Updated: 2025/07/29 12:26:32 by tchampio ### ########.fr */
/* Updated: 2025/07/29 13:43:40 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
@ -16,7 +16,7 @@
# include "map/mapdata.h"
# include "draw/img_data.h"
# include "player/player.h"
#include "utils/hooks.h"
# include "utils/keypresses.h"
typedef struct s_cub3d_data
{