diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 17:46:28 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 17:46:28 +0200 |
commit | df8d32e84a60558c38a0d75496c82de657103648 (patch) | |
tree | 964706cdd49ea979e42eef21dfa6f5af4299a7ce /src/ft_init_bad_boys.c | |
parent | Commit (diff) | |
download | 42-cub3d-df8d32e84a60558c38a0d75496c82de657103648.tar.gz 42-cub3d-df8d32e84a60558c38a0d75496c82de657103648.tar.bz2 42-cub3d-df8d32e84a60558c38a0d75496c82de657103648.tar.xz 42-cub3d-df8d32e84a60558c38a0d75496c82de657103648.tar.zst 42-cub3d-df8d32e84a60558c38a0d75496c82de657103648.zip |
It's moving!
Diffstat (limited to '')
-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; |