added posplayer

This commit is contained in:
Gregory Robledo 2024-10-15 16:37:55 +02:00
parent 78fa8c8967
commit 379f2bce6c

6
algo.c
View file

@ -6,7 +6,7 @@
/* By: grobledo <grobledo@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/01 16:24:58 by grobledo #+# #+# */
/* Updated: 2024/10/15 16:34:46 by grobledo ### ########.fr */
/* Updated: 2024/10/15 16:37:29 by grobledo ### ########.fr */
/* */
/* ************************************************************************** */
@ -93,8 +93,8 @@ int main(void)
// Initialisation
g_mlx = mlx_init();
g_win = mlx_new_window(g_mlx, SCREEN_WIDTH, SCREEN_HEIGHT, "cub3d");
initalgo();
char posplayer = 'N'; // test
initalgo(posplayer);
// hook keypress
mlx_hook(g_win, 2, 1L<<0, keypress, NULL);