@vimp-games/tanks 0.18.0 → 0.18.1
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/client-BS_Gxxiz.js +84 -0
- package/dist/manifest.json +3 -3
- package/dist/maps/garden.json +1 -1
- package/package.json +1 -1
- package/dist/client-xM9lwddH.js +0 -84
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import{UniformGroup as Ut,Filter as Wt,GpuProgram as Gt,GlProgram as Zt,defaultFilterVert as $t,Spritesheet as qt,Container as A,Sprite as M,Rectangle as D,Assets as q,Ticker as L,MeshGeometry as Kt,Mesh as jt,Graphics as k,Text as Rt,Particle as Jt,ParticleContainer as zt,BlurFilter as Vt}from"pixi.js";const Qt=4;class ut{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),t}free(){const t=this.__destroy_into_raw();c.__wbg_clientcore_free(t,0)}abi_describe(){let t,e;try{const i=c.clientcore_abi_describe(this.__wbg_ptr);return t=i[0],e=i[1],V(i[0],i[1])}finally{c.__wbindgen_free(t,e,1)}}apply_aim(t,e,i,s){c.clientcore_apply_aim(this.__wbg_ptr,t,e,i,s)}apply_input(t,e,i){const s=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),o=I,r=z(e,c.__wbindgen_malloc,c.__wbindgen_realloc),a=I;c.clientcore_apply_input(this.__wbg_ptr,s,o,r,a,i)}cycle_weapon(t){c.clientcore_cycle_weapon(this.__wbg_ptr,t)}debug_json(){let t,e;try{const i=c.clientcore_debug_json(this.__wbg_ptr);return t=i[0],e=i[1],V(i[0],i[1])}finally{c.__wbindgen_free(t,e,1)}}decode_frame(t){let e,i;try{const s=at(t,c.__wbindgen_malloc),o=I,r=c.clientcore_decode_frame(this.__wbg_ptr,s,o);return e=r[0],i=r[1],V(r[0],r[1])}finally{c.__wbindgen_free(e,i,1)}}dispatch(t,e){const i=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),s=I,o=at(e,c.__wbindgen_malloc),r=I,a=c.clientcore_dispatch(this.__wbg_ptr,i,s,o,r);var h=ee(a[0],a[1]).slice();return c.__wbindgen_free(a[0],a[1]*1,1),h}hot_ptr(){return c.clientcore_hot_ptr(this.__wbg_ptr)>>>0}hot_values(){const t=c.clientcore_hot_values(this.__wbg_ptr);var e=yt(t[0],t[1]).slice();return c.__wbindgen_free(t[0],t[1]*4,4),e}map_dynamics_to_world(t,e,i){const s=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),o=I,r=c.clientcore_map_dynamics_to_world(this.__wbg_ptr,s,o,e,i);var a=yt(r[0],r[1]).slice();return c.__wbindgen_free(r[0],r[1]*4,4),a}my_game_id(){return c.clientcore_my_game_id(this.__wbg_ptr)}constructor(t){const e=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),i=I,s=c.clientcore_new(e,i);if(s[2])throw xt(s[1]);return this.__wbg_ptr=s[0],gt.register(this,this.__wbg_ptr,this),this}offset(){return c.clientcore_offset(this.__wbg_ptr)}push_frame(t,e){const i=at(t,c.__wbindgen_malloc),s=I;return c.clientcore_push_frame(this.__wbg_ptr,i,s,e)!==0}reset(){c.clientcore_reset(this.__wbg_ptr)}resync(){c.clientcore_resync(this.__wbg_ptr)}sample(t){return c.clientcore_sample(this.__wbg_ptr,t)>>>0}set_active(t){c.clientcore_set_active(this.__wbg_ptr,t)}set_map(t){const e=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),i=I,s=c.clientcore_set_map(this.__wbg_ptr,e,i);if(s[1])throw xt(s[0])}set_model(t){const e=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),i=I;c.clientcore_set_model(this.__wbg_ptr,e,i)}sync_panel(t){const e=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),i=I;c.clientcore_sync_panel(this.__wbg_ptr,e,i)}take_divergence(){let t,e;try{const i=c.clientcore_take_divergence(this.__wbg_ptr);return t=i[0],e=i[1],V(i[0],i[1])}finally{c.__wbindgen_free(t,e,1)}}take_frames(){let t,e;try{const i=c.clientcore_take_frames(this.__wbg_ptr);return t=i[0],e=i[1],V(i[0],i[1])}finally{c.__wbindgen_free(t,e,1)}}try_fire(t){const e=c.clientcore_try_fire(this.__wbg_ptr,t);let i;return e[0]!==0&&(i=V(e[0],e[1]).slice(),c.__wbindgen_free(e[0],e[1]*1,1)),i}}Symbol.dispose&&(ut.prototype[Symbol.dispose]=ut.prototype.free);function te(){return{__proto__:null,"./vimp_tanks_core_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(t,e){return Error(V(t,e))},__wbg___wbindgen_throw_344f42d3211c4765:function(t,e){throw new Error(V(t,e))},__wbindgen_init_externref_table:function(){const t=c.__wbindgen_externrefs,e=t.grow(4);t.set(0,void 0),t.set(e+0,void 0),t.set(e+1,null),t.set(e+2,!0),t.set(e+3,!1)}}}}const gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>c.__wbg_clientcore_free(n,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>c.__wbg_gamecore_free(n,1));function yt(n,t){return n=n>>>0,ie().subarray(n/4,n/4+t)}function ee(n,t){return n=n>>>0,U().subarray(n/1,n/1+t)}let K=null;function ie(){return(K===null||K.byteLength===0)&&(K=new Float32Array(c.memory.buffer)),K}function V(n,t){return ne(n>>>0,t)}let j=null;function U(){return(j===null||j.byteLength===0)&&(j=new Uint8Array(c.memory.buffer)),j}function at(n,t){const e=t(n.length*1,1)>>>0;return U().set(n,e/1),I=n.length,e}function z(n,t,e){if(e===void 0){const a=J.encode(n),h=t(a.length,1)>>>0;return U().subarray(h,h+a.length).set(a),I=a.length,h}let i=n.length,s=t(i,1)>>>0;const o=U();let r=0;for(;r<i;r++){const a=n.charCodeAt(r);if(a>127)break;o[s+r]=a}if(r!==i){r!==0&&(n=n.slice(r)),s=e(s,i,i=r+n.length*3,1)>>>0;const a=U().subarray(s+r,s+i),h=J.encodeInto(n,a);r+=h.written,s=e(s,i,r,1)>>>0}return I=r,s}function xt(n){const t=c.__wbindgen_externrefs.get(n);return c.__externref_table_dealloc(n),t}let st=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});st.decode();const se=2146435072;let ht=0;function ne(n,t){return ht+=t,ht>=se&&(st=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),st.decode(),ht=t),st.decode(U().subarray(n,n+t))}const J=new TextEncoder;"encodeInto"in J||(J.encodeInto=function(n,t){const e=J.encode(n);return t.set(e),{read:n.length,written:e.length}});let I=0,c;function re(n,t){return c=n.exports,K=null,j=null,c.__wbindgen_start(),c}async function oe(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(s){if(n.ok&&e(n.type)&&n.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",s);else throw s}const i=await n.arrayBuffer();return await WebAssembly.instantiate(i,t)}else{const i=await WebAssembly.instantiate(n,t);return i instanceof WebAssembly.Instance?{instance:i,module:n}:i}function e(i){switch(i){case"basic":case"cors":case"default":return!0}return!1}}async function ae(n){if(c!==void 0)return c;n!==void 0&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),n===void 0&&(n=new URL("/assets/vimp_tanks_core_bg-DJG6soEC.wasm",import.meta.url));const t=te();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:e,module:i}=await oe(await n,t);return re(e)}const he='@charset "UTF-8";#panel table td#panel-bullet:before{content:"bullet: "}#panel table td#panel-bomb:before{content:"bomb: "}#panel table td#panel-time:before{content:"time: "}#vimp{background:#222;position:absolute;inset:0;margin:auto;z-index:1}#radar{position:absolute;right:1%;top:35px;z-index:2;border-radius:50%;background-color:#00be5acc;box-shadow:inset 0 0 47px #ee6,0 0 0 3px #054}#team1{color:#f56}#team2{color:#7ed}#spectators{color:#fe5}#team1 tHead tr,#team2 tHead tr,#spectators tHead tr{border-bottom:1px solid #888;text-transform:capitalize;font-weight:700}#team1 tBody tr,#team2 tBody tr{border-bottom:1px solid #444}#team1 tHead td:first-child:before{content:"team1 ("}#team1 tHead td:first-child:after{content:")"}#team2 tHead td:first-child:before{content:"team2 ("}#team2 tHead td:first-child:after{content:")"}#spectators tHead td:first-child:before{content:"spectators"}#spectators tBody td:nth-child(1){padding:0 1%;line-height:1.4em}#spectators tBody td:nth-child(2),#spectators tBody td:nth-child(3),#spectators tBody td:nth-child(4),#spectators tBody td:nth-child(5){display:none}',C=(n,t,e)=>n+(t-n)*e,Q=(n,t,e)=>Math.min(e,Math.max(t,n)),le=n=>n*(Math.PI/180),ce=n=>{for(;n>Math.PI;)n-=Math.PI*2;for(;n<-Math.PI;)n+=Math.PI*2;return n},v=(n,t)=>Math.random()*(t-n)+n,_e=100,b=(n,t)=>n+_e*(t||0),Ot=n=>n.radius*(1-n.softness),ue=(n,t,e)=>{if(t<=n)return e<t?0:1;const i=Math.min(1,Math.max(0,(e-n)/(t-n)));return i*i*(3-2*i)};function de({viewLevel:n,viewX:t,viewY:e,level:i,x:s,y:o,cfg:r}){if((i||0)<=(n||0))return 1;if(r.mode==="layer")return r.layerAlpha;const a=s-t,h=o-e,l=Math.sqrt(a*a+h*h),_=ue(Ot(r),r.radius,l);return r.minAlpha+(1-r.minAlpha)*_}function pe(n,t,e){return(t||0)<(n||0)?e.lowerTint:16777215}const fe=`
|
|
2
|
+
precision highp float;
|
|
3
|
+
|
|
4
|
+
in vec2 vTextureCoord;
|
|
5
|
+
|
|
6
|
+
out vec4 finalColor;
|
|
7
|
+
|
|
8
|
+
uniform sampler2D uTexture;
|
|
9
|
+
uniform vec4 uInputSize;
|
|
10
|
+
uniform vec4 uOutputFrame;
|
|
11
|
+
|
|
12
|
+
uniform vec2 uHoleCenter;
|
|
13
|
+
// x - внешний радиус, y - внутренний, z - alpha в центре дыры
|
|
14
|
+
uniform vec3 uHoleParams;
|
|
15
|
+
|
|
16
|
+
void main(void)
|
|
17
|
+
{
|
|
18
|
+
vec4 color = texture(uTexture, vTextureCoord);
|
|
19
|
+
vec2 pixel = uOutputFrame.xy + vTextureCoord * uInputSize.xy;
|
|
20
|
+
float d = distance(pixel, uHoleCenter);
|
|
21
|
+
float t = smoothstep(uHoleParams.y, uHoleParams.x, d);
|
|
22
|
+
|
|
23
|
+
finalColor = color * mix(uHoleParams.z, 1.0, t);
|
|
24
|
+
}
|
|
25
|
+
`,wt=`
|
|
26
|
+
struct GlobalFilterUniforms {
|
|
27
|
+
uInputSize:vec4<f32>,
|
|
28
|
+
uInputPixel:vec4<f32>,
|
|
29
|
+
uInputClamp:vec4<f32>,
|
|
30
|
+
uOutputFrame:vec4<f32>,
|
|
31
|
+
uGlobalFrame:vec4<f32>,
|
|
32
|
+
uOutputTexture:vec4<f32>,
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
struct HoleUniforms {
|
|
36
|
+
uHoleCenter:vec2<f32>,
|
|
37
|
+
uHoleParams:vec3<f32>,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;
|
|
41
|
+
@group(0) @binding(1) var uTexture: texture_2d<f32>;
|
|
42
|
+
@group(0) @binding(2) var uSampler : sampler;
|
|
43
|
+
|
|
44
|
+
@group(1) @binding(0) var<uniform> holeUniforms : HoleUniforms;
|
|
45
|
+
|
|
46
|
+
struct VSOutput {
|
|
47
|
+
@builtin(position) position: vec4<f32>,
|
|
48
|
+
@location(0) uv : vec2<f32>
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
fn filterVertexPosition(aPosition:vec2<f32>) -> vec4<f32>
|
|
52
|
+
{
|
|
53
|
+
var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy;
|
|
54
|
+
|
|
55
|
+
position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0;
|
|
56
|
+
position.y = position.y * (2.0*gfu.uOutputTexture.z / gfu.uOutputTexture.y)
|
|
57
|
+
- gfu.uOutputTexture.z;
|
|
58
|
+
|
|
59
|
+
return vec4(position, 0.0, 1.0);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
fn filterTextureCoord( aPosition:vec2<f32> ) -> vec2<f32>
|
|
63
|
+
{
|
|
64
|
+
return aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@vertex
|
|
68
|
+
fn mainVertex(@location(0) aPosition : vec2<f32>) -> VSOutput {
|
|
69
|
+
return VSOutput(
|
|
70
|
+
filterVertexPosition(aPosition),
|
|
71
|
+
filterTextureCoord(aPosition)
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@fragment
|
|
76
|
+
fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
|
|
77
|
+
var color = textureSample(uTexture, uSampler, uv);
|
|
78
|
+
var pixel = gfu.uOutputFrame.xy + uv * gfu.uInputSize.xy;
|
|
79
|
+
var d = distance(pixel, holeUniforms.uHoleCenter);
|
|
80
|
+
var t = smoothstep(holeUniforms.uHoleParams.y, holeUniforms.uHoleParams.x, d);
|
|
81
|
+
|
|
82
|
+
return color * mix(holeUniforms.uHoleParams.z, 1.0, t);
|
|
83
|
+
}
|
|
84
|
+
`;function me(n){const t=new Ut({uHoleCenter:{value:new Float32Array([0,0]),type:"vec2<f32>"},uHoleParams:{value:new Float32Array([n.radius,Ot(n),n.minAlpha]),type:"vec3<f32>"}});return new Wt({glProgram:Zt.from({vertex:$t,fragment:fe,name:"see-through-hole-filter"}),gpuProgram:Gt.from({vertex:{source:wt,entryPoint:"mainVertex"},fragment:{source:wt,entryPoint:"mainFragment"}}),resources:{holeUniforms:t}})}function ge(n,{centerX:t,centerY:e,radius:i,softness:s,minAlpha:o}){const r=n.resources.holeUniforms.uniforms;r.uHoleCenter[0]=t,r.uHoleCenter[1]=e,r.uHoleParams[0]=i,r.uHoleParams[1]=i*(1-s),r.uHoleParams[2]=o}async function Xt({baseTexture:n,spriteSheetData:t,map:e,tiles:i,step:s,renderer:o}){const r={};t.frames.forEach((p,m)=>{const[f,w,y,x]=p;r[`frame${m}`]={frame:{x:f,y:w,w:y,h:x}}});const a={frames:r,meta:{scale:"1"}},h=new qt(n,a);await h.parse();const l=e[0].length*s,_=e.length*s,d=new A;for(let p=0,m=e.length;p<m;p+=1)for(let f=0,w=e[p].length;f<w;f+=1){const y=e[p][f];if(i.includes(y)){const x=`frame${y}`,S=h.textures[x];if(S){const u=new M(S);u.x=f*s,u.y=p*s,d.addChild(u)}else console.warn(`Texture not found. Tile: ${y}, sprite: ${x}`)}}const g=o.generateTexture({target:d,frame:new D(0,0,l,_)});return d.destroy({children:!0}),g}const O=0,X=1,W=2,St=3,vt=4,bt=5,G=6,Y=7,ft=8,nt=9,rt=11,B=12,ye=0,xe=1,we=2,Se=3,ve=4,be=5,Te=6,Me=9,Tt=10,Mt=0,At=1,It=2,Ae=3,Ie=4,ke=6,Ce=0,De=1,Ee=2,Pe=3,kt=0,Ct=1,Le=2,Fe=4,Re=.01;let ze=class extends A{constructor(t,e,i){if(super(),this._baseTexturePromise=null,this._assetUrl=null,this._renderer=i.renderer,this._imageBase=null,this._levelView=i.levelView||null,this._level=0,this._targetAlpha=1,this._holeFilter=null,this._holeStrength=0,this._holeAttached=!1,this._worldX=0,this._worldY=0,this.scale=t.scale,this.sprite=null,this.mapSprite=null,typeof i.assetsBase!="string"){console.error("Map: сервис assetsBase недоступен — карта останется пустой. Объявите assetsBase в componentDependencies и запустите игру на vimp-engine >= 0.9.0");return}this._imageBase=`${i.assetsBase}img/`,t.type==="static"?(this._assetUrl=`${this._imageBase}${t.spriteSheet.img}`,this._baseTexturePromise=q.load(this._assetUrl),this._map=t.map,this._tiles=t.tiles,this._level=t.level||0,this._floor=t.floor||[],this._spriteSheetData=t.spriteSheet,this._step=t.step,this.zIndex=b(Number(t.layer)||1,this._level),this._level>=1&&(this._levelView?.markLayered(),this.onRender=()=>this._updateSeeThrough()),this.createStatic()):t.type==="dynamic"&&(this._assetUrl=`${this._imageBase}${t.img}`,this._baseTexturePromise=q.load(this._assetUrl),this._level=t.level||0,this._layer=Number(t.layer)||2,this.zIndex=b(this._layer,this._level),this._rotation=le(t.angle),this._width=t.width,this._height=t.height,this._x=t.position[0],this._y=t.position[1],this._worldX=this._x*this.scale.x,this._worldY=this._y*this.scale.y,this._levelView&&(this.onRender=()=>this._updateDynamicSeeThrough()),this.createDynamic())}async createDynamic(){try{const t=await this._baseTexturePromise;this.sprite=new M(t),this.sprite.x=this._x,this.sprite.y=this._y,this.sprite.width=this._width,this.sprite.height=this._height,this.sprite.rotation=this._rotation,this.addChild(this.sprite)}catch(t){console.error(`Failed to create dynamic map with asset ${this._assetUrl}:`,t)}}async createStatic(){try{const t=await Xt({baseTexture:await this._baseTexturePromise,spriteSheetData:this._spriteSheetData,map:this._map,tiles:this._tiles,step:this._step,renderer:this._renderer});this.mapSprite=new M(t),this.addChild(this.mapSprite)}catch(t){console.error(`Failed to create static map with asset ${this._assetUrl}:`,t)}}_updateSeeThrough(){if(!this._levelView||!this.mapSprite)return;const t=this._levelView.cfg,e=L.shared.deltaMS/1e3,i=Math.min(1,t.fadeRate*e);if(this._levelView.mode==="layer"){const o=this._levelView.level<this._level&&this._hasFloorAt(this._levelView.x,this._levelView.y);this._targetAlpha=o?t.layerAlpha:1,this.alpha+=(this._targetAlpha-this.alpha)*i;return}const s=this._levelView.level<this._level;this._holeStrength+=((s?1:0)-this._holeStrength)*i,this._updateHole(t)}_updateHole(t){const e=this.parent;if(this._holeStrength<Re||!e){this._holeAttached&&(this.filters=[],this._holeAttached=!1);return}this._holeFilter||(this._holeFilter=me(t)),this._holeAttached||(this.filters=[this._holeFilter],this._holeAttached=!0),ge(this._holeFilter,{centerX:this._levelView.x*e.scale.x+e.position.x,centerY:this._levelView.y*e.scale.y+e.position.y,radius:t.radius*e.scale.x,softness:t.softness,minAlpha:1+(t.minAlpha-1)*this._holeStrength})}_updateDynamicSeeThrough(){!this._levelView||!this.sprite||(this.alpha=this._levelView.alphaFor(this._level,this._worldX,this._worldY),this.tint=this._levelView.tintFor(this._level))}_hasFloorAt(t,e){const i=Math.floor(t/this.scale.x/this._step),s=Math.floor(e/this.scale.y/this._step),o=this._map?.[s]?.[i];return o!==void 0&&this._floor.includes(o)}update(t){this.sprite&&(this.sprite.x=t[kt]/this.scale.x,this.sprite.y=t[Ct]/this.scale.y,this.sprite.rotation=t[Le]),this._worldX=t[kt],this._worldY=t[Ct];const e=t[Fe]||0;e!==this._level&&(this._level=e,this.zIndex=b(this._layer,e))}destroy(t){this._holeFilter&&(this.filters=[],this._holeAttached=!1,this._holeFilter.destroy(),this._holeFilter=null),this.mapSprite&&(this.mapSprite.destroy({children:!0,texture:!0,textureSource:!0}),this.mapSprite=null),super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this._assetUrl&&q.cache.has(this._assetUrl)&&q.unload(this._assetUrl).catch(e=>console.warn(`Failed to unload asset ${this._assetUrl} (was in cache):`,e)),this.sprite=null,this._baseTexturePromise=null,this._assetUrl=null,this._map=null,this._tiles=null,this._floor=null,this._spriteSheetData=null,this._renderer=null,this._levelView=null}};function Yt(n,t){const e=t?.screen;return!n||!e||!n.scale.x||!n.scale.y?null:{x:(e.width/2-n.position.x)/n.scale.x,y:(e.height/2-n.position.y)/n.scale.y,scaleX:n.scale.x,scaleY:n.scale.y}}const Ve={mode:"hole",radius:260,softness:.45,minAlpha:.12,layerAlpha:.4,fadeRate:6,lowerTint:11579584},Oe={enabled:!0,slices:4,shear:.22,sideTint:10133674},Dt=.01;class Xe extends A{constructor(t,e,i){if(super(),this._renderer=i.renderer,this._cfg=Oe,this._volume=Number(t.volume)||0,this._slices=[],this._basePositions=null,this._texture=null,this._camX=null,this._camY=null,!(t.type!=="static"||this._volume<=0||!this._cfg.enabled||this._cfg.slices<1)){if(typeof i.assetsBase!="string"){console.error("MapVolume: сервис assetsBase недоступен — объём не построен.");return}this.scale=t.scale,this._map=t.map,this._tiles=t.tiles,this._step=t.step,this._spriteSheetData=t.spriteSheet,this._level=t.level||0,this.zIndex=b(Number(t.layer)||1,this._level)+.5,this._assetUrl=`${i.assetsBase}img/${t.spriteSheet.img}`,this._baseTexturePromise=q.load(this._assetUrl),this.onRender=()=>this._updateSlices(),this.createSlices()}}async createSlices(){try{this._texture=await Xt({baseTexture:await this._baseTexturePromise,spriteSheetData:this._spriteSheetData,map:this._map,tiles:this._tiles,step:this._step,renderer:this._renderer});const t=this._map[0].length,e=this._map.length,i=this._step,s=[],o=[],r=[];for(let l=0;l<=e;l+=1)for(let _=0;_<=t;_+=1)s.push(_*i,l*i),o.push(_/t,l/e);for(let l=0;l<e;l+=1)for(let _=0;_<t;_+=1){const d=l*(t+1)+_,g=d+1,p=d+t+1,m=p+1;r.push(d,g,p,g,m,p)}this._basePositions=Float32Array.from(s);const a=Float32Array.from(o),h=Uint32Array.from(r);for(let l=1;l<=this._cfg.slices;l+=1){const _=new Kt({positions:Float32Array.from(s),uvs:a,indices:h}),d=new jt({geometry:_,texture:this._texture});d.tint=l===this._cfg.slices?16777215:this._cfg.sideTint,this._slices.push({mesh:d,factor:l/this._cfg.slices}),this.addChild(d)}this._camX=null,this._updateSlices()}catch(t){console.error(`Failed to create map volume with asset ${this._assetUrl}:`,t)}}_updateSlices(){if(!this._basePositions||!this.parent)return;const t=Yt(this.parent,this._renderer);if(!t)return;const e=t.x/this.scale.x,i=t.y/this.scale.y;if(this._camX!==null&&Math.abs(e-this._camX)<Dt&&Math.abs(i-this._camY)<Dt)return;this._camX=e,this._camY=i;const s=this._basePositions;for(let o=0;o<this._slices.length;o+=1){const{mesh:r,factor:a}=this._slices[o],h=this._volume*this._cfg.shear*a,l=r.geometry.positions;for(let _=0;_<s.length;_+=2)l[_]=s[_]+(s[_]-e)*h,l[_+1]=s[_+1]+(s[_+1]-i)*h;r.geometry.getBuffer("aPosition").update()}}update(){}destroy(t){this._texture&&(this._texture.destroy(!0),this._texture=null),super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this._slices=[],this._basePositions=null,this._map=null,this._tiles=null,this._spriteSheetData=null,this._renderer=null,this._baseTexturePromise=null}}const dt=[16777215,9418751,10477760,15783820,14721232,10541296,15773836,12632280],Bt=n=>dt[n]??dt[0],Ye=2,Be=.35;class Ne extends A{constructor(t,e,i={}){super(),this._map=t.map,this._level=t.level||0,this._solid=t.solid||t.physicsStatic||[],this._tiles=t.tiles||[],this._step=t.step,this.zIndex=b(Ye,this._level),this.scale=t.scale,this._draws=this._tiles.some(s=>this._solid.includes(s)),this.radarGraphics=new k,this.addChild(this.radarGraphics),this._levelView=i.levelView||null,this._levelView&&this._draws&&(this.onRender=()=>{this.alpha=this._levelView.level===this._level?1:Be}),this.createRadarMap()}createRadarMap(){if(!this._draws)return;const t=this.radarGraphics;if(t.clear(),Array.isArray(this._map))for(let e=0;e<this._map.length;e+=1){const i=this._map[e];if(Array.isArray(i))for(let s=0;s<i.length;s+=1){const o=i[s];this._solid.includes(o)&&t.rect(s*this._step,e*this._step,this._step/2,this._step/2)}}t.fill(Bt(this._level))}update(){}destroy(t){super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this.radarGraphics=null,this._map=null,this._solid=null,this._tiles=null}}const Et=2,He=9,Ue=1.5;class We extends A{constructor(t,e){super(),this._level=t[B]||0,this.zIndex=b(Et,this._level),this._textures=e.tankRadarTexture,this.body=new M,this.body.anchor.set(.5),this.levelRing=new k,this.addChild(this.levelRing,this.body),this._drawLevelRing(),this.x=t[O]||0,this.y=t[X]||0,this._condition=t[Y],this._teamId=t[nt],this.scale.set(5,5),this.create()}_drawLevelRing(){this.levelRing.clear(),this._level>0&&this.levelRing.circle(0,0,He).stroke({width:Ue,color:Bt(this._level)})}create(){this._condition===0?this.body.texture=this._textures.destroyed:this._teamId===1?this.body.texture=this._textures.liveTeamId1:this._teamId===2&&(this.body.texture=this._textures.liveTeamId2)}update(t){this.x=t[O],this.y=t[X];const e=t[B]||0;e!==this._level&&(this._level=e,this.zIndex=b(Et,e),this._drawLevelRing());const i=t[Y],s=t[nt];let o=!1;i!==void 0&&i!==this._condition&&(this._condition=i,o=!0),s!==void 0&&s!==this._teamId&&(this._teamId=s,o=!0),o&&this.create()}destroy(t){super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this.body=null,this.levelRing=null,this._textures=null}}const Ge=.2,Ze=.01;function Nt(){let n=0,t=!1,e=0,i=0,s=0;return{update(o,r,a){if(!t)return t=!0,e=o,i=r,s=a,n;const h=o-e,l=r-i,_=Math.sqrt(h*h+l*l),d=_>Ze?(a-s)/_:0;return e=o,i=r,s=a,n+=(d-n)*Ge,n},get value(){return n}}}const lt=3,$e=.06,qe=.07,Ke=.1,je=.4,Je=.12,Qe=1.3,ti=.35,ei=3.4,ii=1.4,si=1,Pt=1.1,ni=1.18,ri=.9,oi=1;function ai(n){const t=Q(n,0,1),e=Math.max(0,n-1),i=C(si,Pt,t)+(ni-Pt)*e,s=C(ri,oi,t);return{rate:i,volumeFactor:s}}class hi extends A{constructor(t,e,i,s){super(),this.body=new M,this.gun=new M,this.wreck=new M,this.body.anchor.set(.5),this.wreck.anchor.set(.5),this.addChild(this.body,this.gun,this.wreck),this._textures=e.tankTexture,this._shadowAsset=e.tankShadowTexture||null,this._badgeTextures=e.levelBadgeTexture||null,this._renderer=i.renderer||null,this._shadow=null,this._grade=Nt(),this.x=t[O]||0,this.y=t[X]||0,this.rotation=t[W]||0,this.gun.rotation=t[St]||0,this._engineLoad=t[G]||0,this._condition=t[Y],this._size=t[ft],this._teamId=t[nt],this._z=t[rt]||0,this._level=t[B]||0,this.zIndex=b(lt,this._level),this._isLocal=()=>i.localPlayer?.is(s?.id)===!0,this._levelView=i.levelView||null,this._badge=null,this._badgeTextures&&(this._badge=new M,this._badge.anchor.set(.5),this._badge.visible=!1,this.addChild(this._badge)),this.onRender=()=>this._updateView();const o=this._teamId===1?this._textures.liveTeamId1:this._textures.liveTeamId2,r=o?o.gunAnchor:null;r?this.gun.anchor.set(r.x,r.y):this.gun.anchor.set(.5);const a=10;this._scaleFactor=this._size/a,this.body.scale.set(this._scaleFactor),this.gun.scale.set(this._scaleFactor),this.wreck.scale.set(this._scaleFactor),this._badge&&this._badge.scale.set(this._scaleFactor*ii),this._soundManager=i.soundManager,this._soundId=null;const h=this._soundManager.getSoundConfig("tankEngine");this._baseEngineVolume=h?.volume||0,this._hasEngineSound=!!h,this.create()}_initSounds(){this._soundId||this._condition===0||!this._hasEngineSound||(this._soundId=this._soundManager.registerSound("tankEngine",this._getSoundData()))}_getSoundData(){const{rate:t,volumeFactor:e}=ai(this._engineLoad);return{position:{x:this.x,y:this.y},rate:t,volume:this._baseEngineVolume*e}}create(){if(this._condition===0)this.body.visible=!1,this.gun.visible=!1,this.wreck.texture=this._textures.destroyed,this.wreck.visible=!0,this.gun.rotation=0,this.destroySounds();else{this.wreck.visible=!1;let t;this._teamId===1?t=this._textures.liveTeamId1:this._teamId===2&&(t=this._textures.liveTeamId2),this.body.texture=t.body,this.gun.texture=t.gun,this.body.visible=!0,this.gun.visible=!0,this._initSounds()}}update(t){this.x=t[O],this.y=t[X],this.rotation=t[W],this.gun.rotation=t[St],this._engineLoad=t[G];const e=t[B]||0;this._z=t[rt]||0,e!==this._level&&(this._level=e,this.zIndex=b(lt,e));const i=1+this._z*$e,s=this._grade.update(this.x,this.y,this._z),o=1-Q(Math.abs(s),0,1)*ti;this.body.scale.set(this._scaleFactor*i*o,this._scaleFactor*i),this.gun.scale.set(this._scaleFactor*i*o,this._scaleFactor*i),this._levelView&&this._isLocal()&&this._levelView.set(e,this.x,this.y,this._z),this._condition>0&&(this._soundId===null?this._initSounds():this._soundManager.updateSoundData(this._soundId,this._getSoundData()));const r=t[Y],a=t[nt];let h=!1;r!==void 0&&r!==this._condition&&(this._condition=r,h=!0),a!==void 0&&a!==this._teamId&&(this._teamId=a,h=!0),h&&this.create()}_updateView(){this._levelView&&(this.alpha=this._levelView.alphaFor(this._level,this.x,this.y),this.tint=this._levelView.tintFor(this._level)),this._updateShadow(),this._updateBadge()}_updateShadow(){if(!this._shadowAsset||!this.parent)return;if(!this._shadow){const{texture:o,contentSize:r}=this._shadowAsset;this._shadow=new M(o),this._shadow.anchor.set(.5),this._shadowScale=this._size*Qe/r,this.parent.addChild(this._shadow)}const t=this._shadow,e=this._condition!==0;if(t.visible=e,!e)return;const i=Yt(this.parent,this._renderer),s=qe*this._z;t.x=i?this.x+(this.x-i.x)*s:this.x,t.y=i?this.y+(this.y-i.y)*s:this.y,t.rotation=this.rotation,t.scale.set(this._shadowScale*(1+this._z*Ke)),t.alpha=Math.max(0,je-this._z*Je)*this.alpha,t.zIndex=b(lt-1,Math.floor(this._z))}_updateBadge(){if(!this._badge)return;const t=!!this._levelView?.layered&&this._isLocal();if(this._badge.visible=t,!t)return;const e=this._badgeTextures[this._level];e&&this._badge.texture!==e&&(this._badge.texture=e);const i=this._size*ei;this._badge.x=i*Math.sin(this.rotation),this._badge.y=i*Math.cos(this.rotation),this._badge.rotation=-this.rotation}destroySounds(){this._soundId&&(this._soundManager.unregisterSound(this._soundId),this._soundId=null)}destroy(t){this.destroySounds(),this._shadow&&(this._shadow.destroy({texture:!1,textureSource:!1}),this._shadow=null),super.destroy({children:!0,texture:!1,textureSource:!1,...t})}}const li=2;class ci extends A{constructor(t,e,i){super(),this._level=t[ke]||0,this.zIndex=b(li,this._level),this._levelView=i.levelView||null,this._levelView&&(this.onRender=()=>{this.alpha=this._levelView.alphaFor(this._level,this.x,this.y),this.tint=this._levelView.tintFor(this._level)}),this.body=new M(e.bombTexture),this.body.anchor.set(.5),this.x=t[Mt],this.y=t[At],this.rotation=t[It],this._size=t[Ae],this._totalDurationMs=t[Ie],this._soundManager=i.soundManager,this._soundId=null;const s=e.bombTexture.width,o=this._size/s;this.body.scale.set(o);const r=64,a=this._size/1.2/r;this.text=new Rt({style:{fontFamily:"Arial",fontSize:r,fill:16777215,align:"center"}}),this.text.anchor.set(.5),this.text.scale.set(a),this.text.x=0,this.text.y=0,this._accumulatedTimeMs=0,this._secondsLeft="",this.addChild(this.body,this.text),this._updateTimerDisplay(this._totalDurationMs),this._tickListener=h=>this._updateTimer(h.deltaMS),L.shared.add(this._tickListener),this._soundId=this._soundManager.registerSound("bombHasBeenPlanted",{position:{x:this.x,y:this.y}})}_updateTimer(t){this._accumulatedTimeMs+=t;const e=Math.max(0,this._totalDurationMs-this._accumulatedTimeMs);this._updateTimerDisplay(e),e<=0&&(this._stopTimer(),this._updateTimerDisplay(0))}_updateTimerDisplay(t){const e=Math.round(t/1e3);this._secondsLeft!==e&&(this._secondsLeft=e,this.text.text=`${this._secondsLeft}`)}update(t){this.x=t[Mt],this.y=t[At],this.rotation=t[It],this._soundId&&(this._soundManager.updateSoundData(this._soundId,{position:{x:this.x,y:this.y}})||(this._soundId=null))}_stopTimer(){this._tickListener&&(L.shared.remove(this._tickListener),this._tickListener=null)}destroy(t){this._stopTimer(),this._soundId&&(this._soundManager.releaseSound(this._soundId),this._soundId=null),super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this.body=null,this.text=null}}class tt extends A{constructor(t){super(),this._tickListener=null,this._isStarted=!1,this.isComplete=!1,this.onComplete=t}run(){this.isComplete||this._isStarted||(this._isStarted=!0,this._tickListener=t=>this._update(t.deltaMS),L.shared.add(this._tickListener),this._onEffectStart(),this.isComplete||this._update(0))}_onEffectStart(){}_update(){}_completeEffect(){this.isComplete||(this.isComplete=!0,this._tickListener&&(L.shared.remove(this._tickListener),this._tickListener=null),typeof this.onComplete=="function"&&this.onComplete())}destroy(t){this.isComplete=!0,this._tickListener&&(L.shared.remove(this._tickListener),this._tickListener=null),this.parent&&this.parent.removeChild(this),super.destroy({texture:!1,textureSource:!1,...t,children:!0})}}class _i extends tt{constructor(t,e,i,s,o){super(s);const{texture:r,contentSize:a}=o.explosionTexture;this.x=t,this.y=e,this._radius=i,this._durationMs=1500,this._elapsedMs=0,this._baseScale=this._radius*2/a,this._mainBody=new M(r),this._mainBody.anchor.set(.5),this._mainBody.tint=11393254,this._mainBody.scale.set(this._baseScale),this._core=new M(r),this._core.anchor.set(.5),this._core.tint=13882323,this._core.scale.set(this._baseScale),this.addChild(this._mainBody,this._core)}_update(t){if(!this.isComplete)if(this._elapsedMs+=t,this._elapsedMs<=this._durationMs){const e=this._elapsedMs/this._durationMs;this._draw(e)}else this._completeEffect()}_draw(t){const e=s=>s*s;this._mainBody.alpha=.6*(1-e(t));const i=Math.min(1,t*1.5);this._core.alpha=.7-i,this._core.scale.set(this._baseScale*(1-i))}destroy(t){super.destroy(t)}}const ct=[],N={get(n){if(ct.length>0){const t=ct.pop();return t.texture=n,t.alpha=1,t.scaleX=1,t.scaleY=1,t.rotation=0,t.tint=16777215,t.anchorX=.5,t.anchorY=.5,t}return new Jt({texture:n,anchorX:.5,anchorY:.5})},release(n){n&&ct.push(n)}},pt=50,ui=400,di=800;class pi extends tt{constructor(t,e=pt){super();const i=e/pt;this._blastScale=i;const{texture:s,contentSize:o}=t.explosionTexture;this.explosionTexture=s,this._unitScale=1/o;const r=ui*i,a=di*i;this._particleContainer=new zt({texture:this.explosionTexture,boundsArea:new D(-r/2,-a/2,r,a),dynamicProperties:{position:!0,vertex:!0,rotation:!0,color:!0}}),this.addChild(this._particleContainer),this._particles=[],this._isSpawning=!0,this._particleSpawnRateMs=50,this._particleMaxLifeMs=2e3,this._minStartSize=2.1*i,this._maxStartSize=5.2*i,this._minTargetSize=8.3*i,this._maxTargetSize=16.6*i,this._startAlpha=.1,this._initialOffsetX=15*i,this._initialOffsetY=15*i,this._lastSpawnTime=0;for(let h=0;h<30;h+=1)this._createParticle()}stopSpawning(){this._isSpawning=!1}_createParticle(){const t=N.get(this.explosionTexture),e=.2+Math.random()*.4,i=Math.floor(e*255);t.tint=i<<16|i<<8|i;const s=(this._minStartSize+Math.random()*(this._maxStartSize-this._minStartSize))*this._unitScale,o=.6+Math.random()*.8,r=.6+Math.random()*.8;t.scaleX=s*o,t.scaleY=s*r,t.alpha=this._startAlpha+Math.random()*.1,t.rotation=Math.random()*Math.PI*2,t.x=(Math.random()-.5)*this._initialOffsetX,t.y=(Math.random()-.5)*this._initialOffsetY;const a={view:t,life:0,maxLife:this._particleMaxLifeMs*(.7+Math.random()*.6),aspectRatioX:o,aspectRatioY:r,vx:(Math.random()-.5)*.2*this._blastScale,vy:(-.3-Math.random()*.4)*this._blastScale,swaySpeed:.002+Math.random()*.003,swayAmp:(.025+Math.random()*.05)*this._blastScale,swayOffset:Math.random()*100,rotationSpeed:(Math.random()-.5)*.05,targetScale:(this._minTargetSize+Math.random()*(this._maxTargetSize-this._minTargetSize))*this._unitScale,startScale:s};this._particleContainer.addParticle(t),this._particles.push(a)}_update(t){if(!this.isComplete){if(t=Math.min(t,100),this._isSpawning)for(this._lastSpawnTime+=t;this._lastSpawnTime>this._particleSpawnRateMs;)this._createParticle(),this._lastSpawnTime-=this._particleSpawnRateMs;for(let e=this._particles.length-1;e>=0;e-=1){const i=this._particles[e],s=i.view;if(i.life+=t,i.life>=i.maxLife)this._particleContainer.removeParticle(s),N.release(s),this._particles.splice(e,1);else{const o=i.life/i.maxLife;i.vy*=.98,i.vx*=.95;const r=Math.sin(i.life*i.swaySpeed+i.swayOffset)*i.swayAmp;s.x+=(i.vx+r)*(t/16),s.y+=i.vy*(t/16),s.rotation+=i.rotationSpeed*(t/16);const a=1-Math.pow(1-o,3),h=i.startScale+(i.targetScale-i.startScale)*a;if(s.scaleX=h*i.aspectRatioX,s.scaleY=h*i.aspectRatioY,o<.1)s.alpha=o/.1*this._startAlpha;else if(o>.4){const l=(o-.4)/.6;s.alpha=this._startAlpha*(1-l)}else s.alpha=this._startAlpha}}!this._isSpawning&&this._particles.length===0&&this._isStarted&&(this._completeEffect(),this.destroyed||this.destroy())}}destroy(t){for(let e=0;e<this._particles.length;e+=1)N.release(this._particles[e].view);this._particles=[],super.destroy(t)}}const fi=.168,mi=.225,Lt=.15,gi=2e4,yi=50,xi=4e3,wi=4e3;class Si extends tt{constructor(t,e,i,s,o){super(s),this._assets=o,this._radius=i,this.x=t,this.y=e,this._funnelDurationMs=gi,this._funnelFadeInDurationMs=yi,this._funnelFadeDurationMs=xi,this._elapsedMs=0,this._smokeDurationMs=wi,this._smokeSpawningStopped=!1,this._funnel=this._createFunnelSprite(),this._smoke=new pi(this._assets,this._radius),this.addChild(this._funnel,this._smoke)}_createFunnelSprite(){const{textures:t,contentSize:e}=this._assets.funnelTexture,i=t[Math.floor(Math.random()*t.length)],s=new M(i);s.anchor.set(.5),s.alpha=0,s.rotation=Math.random()*Math.PI*2;const o=this._radius*fi*v(1-Lt,1+Lt);return s.scale.set(o/e),s}_onEffectStart(){super._onEffectStart(),this._smoke&&this._smoke.run()}_update(t){if(this.isComplete)return;this._elapsedMs+=t,!this._smokeSpawningStopped&&this._elapsedMs>=this._smokeDurationMs&&(this._smoke.stopSpawning(),this._smokeSpawningStopped=!0);const e=this._funnelDurationMs-this._elapsedMs,i=this._funnelFadeInDurationMs>0?this._elapsedMs/this._funnelFadeInDurationMs:1,s=e/this._funnelFadeDurationMs;this._funnel.alpha=mi*Q(Math.min(i,s),0,1),e<=0&&this._completeEffect()}destroy(t){this._smoke&&(this._smoke.destroy(),this._smoke=null),this._funnel=null,super.destroy(t)}}const vi=4,bi=2;class Ti extends A{constructor(t,e,i){super(),this.originX=t[Ce],this.originY=t[De],this.radius=t[Ee]??pt,this._level=t[Pe]||0,this._assets=e,this._soundManager=i.soundManager,this._levelView=i.levelView||null,this._levelView&&(this.onRender=()=>this._updateSeeThrough()),this.x=this.originX,this.y=this.originY,this.explosion=null,this.funnel=null,this._isStarted=!1,this._isDestroyed=!1,this._soundId=this._soundManager.registerSound("explosion",{position:{x:this.originX,y:this.originY}})}_updateSeeThrough(){const t=this._levelView.alphaFor(this._level,this.originX,this.originY),e=this._levelView.tintFor(this._level);this.explosion&&(this.explosion.alpha=t,this.explosion.tint=e),this.funnel&&(this.funnel.alpha=t,this.funnel.tint=e)}run(){if(!(this._isDestroyed||this._isStarted)){if(this._isStarted=!0,!this.parent){this.destroy();return}this.explosion=new _i(this.originX,this.originY,this.radius,this._onExplosionComplete.bind(this),this._assets),this.explosion.zIndex=b(vi,this._level),this.funnel=new Si(this.originX,this.originY,this.radius,this._onFunnelComplete.bind(this),this._assets),this.funnel.zIndex=b(bi,this._level),this.parent.addChild(this.explosion,this.funnel),this.parent.sortChildren(),this.explosion.run(),this.funnel.run()}}_onExplosionComplete(){this._isDestroyed||this.explosion&&(this.explosion.destroy(),this.explosion=null)}_onFunnelComplete(){this._isDestroyed||this.destroy()}destroy(){this._isDestroyed||(this._isDestroyed=!0,this._soundId&&(this._soundManager.unregisterSound(this._soundId),this._soundId=null),this.explosion&&(this.explosion.destroy(),this.explosion=null),this.funnel&&(this.funnel.destroy(),this.funnel=null),this.parent&&this.parent.removeChild(this),super.destroy({children:!0}))}}const Ft=4,H=400,Mi=0,Ai=0,Ii=8,T={particleLifetime:{min:800,max:1800},particleStartSizeFactor:{1:2,2:1,0:.25},particleEndSizeFactor:{1:3,2:2,0:1},particleStartAlpha:.08,particleEndAlpha:0,particleColor:3355443,particleSpawnRate:{1:60,2:50,0:30},particleInitialVelocity:{away:{min:-10,max:100},side:{min:-30,max:30}},airResistance:.92,particleVelocityVariance:10,streamOffsetFactor:.1,burstParticleCount:3},E={minGrade:.05,spawnRate:45,lifetime:{min:300,max:700},startAlpha:.22,startSizeFactor:.5,endSizeFactor:1.6,color:12562068,sideSpeed:40};class ki extends A{constructor(t,e,i={}){super(),this._level=t[B]||0,this.zIndex=b(Ft,this._level);const{texture:s,contentSize:o}=e.smokeTexture;this._smokeTexture=s,this._textureScale=Ii/o,this._emitterX=t[O],this._emitterY=t[X],this._emitterRotation=t[W],this._emitterVX=t[vt],this._emitterVY=t[bt],this._engineLoad=t[G],this._condition=t[Y],this._size=t[ft],this._width=this._size*4,this._height=this._size*3,this._particleScaleMultiplier=Math.max(.5,Math.sqrt(this._width*this._height*.001)),this._particles=[],this._grade=Nt(),this._gradeValue=0,this._dustTimeSinceSpawn=0,this._grade.update(this._emitterX,this._emitterY,t[rt]||0),this._levelView=i.levelView||null,this._levelView&&(this.onRender=()=>{this.alpha=this._levelView.alphaFor(this._level,this._emitterX,this._emitterY),this.tint=this._levelView.tintFor(this._level)}),this._particleContainer=new zt({texture:this._smokeTexture,boundsArea:new D(this._emitterX-H,this._emitterY-H,H*2,H*2),dynamicProperties:{position:!0,vertex:!0,rotation:!0,color:!0}}),this.addChild(this._particleContainer),this._timeSinceLastSpawn=0,this._tickListener=r=>this._updateParticles(r.deltaMS),L.shared.add(this._tickListener)}update(t){const e=this._condition,i=t[B]||0;i!==this._level&&(this._level=i,this.zIndex=b(Ft,i)),this._emitterX=t[O],this._emitterY=t[X],this._emitterRotation=t[W],this._emitterVX=t[vt],this._emitterVY=t[bt],this._engineLoad=t[G],this._condition=t[Y],this._gradeValue=this._grade.update(this._emitterX,this._emitterY,t[rt]||0),this._particleContainer.boundsArea.x=this._emitterX-H,this._particleContainer.boundsArea.y=this._emitterY-H,this._condition!==e&&this._condition!==3&&this._triggerSmokeBurst()}_triggerSmokeBurst(){let t=0;if(this._condition===1?t=2:(this._condition===2||this._condition===0)&&(t=1),t>0){const e=T.burstParticleCount,i=Math.ceil(e/t);for(let s=0;s<i;s+=1)for(let o=0;o<t;o+=1)this.spawnParticle(o,t,!0)}}_updateParticles(t){if(t<=0)return;const e=t/1e3;this._timeSinceLastSpawn+=t;let i=0;this._condition===3?i=0:this._condition===1?i=2:(this._condition===2||this._condition===0)&&(i=1);const s=T.particleSpawnRate[this._condition]||0,o=s>0?1e3/s:1/0;if(i>0&&s>0)for(;this._timeSinceLastSpawn>=o;){for(let h=0;h<i;h+=1)this.spawnParticle(h,i);this._timeSinceLastSpawn-=o}else this._timeSinceLastSpawn=0;this._updateDust(t);const a=1-Math.pow(T.airResistance,t/16);for(let h=this._particles.length-1;h>=0;h-=1){const l=this._particles[h];if(l.age+=t,l.age>=l.lifetime){this._particleContainer.removeParticle(l.view),N.release(l.view),this._particles.splice(h,1);continue}l.vx=l.vx+(Mi-l.vx)*a,l.vy=l.vy+(Ai-l.vy)*a,l.x+=l.vx*e,l.y+=l.vy*e;const _=l.age/l.lifetime,d=1-(1-_)*(1-_),g=C(l.startSizeFactor,l.endSizeFactor,d),p=C(l.startAlpha,l.endAlpha,_),m=g*this._particleScaleMultiplier*this._textureScale,f=l.view;f.x=l.x,f.y=l.y,f.scaleX=m,f.scaleY=m,f.alpha=p,f.rotation+=l.rotSpeed*e}}_updateDust(t){if(this._condition===0||this._gradeValue<=E.minGrade){this._dustTimeSinceSpawn=0;return}this._dustTimeSinceSpawn+=t;const e=1e3/E.spawnRate;for(;this._dustTimeSinceSpawn>=e;)this._spawnDust(),this._dustTimeSinceSpawn-=e}_spawnDust(){const t=this._emitterRotation,e=Math.cos(t+Math.PI),i=Math.sin(t+Math.PI),s=this._emitterX+e*this._height*.3,o=this._emitterY+i*this._height*.3,r=E.sideSpeed,a=N.get(this._smokeTexture),h=E.startSizeFactor*this._particleScaleMultiplier*this._textureScale;a.tint=E.color,a.x=s,a.y=o,a.alpha=E.startAlpha,a.scaleX=h,a.scaleY=h,a.rotation=v(0,Math.PI*2),this._particles.push({view:a,x:s,y:o,vx:e*r+v(-r,r),vy:i*r+v(-r,r),age:0,lifetime:v(E.lifetime.min,E.lifetime.max),startSizeFactor:E.startSizeFactor,endSizeFactor:E.endSizeFactor,startAlpha:E.startAlpha,endAlpha:T.particleEndAlpha,rotSpeed:v(-1,1)}),this._particleContainer.addParticle(a)}spawnParticle(t,e,i=!1){const s=v(T.particleLifetime.min,T.particleLifetime.max);let o=T.particleStartSizeFactor[this._condition]||.3,r=T.particleEndSizeFactor[this._condition]||1,a=T.particleStartAlpha,h=1;i&&(o*=2,r*=2.5,a=.8,h=2);const l=this._emitterRotation,_=l+Math.PI,d=Math.cos(_),g=Math.sin(_),p=l+Math.PI/2,m=Math.cos(p),f=Math.sin(p);let w=0;const y=this._width/2*T.streamOffsetFactor;e===2?w=t===0?-y:y:e===3&&(w=(t-1)*y);const x=this._height*.22,S=this._emitterX+d*x+m*w,u=this._emitterY+g*x+f*w;let P=v(T.particleInitialVelocity.away.min,T.particleInitialVelocity.away.max),Z=v(T.particleInitialVelocity.side.min,T.particleInitialVelocity.side.max);P*=h,Z*=h;let R=d*P+m*Z,$=g*P+f*Z;const et=T.particleVelocityVariance;R+=v(-et,et),$+=v(-et,et),R+=this._emitterVX,$+=this._emitterVY;const F=N.get(this._smokeTexture);F.tint=T.particleColor,F.x=S,F.y=u,F.alpha=a;const mt=o*this._particleScaleMultiplier*this._textureScale;F.scaleX=mt,F.scaleY=mt,F.rotation=v(0,Math.PI*2);const Ht={view:F,x:S,y:u,vx:R,vy:$,age:0,lifetime:s,startSizeFactor:o,endSizeFactor:r,startAlpha:a,endAlpha:T.particleEndAlpha,rotSpeed:v(-1,1)};this._particleContainer.addParticle(F),this._particles.push(Ht)}_stopTimer(){this._tickListener&&(L.shared.remove(this._tickListener),this._tickListener=null)}destroy(t){this._stopTimer();for(let e=0;e<this._particles.length;e+=1)N.release(this._particles[e].view);this._particles=[],super.destroy({texture:!1,textureSource:!1,...t,children:!0})}}class Ci extends M{constructor(t,e,i,s,o,r,a){super(a),this.anchor.set(.5),this.x=t,this.y=e,this.rotation=i,this.width=o,this.height=s,this.alpha=r,this._initialAlpha=r,this._elapsedTime=0,this._fadeDuration=1800+Math.random()*700}update(t){this._elapsedTime+=t;const e=Math.min(this._elapsedTime/this._fadeDuration,1);return this.alpha=(1-e)*this._initialAlpha,e>=1}}const _t=1;class Di extends A{constructor(t,e){super(),this._level=t[B]||0,this._markLayers=new Map,this.zIndex=b(_t,this._level),this._currentX=t[O]||0,this._currentY=t[X]||0,this._currentRotation=t[W]||0,this._engineLoad=t[G]||0,this._condition=t[Y],this._size=t[ft],this._prevX=this._currentX,this._prevY=this._currentY,this._prevRotation=this._currentRotation,this._prevSpeed=0,this._prevAngularSpeed=0,this._assets=e,this._trackMarkCooldown=2,this._lastTrackMarkTime=0,this._minAbsAccelerationForMark=4,this._minAngularSpeedForMark=.02,this._minRotationAccelerationForMark=.4,this._minSpeedForRotationMarks=1.4,this._trackWidth=this._size*.4,this._trackLength=this._size*.5;const i=this._size*3;this._trackOffset=i/2*.7,this._backwardOffset=i*.4,this._trackInitialAlpha=.4,this._tickListener=s=>this._internalUpdate(s.deltaMS),L.shared.add(this._tickListener)}update(t){this._currentX=t[O],this._currentY=t[X],this._currentRotation=t[W],this._engineLoad=t[G],this._condition=t[Y];const e=t[B]||0;e!==this._level&&(this._level=e,this.zIndex=b(_t,e))}_markLayer(t){let e=this._markLayers.get(t);if(e)return e;e=new A,e.zIndex=b(_t,t),this._markLayers.set(t,e);const i=this.parent||this;return i.addChild(e),i.sortChildren(),e}_internalUpdate(t){if(t<=0)return;for(const p of this._markLayers.values())for(let m=p.children.length-1;m>=0;m-=1){const f=p.children[m];f.update(t)&&f.destroy()}const e=this._currentX-this._prevX,i=this._currentY-this._prevY,s=Math.sqrt(e*e+i*i),o=ce(this._currentRotation-this._prevRotation),r=Math.abs(o),a=s-this._prevSpeed,h=Math.abs(a),l=r-this._prevAngularSpeed,_=Math.abs(l),d=performance.now();let g=!1;this._condition!==0&&d-this._lastTrackMarkTime>this._trackMarkCooldown&&(h>this._minAbsAccelerationForMark&&(g=!0),s>this._minSpeedForRotationMarks&&(r>this._minAngularSpeedForMark||_>this._minRotationAccelerationForMark)&&(g=!0)),this._engineLoad>1&&(g=!0),g&&(this.createTrackMarksAtPreviousPosition(),this._lastTrackMarkTime=d),this._prevX=this._currentX,this._prevY=this._currentY,this._prevRotation=this._currentRotation,this._prevSpeed=s,this._prevAngularSpeed=r}createTrackMarksAtPreviousPosition(){const t=this._markLayer(this._level);for(let e=-1;e<=1;e+=2){const i=Math.cos(this._prevRotation+Math.PI/2)*this._trackOffset*e,s=Math.sin(this._prevRotation+Math.PI/2)*this._trackOffset*e,o=-Math.cos(this._prevRotation)*this._backwardOffset,r=-Math.sin(this._prevRotation)*this._backwardOffset,a=this._prevX+i+o,h=this._prevY+s+r,l=new Ci(a,h,this._prevRotation,this._trackWidth,this._trackLength,this._trackInitialAlpha,this._assets.trackMarkTexture);t.addChild(l)}}_stopTimer(){this._tickListener&&(L.shared.remove(this._tickListener),this._tickListener=null)}destroy(t){this._stopTimer();for(const e of this._markLayers.values())e.destroyed||e.destroy({children:!0});this._markLayers.clear(),super.destroy({children:!0,texture:!1,textureSource:!1,...t})}}class Ei extends tt{constructor(t,e,i,s,o){super(o),this.startPositionX=t,this.startPositionY=e,this.endPositionX=i,this.endPositionY=s,this.config={color:16777113,alphaStart:1,alphaEnd:.6,trailLength:55,tracerSpeed:19e3,minDuration:45,maxDuration:80,trailShrinkPower:1,trailStartOffset:30,segmentCount:12,segmentRadius:1,alphaPulseFrequency:.1,alphaPulseAmplitude:.15},this.graphics=new k,this.addChild(this.graphics),this.elapsedTime=0,this.dx=this.endPositionX-this.startPositionX,this.dy=this.endPositionY-this.startPositionY,this.totalDist=Math.hypot(this.dx,this.dy),this.totalDist>.001?(this.nx=this.dx/this.totalDist,this.ny=this.dy/this.totalDist,this.animationDuration=this.totalDist/this.config.tracerSpeed*1e3):(this.nx=0,this.ny=0,this.totalDist=0,this.animationDuration=this.config.minDuration),this.animationDuration=Math.max(this.config.minDuration,this.animationDuration),this.animationDuration=Math.min(this.config.maxDuration,this.animationDuration),this.animationDuration<=0&&(this.animationDuration=this.config.minDuration)}_drawSegment(t,e,i,s,o){this.graphics.circle(t,e,i),this.graphics.fill({color:s,alpha:Q(o,0,1)})}_update(t){if(this.isComplete)return;this.elapsedTime+=t,this.graphics.clear();const e=Math.min(this.elapsedTime/this.animationDuration,1);if(e>0){const i=C(this.startPositionX,this.endPositionX,e),s=C(this.startPositionY,this.endPositionY,e),o=C(this.config.alphaStart,this.config.alphaEnd,e),r=Math.sin(this.elapsedTime*this.config.alphaPulseFrequency)*this.config.alphaPulseAmplitude;let a=o+r;a=Q(a,0,this.config.alphaStart);const h=Math.pow(e,this.config.trailShrinkPower),l=C(this.config.trailLength,0,h),_=this.totalDist*e;if(_>=this.config.trailStartOffset){let d=_;this.totalDist>.001&&(d=Math.max(0,_-this.config.trailStartOffset));const g=Math.min(d,l);let p,m;this.totalDist>.001?(p=i-this.nx*g,m=s-this.ny*g):(p=i,m=s);const f=Math.hypot(i-p,s-m);if(f<this.config.segmentRadius*.5&&this.totalDist===0)this._drawSegment(i,s,this.config.segmentRadius,this.config.color,a);else if(f>=this.config.segmentRadius*.5){const w=Math.max(1,this.config.segmentCount);for(let y=0;y<w;y++){let x=.5;w>1&&(x=y/(w-1));const S=C(p,i,x),u=C(m,s,x),P=C(1,.8,x);this._drawSegment(S,u,this.config.segmentRadius,this.config.color,a*P)}}}}this.elapsedTime>=this.animationDuration&&(this.graphics.clear(),this._completeEffect())}destroy(t){this.graphics&&this.graphics.clear(),super.destroy(t)}}class Pi extends tt{constructor(t,e,i,s,o,r){super(o),this.x=t,this.y=e,this._assets=r;const{texture:a,contentSize:h}=this._assets.impactParticleTexture;this._particleTexture=a,this._textureContentSize=h,this.config={particleCount:v(2,4),particleMinSize:.8,particleMaxSize:2.4,minInitialSpeed:10,maxInitialSpeed:300,minLifetime:8e3,maxLifetime:15e3,color:[3355443,2236962,4473924],fadeOutStart:.8,impactDirectionX:i,impactDirectionY:s,spreadAngle:60,dragCoefficient:13,minSpeedThreshold:1,lingerDuration:6e3},this.config.impactDirectionX===0&&this.config.impactDirectionY===0?this.useOmnidirectionalSpread=!0:this.useOmnidirectionalSpread=!1,this.particlesData=[],this.elapsedTime=0,this._createParticles()}_createParticles(){let t;this.useOmnidirectionalSpread||(t=Math.atan2(this.config.impactDirectionY,this.config.impactDirectionX));const i=this.config.spreadAngle*(Math.PI/180)/2;for(let s=0,o=this.config.particleCount;s<o;s+=1){let r;this.useOmnidirectionalSpread?r=Math.random()*Math.PI*2:r=t+v(-i,i);const a=v(this.config.minInitialSpeed,this.config.maxInitialSpeed),h=new M(this._particleTexture);h.anchor.set(.5);const l={sprite:h,x:0,y:0,vx:Math.cos(r)*a,vy:Math.sin(r)*a,size:v(this.config.particleMinSize,this.config.particleMaxSize),color:Array.isArray(this.config.color)?this.config.color[Math.floor(Math.random()*this.config.color.length)]:this.config.color,lifetime:v(this.config.minLifetime,this.config.maxLifetime),age:0,alpha:1,active:!0,isMoving:!0,timeSinceStopped:0};h.tint=l.color,this.particlesData.push(l),this.addChild(h)}}_update(t){if(this.isComplete)return;this.elapsedTime+=t;const e=t/1e3;let i=0;for(let s=0,o=this.particlesData.length;s<o;s+=1){const r=this.particlesData[s];if(!r.active)continue;if(i+=1,r.age+=t,r.isMoving){const _=Math.hypot(r.vx,r.vy);if(_>0){const g=_*this.config.dragCoefficient*e,p=Math.max(0,1-g/_);r.vx*=p,r.vy*=p}r.x+=r.vx*e,r.y+=r.vy*e,Math.hypot(r.vx,r.vy)<this.config.minSpeedThreshold&&(r.isMoving=!1,r.vx=0,r.vy=0)}else r.timeSinceStopped+=t;const a=r.age/r.lifetime;if(!r.isMoving&&r.timeSinceStopped>=this.config.lingerDuration){const _=r.timeSinceStopped-this.config.lingerDuration,d=Math.min(500,r.lifetime*(1-this.config.fadeOutStart));r.alpha=C(1,0,Math.min(_/d,1))}else if(a>=this.config.fadeOutStart){const _=r.age-r.lifetime*this.config.fadeOutStart,d=r.lifetime*(1-this.config.fadeOutStart);r.alpha=d>0?C(1,0,Math.min(_/d,1)):0}(r.age>=r.lifetime||r.alpha<.01)&&(r.active=!1,r.alpha=0);const h=r.sprite;h.position.set(r.x,r.y),h.alpha=r.alpha,h.visible=r.active;const l=r.size/this._textureContentSize;h.scale.set(l)}i===0&&this._isStarted&&this._completeEffect()}destroy(t){this.particlesData=[],super.destroy(t)}}const Li=2;class Fi extends A{constructor(t,e,i){super(),this.startPositionX=t[ye],this.startPositionY=t[xe],this.endPositionX=t[we],this.endPositionY=t[Se],this.soundPositionX=t[ve],this.soundPositionY=t[be],this.hit=t[Te],this.endLevel=t[Me]||0,this.zIndex=b(Li,this.endLevel),this.anchorKey=null,this.anchorLocalX=0,this.anchorLocalY=0,Array.isArray(t[Tt])&&([this.anchorKey,this.anchorLocalX,this.anchorLocalY]=t[Tt]),this._assets=e,this._soundManager=i.soundManager,this._mapDynamics=i.mapDynamics||null,this._levelView=i.levelView||null,this._levelView&&(this.onRender=()=>{this.alpha=this._levelView.alphaFor(this.endLevel,this.endPositionX,this.endPositionY),this.tint=this._levelView.tintFor(this.endLevel)}),this.tracer=null,this.impact=null,this._isDestroyed=!1,this._visualsComplete=!1,this._soundComplete=!1,this._soundId=this._soundManager.registerSound("shot",{position:{x:this.soundPositionX,y:this.soundPositionY}},()=>{this._soundComplete=!0,this._soundId=null,this._tryDestroy()}),this._soundId||(this._soundComplete=!0)}run(){this._isDestroyed||(this.tracer=new Ei(this.startPositionX,this.startPositionY,this.endPositionX,this.endPositionY,this._onTracerComplete.bind(this)),this.addChild(this.tracer),this.tracer.run())}_onTracerComplete(){if(!this._isDestroyed)if(this.hit){let t=this.endPositionX,e=this.endPositionY;if(this.anchorKey!==null&&this._mapDynamics){const h=this._mapDynamics.toWorld(this.anchorKey,this.anchorLocalX,this.anchorLocalY);h&&(t=h.x,e=h.y)}const i=t-this.startPositionX,s=e-this.startPositionY,o=Math.hypot(i,s);let r=0,a=0;o>.001&&(r=-(i/o),a=-(s/o)),this.impact=new Pi(t,e,r,a,this._onImpactComplete.bind(this),this._assets),this.addChild(this.impact),this.impact.run()}else this._visualsComplete=!0,this._tryDestroy()}_onImpactComplete(){this._isDestroyed||(this._visualsComplete=!0,this._tryDestroy())}_tryDestroy(){this._visualsComplete&&this._soundComplete&&this.destroy()}destroy(){this._isDestroyed||(this._isDestroyed=!0,this._soundId&&(this._soundManager.unregisterSound(this._soundId),this._soundId=null),this.tracer&&(this.tracer.destroy(),this.tracer=null),this.impact&&(this.impact.destroy(),this.impact=null),this.parent&&this.parent.removeChild(this),super.destroy({children:!0}))}}const Ri={Map:ze,MapVolume:Xe,MapRadar:Ne,TankRadar:We,Tank:hi,Bomb:ci,ExplosionEffect:Ti,Smoke:ki,Tracks:Di,ShotEffect:Fi},zi=4;function ot(n){return Math.ceil(n*zi)}function it(n,t){const{radius:e,blur:i,color:s,quality:o=40}=n,r=new k,a=(e+ot(i))*2,h=a/2;r.circle(h,h,e),r.fill(s);const l=new Vt({strength:i,quality:o});l.padding=ot(i),r.filters=[l];const _=t.generateTexture({target:r,frame:new D(0,0,a,a)});return r.destroy(!0),{texture:_,contentSize:e*2}}function Vi(n,t){const{baseRadius:e,irregularity:i=0,blur:s=0,numPoints:o=20,colorFill:r,colorRim:a=r,rimWidth:h=0,variants:l=1}=n,_=Math.max(1,Math.floor(l)||1),d=(e+i+h)*2,g=d+ot(s)*2,p=g/2,m=[];for(let f=0;f<_;f+=1){const w=new k,y=[];for(let S=0;S<o;S+=1){const u=S/o*Math.PI*2,P=e+v(-i,i);y.push(p+P*Math.cos(u),p+P*Math.sin(u))}w.poly(y).fill(r).stroke({width:h,color:a,alignment:1});const x=new Vt({strength:s,quality:10});x.padding=ot(s),w.filters=[x],m.push(t.generateTexture({target:w,frame:new D(0,0,g,g)})),w.destroy(!0)}return{textures:m,contentSize:d}}function Oi(n,t){const{colors:e}=n,i={},s=10,o=s*4,r=s*3,a=15658734,h=_=>{const d=new k,g=new k,p=o,m=r;d.rect(-p/2,-m/2,p,m).fill(5592405).rect(-p/2+1,-m/2+1,p-2,m-2).fill(10066329).rect(-p/2+2,-m/2+2,p-4,m-4).fill(13421772).rect(-p/2+3,-m/2+3,p-6,m-6).fill(a),g.moveTo(1.33*s,-.42*s).lineTo(.42*s,-1*s).lineTo(-.42*s,-1*s).lineTo(-1.33*s,-.42*s).lineTo(-1.33*s,.42*s).lineTo(-.42*s,1*s).lineTo(.42*s,1*s).lineTo(1.33*s,.42*s).closePath().fill(_).stroke({width:.17*s,color:11184810}).moveTo(2.33*s,-.25*s).lineTo(.25*s,-.25*s).lineTo(.25*s,.25*s).lineTo(2.33*s,.25*s).closePath().stroke({width:.17*s,color:11184810}).fill(_);const f=d.getBounds(),w=t.generateTexture({target:d,frame:new D(f.x,f.y,f.width,f.height)}),y=g.getBounds(),x=t.generateTexture({target:g,frame:new D(y.x,y.y,y.width,y.height)}),S={x:-y.x/y.width,y:-y.y/y.height};return d.destroy(!0),g.destroy(!0),{body:w,gun:x,gunAnchor:S}},l=()=>{const _=new A,d=new k,g=new k;_.addChild(d,g);const p=3815994,m=2434341,f=3158064,w=1579032,y=5263440,x=o,S=r,u=s;d.moveTo(-x/2-u*.1,-S/2+u*.2).lineTo(x/2+u*.2,-S/2-u*.1).lineTo(x/2-u*.1,S/2+u*.3).lineTo(-x/2+u*.3,S/2-u*.2).closePath().fill(p).stroke({width:u*.2,color:y,alignment:.5}),d.moveTo(-x/2+u*.4,-S/2+u*.5).lineTo(x/2-u*.3,-S/2+u*.2).lineTo(x/2-u*.4,S/2-u*.1).lineTo(-x/2+u*.2,S/2-u*.4).closePath().fill(m),d.circle(x*.15,S*.1,u*1.2).fill(w),d.circle(-x*.3,-S*.25,u*.5).fill(w),g.position.set(u*.3,-u*.2);const P=[u*1.1,-u*.7,u*.2,-u*1,-u*.6,-u*.9,-u*1.3,-u*.2,-u*1.1,u*.6,-u*.2,u*1,u*.7,u*.8,u*1.3,u*.1];g.poly(P).fill(f).stroke({width:u*.15,color:y,alignment:0});const Z=[u*.8,-u*.25,u*1.5,-u*.4,u*1.4,u*.15,u*.7,u*.05];g.poly(Z).fill(f).stroke({width:u*.1,color:y,alignment:0}),g.circle(u*.1,-u*.2,u*.4).fill(w);const R=_.getBounds(),$=t.generateTexture({target:_,frame:new D(R.x,R.y,R.width,R.height)});return _.destroy({children:!0}),$};return i.liveTeamId1=h(e.teamId1),i.liveTeamId2=h(e.teamId2),i.destroyed=l(),i}function Xi(n,t){const{radius:e,borderWidth:i,crossSize:s,crossThickness:o,colors:r}=n,a={},h=(e+i)*2,l=h/2,_=15658734,d=3355443,g=m=>{const f=new k;f.circle(l,l,e).fill(_),f.circle(l,l,e-i).fill(m);const w=t.generateTexture({target:f,frame:new D(0,0,h,h)});return f.destroy(!0),w},p=()=>{const m=new k,f=s/2;m.moveTo(l-f,l-f).lineTo(l+f,l+f).moveTo(l-f,l+f).lineTo(l+f,l-f).stroke({width:o,color:d});const w=t.generateTexture({target:m,frame:new D(0,0,h,h)});return m.destroy(!0),w};return a.liveTeamId1=g(r.teamId1),a.liveTeamId2=g(r.teamId2),a.destroyed=p(),a}function Yi(n,t){const{colorOuter:e,colorInner:i}=n,s=new k,o=20,r=1;s.rect(0,0,o,o).fill(e),s.rect(r,r,o-r*2,o-r*2).fill(i);const a=t.generateTexture({target:s,frame:new D(0,0,o,o)});return s.destroy(!0),a}function Bi(n,t){const{width:e,length:i,color:s}=n,o=new k;o.rect(0,0,i,e).fill(s);const r=t.generateTexture({target:o,frame:new D(0,0,i,e)});return o.destroy(!0),r}function Ni(n,t){const{radius:e,fontSize:i,borderWidth:s,borderColor:o,textColor:r}=n,a=(e+s)*2,h=a/2;return dt.map((l,_)=>{const d=new A,g=new k;g.circle(h,h,e).fill(l).stroke({width:s,color:o});const p=new Rt({text:`${_}`,style:{fontFamily:"Arial",fontSize:i,fill:r}});p.anchor.set(.5),p.x=h,p.y=h,d.addChild(g,p);const m=t.generateTexture({target:d,frame:new D(0,0,a,a)});return d.destroy({children:!0}),m})}const Hi={explosionTexture:it,smokeTexture:it,impactParticleTexture:it,tankShadowTexture:it,funnelTexture:Vi,tankTexture:Oi,tankRadarTexture:Xi,bombTexture:Yi,trackMarkTexture:Bi,levelBadgeTexture:Ni},Ui=n=>(n??"").split(/[?#]/)[0].endsWith(".js"),Wi=n=>import(n);function Gi(n=Ve){const t={level:0,x:0,y:0,z:0,layered:!1};return{set(e,i,s,o=0){t.level=e,t.x=i,t.y=s,t.z=o},markLayered(){t.layered=!0},alphaFor(e,i,s){return de({viewLevel:t.level,viewX:t.x,viewY:t.y,level:e,x:i,y:s,cfg:n})},tintFor(e){return pe(t.level,e,n)},get cfg(){return n},get mode(){return n.mode},get layered(){return t.layered},get level(){return t.level},get x(){return t.x},get y(){return t.y},get z(){return t.z}}}const qi={id:"tanks",engineApi:Qt,requires:["map.layers","map.levelsN"],async createClientCore(n,{wasmUrl:t}){if(Ui(t)){const i=await Wi(t);return{core:new i.ClientCore(n),memory:null}}const e=await ae({module_or_path:t});return{core:new ut(n),memory:e.memory}},parts:Ri,bakers:Hi,styles:he,serviceNames:["levelView","mapDynamics"],hooks:{services(n){return{levelView:Gi(),mapDynamics:{toWorld(e,i,s){const o=n.map_dynamics_to_world(e,i,s);return o.length===0?null:{x:o[0],y:o[1]}}}}},onAuth(n,t){n.set_model(t.model)},onPanel(n,t){n.sync_panel(JSON.stringify(t))},onLocalAction(n,t,e,i){return t!=="down"?null:e==="fire"?n.try_fire(i)||null:((e==="nextWeapon"||e==="prevWeapon")&&n.cycle_weapon(e==="prevWeapon"),null)}}};export{qi as default};
|
package/dist/manifest.json
CHANGED
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
"map.layers",
|
|
6
6
|
"map.levelsN"
|
|
7
7
|
],
|
|
8
|
-
"version": "
|
|
8
|
+
"version": "ebdbe9ac742f0d93",
|
|
9
9
|
"title": "Tanks",
|
|
10
10
|
"entries": {
|
|
11
|
-
"client": "/games/tanks/client-
|
|
11
|
+
"client": "/games/tanks/client-BS_Gxxiz.js",
|
|
12
12
|
"host": "/games/tanks/host-BNJE-lq0.js",
|
|
13
13
|
"wasm": "/games/tanks/assets/vimp_tanks_core_bg-DJG6soEC.wasm",
|
|
14
14
|
"wasmNode": "./core-node/vimp_tanks_core.js"
|
|
15
15
|
},
|
|
16
16
|
"assetsBase": "/games/tanks/",
|
|
17
17
|
"maps": {
|
|
18
|
-
"version": "
|
|
18
|
+
"version": "4b118cf643e88d83",
|
|
19
19
|
"list": [
|
|
20
20
|
"canopy",
|
|
21
21
|
"garden",
|
package/dist/maps/garden.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"setId":"c1","spriteSheet":{"img":"tiles3.png","frames":[[96,0,32,32],[32,32,32,32],[64,32,32,32],[0,96,32,32]]},"layers":{"1":[0,1,2],"4":[3]},"step":32,"physicsStatic":[2],"physicsDynamic":[{"density":100,"layer":3,"position":[960,64],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,96],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,128],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,160],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,192],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,224],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,256],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,288],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,320],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,352],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[64,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[96,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[128,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[160,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[192,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[224,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[256,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[288,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[320,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[352,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,704],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,736],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,768],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,800],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,832],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,864],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,896],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,928],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[704,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[736,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[768,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[800,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[832,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[864,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[896,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[928,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3456],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3488],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3520],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3552],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3584],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3616],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3648],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3680],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3712],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3744],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3456,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3488,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3520,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3552,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3584,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3616,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3648,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3680,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3712,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3744,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,2880],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,2912],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,2944],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,2976],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3008],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3040],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3072],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3104],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2880,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2912,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2944,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2976,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3008,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3040,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3072,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3104,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14}],"respawns":{"team1":[[320,320,45],[320,480,45],[320,640,45],[480,320,45],[480,480,45],[480,640,45],[640,320,45],[640,480,45],[640,640,45],[800,400,45]],"team2":[[3520,3520,225],[3520,3360,225],[3520,3200,225],[3360,3520,225],[3360,3360,225],[3360,3200,225],[3200,3520,225],[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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2],[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2]]}
|
|
1
|
+
{"setId":"c1","spriteSheet":{"img":"tiles3.png","frames":[[96,0,32,32],[32,32,32,32],[64,32,32,32],[0,96,32,32]]},"layers":{"1":[0,1,2],"4":[3]},"step":32,"physicsStatic":[2],"physicsDynamic":[{"density":100,"layer":3,"position":[960,64],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,96],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,128],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,160],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,192],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,224],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,256],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,288],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,320],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,352],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[64,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[96,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[128,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[160,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[192,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[224,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[256,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[288,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[320,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[352,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,704],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,736],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,768],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,800],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,832],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,864],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,896],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,928],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[704,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[736,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[768,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[800,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[832,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[864,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[896,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[928,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[960,960],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3456],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3488],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3520],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3552],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3584],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3616],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3648],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3680],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3712],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3744],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3456,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3488,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3520,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3552,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3584,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3616,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3648,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3680,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3712,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3744,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,2880],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,2912],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,2944],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,2976],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3008],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3040],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3072],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,3104],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2848,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2880,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2912,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2944,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[2976,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3008,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3040,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3072,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14},{"density":100,"layer":3,"position":[3104,2848],"angle":0,"img":"b1.png","width":32,"height":32,"linearDamping":5,"angularDamping":14}],"respawns":{"team1":[[320,320,45],[320,480,45],[320,640,45],[480,320,45],[480,480,45],[480,640,45],[640,320,45],[640,480,45],[640,640,45],[800,400,45]],"team2":[[3520,3520,225],[3520,3360,225],[3520,3200,225],[3360,3520,225],[3360,3360,225],[3360,3200,225],[3200,3520,225],[3200,3360,225],[3200,3200,225],[3040,3440,225]]},"map":[[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2],[2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2],[2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2],[2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1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,1,1,1,1,1,1,1,1,1,1,1,1,1,2],[2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2],[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2]]}
|
package/package.json
CHANGED
package/dist/client-xM9lwddH.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import{UniformGroup as Ut,Filter as Wt,GpuProgram as Gt,GlProgram as Zt,defaultFilterVert as $t,Spritesheet as qt,Container as A,Sprite as M,Rectangle as D,Assets as q,Ticker as L,MeshGeometry as Kt,Mesh as jt,Graphics as k,Text as Rt,Particle as Jt,ParticleContainer as zt,BlurFilter as Vt}from"pixi.js";const Qt=4;class ut{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),t}free(){const t=this.__destroy_into_raw();c.__wbg_clientcore_free(t,0)}abi_describe(){let t,e;try{const i=c.clientcore_abi_describe(this.__wbg_ptr);return t=i[0],e=i[1],V(i[0],i[1])}finally{c.__wbindgen_free(t,e,1)}}apply_aim(t,e,i,s){c.clientcore_apply_aim(this.__wbg_ptr,t,e,i,s)}apply_input(t,e,i){const s=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),o=I,r=z(e,c.__wbindgen_malloc,c.__wbindgen_realloc),a=I;c.clientcore_apply_input(this.__wbg_ptr,s,o,r,a,i)}cycle_weapon(t){c.clientcore_cycle_weapon(this.__wbg_ptr,t)}debug_json(){let t,e;try{const i=c.clientcore_debug_json(this.__wbg_ptr);return t=i[0],e=i[1],V(i[0],i[1])}finally{c.__wbindgen_free(t,e,1)}}decode_frame(t){let e,i;try{const s=at(t,c.__wbindgen_malloc),o=I,r=c.clientcore_decode_frame(this.__wbg_ptr,s,o);return e=r[0],i=r[1],V(r[0],r[1])}finally{c.__wbindgen_free(e,i,1)}}dispatch(t,e){const i=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),s=I,o=at(e,c.__wbindgen_malloc),r=I,a=c.clientcore_dispatch(this.__wbg_ptr,i,s,o,r);var h=ee(a[0],a[1]).slice();return c.__wbindgen_free(a[0],a[1]*1,1),h}hot_ptr(){return c.clientcore_hot_ptr(this.__wbg_ptr)>>>0}hot_values(){const t=c.clientcore_hot_values(this.__wbg_ptr);var e=yt(t[0],t[1]).slice();return c.__wbindgen_free(t[0],t[1]*4,4),e}map_dynamics_to_world(t,e,i){const s=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),o=I,r=c.clientcore_map_dynamics_to_world(this.__wbg_ptr,s,o,e,i);var a=yt(r[0],r[1]).slice();return c.__wbindgen_free(r[0],r[1]*4,4),a}my_game_id(){return c.clientcore_my_game_id(this.__wbg_ptr)}constructor(t){const e=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),i=I,s=c.clientcore_new(e,i);if(s[2])throw xt(s[1]);return this.__wbg_ptr=s[0],gt.register(this,this.__wbg_ptr,this),this}offset(){return c.clientcore_offset(this.__wbg_ptr)}push_frame(t,e){const i=at(t,c.__wbindgen_malloc),s=I;return c.clientcore_push_frame(this.__wbg_ptr,i,s,e)!==0}reset(){c.clientcore_reset(this.__wbg_ptr)}resync(){c.clientcore_resync(this.__wbg_ptr)}sample(t){return c.clientcore_sample(this.__wbg_ptr,t)>>>0}set_active(t){c.clientcore_set_active(this.__wbg_ptr,t)}set_map(t){const e=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),i=I,s=c.clientcore_set_map(this.__wbg_ptr,e,i);if(s[1])throw xt(s[0])}set_model(t){const e=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),i=I;c.clientcore_set_model(this.__wbg_ptr,e,i)}sync_panel(t){const e=z(t,c.__wbindgen_malloc,c.__wbindgen_realloc),i=I;c.clientcore_sync_panel(this.__wbg_ptr,e,i)}take_divergence(){let t,e;try{const i=c.clientcore_take_divergence(this.__wbg_ptr);return t=i[0],e=i[1],V(i[0],i[1])}finally{c.__wbindgen_free(t,e,1)}}take_frames(){let t,e;try{const i=c.clientcore_take_frames(this.__wbg_ptr);return t=i[0],e=i[1],V(i[0],i[1])}finally{c.__wbindgen_free(t,e,1)}}try_fire(t){const e=c.clientcore_try_fire(this.__wbg_ptr,t);let i;return e[0]!==0&&(i=V(e[0],e[1]).slice(),c.__wbindgen_free(e[0],e[1]*1,1)),i}}Symbol.dispose&&(ut.prototype[Symbol.dispose]=ut.prototype.free);function te(){return{__proto__:null,"./vimp_tanks_core_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(t,e){return Error(V(t,e))},__wbg___wbindgen_throw_344f42d3211c4765:function(t,e){throw new Error(V(t,e))},__wbindgen_init_externref_table:function(){const t=c.__wbindgen_externrefs,e=t.grow(4);t.set(0,void 0),t.set(e+0,void 0),t.set(e+1,null),t.set(e+2,!0),t.set(e+3,!1)}}}}const gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>c.__wbg_clientcore_free(n,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>c.__wbg_gamecore_free(n,1));function yt(n,t){return n=n>>>0,ie().subarray(n/4,n/4+t)}function ee(n,t){return n=n>>>0,U().subarray(n/1,n/1+t)}let K=null;function ie(){return(K===null||K.byteLength===0)&&(K=new Float32Array(c.memory.buffer)),K}function V(n,t){return ne(n>>>0,t)}let j=null;function U(){return(j===null||j.byteLength===0)&&(j=new Uint8Array(c.memory.buffer)),j}function at(n,t){const e=t(n.length*1,1)>>>0;return U().set(n,e/1),I=n.length,e}function z(n,t,e){if(e===void 0){const a=J.encode(n),h=t(a.length,1)>>>0;return U().subarray(h,h+a.length).set(a),I=a.length,h}let i=n.length,s=t(i,1)>>>0;const o=U();let r=0;for(;r<i;r++){const a=n.charCodeAt(r);if(a>127)break;o[s+r]=a}if(r!==i){r!==0&&(n=n.slice(r)),s=e(s,i,i=r+n.length*3,1)>>>0;const a=U().subarray(s+r,s+i),h=J.encodeInto(n,a);r+=h.written,s=e(s,i,r,1)>>>0}return I=r,s}function xt(n){const t=c.__wbindgen_externrefs.get(n);return c.__externref_table_dealloc(n),t}let st=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});st.decode();const se=2146435072;let ht=0;function ne(n,t){return ht+=t,ht>=se&&(st=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),st.decode(),ht=t),st.decode(U().subarray(n,n+t))}const J=new TextEncoder;"encodeInto"in J||(J.encodeInto=function(n,t){const e=J.encode(n);return t.set(e),{read:n.length,written:e.length}});let I=0,c;function re(n,t){return c=n.exports,K=null,j=null,c.__wbindgen_start(),c}async function oe(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(s){if(n.ok&&e(n.type)&&n.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",s);else throw s}const i=await n.arrayBuffer();return await WebAssembly.instantiate(i,t)}else{const i=await WebAssembly.instantiate(n,t);return i instanceof WebAssembly.Instance?{instance:i,module:n}:i}function e(i){switch(i){case"basic":case"cors":case"default":return!0}return!1}}async function ae(n){if(c!==void 0)return c;n!==void 0&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),n===void 0&&(n=new URL("/assets/vimp_tanks_core_bg-DJG6soEC.wasm",import.meta.url));const t=te();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:e,module:i}=await oe(await n,t);return re(e)}const he='@charset "UTF-8";#panel table td#panel-bullet:before{content:"bullet: "}#panel table td#panel-bomb:before{content:"bomb: "}#panel table td#panel-time:before{content:"time: "}#vimp{background:#222;position:absolute;inset:0;margin:auto;z-index:1}#radar{position:absolute;right:1%;top:35px;z-index:2;border-radius:50%;background-color:#00be5acc;box-shadow:inset 0 0 47px #ee6,0 0 0 3px #054}#team1{color:#f56}#team2{color:#7ed}#spectators{color:#fe5}#team1 tHead tr,#team2 tHead tr,#spectators tHead tr{border-bottom:1px solid #888;text-transform:capitalize;font-weight:700}#team1 tBody tr,#team2 tBody tr{border-bottom:1px solid #444}#team1 tHead td:first-child:before{content:"team1 ("}#team1 tHead td:first-child:after{content:")"}#team2 tHead td:first-child:before{content:"team2 ("}#team2 tHead td:first-child:after{content:")"}#spectators tHead td:first-child:before{content:"spectators"}#spectators tBody td:nth-child(1){padding:0 1%;line-height:1.4em}#spectators tBody td:nth-child(2),#spectators tBody td:nth-child(3),#spectators tBody td:nth-child(4),#spectators tBody td:nth-child(5){display:none}',C=(n,t,e)=>n+(t-n)*e,Q=(n,t,e)=>Math.min(e,Math.max(t,n)),le=n=>n*(Math.PI/180),ce=n=>{for(;n>Math.PI;)n-=Math.PI*2;for(;n<-Math.PI;)n+=Math.PI*2;return n},v=(n,t)=>Math.random()*(t-n)+n,_e=100,b=(n,t)=>n+_e*(t||0),Ot=n=>n.radius*(1-n.softness),ue=(n,t,e)=>{if(t<=n)return e<t?0:1;const i=Math.min(1,Math.max(0,(e-n)/(t-n)));return i*i*(3-2*i)};function de({viewLevel:n,viewX:t,viewY:e,level:i,x:s,y:o,cfg:r}){if((i||0)<=(n||0))return 1;if(r.mode==="layer")return r.layerAlpha;const a=s-t,h=o-e,l=Math.sqrt(a*a+h*h),_=ue(Ot(r),r.radius,l);return r.minAlpha+(1-r.minAlpha)*_}function pe(n,t,e){return(t||0)<(n||0)?e.lowerTint:16777215}const fe=`
|
|
2
|
-
precision highp float;
|
|
3
|
-
|
|
4
|
-
in vec2 vTextureCoord;
|
|
5
|
-
|
|
6
|
-
out vec4 finalColor;
|
|
7
|
-
|
|
8
|
-
uniform sampler2D uTexture;
|
|
9
|
-
uniform vec4 uInputSize;
|
|
10
|
-
uniform vec4 uOutputFrame;
|
|
11
|
-
|
|
12
|
-
uniform vec2 uHoleCenter;
|
|
13
|
-
// x - внешний радиус, y - внутренний, z - alpha в центре дыры
|
|
14
|
-
uniform vec3 uHoleParams;
|
|
15
|
-
|
|
16
|
-
void main(void)
|
|
17
|
-
{
|
|
18
|
-
vec4 color = texture(uTexture, vTextureCoord);
|
|
19
|
-
vec2 pixel = uOutputFrame.xy + vTextureCoord * uInputSize.xy;
|
|
20
|
-
float d = distance(pixel, uHoleCenter);
|
|
21
|
-
float t = smoothstep(uHoleParams.y, uHoleParams.x, d);
|
|
22
|
-
|
|
23
|
-
finalColor = color * mix(uHoleParams.z, 1.0, t);
|
|
24
|
-
}
|
|
25
|
-
`,wt=`
|
|
26
|
-
struct GlobalFilterUniforms {
|
|
27
|
-
uInputSize:vec4<f32>,
|
|
28
|
-
uInputPixel:vec4<f32>,
|
|
29
|
-
uInputClamp:vec4<f32>,
|
|
30
|
-
uOutputFrame:vec4<f32>,
|
|
31
|
-
uGlobalFrame:vec4<f32>,
|
|
32
|
-
uOutputTexture:vec4<f32>,
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
struct HoleUniforms {
|
|
36
|
-
uHoleCenter:vec2<f32>,
|
|
37
|
-
uHoleParams:vec3<f32>,
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;
|
|
41
|
-
@group(0) @binding(1) var uTexture: texture_2d<f32>;
|
|
42
|
-
@group(0) @binding(2) var uSampler : sampler;
|
|
43
|
-
|
|
44
|
-
@group(1) @binding(0) var<uniform> holeUniforms : HoleUniforms;
|
|
45
|
-
|
|
46
|
-
struct VSOutput {
|
|
47
|
-
@builtin(position) position: vec4<f32>,
|
|
48
|
-
@location(0) uv : vec2<f32>
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
fn filterVertexPosition(aPosition:vec2<f32>) -> vec4<f32>
|
|
52
|
-
{
|
|
53
|
-
var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy;
|
|
54
|
-
|
|
55
|
-
position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0;
|
|
56
|
-
position.y = position.y * (2.0*gfu.uOutputTexture.z / gfu.uOutputTexture.y)
|
|
57
|
-
- gfu.uOutputTexture.z;
|
|
58
|
-
|
|
59
|
-
return vec4(position, 0.0, 1.0);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
fn filterTextureCoord( aPosition:vec2<f32> ) -> vec2<f32>
|
|
63
|
-
{
|
|
64
|
-
return aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@vertex
|
|
68
|
-
fn mainVertex(@location(0) aPosition : vec2<f32>) -> VSOutput {
|
|
69
|
-
return VSOutput(
|
|
70
|
-
filterVertexPosition(aPosition),
|
|
71
|
-
filterTextureCoord(aPosition)
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@fragment
|
|
76
|
-
fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
|
|
77
|
-
var color = textureSample(uTexture, uSampler, uv);
|
|
78
|
-
var pixel = gfu.uOutputFrame.xy + uv * gfu.uInputSize.xy;
|
|
79
|
-
var d = distance(pixel, holeUniforms.uHoleCenter);
|
|
80
|
-
var t = smoothstep(holeUniforms.uHoleParams.y, holeUniforms.uHoleParams.x, d);
|
|
81
|
-
|
|
82
|
-
return color * mix(holeUniforms.uHoleParams.z, 1.0, t);
|
|
83
|
-
}
|
|
84
|
-
`;function me(n){const t=new Ut({uHoleCenter:{value:new Float32Array([0,0]),type:"vec2<f32>"},uHoleParams:{value:new Float32Array([n.radius,Ot(n),n.minAlpha]),type:"vec3<f32>"}});return new Wt({glProgram:Zt.from({vertex:$t,fragment:fe,name:"see-through-hole-filter"}),gpuProgram:Gt.from({vertex:{source:wt,entryPoint:"mainVertex"},fragment:{source:wt,entryPoint:"mainFragment"}}),resources:{holeUniforms:t}})}function ge(n,{centerX:t,centerY:e,radius:i,softness:s,minAlpha:o}){const r=n.resources.holeUniforms.uniforms;r.uHoleCenter[0]=t,r.uHoleCenter[1]=e,r.uHoleParams[0]=i,r.uHoleParams[1]=i*(1-s),r.uHoleParams[2]=o}async function Xt({baseTexture:n,spriteSheetData:t,map:e,tiles:i,step:s,renderer:o}){const r={};t.frames.forEach((p,m)=>{const[f,w,y,x]=p;r[`frame${m}`]={frame:{x:f,y:w,w:y,h:x}}});const a={frames:r,meta:{scale:"1"}},h=new qt(n,a);await h.parse();const l=e[0].length*s,_=e.length*s,d=new A;for(let p=0,m=e.length;p<m;p+=1)for(let f=0,w=e[p].length;f<w;f+=1){const y=e[p][f];if(i.includes(y)){const x=`frame${y}`,S=h.textures[x];if(S){const u=new M(S);u.x=f*s,u.y=p*s,d.addChild(u)}else console.warn(`Texture not found. Tile: ${y}, sprite: ${x}`)}}const g=o.generateTexture({target:d,frame:new D(0,0,l,_)});return d.destroy({children:!0}),g}const O=0,X=1,W=2,St=3,vt=4,bt=5,G=6,Y=7,ft=8,nt=9,rt=11,B=12,ye=0,xe=1,we=2,Se=3,ve=4,be=5,Te=6,Me=9,Tt=10,Mt=0,At=1,It=2,Ae=3,Ie=4,ke=6,Ce=0,De=1,Pe=2,Ee=3,kt=0,Ct=1,Le=2,Fe=4,Re=.01;let ze=class extends A{constructor(t,e,i){if(super(),this._baseTexturePromise=null,this._assetUrl=null,this._renderer=i.renderer,this._imageBase=null,this._levelView=i.levelView||null,this._level=0,this._targetAlpha=1,this._holeFilter=null,this._holeStrength=0,this._holeAttached=!1,this._worldX=0,this._worldY=0,this.scale=t.scale,this.sprite=null,this.mapSprite=null,typeof i.assetsBase!="string"){console.error("Map: сервис assetsBase недоступен — карта останется пустой. Объявите assetsBase в componentDependencies и запустите игру на vimp-engine >= 0.9.0");return}this._imageBase=`${i.assetsBase}img/`,t.type==="static"?(this._assetUrl=`${this._imageBase}${t.spriteSheet.img}`,this._baseTexturePromise=q.load(this._assetUrl),this._map=t.map,this._tiles=t.tiles,this._level=t.level||0,this._floor=t.floor||[],this._spriteSheetData=t.spriteSheet,this._step=t.step,this.zIndex=b(Number(t.layer)||1,this._level),this._level>=1&&(this._levelView?.markLayered(),this.onRender=()=>this._updateSeeThrough()),this.createStatic()):t.type==="dynamic"&&(this._assetUrl=`${this._imageBase}${t.img}`,this._baseTexturePromise=q.load(this._assetUrl),this._level=t.level||0,this._layer=Number(t.layer)||2,this.zIndex=b(this._layer,this._level),this._rotation=le(t.angle),this._width=t.width,this._height=t.height,this._x=t.position[0],this._y=t.position[1],this._worldX=this._x*this.scale.x,this._worldY=this._y*this.scale.y,this._levelView&&(this.onRender=()=>this._updateDynamicSeeThrough()),this.createDynamic())}async createDynamic(){try{const t=await this._baseTexturePromise;this.sprite=new M(t),this.sprite.x=this._x,this.sprite.y=this._y,this.sprite.width=this._width,this.sprite.height=this._height,this.sprite.rotation=this._rotation,this.addChild(this.sprite)}catch(t){console.error(`Failed to create dynamic map with asset ${this._assetUrl}:`,t)}}async createStatic(){try{const t=await Xt({baseTexture:await this._baseTexturePromise,spriteSheetData:this._spriteSheetData,map:this._map,tiles:this._tiles,step:this._step,renderer:this._renderer});this.mapSprite=new M(t),this.addChild(this.mapSprite)}catch(t){console.error(`Failed to create static map with asset ${this._assetUrl}:`,t)}}_updateSeeThrough(){if(!this._levelView||!this.mapSprite)return;const t=this._levelView.cfg,e=L.shared.deltaMS/1e3,i=Math.min(1,t.fadeRate*e);if(this._levelView.mode==="layer"){const o=this._levelView.level<this._level&&this._hasFloorAt(this._levelView.x,this._levelView.y);this._targetAlpha=o?t.layerAlpha:1,this.alpha+=(this._targetAlpha-this.alpha)*i;return}const s=this._levelView.level<this._level;this._holeStrength+=((s?1:0)-this._holeStrength)*i,this._updateHole(t)}_updateHole(t){const e=this.parent;if(this._holeStrength<Re||!e){this._holeAttached&&(this.filters=[],this._holeAttached=!1);return}this._holeFilter||(this._holeFilter=me(t)),this._holeAttached||(this.filters=[this._holeFilter],this._holeAttached=!0),ge(this._holeFilter,{centerX:this._levelView.x*e.scale.x+e.position.x,centerY:this._levelView.y*e.scale.y+e.position.y,radius:t.radius*e.scale.x,softness:t.softness,minAlpha:1+(t.minAlpha-1)*this._holeStrength})}_updateDynamicSeeThrough(){!this._levelView||!this.sprite||(this.alpha=this._levelView.alphaFor(this._level,this._worldX,this._worldY),this.tint=this._levelView.tintFor(this._level))}_hasFloorAt(t,e){const i=Math.floor(t/this.scale.x/this._step),s=Math.floor(e/this.scale.y/this._step),o=this._map?.[s]?.[i];return o!==void 0&&this._floor.includes(o)}update(t){this.sprite&&(this.sprite.x=t[kt]/this.scale.x,this.sprite.y=t[Ct]/this.scale.y,this.sprite.rotation=t[Le]),this._worldX=t[kt],this._worldY=t[Ct];const e=t[Fe]||0;e!==this._level&&(this._level=e,this.zIndex=b(this._layer,e))}destroy(t){this._holeFilter&&(this.filters=[],this._holeAttached=!1,this._holeFilter.destroy(),this._holeFilter=null),this.mapSprite&&(this.mapSprite.destroy({children:!0,texture:!0,textureSource:!0}),this.mapSprite=null),super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this._assetUrl&&q.cache.has(this._assetUrl)&&q.unload(this._assetUrl).catch(e=>console.warn(`Failed to unload asset ${this._assetUrl} (was in cache):`,e)),this.sprite=null,this._baseTexturePromise=null,this._assetUrl=null,this._map=null,this._tiles=null,this._floor=null,this._spriteSheetData=null,this._renderer=null,this._levelView=null}};function Yt(n,t){const e=t?.screen;return!n||!e||!n.scale.x||!n.scale.y?null:{x:(e.width/2-n.position.x)/n.scale.x,y:(e.height/2-n.position.y)/n.scale.y,scaleX:n.scale.x,scaleY:n.scale.y}}const Ve={mode:"hole",radius:260,softness:.45,minAlpha:.12,layerAlpha:.4,fadeRate:6,lowerTint:11579584},Oe={enabled:!0,slices:4,shear:.22,sideTint:10133674},Dt=.01;class Xe extends A{constructor(t,e,i){if(super(),this._renderer=i.renderer,this._cfg=Oe,this._volume=Number(t.volume)||0,this._slices=[],this._basePositions=null,this._texture=null,this._camX=null,this._camY=null,!(t.type!=="static"||this._volume<=0||!this._cfg.enabled||this._cfg.slices<1)){if(typeof i.assetsBase!="string"){console.error("MapVolume: сервис assetsBase недоступен — объём не построен.");return}this.scale=t.scale,this._map=t.map,this._tiles=t.tiles,this._step=t.step,this._spriteSheetData=t.spriteSheet,this._level=t.level||0,this.zIndex=b(Number(t.layer)||1,this._level)+.5,this._assetUrl=`${i.assetsBase}img/${t.spriteSheet.img}`,this._baseTexturePromise=q.load(this._assetUrl),this.onRender=()=>this._updateSlices(),this.createSlices()}}async createSlices(){try{this._texture=await Xt({baseTexture:await this._baseTexturePromise,spriteSheetData:this._spriteSheetData,map:this._map,tiles:this._tiles,step:this._step,renderer:this._renderer});const t=this._map[0].length,e=this._map.length,i=this._step,s=[],o=[],r=[];for(let l=0;l<=e;l+=1)for(let _=0;_<=t;_+=1)s.push(_*i,l*i),o.push(_/t,l/e);for(let l=0;l<e;l+=1)for(let _=0;_<t;_+=1){const d=l*(t+1)+_,g=d+1,p=d+t+1,m=p+1;r.push(d,g,p,g,m,p)}this._basePositions=Float32Array.from(s);const a=Float32Array.from(o),h=Uint32Array.from(r);for(let l=1;l<=this._cfg.slices;l+=1){const _=new Kt({positions:Float32Array.from(s),uvs:a,indices:h}),d=new jt({geometry:_,texture:this._texture});d.tint=l===this._cfg.slices?16777215:this._cfg.sideTint,this._slices.push({mesh:d,factor:l/this._cfg.slices}),this.addChild(d)}this._camX=null,this._updateSlices()}catch(t){console.error(`Failed to create map volume with asset ${this._assetUrl}:`,t)}}_updateSlices(){if(!this._basePositions||!this.parent)return;const t=Yt(this.parent,this._renderer);if(!t)return;const e=t.x/this.scale.x,i=t.y/this.scale.y;if(this._camX!==null&&Math.abs(e-this._camX)<Dt&&Math.abs(i-this._camY)<Dt)return;this._camX=e,this._camY=i;const s=this._basePositions;for(let o=0;o<this._slices.length;o+=1){const{mesh:r,factor:a}=this._slices[o],h=this._volume*this._cfg.shear*a,l=r.geometry.positions;for(let _=0;_<s.length;_+=2)l[_]=s[_]+(s[_]-e)*h,l[_+1]=s[_+1]+(s[_+1]-i)*h;r.geometry.getBuffer("aPosition").update()}}update(){}destroy(t){this._texture&&(this._texture.destroy(!0),this._texture=null),super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this._slices=[],this._basePositions=null,this._map=null,this._tiles=null,this._spriteSheetData=null,this._renderer=null,this._baseTexturePromise=null}}const dt=[16777215,9418751,10477760,15783820,14721232,10541296,15773836,12632280],Bt=n=>dt[n]??dt[0],Ye=2,Be=.35;class Ne extends A{constructor(t,e,i={}){super(),this._map=t.map,this._level=t.level||0,this._solid=t.solid||t.physicsStatic||[],this._tiles=t.tiles||[],this._step=t.step,this.zIndex=b(Ye,this._level),this.scale=t.scale,this._draws=this._tiles.some(s=>this._solid.includes(s)),this.radarGraphics=new k,this.addChild(this.radarGraphics),this._levelView=i.levelView||null,this._levelView&&this._draws&&(this.onRender=()=>{this.alpha=this._levelView.level===this._level?1:Be}),this.createRadarMap()}createRadarMap(){if(!this._draws)return;const t=this.radarGraphics;if(t.clear(),Array.isArray(this._map))for(let e=0;e<this._map.length;e+=1){const i=this._map[e];if(Array.isArray(i))for(let s=0;s<i.length;s+=1){const o=i[s];this._solid.includes(o)&&t.rect(s*this._step,e*this._step,this._step/2,this._step/2)}}t.fill(Bt(this._level))}update(){}destroy(t){super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this.radarGraphics=null,this._map=null,this._solid=null,this._tiles=null}}const Pt=2,He=9,Ue=1.5;class We extends A{constructor(t,e){super(),this._level=t[B]||0,this.zIndex=b(Pt,this._level),this._textures=e.tankRadarTexture,this.body=new M,this.body.anchor.set(.5),this.levelRing=new k,this.addChild(this.levelRing,this.body),this._drawLevelRing(),this.x=t[O]||0,this.y=t[X]||0,this._condition=t[Y],this._teamId=t[nt],this.scale.set(5,5),this.create()}_drawLevelRing(){this.levelRing.clear(),this._level>0&&this.levelRing.circle(0,0,He).stroke({width:Ue,color:Bt(this._level)})}create(){this._condition===0?this.body.texture=this._textures.destroyed:this._teamId===1?this.body.texture=this._textures.liveTeamId1:this._teamId===2&&(this.body.texture=this._textures.liveTeamId2)}update(t){this.x=t[O],this.y=t[X];const e=t[B]||0;e!==this._level&&(this._level=e,this.zIndex=b(Pt,e),this._drawLevelRing());const i=t[Y],s=t[nt];let o=!1;i!==void 0&&i!==this._condition&&(this._condition=i,o=!0),s!==void 0&&s!==this._teamId&&(this._teamId=s,o=!0),o&&this.create()}destroy(t){super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this.body=null,this.levelRing=null,this._textures=null}}const Ge=.2,Ze=.01;function Nt(){let n=0,t=!1,e=0,i=0,s=0;return{update(o,r,a){if(!t)return t=!0,e=o,i=r,s=a,n;const h=o-e,l=r-i,_=Math.sqrt(h*h+l*l),d=_>Ze?(a-s)/_:0;return e=o,i=r,s=a,n+=(d-n)*Ge,n},get value(){return n}}}const lt=3,$e=.06,qe=.07,Ke=.1,je=.4,Je=.12,Qe=1.3,ti=.35,ei=1.6,ii=1,Et=1.1,si=1.18,ni=.9,ri=1;function oi(n){const t=Q(n,0,1),e=Math.max(0,n-1),i=C(ii,Et,t)+(si-Et)*e,s=C(ni,ri,t);return{rate:i,volumeFactor:s}}class ai extends A{constructor(t,e,i,s){super(),this.body=new M,this.gun=new M,this.wreck=new M,this.body.anchor.set(.5),this.wreck.anchor.set(.5),this.addChild(this.body,this.gun,this.wreck),this._textures=e.tankTexture,this._shadowAsset=e.tankShadowTexture||null,this._badgeTextures=e.levelBadgeTexture||null,this._renderer=i.renderer||null,this._shadow=null,this._grade=Nt(),this.x=t[O]||0,this.y=t[X]||0,this.rotation=t[W]||0,this.gun.rotation=t[St]||0,this._engineLoad=t[G]||0,this._condition=t[Y],this._size=t[ft],this._teamId=t[nt],this._z=t[rt]||0,this._level=t[B]||0,this.zIndex=b(lt,this._level),this._isLocal=()=>i.localPlayer?.is(s?.id)===!0,this._levelView=i.levelView||null,this._badge=null,this._badgeTextures&&(this._badge=new M,this._badge.anchor.set(.5),this._badge.visible=!1,this.addChild(this._badge)),this.onRender=()=>this._updateView();const o=this._teamId===1?this._textures.liveTeamId1:this._textures.liveTeamId2,r=o?o.gunAnchor:null;r?this.gun.anchor.set(r.x,r.y):this.gun.anchor.set(.5);const a=10;this._scaleFactor=this._size/a,this.body.scale.set(this._scaleFactor),this.gun.scale.set(this._scaleFactor),this.wreck.scale.set(this._scaleFactor),this._badge&&(this._badge.y=this._size*ei),this._soundManager=i.soundManager,this._soundId=null;const h=this._soundManager.getSoundConfig("tankEngine");this._baseEngineVolume=h?.volume||0,this._hasEngineSound=!!h,this.create()}_initSounds(){this._soundId||this._condition===0||!this._hasEngineSound||(this._soundId=this._soundManager.registerSound("tankEngine",this._getSoundData()))}_getSoundData(){const{rate:t,volumeFactor:e}=oi(this._engineLoad);return{position:{x:this.x,y:this.y},rate:t,volume:this._baseEngineVolume*e}}create(){if(this._condition===0)this.body.visible=!1,this.gun.visible=!1,this.wreck.texture=this._textures.destroyed,this.wreck.visible=!0,this.gun.rotation=0,this.destroySounds();else{this.wreck.visible=!1;let t;this._teamId===1?t=this._textures.liveTeamId1:this._teamId===2&&(t=this._textures.liveTeamId2),this.body.texture=t.body,this.gun.texture=t.gun,this.body.visible=!0,this.gun.visible=!0,this._initSounds()}}update(t){this.x=t[O],this.y=t[X],this.rotation=t[W],this.gun.rotation=t[St],this._engineLoad=t[G];const e=t[B]||0;this._z=t[rt]||0,e!==this._level&&(this._level=e,this.zIndex=b(lt,e));const i=1+this._z*$e,s=this._grade.update(this.x,this.y,this._z),o=1-Q(Math.abs(s),0,1)*ti;this.body.scale.set(this._scaleFactor*i*o,this._scaleFactor*i),this.gun.scale.set(this._scaleFactor*i*o,this._scaleFactor*i),this._levelView&&this._isLocal()&&this._levelView.set(e,this.x,this.y,this._z),this._condition>0&&(this._soundId===null?this._initSounds():this._soundManager.updateSoundData(this._soundId,this._getSoundData()));const r=t[Y],a=t[nt];let h=!1;r!==void 0&&r!==this._condition&&(this._condition=r,h=!0),a!==void 0&&a!==this._teamId&&(this._teamId=a,h=!0),h&&this.create()}_updateView(){this._levelView&&(this.alpha=this._levelView.alphaFor(this._level,this.x,this.y),this.tint=this._levelView.tintFor(this._level)),this._updateShadow(),this._updateBadge()}_updateShadow(){if(!this._shadowAsset||!this.parent)return;if(!this._shadow){const{texture:o,contentSize:r}=this._shadowAsset;this._shadow=new M(o),this._shadow.anchor.set(.5),this._shadowScale=this._size*Qe/r,this.parent.addChild(this._shadow)}const t=this._shadow,e=this._condition!==0;if(t.visible=e,!e)return;const i=Yt(this.parent,this._renderer),s=qe*this._z;t.x=i?this.x+(this.x-i.x)*s:this.x,t.y=i?this.y+(this.y-i.y)*s:this.y,t.rotation=this.rotation,t.scale.set(this._shadowScale*(1+this._z*Ke)),t.alpha=Math.max(0,je-this._z*Je)*this.alpha,t.zIndex=b(lt-1,Math.floor(this._z))}_updateBadge(){if(!this._badge)return;const t=!!this._levelView?.layered&&this._isLocal();if(this._badge.visible=t,!t)return;const e=this._badgeTextures[this._level];e&&this._badge.texture!==e&&(this._badge.texture=e),this._badge.rotation=-this.rotation}destroySounds(){this._soundId&&(this._soundManager.unregisterSound(this._soundId),this._soundId=null)}destroy(t){this.destroySounds(),this._shadow&&(this._shadow.destroy({texture:!1,textureSource:!1}),this._shadow=null),super.destroy({children:!0,texture:!1,textureSource:!1,...t})}}const hi=2;class li extends A{constructor(t,e,i){super(),this._level=t[ke]||0,this.zIndex=b(hi,this._level),this._levelView=i.levelView||null,this._levelView&&(this.onRender=()=>{this.alpha=this._levelView.alphaFor(this._level,this.x,this.y),this.tint=this._levelView.tintFor(this._level)}),this.body=new M(e.bombTexture),this.body.anchor.set(.5),this.x=t[Mt],this.y=t[At],this.rotation=t[It],this._size=t[Ae],this._totalDurationMs=t[Ie],this._soundManager=i.soundManager,this._soundId=null;const s=e.bombTexture.width,o=this._size/s;this.body.scale.set(o);const r=64,a=this._size/1.2/r;this.text=new Rt({style:{fontFamily:"Arial",fontSize:r,fill:16777215,align:"center"}}),this.text.anchor.set(.5),this.text.scale.set(a),this.text.x=0,this.text.y=0,this._accumulatedTimeMs=0,this._secondsLeft="",this.addChild(this.body,this.text),this._updateTimerDisplay(this._totalDurationMs),this._tickListener=h=>this._updateTimer(h.deltaMS),L.shared.add(this._tickListener),this._soundId=this._soundManager.registerSound("bombHasBeenPlanted",{position:{x:this.x,y:this.y}})}_updateTimer(t){this._accumulatedTimeMs+=t;const e=Math.max(0,this._totalDurationMs-this._accumulatedTimeMs);this._updateTimerDisplay(e),e<=0&&(this._stopTimer(),this._updateTimerDisplay(0))}_updateTimerDisplay(t){const e=Math.round(t/1e3);this._secondsLeft!==e&&(this._secondsLeft=e,this.text.text=`${this._secondsLeft}`)}update(t){this.x=t[Mt],this.y=t[At],this.rotation=t[It],this._soundId&&(this._soundManager.updateSoundData(this._soundId,{position:{x:this.x,y:this.y}})||(this._soundId=null))}_stopTimer(){this._tickListener&&(L.shared.remove(this._tickListener),this._tickListener=null)}destroy(t){this._stopTimer(),this._soundId&&(this._soundManager.releaseSound(this._soundId),this._soundId=null),super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this.body=null,this.text=null}}class tt extends A{constructor(t){super(),this._tickListener=null,this._isStarted=!1,this.isComplete=!1,this.onComplete=t}run(){this.isComplete||this._isStarted||(this._isStarted=!0,this._tickListener=t=>this._update(t.deltaMS),L.shared.add(this._tickListener),this._onEffectStart(),this.isComplete||this._update(0))}_onEffectStart(){}_update(){}_completeEffect(){this.isComplete||(this.isComplete=!0,this._tickListener&&(L.shared.remove(this._tickListener),this._tickListener=null),typeof this.onComplete=="function"&&this.onComplete())}destroy(t){this.isComplete=!0,this._tickListener&&(L.shared.remove(this._tickListener),this._tickListener=null),this.parent&&this.parent.removeChild(this),super.destroy({texture:!1,textureSource:!1,...t,children:!0})}}class ci extends tt{constructor(t,e,i,s,o){super(s);const{texture:r,contentSize:a}=o.explosionTexture;this.x=t,this.y=e,this._radius=i,this._durationMs=1500,this._elapsedMs=0,this._baseScale=this._radius*2/a,this._mainBody=new M(r),this._mainBody.anchor.set(.5),this._mainBody.tint=11393254,this._mainBody.scale.set(this._baseScale),this._core=new M(r),this._core.anchor.set(.5),this._core.tint=13882323,this._core.scale.set(this._baseScale),this.addChild(this._mainBody,this._core)}_update(t){if(!this.isComplete)if(this._elapsedMs+=t,this._elapsedMs<=this._durationMs){const e=this._elapsedMs/this._durationMs;this._draw(e)}else this._completeEffect()}_draw(t){const e=s=>s*s;this._mainBody.alpha=.6*(1-e(t));const i=Math.min(1,t*1.5);this._core.alpha=.7-i,this._core.scale.set(this._baseScale*(1-i))}destroy(t){super.destroy(t)}}const ct=[],N={get(n){if(ct.length>0){const t=ct.pop();return t.texture=n,t.alpha=1,t.scaleX=1,t.scaleY=1,t.rotation=0,t.tint=16777215,t.anchorX=.5,t.anchorY=.5,t}return new Jt({texture:n,anchorX:.5,anchorY:.5})},release(n){n&&ct.push(n)}},pt=50,_i=400,ui=800;class di extends tt{constructor(t,e=pt){super();const i=e/pt;this._blastScale=i;const{texture:s,contentSize:o}=t.explosionTexture;this.explosionTexture=s,this._unitScale=1/o;const r=_i*i,a=ui*i;this._particleContainer=new zt({texture:this.explosionTexture,boundsArea:new D(-r/2,-a/2,r,a),dynamicProperties:{position:!0,vertex:!0,rotation:!0,color:!0}}),this.addChild(this._particleContainer),this._particles=[],this._isSpawning=!0,this._particleSpawnRateMs=50,this._particleMaxLifeMs=2e3,this._minStartSize=2.1*i,this._maxStartSize=5.2*i,this._minTargetSize=8.3*i,this._maxTargetSize=16.6*i,this._startAlpha=.1,this._initialOffsetX=15*i,this._initialOffsetY=15*i,this._lastSpawnTime=0;for(let h=0;h<30;h+=1)this._createParticle()}stopSpawning(){this._isSpawning=!1}_createParticle(){const t=N.get(this.explosionTexture),e=.2+Math.random()*.4,i=Math.floor(e*255);t.tint=i<<16|i<<8|i;const s=(this._minStartSize+Math.random()*(this._maxStartSize-this._minStartSize))*this._unitScale,o=.6+Math.random()*.8,r=.6+Math.random()*.8;t.scaleX=s*o,t.scaleY=s*r,t.alpha=this._startAlpha+Math.random()*.1,t.rotation=Math.random()*Math.PI*2,t.x=(Math.random()-.5)*this._initialOffsetX,t.y=(Math.random()-.5)*this._initialOffsetY;const a={view:t,life:0,maxLife:this._particleMaxLifeMs*(.7+Math.random()*.6),aspectRatioX:o,aspectRatioY:r,vx:(Math.random()-.5)*.2*this._blastScale,vy:(-.3-Math.random()*.4)*this._blastScale,swaySpeed:.002+Math.random()*.003,swayAmp:(.025+Math.random()*.05)*this._blastScale,swayOffset:Math.random()*100,rotationSpeed:(Math.random()-.5)*.05,targetScale:(this._minTargetSize+Math.random()*(this._maxTargetSize-this._minTargetSize))*this._unitScale,startScale:s};this._particleContainer.addParticle(t),this._particles.push(a)}_update(t){if(!this.isComplete){if(t=Math.min(t,100),this._isSpawning)for(this._lastSpawnTime+=t;this._lastSpawnTime>this._particleSpawnRateMs;)this._createParticle(),this._lastSpawnTime-=this._particleSpawnRateMs;for(let e=this._particles.length-1;e>=0;e-=1){const i=this._particles[e],s=i.view;if(i.life+=t,i.life>=i.maxLife)this._particleContainer.removeParticle(s),N.release(s),this._particles.splice(e,1);else{const o=i.life/i.maxLife;i.vy*=.98,i.vx*=.95;const r=Math.sin(i.life*i.swaySpeed+i.swayOffset)*i.swayAmp;s.x+=(i.vx+r)*(t/16),s.y+=i.vy*(t/16),s.rotation+=i.rotationSpeed*(t/16);const a=1-Math.pow(1-o,3),h=i.startScale+(i.targetScale-i.startScale)*a;if(s.scaleX=h*i.aspectRatioX,s.scaleY=h*i.aspectRatioY,o<.1)s.alpha=o/.1*this._startAlpha;else if(o>.4){const l=(o-.4)/.6;s.alpha=this._startAlpha*(1-l)}else s.alpha=this._startAlpha}}!this._isSpawning&&this._particles.length===0&&this._isStarted&&(this._completeEffect(),this.destroyed||this.destroy())}}destroy(t){for(let e=0;e<this._particles.length;e+=1)N.release(this._particles[e].view);this._particles=[],super.destroy(t)}}const pi=.168,fi=.225,Lt=.15,mi=2e4,gi=50,yi=4e3,xi=4e3;class wi extends tt{constructor(t,e,i,s,o){super(s),this._assets=o,this._radius=i,this.x=t,this.y=e,this._funnelDurationMs=mi,this._funnelFadeInDurationMs=gi,this._funnelFadeDurationMs=yi,this._elapsedMs=0,this._smokeDurationMs=xi,this._smokeSpawningStopped=!1,this._funnel=this._createFunnelSprite(),this._smoke=new di(this._assets,this._radius),this.addChild(this._funnel,this._smoke)}_createFunnelSprite(){const{textures:t,contentSize:e}=this._assets.funnelTexture,i=t[Math.floor(Math.random()*t.length)],s=new M(i);s.anchor.set(.5),s.alpha=0,s.rotation=Math.random()*Math.PI*2;const o=this._radius*pi*v(1-Lt,1+Lt);return s.scale.set(o/e),s}_onEffectStart(){super._onEffectStart(),this._smoke&&this._smoke.run()}_update(t){if(this.isComplete)return;this._elapsedMs+=t,!this._smokeSpawningStopped&&this._elapsedMs>=this._smokeDurationMs&&(this._smoke.stopSpawning(),this._smokeSpawningStopped=!0);const e=this._funnelDurationMs-this._elapsedMs,i=this._funnelFadeInDurationMs>0?this._elapsedMs/this._funnelFadeInDurationMs:1,s=e/this._funnelFadeDurationMs;this._funnel.alpha=fi*Q(Math.min(i,s),0,1),e<=0&&this._completeEffect()}destroy(t){this._smoke&&(this._smoke.destroy(),this._smoke=null),this._funnel=null,super.destroy(t)}}const Si=4,vi=2;class bi extends A{constructor(t,e,i){super(),this.originX=t[Ce],this.originY=t[De],this.radius=t[Pe]??pt,this._level=t[Ee]||0,this._assets=e,this._soundManager=i.soundManager,this._levelView=i.levelView||null,this._levelView&&(this.onRender=()=>this._updateSeeThrough()),this.x=this.originX,this.y=this.originY,this.explosion=null,this.funnel=null,this._isStarted=!1,this._isDestroyed=!1,this._soundId=this._soundManager.registerSound("explosion",{position:{x:this.originX,y:this.originY}})}_updateSeeThrough(){const t=this._levelView.alphaFor(this._level,this.originX,this.originY),e=this._levelView.tintFor(this._level);this.explosion&&(this.explosion.alpha=t,this.explosion.tint=e),this.funnel&&(this.funnel.alpha=t,this.funnel.tint=e)}run(){if(!(this._isDestroyed||this._isStarted)){if(this._isStarted=!0,!this.parent){this.destroy();return}this.explosion=new ci(this.originX,this.originY,this.radius,this._onExplosionComplete.bind(this),this._assets),this.explosion.zIndex=b(Si,this._level),this.funnel=new wi(this.originX,this.originY,this.radius,this._onFunnelComplete.bind(this),this._assets),this.funnel.zIndex=b(vi,this._level),this.parent.addChild(this.explosion,this.funnel),this.parent.sortChildren(),this.explosion.run(),this.funnel.run()}}_onExplosionComplete(){this._isDestroyed||this.explosion&&(this.explosion.destroy(),this.explosion=null)}_onFunnelComplete(){this._isDestroyed||this.destroy()}destroy(){this._isDestroyed||(this._isDestroyed=!0,this._soundId&&(this._soundManager.unregisterSound(this._soundId),this._soundId=null),this.explosion&&(this.explosion.destroy(),this.explosion=null),this.funnel&&(this.funnel.destroy(),this.funnel=null),this.parent&&this.parent.removeChild(this),super.destroy({children:!0}))}}const Ft=4,H=400,Ti=0,Mi=0,Ai=8,T={particleLifetime:{min:800,max:1800},particleStartSizeFactor:{1:2,2:1,0:.25},particleEndSizeFactor:{1:3,2:2,0:1},particleStartAlpha:.08,particleEndAlpha:0,particleColor:3355443,particleSpawnRate:{1:60,2:50,0:30},particleInitialVelocity:{away:{min:-10,max:100},side:{min:-30,max:30}},airResistance:.92,particleVelocityVariance:10,streamOffsetFactor:.1,burstParticleCount:3},P={minGrade:.05,spawnRate:45,lifetime:{min:300,max:700},startAlpha:.22,startSizeFactor:.5,endSizeFactor:1.6,color:12562068,sideSpeed:40};class Ii extends A{constructor(t,e,i={}){super(),this._level=t[B]||0,this.zIndex=b(Ft,this._level);const{texture:s,contentSize:o}=e.smokeTexture;this._smokeTexture=s,this._textureScale=Ai/o,this._emitterX=t[O],this._emitterY=t[X],this._emitterRotation=t[W],this._emitterVX=t[vt],this._emitterVY=t[bt],this._engineLoad=t[G],this._condition=t[Y],this._size=t[ft],this._width=this._size*4,this._height=this._size*3,this._particleScaleMultiplier=Math.max(.5,Math.sqrt(this._width*this._height*.001)),this._particles=[],this._grade=Nt(),this._gradeValue=0,this._dustTimeSinceSpawn=0,this._grade.update(this._emitterX,this._emitterY,t[rt]||0),this._levelView=i.levelView||null,this._levelView&&(this.onRender=()=>{this.alpha=this._levelView.alphaFor(this._level,this._emitterX,this._emitterY),this.tint=this._levelView.tintFor(this._level)}),this._particleContainer=new zt({texture:this._smokeTexture,boundsArea:new D(this._emitterX-H,this._emitterY-H,H*2,H*2),dynamicProperties:{position:!0,vertex:!0,rotation:!0,color:!0}}),this.addChild(this._particleContainer),this._timeSinceLastSpawn=0,this._tickListener=r=>this._updateParticles(r.deltaMS),L.shared.add(this._tickListener)}update(t){const e=this._condition,i=t[B]||0;i!==this._level&&(this._level=i,this.zIndex=b(Ft,i)),this._emitterX=t[O],this._emitterY=t[X],this._emitterRotation=t[W],this._emitterVX=t[vt],this._emitterVY=t[bt],this._engineLoad=t[G],this._condition=t[Y],this._gradeValue=this._grade.update(this._emitterX,this._emitterY,t[rt]||0),this._particleContainer.boundsArea.x=this._emitterX-H,this._particleContainer.boundsArea.y=this._emitterY-H,this._condition!==e&&this._condition!==3&&this._triggerSmokeBurst()}_triggerSmokeBurst(){let t=0;if(this._condition===1?t=2:(this._condition===2||this._condition===0)&&(t=1),t>0){const e=T.burstParticleCount,i=Math.ceil(e/t);for(let s=0;s<i;s+=1)for(let o=0;o<t;o+=1)this.spawnParticle(o,t,!0)}}_updateParticles(t){if(t<=0)return;const e=t/1e3;this._timeSinceLastSpawn+=t;let i=0;this._condition===3?i=0:this._condition===1?i=2:(this._condition===2||this._condition===0)&&(i=1);const s=T.particleSpawnRate[this._condition]||0,o=s>0?1e3/s:1/0;if(i>0&&s>0)for(;this._timeSinceLastSpawn>=o;){for(let h=0;h<i;h+=1)this.spawnParticle(h,i);this._timeSinceLastSpawn-=o}else this._timeSinceLastSpawn=0;this._updateDust(t);const a=1-Math.pow(T.airResistance,t/16);for(let h=this._particles.length-1;h>=0;h-=1){const l=this._particles[h];if(l.age+=t,l.age>=l.lifetime){this._particleContainer.removeParticle(l.view),N.release(l.view),this._particles.splice(h,1);continue}l.vx=l.vx+(Ti-l.vx)*a,l.vy=l.vy+(Mi-l.vy)*a,l.x+=l.vx*e,l.y+=l.vy*e;const _=l.age/l.lifetime,d=1-(1-_)*(1-_),g=C(l.startSizeFactor,l.endSizeFactor,d),p=C(l.startAlpha,l.endAlpha,_),m=g*this._particleScaleMultiplier*this._textureScale,f=l.view;f.x=l.x,f.y=l.y,f.scaleX=m,f.scaleY=m,f.alpha=p,f.rotation+=l.rotSpeed*e}}_updateDust(t){if(this._condition===0||this._gradeValue<=P.minGrade){this._dustTimeSinceSpawn=0;return}this._dustTimeSinceSpawn+=t;const e=1e3/P.spawnRate;for(;this._dustTimeSinceSpawn>=e;)this._spawnDust(),this._dustTimeSinceSpawn-=e}_spawnDust(){const t=this._emitterRotation,e=Math.cos(t+Math.PI),i=Math.sin(t+Math.PI),s=this._emitterX+e*this._height*.3,o=this._emitterY+i*this._height*.3,r=P.sideSpeed,a=N.get(this._smokeTexture),h=P.startSizeFactor*this._particleScaleMultiplier*this._textureScale;a.tint=P.color,a.x=s,a.y=o,a.alpha=P.startAlpha,a.scaleX=h,a.scaleY=h,a.rotation=v(0,Math.PI*2),this._particles.push({view:a,x:s,y:o,vx:e*r+v(-r,r),vy:i*r+v(-r,r),age:0,lifetime:v(P.lifetime.min,P.lifetime.max),startSizeFactor:P.startSizeFactor,endSizeFactor:P.endSizeFactor,startAlpha:P.startAlpha,endAlpha:T.particleEndAlpha,rotSpeed:v(-1,1)}),this._particleContainer.addParticle(a)}spawnParticle(t,e,i=!1){const s=v(T.particleLifetime.min,T.particleLifetime.max);let o=T.particleStartSizeFactor[this._condition]||.3,r=T.particleEndSizeFactor[this._condition]||1,a=T.particleStartAlpha,h=1;i&&(o*=2,r*=2.5,a=.8,h=2);const l=this._emitterRotation,_=l+Math.PI,d=Math.cos(_),g=Math.sin(_),p=l+Math.PI/2,m=Math.cos(p),f=Math.sin(p);let w=0;const y=this._width/2*T.streamOffsetFactor;e===2?w=t===0?-y:y:e===3&&(w=(t-1)*y);const x=this._height*.22,S=this._emitterX+d*x+m*w,u=this._emitterY+g*x+f*w;let E=v(T.particleInitialVelocity.away.min,T.particleInitialVelocity.away.max),Z=v(T.particleInitialVelocity.side.min,T.particleInitialVelocity.side.max);E*=h,Z*=h;let R=d*E+m*Z,$=g*E+f*Z;const et=T.particleVelocityVariance;R+=v(-et,et),$+=v(-et,et),R+=this._emitterVX,$+=this._emitterVY;const F=N.get(this._smokeTexture);F.tint=T.particleColor,F.x=S,F.y=u,F.alpha=a;const mt=o*this._particleScaleMultiplier*this._textureScale;F.scaleX=mt,F.scaleY=mt,F.rotation=v(0,Math.PI*2);const Ht={view:F,x:S,y:u,vx:R,vy:$,age:0,lifetime:s,startSizeFactor:o,endSizeFactor:r,startAlpha:a,endAlpha:T.particleEndAlpha,rotSpeed:v(-1,1)};this._particleContainer.addParticle(F),this._particles.push(Ht)}_stopTimer(){this._tickListener&&(L.shared.remove(this._tickListener),this._tickListener=null)}destroy(t){this._stopTimer();for(let e=0;e<this._particles.length;e+=1)N.release(this._particles[e].view);this._particles=[],super.destroy({texture:!1,textureSource:!1,...t,children:!0})}}class ki extends M{constructor(t,e,i,s,o,r,a){super(a),this.anchor.set(.5),this.x=t,this.y=e,this.rotation=i,this.width=o,this.height=s,this.alpha=r,this._initialAlpha=r,this._elapsedTime=0,this._fadeDuration=1800+Math.random()*700}update(t){this._elapsedTime+=t;const e=Math.min(this._elapsedTime/this._fadeDuration,1);return this.alpha=(1-e)*this._initialAlpha,e>=1}}const _t=1;class Ci extends A{constructor(t,e){super(),this._level=t[B]||0,this._markLayers=new Map,this.zIndex=b(_t,this._level),this._currentX=t[O]||0,this._currentY=t[X]||0,this._currentRotation=t[W]||0,this._engineLoad=t[G]||0,this._condition=t[Y],this._size=t[ft],this._prevX=this._currentX,this._prevY=this._currentY,this._prevRotation=this._currentRotation,this._prevSpeed=0,this._prevAngularSpeed=0,this._assets=e,this._trackMarkCooldown=2,this._lastTrackMarkTime=0,this._minAbsAccelerationForMark=4,this._minAngularSpeedForMark=.02,this._minRotationAccelerationForMark=.4,this._minSpeedForRotationMarks=1.4,this._trackWidth=this._size*.4,this._trackLength=this._size*.5;const i=this._size*3;this._trackOffset=i/2*.7,this._backwardOffset=i*.4,this._trackInitialAlpha=.4,this._tickListener=s=>this._internalUpdate(s.deltaMS),L.shared.add(this._tickListener)}update(t){this._currentX=t[O],this._currentY=t[X],this._currentRotation=t[W],this._engineLoad=t[G],this._condition=t[Y];const e=t[B]||0;e!==this._level&&(this._level=e,this.zIndex=b(_t,e))}_markLayer(t){let e=this._markLayers.get(t);if(e)return e;e=new A,e.zIndex=b(_t,t),this._markLayers.set(t,e);const i=this.parent||this;return i.addChild(e),i.sortChildren(),e}_internalUpdate(t){if(t<=0)return;for(const p of this._markLayers.values())for(let m=p.children.length-1;m>=0;m-=1){const f=p.children[m];f.update(t)&&f.destroy()}const e=this._currentX-this._prevX,i=this._currentY-this._prevY,s=Math.sqrt(e*e+i*i),o=ce(this._currentRotation-this._prevRotation),r=Math.abs(o),a=s-this._prevSpeed,h=Math.abs(a),l=r-this._prevAngularSpeed,_=Math.abs(l),d=performance.now();let g=!1;this._condition!==0&&d-this._lastTrackMarkTime>this._trackMarkCooldown&&(h>this._minAbsAccelerationForMark&&(g=!0),s>this._minSpeedForRotationMarks&&(r>this._minAngularSpeedForMark||_>this._minRotationAccelerationForMark)&&(g=!0)),this._engineLoad>1&&(g=!0),g&&(this.createTrackMarksAtPreviousPosition(),this._lastTrackMarkTime=d),this._prevX=this._currentX,this._prevY=this._currentY,this._prevRotation=this._currentRotation,this._prevSpeed=s,this._prevAngularSpeed=r}createTrackMarksAtPreviousPosition(){const t=this._markLayer(this._level);for(let e=-1;e<=1;e+=2){const i=Math.cos(this._prevRotation+Math.PI/2)*this._trackOffset*e,s=Math.sin(this._prevRotation+Math.PI/2)*this._trackOffset*e,o=-Math.cos(this._prevRotation)*this._backwardOffset,r=-Math.sin(this._prevRotation)*this._backwardOffset,a=this._prevX+i+o,h=this._prevY+s+r,l=new ki(a,h,this._prevRotation,this._trackWidth,this._trackLength,this._trackInitialAlpha,this._assets.trackMarkTexture);t.addChild(l)}}_stopTimer(){this._tickListener&&(L.shared.remove(this._tickListener),this._tickListener=null)}destroy(t){this._stopTimer();for(const e of this._markLayers.values())e.destroyed||e.destroy({children:!0});this._markLayers.clear(),super.destroy({children:!0,texture:!1,textureSource:!1,...t})}}class Di extends tt{constructor(t,e,i,s,o){super(o),this.startPositionX=t,this.startPositionY=e,this.endPositionX=i,this.endPositionY=s,this.config={color:16777113,alphaStart:1,alphaEnd:.6,trailLength:55,tracerSpeed:19e3,minDuration:45,maxDuration:80,trailShrinkPower:1,trailStartOffset:30,segmentCount:12,segmentRadius:1,alphaPulseFrequency:.1,alphaPulseAmplitude:.15},this.graphics=new k,this.addChild(this.graphics),this.elapsedTime=0,this.dx=this.endPositionX-this.startPositionX,this.dy=this.endPositionY-this.startPositionY,this.totalDist=Math.hypot(this.dx,this.dy),this.totalDist>.001?(this.nx=this.dx/this.totalDist,this.ny=this.dy/this.totalDist,this.animationDuration=this.totalDist/this.config.tracerSpeed*1e3):(this.nx=0,this.ny=0,this.totalDist=0,this.animationDuration=this.config.minDuration),this.animationDuration=Math.max(this.config.minDuration,this.animationDuration),this.animationDuration=Math.min(this.config.maxDuration,this.animationDuration),this.animationDuration<=0&&(this.animationDuration=this.config.minDuration)}_drawSegment(t,e,i,s,o){this.graphics.circle(t,e,i),this.graphics.fill({color:s,alpha:Q(o,0,1)})}_update(t){if(this.isComplete)return;this.elapsedTime+=t,this.graphics.clear();const e=Math.min(this.elapsedTime/this.animationDuration,1);if(e>0){const i=C(this.startPositionX,this.endPositionX,e),s=C(this.startPositionY,this.endPositionY,e),o=C(this.config.alphaStart,this.config.alphaEnd,e),r=Math.sin(this.elapsedTime*this.config.alphaPulseFrequency)*this.config.alphaPulseAmplitude;let a=o+r;a=Q(a,0,this.config.alphaStart);const h=Math.pow(e,this.config.trailShrinkPower),l=C(this.config.trailLength,0,h),_=this.totalDist*e;if(_>=this.config.trailStartOffset){let d=_;this.totalDist>.001&&(d=Math.max(0,_-this.config.trailStartOffset));const g=Math.min(d,l);let p,m;this.totalDist>.001?(p=i-this.nx*g,m=s-this.ny*g):(p=i,m=s);const f=Math.hypot(i-p,s-m);if(f<this.config.segmentRadius*.5&&this.totalDist===0)this._drawSegment(i,s,this.config.segmentRadius,this.config.color,a);else if(f>=this.config.segmentRadius*.5){const w=Math.max(1,this.config.segmentCount);for(let y=0;y<w;y++){let x=.5;w>1&&(x=y/(w-1));const S=C(p,i,x),u=C(m,s,x),E=C(1,.8,x);this._drawSegment(S,u,this.config.segmentRadius,this.config.color,a*E)}}}}this.elapsedTime>=this.animationDuration&&(this.graphics.clear(),this._completeEffect())}destroy(t){this.graphics&&this.graphics.clear(),super.destroy(t)}}class Pi extends tt{constructor(t,e,i,s,o,r){super(o),this.x=t,this.y=e,this._assets=r;const{texture:a,contentSize:h}=this._assets.impactParticleTexture;this._particleTexture=a,this._textureContentSize=h,this.config={particleCount:v(2,4),particleMinSize:.8,particleMaxSize:2.4,minInitialSpeed:10,maxInitialSpeed:300,minLifetime:8e3,maxLifetime:15e3,color:[3355443,2236962,4473924],fadeOutStart:.8,impactDirectionX:i,impactDirectionY:s,spreadAngle:60,dragCoefficient:13,minSpeedThreshold:1,lingerDuration:6e3},this.config.impactDirectionX===0&&this.config.impactDirectionY===0?this.useOmnidirectionalSpread=!0:this.useOmnidirectionalSpread=!1,this.particlesData=[],this.elapsedTime=0,this._createParticles()}_createParticles(){let t;this.useOmnidirectionalSpread||(t=Math.atan2(this.config.impactDirectionY,this.config.impactDirectionX));const i=this.config.spreadAngle*(Math.PI/180)/2;for(let s=0,o=this.config.particleCount;s<o;s+=1){let r;this.useOmnidirectionalSpread?r=Math.random()*Math.PI*2:r=t+v(-i,i);const a=v(this.config.minInitialSpeed,this.config.maxInitialSpeed),h=new M(this._particleTexture);h.anchor.set(.5);const l={sprite:h,x:0,y:0,vx:Math.cos(r)*a,vy:Math.sin(r)*a,size:v(this.config.particleMinSize,this.config.particleMaxSize),color:Array.isArray(this.config.color)?this.config.color[Math.floor(Math.random()*this.config.color.length)]:this.config.color,lifetime:v(this.config.minLifetime,this.config.maxLifetime),age:0,alpha:1,active:!0,isMoving:!0,timeSinceStopped:0};h.tint=l.color,this.particlesData.push(l),this.addChild(h)}}_update(t){if(this.isComplete)return;this.elapsedTime+=t;const e=t/1e3;let i=0;for(let s=0,o=this.particlesData.length;s<o;s+=1){const r=this.particlesData[s];if(!r.active)continue;if(i+=1,r.age+=t,r.isMoving){const _=Math.hypot(r.vx,r.vy);if(_>0){const g=_*this.config.dragCoefficient*e,p=Math.max(0,1-g/_);r.vx*=p,r.vy*=p}r.x+=r.vx*e,r.y+=r.vy*e,Math.hypot(r.vx,r.vy)<this.config.minSpeedThreshold&&(r.isMoving=!1,r.vx=0,r.vy=0)}else r.timeSinceStopped+=t;const a=r.age/r.lifetime;if(!r.isMoving&&r.timeSinceStopped>=this.config.lingerDuration){const _=r.timeSinceStopped-this.config.lingerDuration,d=Math.min(500,r.lifetime*(1-this.config.fadeOutStart));r.alpha=C(1,0,Math.min(_/d,1))}else if(a>=this.config.fadeOutStart){const _=r.age-r.lifetime*this.config.fadeOutStart,d=r.lifetime*(1-this.config.fadeOutStart);r.alpha=d>0?C(1,0,Math.min(_/d,1)):0}(r.age>=r.lifetime||r.alpha<.01)&&(r.active=!1,r.alpha=0);const h=r.sprite;h.position.set(r.x,r.y),h.alpha=r.alpha,h.visible=r.active;const l=r.size/this._textureContentSize;h.scale.set(l)}i===0&&this._isStarted&&this._completeEffect()}destroy(t){this.particlesData=[],super.destroy(t)}}const Ei=2;class Li extends A{constructor(t,e,i){super(),this.startPositionX=t[ye],this.startPositionY=t[xe],this.endPositionX=t[we],this.endPositionY=t[Se],this.soundPositionX=t[ve],this.soundPositionY=t[be],this.hit=t[Te],this.endLevel=t[Me]||0,this.zIndex=b(Ei,this.endLevel),this.anchorKey=null,this.anchorLocalX=0,this.anchorLocalY=0,Array.isArray(t[Tt])&&([this.anchorKey,this.anchorLocalX,this.anchorLocalY]=t[Tt]),this._assets=e,this._soundManager=i.soundManager,this._mapDynamics=i.mapDynamics||null,this._levelView=i.levelView||null,this._levelView&&(this.onRender=()=>{this.alpha=this._levelView.alphaFor(this.endLevel,this.endPositionX,this.endPositionY),this.tint=this._levelView.tintFor(this.endLevel)}),this.tracer=null,this.impact=null,this._isDestroyed=!1,this._visualsComplete=!1,this._soundComplete=!1,this._soundId=this._soundManager.registerSound("shot",{position:{x:this.soundPositionX,y:this.soundPositionY}},()=>{this._soundComplete=!0,this._soundId=null,this._tryDestroy()}),this._soundId||(this._soundComplete=!0)}run(){this._isDestroyed||(this.tracer=new Di(this.startPositionX,this.startPositionY,this.endPositionX,this.endPositionY,this._onTracerComplete.bind(this)),this.addChild(this.tracer),this.tracer.run())}_onTracerComplete(){if(!this._isDestroyed)if(this.hit){let t=this.endPositionX,e=this.endPositionY;if(this.anchorKey!==null&&this._mapDynamics){const h=this._mapDynamics.toWorld(this.anchorKey,this.anchorLocalX,this.anchorLocalY);h&&(t=h.x,e=h.y)}const i=t-this.startPositionX,s=e-this.startPositionY,o=Math.hypot(i,s);let r=0,a=0;o>.001&&(r=-(i/o),a=-(s/o)),this.impact=new Pi(t,e,r,a,this._onImpactComplete.bind(this),this._assets),this.addChild(this.impact),this.impact.run()}else this._visualsComplete=!0,this._tryDestroy()}_onImpactComplete(){this._isDestroyed||(this._visualsComplete=!0,this._tryDestroy())}_tryDestroy(){this._visualsComplete&&this._soundComplete&&this.destroy()}destroy(){this._isDestroyed||(this._isDestroyed=!0,this._soundId&&(this._soundManager.unregisterSound(this._soundId),this._soundId=null),this.tracer&&(this.tracer.destroy(),this.tracer=null),this.impact&&(this.impact.destroy(),this.impact=null),this.parent&&this.parent.removeChild(this),super.destroy({children:!0}))}}const Fi={Map:ze,MapVolume:Xe,MapRadar:Ne,TankRadar:We,Tank:ai,Bomb:li,ExplosionEffect:bi,Smoke:Ii,Tracks:Ci,ShotEffect:Li},Ri=4;function ot(n){return Math.ceil(n*Ri)}function it(n,t){const{radius:e,blur:i,color:s,quality:o=40}=n,r=new k,a=(e+ot(i))*2,h=a/2;r.circle(h,h,e),r.fill(s);const l=new Vt({strength:i,quality:o});l.padding=ot(i),r.filters=[l];const _=t.generateTexture({target:r,frame:new D(0,0,a,a)});return r.destroy(!0),{texture:_,contentSize:e*2}}function zi(n,t){const{baseRadius:e,irregularity:i=0,blur:s=0,numPoints:o=20,colorFill:r,colorRim:a=r,rimWidth:h=0,variants:l=1}=n,_=Math.max(1,Math.floor(l)||1),d=(e+i+h)*2,g=d+ot(s)*2,p=g/2,m=[];for(let f=0;f<_;f+=1){const w=new k,y=[];for(let S=0;S<o;S+=1){const u=S/o*Math.PI*2,E=e+v(-i,i);y.push(p+E*Math.cos(u),p+E*Math.sin(u))}w.poly(y).fill(r).stroke({width:h,color:a,alignment:1});const x=new Vt({strength:s,quality:10});x.padding=ot(s),w.filters=[x],m.push(t.generateTexture({target:w,frame:new D(0,0,g,g)})),w.destroy(!0)}return{textures:m,contentSize:d}}function Vi(n,t){const{colors:e}=n,i={},s=10,o=s*4,r=s*3,a=15658734,h=_=>{const d=new k,g=new k,p=o,m=r;d.rect(-p/2,-m/2,p,m).fill(5592405).rect(-p/2+1,-m/2+1,p-2,m-2).fill(10066329).rect(-p/2+2,-m/2+2,p-4,m-4).fill(13421772).rect(-p/2+3,-m/2+3,p-6,m-6).fill(a),g.moveTo(1.33*s,-.42*s).lineTo(.42*s,-1*s).lineTo(-.42*s,-1*s).lineTo(-1.33*s,-.42*s).lineTo(-1.33*s,.42*s).lineTo(-.42*s,1*s).lineTo(.42*s,1*s).lineTo(1.33*s,.42*s).closePath().fill(_).stroke({width:.17*s,color:11184810}).moveTo(2.33*s,-.25*s).lineTo(.25*s,-.25*s).lineTo(.25*s,.25*s).lineTo(2.33*s,.25*s).closePath().stroke({width:.17*s,color:11184810}).fill(_);const f=d.getBounds(),w=t.generateTexture({target:d,frame:new D(f.x,f.y,f.width,f.height)}),y=g.getBounds(),x=t.generateTexture({target:g,frame:new D(y.x,y.y,y.width,y.height)}),S={x:-y.x/y.width,y:-y.y/y.height};return d.destroy(!0),g.destroy(!0),{body:w,gun:x,gunAnchor:S}},l=()=>{const _=new A,d=new k,g=new k;_.addChild(d,g);const p=3815994,m=2434341,f=3158064,w=1579032,y=5263440,x=o,S=r,u=s;d.moveTo(-x/2-u*.1,-S/2+u*.2).lineTo(x/2+u*.2,-S/2-u*.1).lineTo(x/2-u*.1,S/2+u*.3).lineTo(-x/2+u*.3,S/2-u*.2).closePath().fill(p).stroke({width:u*.2,color:y,alignment:.5}),d.moveTo(-x/2+u*.4,-S/2+u*.5).lineTo(x/2-u*.3,-S/2+u*.2).lineTo(x/2-u*.4,S/2-u*.1).lineTo(-x/2+u*.2,S/2-u*.4).closePath().fill(m),d.circle(x*.15,S*.1,u*1.2).fill(w),d.circle(-x*.3,-S*.25,u*.5).fill(w),g.position.set(u*.3,-u*.2);const E=[u*1.1,-u*.7,u*.2,-u*1,-u*.6,-u*.9,-u*1.3,-u*.2,-u*1.1,u*.6,-u*.2,u*1,u*.7,u*.8,u*1.3,u*.1];g.poly(E).fill(f).stroke({width:u*.15,color:y,alignment:0});const Z=[u*.8,-u*.25,u*1.5,-u*.4,u*1.4,u*.15,u*.7,u*.05];g.poly(Z).fill(f).stroke({width:u*.1,color:y,alignment:0}),g.circle(u*.1,-u*.2,u*.4).fill(w);const R=_.getBounds(),$=t.generateTexture({target:_,frame:new D(R.x,R.y,R.width,R.height)});return _.destroy({children:!0}),$};return i.liveTeamId1=h(e.teamId1),i.liveTeamId2=h(e.teamId2),i.destroyed=l(),i}function Oi(n,t){const{radius:e,borderWidth:i,crossSize:s,crossThickness:o,colors:r}=n,a={},h=(e+i)*2,l=h/2,_=15658734,d=3355443,g=m=>{const f=new k;f.circle(l,l,e).fill(_),f.circle(l,l,e-i).fill(m);const w=t.generateTexture({target:f,frame:new D(0,0,h,h)});return f.destroy(!0),w},p=()=>{const m=new k,f=s/2;m.moveTo(l-f,l-f).lineTo(l+f,l+f).moveTo(l-f,l+f).lineTo(l+f,l-f).stroke({width:o,color:d});const w=t.generateTexture({target:m,frame:new D(0,0,h,h)});return m.destroy(!0),w};return a.liveTeamId1=g(r.teamId1),a.liveTeamId2=g(r.teamId2),a.destroyed=p(),a}function Xi(n,t){const{colorOuter:e,colorInner:i}=n,s=new k,o=20,r=1;s.rect(0,0,o,o).fill(e),s.rect(r,r,o-r*2,o-r*2).fill(i);const a=t.generateTexture({target:s,frame:new D(0,0,o,o)});return s.destroy(!0),a}function Yi(n,t){const{width:e,length:i,color:s}=n,o=new k;o.rect(0,0,i,e).fill(s);const r=t.generateTexture({target:o,frame:new D(0,0,i,e)});return o.destroy(!0),r}function Bi(n,t){const{radius:e,fontSize:i,borderWidth:s,borderColor:o,textColor:r}=n,a=(e+s)*2,h=a/2;return dt.map((l,_)=>{const d=new A,g=new k;g.circle(h,h,e).fill(l).stroke({width:s,color:o});const p=new Rt({text:`${_}`,style:{fontFamily:"Arial",fontSize:i,fill:r}});p.anchor.set(.5),p.x=h,p.y=h,d.addChild(g,p);const m=t.generateTexture({target:d,frame:new D(0,0,a,a)});return d.destroy({children:!0}),m})}const Ni={explosionTexture:it,smokeTexture:it,impactParticleTexture:it,tankShadowTexture:it,funnelTexture:zi,tankTexture:Vi,tankRadarTexture:Oi,bombTexture:Xi,trackMarkTexture:Yi,levelBadgeTexture:Bi},Hi=n=>(n??"").split(/[?#]/)[0].endsWith(".js"),Ui=n=>import(n);function Wi(n=Ve){const t={level:0,x:0,y:0,z:0,layered:!1};return{set(e,i,s,o=0){t.level=e,t.x=i,t.y=s,t.z=o},markLayered(){t.layered=!0},alphaFor(e,i,s){return de({viewLevel:t.level,viewX:t.x,viewY:t.y,level:e,x:i,y:s,cfg:n})},tintFor(e){return pe(t.level,e,n)},get cfg(){return n},get mode(){return n.mode},get layered(){return t.layered},get level(){return t.level},get x(){return t.x},get y(){return t.y},get z(){return t.z}}}const $i={id:"tanks",engineApi:Qt,requires:["map.layers","map.levelsN"],async createClientCore(n,{wasmUrl:t}){if(Hi(t)){const i=await Ui(t);return{core:new i.ClientCore(n),memory:null}}const e=await ae({module_or_path:t});return{core:new ut(n),memory:e.memory}},parts:Fi,bakers:Ni,styles:he,serviceNames:["levelView","mapDynamics"],hooks:{services(n){return{levelView:Wi(),mapDynamics:{toWorld(e,i,s){const o=n.map_dynamics_to_world(e,i,s);return o.length===0?null:{x:o[0],y:o[1]}}}}},onAuth(n,t){n.set_model(t.model)},onPanel(n,t){n.sync_panel(JSON.stringify(t))},onLocalAction(n,t,e,i){return t!=="down"?null:e==="fire"?n.try_fire(i)||null:((e==="nextWeapon"||e==="prevWeapon")&&n.cycle_weapon(e==="prevWeapon"),null)}}};export{$i as default};
|