From 1b0b97caf1316715e1b9502aba93fc642fdb4d8f Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 24 Feb 2021 13:13:28 -0500 Subject: Added running sound for vine ladders --- res/maps/hallucination.tsx | 6 ++++++ res/sfx/running_ladder_vine.wav | Bin 0 -> 1122474 bytes src/step_type.h | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 res/sfx/running_ladder_vine.wav diff --git a/res/maps/hallucination.tsx b/res/maps/hallucination.tsx index e06dab1..6317866 100644 --- a/res/maps/hallucination.tsx +++ b/res/maps/hallucination.tsx @@ -1099,11 +1099,13 @@ + + @@ -1164,6 +1166,7 @@ + @@ -1299,11 +1302,13 @@ + + @@ -1339,6 +1344,7 @@ + diff --git a/res/sfx/running_ladder_vine.wav b/res/sfx/running_ladder_vine.wav new file mode 100644 index 0000000..3ada7d6 Binary files /dev/null and b/res/sfx/running_ladder_vine.wav differ diff --git a/src/step_type.h b/src/step_type.h index a961a8f..0cbdad0 100644 --- a/src/step_type.h +++ b/src/step_type.h @@ -16,7 +16,8 @@ enum class StepType { unknown, paved, carpet, - weak_wood + weak_wood, + ladder_vine }; inline StepType stepTypeFromString(std::string_view str) { @@ -31,6 +32,7 @@ inline StepType stepTypeFromString(std::string_view str) { if (str == "paved") return StepType::paved; if (str == "carpet") return StepType::carpet; if (str == "weak_wood") return StepType::weak_wood; + if (str == "ladder_vine") return StepType::ladder_vine; return StepType::none; } @@ -47,6 +49,7 @@ inline std::string_view runningSfxForStepType(StepType step) { case StepType::paved: return "../res/sfx/running_paved.wav"; case StepType::carpet: return "../res/sfx/running_carpet.wav"; case StepType::weak_wood: return "../res/sfx/running_weak_wood.wav"; + case StepType::ladder_vine: return "../res/sfx/running_ladder_vine.wav"; case StepType::none: throw std::invalid_argument("No running sfx for none step type"); } } -- cgit 1.4.1