diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-06 14:29:47 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-06 14:29:47 +0200 |
commit | db0e4bcfe0bcf99d5d21e74e0a1ccc0fc6977a26 (patch) | |
tree | 23419411132e5ee23cf247716de11baed5954a1f /inc | |
parent | I think it's fixed (diff) | |
download | 42-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.h | 3 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 1 |
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 |