aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p1.le-101.fr>2020-02-14 21:00:02 +0100
committerRudy Bousset <rbousset@z2r4p1.le-101.fr>2020-02-14 21:00:02 +0100
commita95f7c219961b16be72febd645191e5a0d4aad4d (patch)
treea3a49e80b550742e4f9c5fe890bb6ef76ad2486e /inc
parentNew define .h (diff)
download42-cub3d-a95f7c219961b16be72febd645191e5a0d4aad4d.tar.gz
42-cub3d-a95f7c219961b16be72febd645191e5a0d4aad4d.tar.bz2
42-cub3d-a95f7c219961b16be72febd645191e5a0d4aad4d.tar.xz
42-cub3d-a95f7c219961b16be72febd645191e5a0d4aad4d.tar.zst
42-cub3d-a95f7c219961b16be72febd645191e5a0d4aad4d.zip
Good player spawn view for N and S, minimap bot left StarCraft style
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d_defines.h19
-rw-r--r--inc/cub3d_structs.h1
2 files changed, 11 insertions, 9 deletions
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index b129206..e6c98c5 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -6,28 +6,31 @@
*/
# ifndef FT_W_KEY
-# define FT_W_KEY 13
+# define FT_W_KEY 13
# endif
# ifndef FT_A_KEY
-# define FT_A_KEY 0
+# define FT_A_KEY 0
# endif
# ifndef FT_S_KEY
-# define FT_S_KEY 1
+# define FT_S_KEY 1
# endif
# ifndef FT_D_KEY
-# define FT_D_KEY 2
+# define FT_D_KEY 2
# endif
# ifndef FT_L_ARR_KEY
-# define FT_L_ARR_KEY 123
+# define FT_L_ARR_KEY 123
# endif
# ifndef FT_R_ARR_KEY
-# define FT_R_ARR_KEY 124
+# define FT_R_ARR_KEY 124
# endif
# ifndef FT_ESC_KEY
-# define FT_ESC_KEY 53
+# define FT_ESC_KEY 53
# endif
# ifndef FT_F1_KEY
-# define FT_F1_KEY 122
+# define FT_F1_KEY 122
+# endif
+# ifndef FT_TAB_KEY
+# define FT_TAB_KEY 48
# endif
/*
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 9dae0be..eee6188 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -55,7 +55,6 @@ typedef struct s_player
{
float pos_x;
float pos_y;
- float view_side;
float dir_x;
float dir_y;
float cam_x;