summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-10-28 10:52:18 +0200
committerAldrik Ramaekers <aldrik@amftech.nl>2023-10-28 10:52:18 +0200
commit18c1dfbb78d98516f5480f8199910fe41ac904df (patch)
tree8ee69fde44ac3b8969ebf529883656a2d05b1e45 /include
parent641f81317a5b5cea6b3c5a4c65b1ca4313b0d8c0 (diff)
sound layer, bouncing
Diffstat (limited to 'include')
-rw-r--r--include/audio.h11
-rw-r--r--include/throwables.h1
2 files changed, 12 insertions, 0 deletions
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 <projectbase/project_base.h>
+
+#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};