summaryrefslogtreecommitdiff
path: root/src/game/game.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-03-26 13:33:49 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-03-26 13:33:49 +0200
commit2ae4b0ff77a2b2be2c485ac3ba6c1ef3facb874c (patch)
treee810997d58165e41eb4225a522d9d8886849331c /src/game/game.hpp
parent680ce5519c24dd0fa87ae85dd824000e915974b0 (diff)
Basic audio system + firing sound.
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r--src/game/game.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp
index 0143edb..85e3849 100644
--- a/src/game/game.hpp
+++ b/src/game/game.hpp
@@ -54,6 +54,8 @@ namespace game {
render::animated_texture_t body_panic;
render::oriented_sprite_4M2_t legs_idle, legs_walking;
render::animated_texture_t dead;
+
+ audio::sound_t fire;
} soldier_assets_t;
typedef struct {
@@ -194,6 +196,10 @@ namespace game {
die_t hit_die;
} cs;
+ struct {
+ audio::sound_t *attack = NULL;
+ } sounds;
+
bool dead = false;
double death_time = -INFINITY;
int health = 1, max_health = 1;