mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-15 08:06:06 +09:00
huge load of ambient sounds
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user