player rotates and moves, rays for raycasting on map
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user