summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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};