aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-06 14:29:47 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-06 14:29:47 +0200
commitdb0e4bcfe0bcf99d5d21e74e0a1ccc0fc6977a26 (patch)
tree23419411132e5ee23cf247716de11baed5954a1f /inc
parentI think it's fixed (diff)
download42-cub3d-db0e4bcfe0bcf99d5d21e74e0a1ccc0fc6977a26.tar.gz
42-cub3d-db0e4bcfe0bcf99d5d21e74e0a1ccc0fc6977a26.tar.bz2
42-cub3d-db0e4bcfe0bcf99d5d21e74e0a1ccc0fc6977a26.tar.xz
42-cub3d-db0e4bcfe0bcf99d5d21e74e0a1ccc0fc6977a26.tar.zst
42-cub3d-db0e4bcfe0bcf99d5d21e74e0a1ccc0fc6977a26.zip
Weapons have different velocities
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d_defines.h3
-rw-r--r--inc/cub3d_structs.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index 650f1fc..d24cc8d 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -316,6 +316,9 @@ enum
# define FT_ENMY_STRT_LIFE 10
# define FT_ENMY_SIGHT_RANGE 8.5
# define FT_ENMY_DAMAGE_AMOUNT 14
+# define FT_WEAP_ONE_VEL 750.0
+# define FT_WEAP_TWO_VEL 400.0
+# define FT_WEAP_THREE_VEL 1500.0
# define FT_W_ONE_DANAGE_AMOUNT 5
# define FT_W_TWO_DANAGE_AMOUNT 3
# define FT_W_THREE_DANAGE_AMOUNT 4
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 8d22b86..4666cf9 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -133,6 +133,7 @@ typedef struct s_player
uint8_t has_weapon[3];
int8_t handles_weapon;
int16_t ammo[3];
+ float weap_vel[3];
} t_player;
typedef struct s_ray