1
0

🔨」 fix(Keys): changed keysto match subject

This commit is contained in:
2024-11-11 13:45:56 +01:00
parent bb6f7993a4
commit a55ebc69b2
5 changed files with 158 additions and 39 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/11 16:38:40 by adjoly #+# #+# */
/* Updated: 2024/11/10 16:41:35 by adjoly ### ########.fr */
/* Updated: 2024/11/11 13:27:55 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -41,7 +41,7 @@ typedef struct s_player
{
t_vec2 coord;
float direction;
bool key[4];
bool key[6];
} t_player;
typedef struct s_render
@ -64,6 +64,7 @@ typedef struct s_render
*/
int key_down(int key, void *param);
int key_up(int key, void *param);
int window_event(int event, void *param);
/**
* @brief This function is here to change the direction of the player

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/04 14:06:39 by adjoly #+# #+# */
/* Updated: 2024/11/11 12:26:38 by adjoly ### ########.fr */
/* Updated: 2024/11/11 13:43:41 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -19,17 +19,19 @@
# define S_KEY 22
# define A_KEY 4
# define D_KEY 7
# define LEFT_KEY 80
# define RIGHT_KEY 79
# define WHITE 0xFFFFFFFF
# define WINDOW_W 1600
# define WINDOW_H 900
# define PLAYER_ROT_SPEED 0.034906585039887
# define PLAYER_ROT_SPEED 0.1308996939
# define PLAYER_SPEED 10
# define FOV 70
# define CHUNK_SIZE 64
# define TEXTURE_SIZE 64
# define RENDER_DISTANCE 64
# define RENDER_DISTANCE 65
#endif