From d39470e3cac83d6ee87fec65d170ef61707b083c Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Wed, 1 Apr 2020 13:32:53 +0200 Subject: [PATCH] Add sound to teleportation --- assets/teleportation.mp3 | Bin 0 -> 13248 bytes script.js | 2 ++ 2 files changed, 2 insertions(+) create mode 100644 assets/teleportation.mp3 diff --git a/assets/teleportation.mp3 b/assets/teleportation.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..8fca34331a6f04518ed9eb378bf66ff0de1dccf5 GIT binary patch literal 13248 zcmZ|0bx>T-7d}iz_SZTf6)FhbL!ee=e@C?_e-E9F9OB004Mw>!rGkh5|p=%a@+u zw~s$T9K;|Hks>1sSAqr*B;Y5O85@i-cZH z3c<9&0O6oh@R{=|f>O(ttaA`xoh9{4hi@sC!^v9*qg^%pN2Q#vw^SZ5$#upKZc;uc zb#0uLM>U%*4U(R7|A862D%)~O)*NN?#_BtKB^QEr(Ba70YPP!-LKPH#qhRl-TI1S) z@zCOF9}Gjx2HB)_0-CUqZY?d=H%iA3a1P+OAr%AtT&rj(lX-M)x8HvtqdSj>GJNt2C`%ORTn3pgqhBfEsk}BClzzCQl}sk_ zwU$`_AsCIr1Gb`#F3MzV*(Yj2!=wc<87r?^&A6|}2)}7r$A6@wU z6Y!9TRd>=|fnxd8-)98Ru_#7-S*RfHF&si?1dMpbI6N-PqIaKp#R=F#Eq5ZDEU^FN zNsnh)61lf=5q7EKH8|7ul0P?ut(8U*wcJYKMMY*Oa8MSMgiQrX6Y8T&U{l`)yt{EA zSe^6XSy|pS`7SB9d(cK|3LVHvI~$;kId%Rbx?1M@5TLMFE=;M)4r)sla`(s&MOdHitH%4pkr6yr4Wn z^E|&1FerkY0{|lbv4;R)0CG&3A9npJOPteF)Oa`)@rkoh-6lmCc#I=byvYTY4fnnx zhH#1{R0*c z^Bw(OMXjh55~#~12HOoFKYM5}$?BN1CI447dj>Zu?i+*;%|V$GtbijD7hu%+ zSA)6lTLBv_2Q3R3-}AB{P$IA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w+1Ic+)C!_a{bsMf73lMyYP2?ojvF`gw^uz-iZc;lM zh_*N^ga^#{)NcMA>4WfD*%Ys0;w z)Xq(H)jufRTGsm`lW)HKZc(`yOtF$*V3JB4$@GK=8J8140SPb=h47$}J>j8wDeGX_ zgsdX;3#}wVdvru_?6~Mu?`uEK76hWTC!Xi{7rWat~vcYE>7DJN5Lj5#izx?qf5+biRaI@%tQm!)4* z1Wp_eJggwJa9$^TNt?@~6rE0}K^=Ts(oj7|_c}G<9}TC1H;Mt{9-Hpjxn{qS<>US+ zTU#tV{2Q>2xDDDPp8s^B7)0s9#+zL99=#WABaA(g^|?OAnzfWH1^@XF5ibs<*avSS z$$nX!Zv6okEd5c=0!DnDlo)bftSpgqraeN}Bo*`wsvt*Zvv~CBfeX54M79QY7tJkf zTQ3A6N*?Q;ejiHhUg$@6@RNVK%8z|6XM!%K-DOR99A&H-NkLO1w=h8Bd5j4Ws0J8Tk5<1MBNf2J95_F5-()u?*mNC;PP(vjH zleKPOS*I1%n?BV_m0<4iyvft~5eyI&5(x-}0TjXlCVJA(;~|tMJ0^$&74LD9{dj?~ zpYAVT{%6Mmae!|@D32oo2x<4pE@)uz^!(#9NF`6dAJ5AuKiv)fXMa3L^MAAx{QuY= QkG=dKpMT`)|6~8Z0Gh)lwg3PC literal 0 HcmV?d00001 diff --git a/script.js b/script.js index 48208fc..2419f50 100644 --- a/script.js +++ b/script.js @@ -285,6 +285,8 @@ async function startGame(gameID) { case TELEPORTATION: + playAudio("assets/teleportation.mp3"); + // Teleport the snake to the other cell const possibleDestinations = teleportationCells.filter((v) => v[0] != newHead[0] && v[1] != newHead[1]); const chosenDestination = possibleDestinations[randInt(0, possibleDestinations.length)];