From f06a9f89bdbf5123fd00a79d350d599509d689df Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 31 Mar 2020 14:59:53 +0200 Subject: Big gameplay --- inc/cub3d.h | 1 + inc/cub3d_defines.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index bb66ab1..f392354 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -248,6 +248,7 @@ void ft_bb_wait(t_bad_boy *bl, t_sprite *sl, t_map *ml); void ft_bb_walk(t_bad_boy *bl, t_sprite *sl, t_map *ml); void ft_bb_fire(t_bad_boy *bl, t_sprite *sl, t_map *ml); void ft_check_bad_boy_shoot(t_cub *cl); +void ft_damage_bad_boy(t_cub *cl); /* ** ====== DELETION ====== diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index 19caf31..42a74b2 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -303,9 +303,12 @@ enum # define FT_WEAP_TWO_STRT_AMMO 30 # define FT_WEAP_THREE_STRT_AMMO 24 # define FT_WEAP_MAX_AMMO 1000 -# define FT_ENMY_STRT_LIFE 3 +# define FT_ENMY_STRT_LIFE 15 # define FT_ENMY_SIGHT_RANGE 7.0 # define FT_ENMY_DAMAGE_AMOUNT 54 +# define FT_W_ONE_DANAGE_AMOUNT 2 +# define FT_W_TWO_DANAGE_AMOUNT 1 +# define FT_W_THREE_DANAGE_AMOUNT 3 /* ** ====== OTHER ====== -- cgit v1.2.3