mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 09:58:09 +01:00
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:
parent
ac94e9e937
commit
faf5127829
11 changed files with 143 additions and 40 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/07/17 14:54:36 by kcolin #+# #+# */
|
||||
/* Updated: 2025/07/29 13:29:11 by tchampio ### ########.fr */
|
||||
/* Updated: 2025/07/29 14:28:45 by tchampio ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ extern const float g_southwest;
|
|||
extern const float g_southeast;
|
||||
|
||||
# define RESSOURCE_DIR "ressources"
|
||||
# define MOVEMENT_SPEED 6.4
|
||||
# define MOVEMENT_SPEED 0.1
|
||||
# define ROTATION_SPEED 0.1
|
||||
# define PLANE_VALUE 0.66
|
||||
# ifdef BONUS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue