diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-20 16:51:31 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-20 16:51:31 +0100 |
commit | d99126692d9eefd345b4756017f4b7fb9cd75ba7 (patch) | |
tree | 61f72fda5b99804dea1ef0ca0f7ddc6e4ec6200b /inc | |
parent | Added number images (diff) | |
download | 42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.tar.gz 42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.tar.bz2 42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.tar.xz 42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.tar.zst 42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.zip |
in progress
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cub3d_defines.h | 5 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index c3739e4..7a86115 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -268,7 +268,8 @@ enum */ # define FT_PARSE_END_RET 25 -# define FT_TRAP_DAMAGE_AMOUNT 20 -# define FT_HEAL_PACK_AMOUNT 10 +# define FT_STRT_LIFE 200 +# define FT_TRAP_DAMAGE_AMOUNT 27 +# define FT_HEAL_PACK_AMOUNT 19 # endif diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 4532a3d..cd711ba 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -132,7 +132,7 @@ typedef struct s_player float plane_x; float plane_y; uint8_t fire; - int8_t life; + int16_t life; uint8_t has_weapon[2]; int8_t handles_weapon; } t_player; @@ -252,6 +252,7 @@ typedef struct s_cub struct s_rgb c_rgb; struct s_img tlist[20]; struct s_img tweap[4]; + struct s_img tnum[11]; struct s_sprite **sprites; struct s_sprite traps[512]; struct s_sprite heals[64]; |