aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-31 14:59:53 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-31 14:59:53 +0200
commitf06a9f89bdbf5123fd00a79d350d599509d689df (patch)
tree396f94876a3d81f14c9cab3b06989c13cc8e6437 /inc
parentFixed that gangsta (diff)
download42-cub3d-f06a9f89bdbf5123fd00a79d350d599509d689df.tar.gz
42-cub3d-f06a9f89bdbf5123fd00a79d350d599509d689df.tar.bz2
42-cub3d-f06a9f89bdbf5123fd00a79d350d599509d689df.tar.xz
42-cub3d-f06a9f89bdbf5123fd00a79d350d599509d689df.tar.zst
42-cub3d-f06a9f89bdbf5123fd00a79d350d599509d689df.zip
Big gameplay
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h1
-rw-r--r--inc/cub3d_defines.h5
2 files changed, 5 insertions, 1 deletions
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 ======