summaryrefslogtreecommitdiff
path: root/src/game/assets.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-03-26 18:02:37 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-03-26 18:02:37 +0200
commit2f978ea5085678e98e391317cc50ac991cd726a8 (patch)
treeb1bde0c95639934202ec3f2803f2def772b7b0eb /src/game/assets.cpp
parent0a7f8a48a9161e16e1366d492655fd7df04f48a3 (diff)
Ambient sounds.
Using Tremulous sounds (CC-BY-SA) as placeholders for wind.ogg and water.ogg.
Diffstat (limited to 'src/game/assets.cpp')
-rw-r--r--src/game/assets.cpp8
1 files changed, 8 insertions, 0 deletions
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