Hi everyone, I have just released something that I think is pretty amazing. A 1k javascript sound effects generator/library that I decided to opensource with the MIT license.
You can try out the official 1k version on the js1k website:
https://js1k.com/2019-x/demo/4253New seeds are randomly chosen whenever you referesh. If you like a seed, click the ZzFX logo and get the seed it. You can also change the seed id there.
It is crazy easy to use this in your javascript games. Just include the 429 bytes of javascript and play sound effects using their seed. For example z(3), or z(1337). You can also call the generator function to have full parameter control.
I also plan to publish it on github when after this compo is over.
I hope everyone has a great day, peace!
Also, just to drive home the point how tiny this thing is, here's the entire source code...
for(_=');~)~R9608~QufferPMath.Ofor(NNi=Le,lKY(KJteHHxtGE(+M=t(ne"ZzFX"),0,ona.width0;";c.filla.height};hv=0~h=e.clientthis1E5 99=g.creaHBP Ocos(DaH.now()=functi(>Oabs(M^=M<<3;M^=M>>2;K,h,m,n,p,A,B){c.ft=h+"px aStyle="hsl("+3.6*m+","+n+"%,"+p+"%)Tex,ZX=[];NF=f=++F<l;f+=1h))X[F]=f*e*f*n+p))*(F<m?F/m:1-(F-m)/(l-mRg||(g=w AudioCG~F (1, , ~F.getChanlData(0).seX~X Source(~X.bP=F;X.ccg.destinati~X.star)zX=5E3~r=M;e;Z(( )+X)/1E6,f= 9f )/1E9, RrEreturn e?M%e:0var g,,t,u=v=w=[];C.b){35v-e)&60u-l)&&(t=,,z(;J,,t==?:QJ,85QL3>++i;)J-9,58963257RT(K+35,19h).a){120v-140)&50u-80)&&(z(hI=promp,hz(h=I?I:}y=8Ly<-5y+=130)Nx=>y?305:5x<-5x+=85,++i)w.push(w C(x,y,1e4)RsetInHrval(Dt&&t.a(~L9;0<i--;)Y(9T(1359809909)*/)~NI of w)I.b()},16~c.GAlign="cenHr";c.GBaseli="middle";TA,K)YString.fromCharCode(AB)K)mousedownvX;uY';G=/[^ -FIMS-}]/.exec(_);)with(_.split(G))_=join(shift());eval(_)