added posplayer
This commit is contained in:
parent
78fa8c8967
commit
379f2bce6c
1 changed files with 3 additions and 3 deletions
6
algo.c
6
algo.c
|
@ -6,7 +6,7 @@
|
||||||
/* By: grobledo <grobledo@student.42.fr> +#+ +:+ +#+ */
|
/* By: grobledo <grobledo@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/10/01 16:24:58 by grobledo #+# #+# */
|
/* 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
|
// Initialisation
|
||||||
g_mlx = mlx_init();
|
g_mlx = mlx_init();
|
||||||
g_win = mlx_new_window(g_mlx, SCREEN_WIDTH, SCREEN_HEIGHT, "cub3d");
|
g_win = mlx_new_window(g_mlx, SCREEN_WIDTH, SCREEN_HEIGHT, "cub3d");
|
||||||
|
char posplayer = 'N'; // test
|
||||||
initalgo();
|
initalgo(posplayer);
|
||||||
|
|
||||||
// hook keypress
|
// hook keypress
|
||||||
mlx_hook(g_win, 2, 1L<<0, keypress, NULL);
|
mlx_hook(g_win, 2, 1L<<0, keypress, NULL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue