From 2f978ea5085678e98e391317cc50ac991cd726a8 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 26 Mar 2018 18:02:37 +0200 Subject: Ambient sounds. Using Tremulous sounds (CC-BY-SA) as placeholders for wind.ogg and water.ogg. --- src/game/assets.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/game/assets.cpp') diff --git a/src/game/assets.cpp b/src/game/assets.cpp index ef7be9b..96199a6 100644 --- a/src/game/assets.cpp +++ b/src/game/assets.cpp @@ -24,6 +24,7 @@ spider_assets_t spider; nest_assets_t nest; fx_assets_t fx; deco_assets_t deco; +ambience_assets_t ambience; render::animated_texture_t unit_selected; render::animated_texture_t unit_selected_halo; @@ -73,6 +74,13 @@ void load(void) render::register_tile(TILE_WATER, "assets/tiles/water.png", NULL, 0.0f); world::register_tile(TILE_GRAVEL, 0); render::register_tile(TILE_GRAVEL, "assets/tiles/gravel.png", NULL, 0.0f); + + ambience.nexus.load("assets/ambience/nexus.ogg"); + ambience.chasm.load("assets/ambience/chasm.ogg"); + ambience.wind.load("assets/ambience/wind.ogg"); + ambience.water.load("assets/ambience/water.ogg"); + + ambience.nexus.weight = 1.0f; } } // namespace game::assets -- cgit