diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-24 13:13:28 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2021-02-24 16:00:53 -0500 |
commit | 1b0b97caf1316715e1b9502aba93fc642fdb4d8f (patch) | |
tree | f64de88b959f1b0c3b8b5491b3954d4e0c7375ae | |
parent | 2183e0b2a0a5bd9a3e15957b2ca27588574a169e (diff) | |
download | tanetane-1b0b97caf1316715e1b9502aba93fc642fdb4d8f.tar.gz tanetane-1b0b97caf1316715e1b9502aba93fc642fdb4d8f.tar.bz2 tanetane-1b0b97caf1316715e1b9502aba93fc642fdb4d8f.zip |
Added running sound for vine ladders
-rw-r--r-- | res/maps/hallucination.tsx | 6 | ||||
-rw-r--r-- | res/sfx/running_ladder_vine.wav | bin | 0 -> 1122474 bytes | |||
-rw-r--r-- | src/step_type.h | 5 |
3 files changed, 10 insertions, 1 deletions
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 @@ | |||
1099 | <tile id="320"> | 1099 | <tile id="320"> |
1100 | <properties> | 1100 | <properties> |
1101 | <property name="medium" value="ladder"/> | 1101 | <property name="medium" value="ladder"/> |
1102 | <property name="runSound" value="ladder_vine"/> | ||
1102 | </properties> | 1103 | </properties> |
1103 | </tile> | 1104 | </tile> |
1104 | <tile id="321"> | 1105 | <tile id="321"> |
1105 | <properties> | 1106 | <properties> |
1106 | <property name="medium" value="ladder"/> | 1107 | <property name="medium" value="ladder"/> |
1108 | <property name="runSound" value="ladder_vine"/> | ||
1107 | </properties> | 1109 | </properties> |
1108 | </tile> | 1110 | </tile> |
1109 | <tile id="322"> | 1111 | <tile id="322"> |
@@ -1164,6 +1166,7 @@ | |||
1164 | <tile id="333"> | 1166 | <tile id="333"> |
1165 | <properties> | 1167 | <properties> |
1166 | <property name="medium" value="ladder"/> | 1168 | <property name="medium" value="ladder"/> |
1169 | <property name="runSound" value="ladder_vine"/> | ||
1167 | </properties> | 1170 | </properties> |
1168 | </tile> | 1171 | </tile> |
1169 | <tile id="334"> | 1172 | <tile id="334"> |
@@ -1299,11 +1302,13 @@ | |||
1299 | <tile id="360"> | 1302 | <tile id="360"> |
1300 | <properties> | 1303 | <properties> |
1301 | <property name="medium" value="ladder"/> | 1304 | <property name="medium" value="ladder"/> |
1305 | <property name="runSound" value="ladder_vine"/> | ||
1302 | </properties> | 1306 | </properties> |
1303 | </tile> | 1307 | </tile> |
1304 | <tile id="361"> | 1308 | <tile id="361"> |
1305 | <properties> | 1309 | <properties> |
1306 | <property name="medium" value="ladder"/> | 1310 | <property name="medium" value="ladder"/> |
1311 | <property name="runSound" value="ladder_vine"/> | ||
1307 | </properties> | 1312 | </properties> |
1308 | </tile> | 1313 | </tile> |
1309 | <tile id="362"> | 1314 | <tile id="362"> |
@@ -1339,6 +1344,7 @@ | |||
1339 | <tile id="368"> | 1344 | <tile id="368"> |
1340 | <properties> | 1345 | <properties> |
1341 | <property name="medium" value="ladder"/> | 1346 | <property name="medium" value="ladder"/> |
1347 | <property name="runSound" value="ladder_vine"/> | ||
1342 | </properties> | 1348 | </properties> |
1343 | </tile> | 1349 | </tile> |
1344 | <tile id="369"> | 1350 | <tile id="369"> |
diff --git a/res/sfx/running_ladder_vine.wav b/res/sfx/running_ladder_vine.wav new file mode 100644 index 0000000..3ada7d6 --- /dev/null +++ b/res/sfx/running_ladder_vine.wav | |||
Binary files 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 { | |||
16 | unknown, | 16 | unknown, |
17 | paved, | 17 | paved, |
18 | carpet, | 18 | carpet, |
19 | weak_wood | 19 | weak_wood, |
20 | ladder_vine | ||
20 | }; | 21 | }; |
21 | 22 | ||
22 | inline StepType stepTypeFromString(std::string_view str) { | 23 | inline StepType stepTypeFromString(std::string_view str) { |
@@ -31,6 +32,7 @@ inline StepType stepTypeFromString(std::string_view str) { | |||
31 | if (str == "paved") return StepType::paved; | 32 | if (str == "paved") return StepType::paved; |
32 | if (str == "carpet") return StepType::carpet; | 33 | if (str == "carpet") return StepType::carpet; |
33 | if (str == "weak_wood") return StepType::weak_wood; | 34 | if (str == "weak_wood") return StepType::weak_wood; |
35 | if (str == "ladder_vine") return StepType::ladder_vine; | ||
34 | return StepType::none; | 36 | return StepType::none; |
35 | } | 37 | } |
36 | 38 | ||
@@ -47,6 +49,7 @@ inline std::string_view runningSfxForStepType(StepType step) { | |||
47 | case StepType::paved: return "../res/sfx/running_paved.wav"; | 49 | case StepType::paved: return "../res/sfx/running_paved.wav"; |
48 | case StepType::carpet: return "../res/sfx/running_carpet.wav"; | 50 | case StepType::carpet: return "../res/sfx/running_carpet.wav"; |
49 | case StepType::weak_wood: return "../res/sfx/running_weak_wood.wav"; | 51 | case StepType::weak_wood: return "../res/sfx/running_weak_wood.wav"; |
52 | case StepType::ladder_vine: return "../res/sfx/running_ladder_vine.wav"; | ||
50 | case StepType::none: throw std::invalid_argument("No running sfx for none step type"); | 53 | case StepType::none: throw std::invalid_argument("No running sfx for none step type"); |
51 | } | 54 | } |
52 | } | 55 | } |