player rotates and moves, rays for raycasting on map

This commit is contained in:
Hugo LAMY
2022-04-18 18:27:16 +02:00
parent 00b3612c16
commit 01eb2255d2
21 changed files with 689 additions and 138 deletions

View File

@@ -24,6 +24,8 @@ int main(int ac, char **av)
init_parsing(ac, av, game);
mb_init(destroy_mlx, game);
// draw game a first time before it start
draw(game);
// receive a keypress event
mlx_hook(game->win_ptr, 2, 1L << 0, keypress, game);
// receive a keyprelease event