aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2020-02-21 19:31:27 +0100
committersalaaad2 <arthurdurant263@gmail.com>2020-02-21 19:31:27 +0100
commit4a07369a67e3f88417ac4a309852eadaf40f23d4 (patch)
tree30d1d024c80a6e99f2358d444a2a82937262d112 /inc
parentFreed leaks (diff)
download42-cub3d-4a07369a67e3f88417ac4a309852eadaf40f23d4.tar.gz
42-cub3d-4a07369a67e3f88417ac4a309852eadaf40f23d4.tar.bz2
42-cub3d-4a07369a67e3f88417ac4a309852eadaf40f23d4.tar.xz
42-cub3d-4a07369a67e3f88417ac4a309852eadaf40f23d4.tar.zst
42-cub3d-4a07369a67e3f88417ac4a309852eadaf40f23d4.zip
add threaded music
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d_defines.h2
-rw-r--r--inc/cub3d_structs.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index 9f54dda..f591f14 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -49,7 +49,7 @@
** ====== MOVE SPEED ======
*/
-# define FT_MOVE_SPEED 0.1
+# define FT_MOVE_SPEED 0.3
# define FT_STRAFE_SPEED 0.1
# define FT_ROT_SPEED 0.09
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 66686eb..f5c295c 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -47,6 +47,15 @@ typedef struct s_rgb
int16_t b;
} t_rgb;
+typedef struct s_sprite
+{
+ int32_t s_h;
+ int32_t s_w;
+ int32_t s_start_x;
+ int32_t s_start_y;
+ int32_t s_tex_y;
+} t_sprite;
+
typedef struct s_player
{
float pos_x;