webgal-engine 4.5.12 → 4.5.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-3eeb86b4.js +4106 -0
- package/dist/assets/index-a8388d26.css +1 -0
- package/dist/assets/{index.es-efdc024d.js → index.es-91e0b61f.js} +1 -1
- package/dist/assets/initRegister-3e6399ee.js +1 -0
- package/dist/index.html +4 -6
- package/package.json +2 -1
- package/dist/assets/index-ac44d31d.css +0 -1
- package/dist/assets/index-f13f1c93.js +0 -4077
- package/dist/assets/initRegister-27d22b56.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as w,W as p,C,a as k,S as M,b as f,f as b}from"./index-f13f1c93.js";const P=y=>{const S=p.gameplay.pixiStage.effectsContainer,m=p.gameplay.pixiStage.currentApp,t=new C;S.addChild(t);const a=k.from("./game/tex/cherryBlossoms.png");t.x=m.screen.width/2,t.y=m.screen.height/2,t.pivot.x=t.width/2,t.pivot.y=t.height/2,t.scale.x=1,t.scale.y=1;const i=[];function h(c){var r;const g=f.width,x=f.height,n=new M(a);let d=.25;n.scale.x=.15*d,n.scale.y=.15*d,n.anchor.set(.5),n.x=Math.random()*g-.5*g,n.y=0-.5*x,n.dropSpeed=Math.random()*5,n.acc=Math.random(),t.addChild(n),i.push(n);let l=0;for(const e of i){l++;const s=Math.random();e.dropSpeed=e.acc*.01+e.dropSpeed,e.y+=c*y*e.dropSpeed*.3+.7,l%2===0?(e.x+=c*s*.5,e.rotation+=c*s*.03):(e.x-=c*s*.5,e.rotation-=c*s*.03)}i.length>=200&&((r=i.shift())==null||r.destroy(),t.removeChild(t.children[0]))}return p.gameplay.pixiStage.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:h},"cherryBlossoms-Ticker"),{container:t,tickerKey:"cherryBlossoms-Ticker"}};w("cherryBlossoms",()=>P(3));const v=(y,u)=>{var g;const m=p.gameplay.pixiStage.effectsContainer,t=p.gameplay.pixiStage.currentApp,a=new C;m.addChild(a);const i=k.from("./game/tex/raindrop.png");a.x=t.screen.width/2,a.y=t.screen.height/2,a.pivot.x=a.width/2,a.pivot.y=a.height/2,a.scale.x=1,a.scale.y=1;const h=[];function c(x){var l;const n=f.width,d=f.height;for(let r=0;r<u;r++){const e=new M(i);let s=Math.random()*2.5+1.5;e.filters=[new b.BlurFilter(s)];let o=Math.random();o<=.5&&(o=.5),e.scale.x=.48*o,e.scale.y=.48*o,e.anchor.set(.5),e.x=Math.random()*n-.5*n,e.y=0-.5*d,e.dropSpeed=Math.random()*1.5,e.acc=Math.random()+.25,e.alpha=Math.random(),e.alpha>=.95&&(e.alpha=.95),e.alpha<=.8&&(e.alpha=.8),a.addChild(e),h.push(e),h.length>=500&&((l=h.shift())==null||l.destroy(),a.removeChild(a.children[0]))}for(const r of h)r.dropSpeed=r.acc*.01+r.dropSpeed,r.y+=x*y*r.dropSpeed*1.1+3}return(g=p.gameplay.pixiStage)==null||g.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:c},"rain-Ticker"),{container:a,tickerKey:"rain-Ticker"}};w("rain",()=>v(6,3));const T=y=>{var n;const S=p.gameplay.pixiStage.effectsContainer,m=p.gameplay.pixiStage.currentApp,t=new C;S.addChild(t);const a=k.from("./game/tex/snowFlake_min.png");t.x=m.screen.width/2,t.y=m.screen.height/2,t.pivot.x=t.width/2,t.pivot.y=t.height/2,t.scale.x=1,t.scale.y=1;const i=[];let h=0;const c=f.width,g=f.height;function x(d){var r;if(h++,h%7===1){const e=new M(a);let s=Math.random()*8+1;e.filters=[new b.BlurFilter(s)];let o=Math.random();o<=.5&&(o=.5),e.scale.x=.144*o,e.scale.y=.144*o,e.anchor.set(.5),e.x=Math.random()*c-.5*c,e.y=0-.5*g,e.dropSpeed=Math.random()*2,e.acc=Math.random(),t.addChild(e),i.push(e)}let l=0;for(const e of i){l++;const s=Math.random();e.dropSpeed=e.acc*.01+e.dropSpeed,e.y+=d*y*e.dropSpeed*.3+.7,l%2===0?(e.x+=d*s*.5,e.rotation+=d*s*.03):(e.x-=d*s*.5,e.rotation-=d*s*.03)}i.length>=100&&((r=i.shift())==null||r.destroy(),t.removeChild(t.children[0]))}return(n=p.gameplay.pixiStage)==null||n.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:x},"snow-Ticker"),{container:t,tickerKey:"snow-Ticker"}};w("snow",()=>T(3));
|