From 2ae4b0ff77a2b2be2c485ac3ba6c1ef3facb874c Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 26 Mar 2018 13:33:49 +0200 Subject: Basic audio system + firing sound. --- src/game/game.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game/game.hpp') 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; -- cgit