From 95b0f2ba19f2874dd2af0f26a7d6d9171285a7b9 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Mon, 23 Mar 2020 18:35:49 +0100 Subject: [PATCH] Play a song when eating something --- assets/eat.mp3 | Bin 0 -> 6576 bytes script.js | 1 + 2 files changed, 1 insertion(+) create mode 100644 assets/eat.mp3 diff --git a/assets/eat.mp3 b/assets/eat.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..129046c51e377cf6af5d41cb7dacebf4f1344766 GIT binary patch literal 6576 zcmZ9RcTf{w*zZFx(g_{uC3HfQssRIr5_+g2(nA+10)iBgE+ur39zeQ;-cdp6N>#dw z6hT2mP=c^8@xA`;oqJ~TPj+X{XFliqJm>5#a2VqZ`u~TOyN}z&fAkkWQ4omZ8HkLG zk&%&|otKwaR8&SrMoCFSLjw+n>+2gE8(Ub|+S)oexVgD`dwT~2+`oT6Dk?rcJ~cHb zC#SHmqN1X%uCBScv$Jzx;MJ>F!fxtRK#KVRlkPd+(%6X86aN++Mz@f7q==_2)^mlJ(^9AxOLK6`@;bI+1Cy|_7BR5x zv6LSJF#;n3uSYjzC$c8e;CDwpm4YDYa^zm-3{5l~WnY>~ajB{jR}2P|3M#jmH>Srn zW=v76a@ycG#o8&HBKH1)ax+g45<*lV!fsz=01i!O7G~s3E7tglNxUcVH*wFPAIeEn zlxe!w5ntj4(FK4(pO2w&09OI#X&JU#Ph``KndO>@MPY5z^DeH1JcZjqUe0tCB@jr5Nm=%6x(9Uet6oc>T(X7Ka=ylSUc;V{-<54Zvdjrw z)CCpzY+pZK5LHItBxKHbT|j6^FHwvnttL|(^n?&@kH2EtF(!;8>m@s-E5yJjYhe<`xvt=qUr7x6U|4KakIQ zP06nKlLAabHu0D=dBP~a#PPL>jhIl&WzQR5%v)7d)gobakZ}@jnnCsW%ZQVcp3>{$m>#p>d>DIx=d*dWRYc%c;$`}6w~tFx1>Ii zQ}W6M0{jtojn z=`p=xZzkV?9UpJ;^q9qNTiefOlp^UW<;6;NH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ipqI zZNIaux;7J?x{Ok9)KGzmNwSH4Tg?~2@+~nhLK2*3oJe&y2;SJ}A0vgluaXcr6$s~c zEMzGn=eT&CN3wYhy4>`|;Lu2t=90J)$?tW_hhOpN`(>M>;pk1g7`KCZVXW~ma7LFm zs?(pTjKM$K9Aa@^Hm!UoKbHEYANktZ{N^{K@Rz~hCfq1zsWL^%y!rQVrJlrJP!zc% z%!IU4lL%7CZ$s=izoNqG;{*SDKBwP!Bhn}QiLej;eV$TUP+)%7tVnZJsU35Q@&0w@ zJ$bD58`E6%s09(ldb;&)_t@$3Wcia?jRiej6Do^}c@(STqMLk~+I+!$jV8R!HnXO{ z(k0LZZi&ncC?5$5l|U@+*?hCFkgB@Yf6DEjtRn3~x0$Mqs8Pp6@^PcZndlM?WV90c zdjIB%o=iJ>yl%Oncy1V%XSN2Jyeh=`tkBpna$$I27#aZ zo?k`5)>(_2(U&?A`AJCh`o)`K?x=HmahEV{|OlAZ1S* z_u)rjLEAiE?p$f3<(%wxgY$_wy>JMQ^-g~=8J9N^X(_FBH{yEV^2_=>NpVgVmTJcx z4?C^POjzQW(BaU$J9U<=1Rh#?79#<)#>0!(^8f2cW+hR?k%wiODdE6Yqr<=R?v0yE z{S;?Bn=;6}s3$BLGmc1k_8A>ndtHD(9lTf9Jl*5n60@CnAq`b zS91UMc|I;r{ap!n@COKrY@jJ7QVu4XLR4K zT-&G&$#d&D@7+gH3f&kXDgjf&AbQl+rCijE8B{XBA>0{E{VasZhFwq`1S0xLs4wFe z9l3Ks${tAlA0EPwJ($wTCr8L=WreO{!y<4qL%I}(MXLAQ5C(7l1XJcTt%Ir^wIl1$ V;3kPz*UqE@)reuJe_uwV{|8XF1#AES literal 0 HcmV?d00001 diff --git a/script.js b/script.js index 8ba325c..56e0ab4 100644 --- a/script.js +++ b/script.js @@ -187,6 +187,7 @@ async function startGame(gameID) { case FOOD: increaseSize = true; + playAudio("assets/eat.mp3") score++; break;