From 18c1dfbb78d98516f5480f8199910fe41ac904df Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 28 Oct 2023 10:52:18 +0200 Subject: sound layer, bouncing --- include/audio.h | 11 +++++++++++ include/throwables.h | 1 + 2 files changed, 12 insertions(+) create mode 100644 include/audio.h (limited to 'include') diff --git a/include/audio.h b/include/audio.h new file mode 100644 index 0000000..98cb356 --- /dev/null +++ b/include/audio.h @@ -0,0 +1,11 @@ +#ifndef INCLUDE_AUDIO_ +#define INCLUDE_AUDIO_ + +#include + +#define CHANNEL_THROWABLES 0 + +void play_sound(int channel, Mix_Chunk* wav); +void play_positioned_sound(int channel, Mix_Chunk* wav, vec3f pos, float max_audible_dist); + +#endif \ No newline at end of file diff --git a/include/throwables.h b/include/throwables.h index 7a6d4eb..f4507b6 100644 --- a/include/throwables.h +++ b/include/throwables.h @@ -20,6 +20,7 @@ typedef struct t_throwable { vec3f position; vec3f direction; float alive_time; + int bounces; } throwable; throwable throwables[500] = {0}; -- cgit v1.2.3-70-g09d2