huge load of ambient sounds

This commit is contained in:
minjaesong
2024-01-23 23:20:25 +09:00
parent d78f886c74
commit e5b1eeb9d2
25 changed files with 70 additions and 17 deletions

View File

@@ -273,14 +273,14 @@ limitations under the License.
$BULLET Ambient sound recordings:
- ambient_forest_01.ogg
- ambient_meadow_01.ogg
- ambient_windy_01.ogg
- ambient_woods_01.ogg
- crickets_01.ogg
- crickets_02.ogg
- ambient/season/crepuscular_summer.*.ogg
- ambient/season/diurnal_autumn.*.ogg
- ambient/season/diurnal_spring.*.ogg
- ambient/season/diurnal_summer.*.ogg
- ambient/season/diurnal_winter.*.ogg
- ambient/season/nocturnal_summer.*.ogg
Copyright (C) 2012, 2013, 2015, 2016, 2017 Klankbeeld
Copyright (C) 2013, 2015, 2020, 2021 Klankbeeld
Sound from <https://www.freesound.org/people/klankbeeld>

View File

@@ -415,14 +415,16 @@ class TerrarumMusicGovernor : MusicGovernor() {
ambFired = true
val season = ingame.world.worldTime.ecologicalSeason
val time = ingame.world.worldTime.todaySeconds // 0 until DAY_LENGTH (86400)
val seasonName = when (season) {
in 0f..2f -> "autumn"
in 2f..3f -> "summer"
in 3f..5f -> "autumn"
else -> "winter"
}
val timeMode = "diurnal"
val track = ambients["ambient.season.$seasonName"]!!.random()
val track = ambients["ambient.season.${timeMode}_$seasonName"]!!.random()
startAmbient(track)
}
}