diff options
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | map/map_one.cub | 2 | ||||
-rw-r--r-- | src/ft_draw_scene.c | 2 | ||||
-rw-r--r-- | src/ft_get_player_spawn.c | 8 |
4 files changed, 7 insertions, 6 deletions
@@ -89,6 +89,7 @@ ifneq (${OS}, Darwin) CDEFS += -DFT_S_KEY=115 CDEFS += -DFT_D_KEY=100 CDEFS += -DFT_F1_KEY=65470 + CDEFS += -DFT_TAB_KEY=65289 CDEFS += -DFT_L_ARR_KEY=65361 CDEFS += -DFT_R_ARR_KEY=65363 CDEFS += -DFT_ESC_KEY=65307 diff --git a/map/map_one.cub b/map/map_one.cub index 902d106..a74d6c1 100644 --- a/map/map_one.cub +++ b/map/map_one.cub @@ -6,8 +6,8 @@ EA ./path_to_the_east_texture WE ./path_to_the_west_texture S ./path_to_the_sprite_texture -F 150,150,145 C 30,130,175 +F 150,150,145 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 diff --git a/src/ft_draw_scene.c b/src/ft_draw_scene.c index ec2cc89..966d357 100644 --- a/src/ft_draw_scene.c +++ b/src/ft_draw_scene.c @@ -18,7 +18,7 @@ void ft_draw_scene(t_cub *clist) { - mlx_clear_window(clist->wlist->wlx, clist->wlist->winptr); + /* mlx_clear_window(clist->wlist->wlx, clist->wlist->winptr); */ clist->img.img = mlx_new_image(clist->wlist->wlx, clist->wlist->x_size, clist->wlist->y_size); clist->img.ptr = mlx_get_data_addr(clist->img.img, &clist->img.bpp, diff --git a/src/ft_get_player_spawn.c b/src/ft_get_player_spawn.c index c848872..4e392e8 100644 --- a/src/ft_get_player_spawn.c +++ b/src/ft_get_player_spawn.c @@ -22,10 +22,10 @@ static void float sav_plane_x; sav_dir_x = pl->dir_x; - pl->dir_x = pl->dir_y; + pl->dir_x = -pl->dir_y; pl->dir_y = sav_dir_x; sav_plane_x = pl->plane_x; - pl->plane_x = pl->plane_y; + pl->plane_x = -pl->plane_y; pl->plane_y = sav_plane_x; } @@ -50,10 +50,10 @@ static void float sav_plane_x; sav_dir_x = pl->dir_x; - pl->dir_x = -pl->dir_y; + pl->dir_x = pl->dir_y; pl->dir_y = -sav_dir_x; sav_plane_x = pl->plane_x; - pl->plane_x = -pl->plane_y; + pl->plane_x = pl->plane_y; pl->plane_y = -sav_plane_x; } |