Add ambient sound and music

This commit is contained in:
Simon Brodtmann 2025-02-05 13:19:47 +01:00
parent 819bf6e26b
commit 9f97212ea4
8 changed files with 54 additions and 4 deletions

View file

@ -60,7 +60,7 @@ PlanetsLib:extend({
clouds = effects.default_clouds_effect_properties()
},
persistent_ambient_sounds = {
base_ambience = { filename = "__base__/sound/world/world_base_wind.ogg", volume = 0.3 },
base_ambience = { filename = "__lignumis__/sound/ambient/forest-ambience.ogg", volume = 0.1 },
wind = { filename = "__base__/sound/wind/wind.ogg", volume = 0.8 },
crossfade = {
order = { "wind", "base_ambience" },
@ -110,8 +110,6 @@ PlanetsLib:extend({
}
})
PlanetsLib.borrow_music(data.raw.planet["nauvis"], data.raw.planet["lignumis"])
data:extend({
{
type = "space-connection",
@ -123,4 +121,44 @@ data:extend({
length = 2000,
asteroid_spawn_definitions = asteroid_util.spawn_definitions(nauvis_lignumis)
},
{
type = "ambient-sound",
name = "lignumis-1",
track_type = "main-track",
planet = "lignumis",
sound = "__lignumis__/sound/music/lignumis-1.ogg",
weight = 10
},
{
type = "ambient-sound",
name = "lignumis-2",
track_type = "main-track",
planet = "lignumis",
sound = "__lignumis__/sound/music/lignumis-2.ogg",
weight = 10
},
{
type = "ambient-sound",
name = "lignumis-3",
track_type = "main-track",
planet = "lignumis",
sound = "__lignumis__/sound/music/lignumis-3.ogg",
weight = 7
},
{
type = "ambient-sound",
name = "lignumis-4",
track_type = "main-track",
planet = "lignumis",
sound = "__lignumis__/sound/music/lignumis-4.ogg",
weight = 8
},
{
type = "ambient-sound",
name = "lignumis-5",
track_type = "main-track",
planet = "lignumis",
sound = "__lignumis__/sound/music/lignumis-5.ogg",
weight = 4
}
})

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.