From 3f533a02555a4763adcdd03b5e4eb019d4851594 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Fri, 5 Apr 2019 12:36:14 +0300 Subject: [PATCH] Add background music --- public/assets/audio/bgm_settings.mp3 | Bin 0 -> 120017 bytes public/src/js/assets.js | 3 ++- public/src/js/settings.js | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 public/assets/audio/bgm_settings.mp3 diff --git a/public/assets/audio/bgm_settings.mp3 b/public/assets/audio/bgm_settings.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..e09d4922e742e09bd6aeb9cd2f219a6acd4b4dea GIT binary patch literal 120017 zcmeI$e`J+m0EXdjSxn3(k%(4C5wlq(5|tupDw>K&nq?vqNtB70#FB_4QlcUjQ4vv; zjFgdNDG^DGL`>G%A5UZJY$cB5nsN5a-tFCUF1L*gpYAB8c-h{ye{bna>WZTJSWz|b zyqGqK7cv**rVxOnOE)oV9y_T9RD=idDX4<9{#+W+juz{^*!-@JSO;p3;z zLtnmr8~$E8Z}Z00ZR=W_TAG`y@8&05+R#}2q^+oWJNk2+YijAsC;r>Vk>UD|qHd@t zx=O!dO;OY~6h&3(^-Ag8(wj@VOMjK07u8^jNR_L70 z3Z2tap>wWR=$!rvoio@w`L4%?RpzbV+?#X8-Jg5=rK96+Y2v%?&ApAT!Vc`f4$AiE zL^#KN#Pi4V$MeVYCoJ%Q2Rz^b4<`LTU#_R@BS$&PQH}-(9`Jw%Jm7(@$_9AAgKR+` z=mQ?`fCu^@8{h#CvITvh4|u=>9_WK?fCoIt7W9EW-~kVKpbxSE9`GPr&3OAY0G}`hW*K;DJ8K26(`OY(XFB10L{z2l^lz-~kV^1%03oc)$Z5=!0y4 z2Rz6Y^npI$0S|bf53&Is@E}{z2l{{qJm7&o$Od@8gKR+`=mQ?`fCu^@8{h#CvITvh z4|u=>9_WK?fCoIt7W9EW-~kVKpbxSE9`GPr&3OAY0G}`hW*K z;DJ8K26(`OY(XFB10L{z2l^lz-~kV^1%03oc)$Z5=!0y42Rz6Y^npI$0S|bf53&Is z@E}{z2l{{qJm7&o$Od@8gKR+`=mQ?`fCu^@8{h#CvITvh4|u=>9_WK?fCoIt7W9EW z-~kVKpbxSE9`GPr&3OAY0G}`hW*K;DJ8K26(`OY(XFB10L{z z2l^lz-~kV^1%03oc)$Z5=!0y42Rz6Y^npI$0S|bf53&Is@E}{z2l{{qJm7&o$Od@8 zgKR+`=mQ?`fCu^@8{h#CvITvh4|u=>9_WK?fCoIt7W9EW-~kVKpbxSE9`GPr& item.id === name) this.items[this.selected].valueDiv.innerText = this.getValue(name) + assets.sounds["se_ka"].play() } keyEvent(event){ if(event.keyCode === 27 || event.keyCode === 8 || event.keyCode === 9){ @@ -171,6 +174,7 @@ class SettingsView{ selected.settingBox.classList.remove("selected") this.selected = this.mod(this.items.length, this.selected + (name === "next" ? 1 : -1)) this.items[this.selected].settingBox.classList.add("selected") + assets.sounds["se_ka"].play() }else if(name === "back"){ this.onEnd() } @@ -192,6 +196,7 @@ class SettingsView{ } clean(){ this.gamepad.clean() + assets.sounds["bgm_settings"].stop() pageEvents.keyRemove(this, "all") for(var i in this.items){ pageEvents.remove(this.items[i].settingBox, ["mousedown", "touchstart"])