diff options
Diffstat (limited to 'src/ft_init_bad_boys.c')
-rw-r--r-- | src/ft_init_bad_boys.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ft_init_bad_boys.c b/src/ft_init_bad_boys.c index 8ddc9a5..ef67498 100644 --- a/src/ft_init_bad_boys.c +++ b/src/ft_init_bad_boys.c @@ -15,6 +15,15 @@ #include <stdint.h> #include <stdlib.h> +/* +** bad_boy[].does list +** ------------------- +** 0: waiting +** 1: walking +** 2: firing +** 3: be dead +*/ + int8_t ft_init_bad_boys(t_cub *cl) { @@ -28,6 +37,7 @@ int8_t { cl->bad_boy[i].life = 5; cl->bad_boy[i].does = 0; + cl->bad_boy[i].sleep = 0; cl->bad_boy[i].act[0] = ft_bb_wait; cl->bad_boy[i].act[1] = ft_bb_walk; cl->bad_boy[i].act[2] = ft_bb_fire; |