diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 19:04:46 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 19:04:46 +0100 |
commit | 6463914b0dc8136c453a1c163dd98f39e55e1c21 (patch) | |
tree | 0df94a05e92460e578da7092fde5b2502c8cceef /src/ft_extra_keys.c | |
parent | It's going well (diff) | |
download | 42-cub3d-6463914b0dc8136c453a1c163dd98f39e55e1c21.tar.gz 42-cub3d-6463914b0dc8136c453a1c163dd98f39e55e1c21.tar.bz2 42-cub3d-6463914b0dc8136c453a1c163dd98f39e55e1c21.tar.xz 42-cub3d-6463914b0dc8136c453a1c163dd98f39e55e1c21.tar.zst 42-cub3d-6463914b0dc8136c453a1c163dd98f39e55e1c21.zip |
Decent tier
Diffstat (limited to '')
-rw-r--r-- | src/ft_extra_keys.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ft_extra_keys.c b/src/ft_extra_keys.c index e694667..e99b32f 100644 --- a/src/ft_extra_keys.c +++ b/src/ft_extra_keys.c @@ -13,6 +13,8 @@ #include <cub3d.h> #include <stdint.h> #include <math.h> +#include <time.h> +#include <pthread.h> int ft_left_key(t_cub *clist) @@ -65,3 +67,12 @@ int } return (0); } + +int + ft_space_key(t_cub *clist) +{ + /* TODO: ft_sfx_weapon_fire(3) */ + if (clist->plist.fire == 0) + clist->plist.fire = 1; + return (0); +} |