aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--inc/cub3d.h1
-rw-r--r--inc/cub3d_defines.h17
-rw-r--r--inc/cub3d_structs.h1
3 files changed, 14 insertions, 5 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index 278b2e1..11f1a55 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -169,5 +169,6 @@ int ft_exit(uint8_t exit_code, t_cub *clist);
uint32_t ft_rgb_to_hex(t_rgb rgb);
t_bmp_rgb ft_hex_to_rgb(uint32_t color);
uint32_t ft_darken(t_rgb rgb, t_cub *cl);
+void ft_death_screen(t_cub *cl);
# endif
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index 1e00aa2..5f368f3 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -80,6 +80,17 @@ enum
# endif
/*
+** ====== NEEDED PATHS ======
+*/
+
+# define FT_SFX_DEATH_PATH "./media/sound/sfx/death_screen.wav"
+# define FT_SFX_N_LVL_PATH "./media/sound/sfx/next_lvl.wav"
+# define FT_SFX_SCR_ONE_PATH "./media/sound/sfx/scream_one.wav"
+# define FT_SFX_SCR_TWO_PATH "./media/sound/sfx/scream_two.wav"
+# define FT_SFX_TRAP_PATH "./media/sound/sfx/trap.wav"
+# define FT_DEATH_SCREEN_PATH "./media/img/death_screen.xpm"
+
+/*
** ====== SOUNDS ======
*/
@@ -88,11 +99,6 @@ enum
# else
# define FT_SND_CMD "/usr/bin/aplay -f cd -t wav -q %s"
# endif
-# define FT_SFX_DEATH_PATH "./media/sound/sfx/death_screen.wav"
-# define FT_SFX_N_LVL_PATH "./media/sound/sfx/next_lvl.wav"
-# define FT_SFX_SCR_ONE_PATH "./media/sound/sfx/scream_one.wav"
-# define FT_SFX_SCR_TWO_PATH "./media/sound/sfx/scream_two.wav"
-# define FT_SFX_TRAP_PATH "./media/sound/sfx/trap.wav"
/*
** ====== MOVE SPEED ======
@@ -200,6 +206,7 @@ enum
# define FT_ERR_MISS_SFX_SCR_ONE "missing sound effect scream one"
# define FT_ERR_MISS_SFX_SCR_TWO "missing sound effect scream two"
# define FT_ERR_MISS_SFX_TRAP "missing sound effect trap"
+# define FT_ERR_MISS_DEATH_SCREEN "missing death screen image"
/*
** ====== OTHER ======
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 70bb6fe..7545f3b 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -239,6 +239,7 @@ typedef struct s_cub
struct s_map mlist;
struct s_ray rlist;
struct s_img img;
+ struct s_img death_screen;
struct s_rgb f_rgb;
struct s_rgb c_rgb;
struct s_img tlist[16];