From e4196a25099b8d033ad3c0b12dba478886d512cc Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 16 Aug 2021 09:37:06 -0300 Subject: Add battle SFX as MineGamerBR asked. (requires updated server to work properly) --- game/ATTRIBUTION | 15 ++++++++++++++- game/battle.rpy | 11 +++++++++++ game/sfx/w/1-1.ogg | Bin 0 -> 12877 bytes game/sfx/w/2-1.ogg | Bin 0 -> 10989 bytes game/sfx/w/2-2.ogg | Bin 0 -> 28060 bytes game/sfx/w/3-1.ogg | Bin 0 -> 18783 bytes game/sfx/w/4-1.ogg | Bin 0 -> 15216 bytes game/sfx/w/4-2.ogg | Bin 0 -> 11466 bytes game/sfx/w/5-1.ogg | Bin 0 -> 20271 bytes 9 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 game/sfx/w/1-1.ogg create mode 100644 game/sfx/w/2-1.ogg create mode 100644 game/sfx/w/2-2.ogg create mode 100644 game/sfx/w/3-1.ogg create mode 100644 game/sfx/w/4-1.ogg create mode 100644 game/sfx/w/4-2.ogg create mode 100644 game/sfx/w/5-1.ogg diff --git a/game/ATTRIBUTION b/game/ATTRIBUTION index 00be654..2895b76 100644 --- a/game/ATTRIBUTION +++ b/game/ATTRIBUTION @@ -171,6 +171,14 @@ Where relevant, you must also include a link to https://tmw2.org in your credit. sfx/prologue.mp3 (Arnaud Condé) (CC BY-SA 3.0) ("Love Theme"/Jamendo) sfx/regnum.mp3 (Arnaud Condé) (CC BY-SA 3.0) ("Posthumus Regnum"/Jamendo) sfx/shining.mp3 (Soft and Furious) (CC0) (You Are Shining/FMA) +## SFX/W + sfx/w/1-1.ogg (Swoosh - Heavy) (CC0) (bolkmar/FSFX/Edited) + sfx/w/2-1.ogg (Hilt clang!) (CC0) (ethanchase7744/FSFX/Edited) + sfx/w/2-2.ogg (Samurai Sword) (CC0) (ethanchase7744/FSFX/Edited) + sfx/w/3-1.ogg (Short Explosion) (CC0) (animationIsaac/FSFX/Edited) + sfx/w/4-1.ogg (Arrow strike) (CC0) (plantmonkey/FSFX/Edited) + sfx/w/4-2.ogg (ARROW SHOOT SINGLE 2) (CC0) (JoeDinesSound/FSFX/Edited) + sfx/w/5-1.ogg (Gun shot) (CC0) (schots/FSFX/Edited) ---- *: Special licenses transcription :* @@ -184,10 +192,15 @@ Basically, do whatever you want with it. Credit unnecessary but appreciated. .:: JS-JP ::. These art assets belong to Brilliant Service Co., Ltd. from Jewel Savior. -Due to usage restrictions and the revocable nature, these assets must be removed +Due to usage restrictions and the revocable nature, these assets should be removed from the game before release. See also: http://www.jewel-s.jp/ .:: Other Notes ::. FMA = Free Music Archive OGA = Open Game Art +FSFX = Free Sound + +SFX Effects were normalized at -6.0dB. +All images, sfx and music should be assumed to have been resized/cropped, even if +not mentioned. diff --git a/game/battle.rpy b/game/battle.rpy index aab77a9..4be9dd5 100644 --- a/game/battle.rpy +++ b/game/battle.rpy @@ -29,6 +29,17 @@ init python: def bt_handlelog(entry): if entry[2] in [SPH_NONE, SPH_PIERCE, SPH_ASSAULT, SPH_HEAL]: + ## Play audio (WIP) + ## FIXME: Play -2 versions as well, randomly + try: + audi="sfx/w/%d-1.ogg" % Battle[entry[0]][entry[1]]["job"] + except: + audi="invalid job on source" + if renpy.loadable(audi): + renpy.play(audi) + else: + print("WARNING: Audio file \"%s\" does not exist" % audi) + ## Animate hit_someone_verbose(Battle[entry[4]][entry[5]], entry[3]) sdelay(0.1) diff --git a/game/sfx/w/1-1.ogg b/game/sfx/w/1-1.ogg new file mode 100644 index 0000000..334f4e9 Binary files /dev/null and b/game/sfx/w/1-1.ogg differ diff --git a/game/sfx/w/2-1.ogg b/game/sfx/w/2-1.ogg new file mode 100644 index 0000000..84a461b Binary files /dev/null and b/game/sfx/w/2-1.ogg differ diff --git a/game/sfx/w/2-2.ogg b/game/sfx/w/2-2.ogg new file mode 100644 index 0000000..90f39a3 Binary files /dev/null and b/game/sfx/w/2-2.ogg differ diff --git a/game/sfx/w/3-1.ogg b/game/sfx/w/3-1.ogg new file mode 100644 index 0000000..6553a2f Binary files /dev/null and b/game/sfx/w/3-1.ogg differ diff --git a/game/sfx/w/4-1.ogg b/game/sfx/w/4-1.ogg new file mode 100644 index 0000000..b6aacd1 Binary files /dev/null and b/game/sfx/w/4-1.ogg differ diff --git a/game/sfx/w/4-2.ogg b/game/sfx/w/4-2.ogg new file mode 100644 index 0000000..a4bc83d Binary files /dev/null and b/game/sfx/w/4-2.ogg differ diff --git a/game/sfx/w/5-1.ogg b/game/sfx/w/5-1.ogg new file mode 100644 index 0000000..a3d8e5e Binary files /dev/null and b/game/sfx/w/5-1.ogg differ -- cgit v1.2.3-60-g2f50