@vimp-games/tanks 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{vimp_tanks_core_bg-CfFxwgWS.wasm → vimp_tanks_core_bg-CAZB73AI.wasm} +0 -0
- package/dist/{client-CCUFIHci.js → client-DGxmZzuH.js} +1 -1
- package/dist/core-node/vimp_tanks_core_bg.wasm +0 -0
- package/dist/{host-D__HCg_A.js → host-B9MP8wmb.js} +1 -1
- package/dist/manifest.json +14 -8
- package/dist/maps/garden.json +1 -1
- package/package.json +2 -2
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Container as C,Assets as G,Sprite as v,Spritesheet as _t,Rectangle as D,Graphics as I,Text as dt,Ticker as E,Particle as ut,ParticleContainer as ht,BlurFilter as ct}from"pixi.js";const pt=3;class Q{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,it.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_clientcore_free(t,0)}apply_aim(t,e,i,s){_.clientcore_apply_aim(this.__wbg_ptr,t,e,i,s)}apply_input(t,e,i){const s=R(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=k,r=R(e,_.__wbindgen_malloc,_.__wbindgen_realloc),a=k;_.clientcore_apply_input(this.__wbg_ptr,s,o,r,a,i)}cycle_weapon(t){_.clientcore_cycle_weapon(this.__wbg_ptr,t)}debug_json(){let t,e;try{const i=_.clientcore_debug_json(this.__wbg_ptr);return t=i[0],e=i[1],F(i[0],i[1])}finally{_.__wbindgen_free(t,e,1)}}decode_frame(t){let e,i;try{const s=nt(t,_.__wbindgen_malloc),o=k,r=_.clientcore_decode_frame(this.__wbg_ptr,s,o);return e=r[0],i=r[1],F(r[0],r[1])}finally{_.__wbindgen_free(e,i,1)}}hot_ptr(){return _.clientcore_hot_ptr(this.__wbg_ptr)>>>0}hot_values(){const t=_.clientcore_hot_values(this.__wbg_ptr);var e=st(t[0],t[1]).slice();return _.__wbindgen_free(t[0],t[1]*4,4),e}map_dynamics_to_world(t,e,i){const s=R(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=k,r=_.clientcore_map_dynamics_to_world(this.__wbg_ptr,s,o,e,i);var a=st(r[0],r[1]).slice();return _.__wbindgen_free(r[0],r[1]*4,4),a}my_game_id(){return _.clientcore_my_game_id(this.__wbg_ptr)}constructor(t){const e=R(t,_.__wbindgen_malloc,_.__wbindgen_realloc),i=k,s=_.clientcore_new(e,i);if(s[2])throw rt(s[1]);return this.__wbg_ptr=s[0],it.register(this,this.__wbg_ptr,this),this}offset(){return _.clientcore_offset(this.__wbg_ptr)}push_frame(t,e){const i=nt(t,_.__wbindgen_malloc),s=k;return _.clientcore_push_frame(this.__wbg_ptr,i,s,e)!==0}reset(){_.clientcore_reset(this.__wbg_ptr)}resync(){_.clientcore_resync(this.__wbg_ptr)}sample(t){return _.clientcore_sample(this.__wbg_ptr,t)>>>0}set_active(t){_.clientcore_set_active(this.__wbg_ptr,t)}set_map(t){const e=R(t,_.__wbindgen_malloc,_.__wbindgen_realloc),i=k,s=_.clientcore_set_map(this.__wbg_ptr,e,i);if(s[1])throw rt(s[0])}set_model(t){const e=R(t,_.__wbindgen_malloc,_.__wbindgen_realloc),i=k;_.clientcore_set_model(this.__wbg_ptr,e,i)}sync_panel(t){const e=R(t,_.__wbindgen_malloc,_.__wbindgen_realloc),i=k;_.clientcore_sync_panel(this.__wbg_ptr,e,i)}take_divergence(){let t,e;try{const i=_.clientcore_take_divergence(this.__wbg_ptr);return t=i[0],e=i[1],F(i[0],i[1])}finally{_.__wbindgen_free(t,e,1)}}take_frames(){let t,e;try{const i=_.clientcore_take_frames(this.__wbg_ptr);return t=i[0],e=i[1],F(i[0],i[1])}finally{_.__wbindgen_free(t,e,1)}}try_fire(t){const e=_.clientcore_try_fire(this.__wbg_ptr,t);let i;return e[0]!==0&&(i=F(e[0],e[1]).slice(),_.__wbindgen_free(e[0],e[1]*1,1)),i}}Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);function ft(){return{__proto__:null,"./vimp_tanks_core_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(t,e){return Error(F(t,e))},__wbg___wbindgen_throw_344f42d3211c4765:function(t,e){throw new Error(F(t,e))},__wbindgen_init_externref_table:function(){const t=_.__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 it=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_clientcore_free(n,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>_.__wbg_gamecore_free(n,1));function st(n,t){return n=n>>>0,mt().subarray(n/4,n/4+t)}let O=null;function mt(){return(O===null||O.byteLength===0)&&(O=new Float32Array(_.memory.buffer)),O}function F(n,t){return yt(n>>>0,t)}let N=null;function U(){return(N===null||N.byteLength===0)&&(N=new Uint8Array(_.memory.buffer)),N}function nt(n,t){const e=t(n.length*1,1)>>>0;return U().set(n,e/1),k=n.length,e}function R(n,t,e){if(e===void 0){const a=W.encode(n),h=t(a.length,1)>>>0;return U().subarray(h,h+a.length).set(a),k=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=W.encodeInto(n,a);r+=h.written,s=e(s,i,r,1)>>>0}return k=r,s}function rt(n){const t=_.__wbindgen_externrefs.get(n);return _.__externref_table_dealloc(n),t}let $=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});$.decode();const gt=2146435072;let K=0;function yt(n,t){return K+=t,K>=gt&&($=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),$.decode(),K=t),$.decode(U().subarray(n,n+t))}const W=new TextEncoder;"encodeInto"in W||(W.encodeInto=function(n,t){const e=W.encode(n);return t.set(e),{read:n.length,written:e.length}});let k=0,_;function xt(n,t){return _=n.exports,O=null,N=null,_.__wbindgen_start(),_}async function St(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 wt(n){if(_!==void 0)return _;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-CfFxwgWS.wasm",import.meta.url));const t=ft();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:e,module:i}=await St(await n,t);return xt(e)}const bt='@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}',T=(n,t,e)=>n+(t-n)*e,j=(n,t,e)=>Math.min(e,Math.max(t,n)),Mt=n=>n*(Math.PI/180),Tt=n=>{for(;n>Math.PI;)n-=Math.PI*2;for(;n<-Math.PI;)n+=Math.PI*2;return n},M=(n,t)=>Math.random()*(t-n)+n;class vt extends C{constructor(t,e,i){if(super(),this._baseTexturePromise=null,this._assetUrl=null,this._renderer=i.renderer,this._imageBase=null,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=G.load(this._assetUrl),this._map=t.map,this._tiles=t.tiles,this._spriteSheetData=t.spriteSheet,this._step=t.step,this.zIndex=t.layer||1,this.createStatic()):t.type==="dynamic"&&(this._assetUrl=`${this._imageBase}${t.img}`,this._baseTexturePromise=G.load(this._assetUrl),this.zIndex=t.layer||2,this._rotation=Mt(t.angle),this._width=t.width,this._height=t.height,this._x=t.position[0],this._y=t.position[1],this.createDynamic())}async createDynamic(){try{const t=await this._baseTexturePromise;this.sprite=new v(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={};this._spriteSheetData.frames.forEach((c,p)=>{const[u,g,f,m]=c;t[`frame${p}`]={frame:{x:u,y:g,w:f,h:m}}});const e={frames:t,meta:{scale:"1"}},i=await this._baseTexturePromise,s=new _t(i,e);await s.parse();const o=this._map[0].length*this._step,r=this._map.length*this._step,a=new C;for(let c=0,p=this._map.length;c<p;c+=1)for(let u=0,g=this._map[c].length;u<g;u+=1){const f=this._map[c][u];if(this._tiles.includes(f)){const m=`frame${f}`,d=s.textures[m];if(d){const y=new v(d);y.x=u*this._step,y.y=c*this._step,a.addChild(y)}else console.warn(`Texture not found. Tile: ${f}, sprite: ${m}`)}}const h=this._renderer.generateTexture({target:a,frame:new D(0,0,o,r)});a.destroy({children:!0}),this.mapSprite=new v(h),this.addChild(this.mapSprite)}catch(t){console.error(`Failed to create static map with asset ${this._assetUrl}:`,t)}}update(t){this.sprite&&(this.sprite.x=t[0]/this.scale.x,this.sprite.y=t[1]/this.scale.y,this.sprite.rotation=t[2])}destroy(t){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&&G.cache.has(this._assetUrl)&&G.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._spriteSheetData=null,this._renderer=null}}class kt extends C{constructor(t){super(),this._map=t.map,this._physicsStatic=t.physicsStatic,this._step=t.step,this.zIndex=2,this.scale=t.scale,this.radarGraphics=new I,this.addChild(this.radarGraphics),this.createRadarMap()}createRadarMap(){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._physicsStatic.includes(o)&&t.rect(s*this._step,e*this._step,this._step/2,this._step/2)}}t.fill(16777215)}update(){}destroy(t){super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this.radarGraphics=null,this._map=null,this._physicsStatic=null}}class It extends C{constructor(t,e){super(),this.zIndex=2,this._textures=e.tankRadarTexture,this.body=new v,this.body.anchor.set(.5),this.addChild(this.body),this.x=t[0]||0,this.y=t[1]||0,this._condition=t[7],this._teamId=t[9],this.scale.set(5,5),this.create()}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[0],this.y=t[1];const e=t[7],i=t[9];let s=!1;e!==void 0&&e!==this._condition&&(this._condition=e,s=!0),i!==void 0&&i!==this._teamId&&(this._teamId=i,s=!0),s&&this.create()}destroy(t){super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this.body=null,this._textures=null}}const Dt=1,ot=1.1,Ct=1.18,At=.9,Pt=1;function Et(n){const t=j(n,0,1),e=Math.max(0,n-1),i=T(Dt,ot,t)+(Ct-ot)*e,s=T(At,Pt,t);return{rate:i,volumeFactor:s}}class Lt extends C{constructor(t,e,i){super(),this.zIndex=3,this.body=new v,this.gun=new v,this.wreck=new v,this.body.anchor.set(.5),this.wreck.anchor.set(.5),this.addChild(this.body,this.gun,this.wreck),this._textures=e.tankTexture,this.x=t[0]||0,this.y=t[1]||0,this.rotation=t[2]||0,this.gun.rotation=t[3]||0,this._engineLoad=t[6]||0,this._condition=t[7],this._size=t[8],this._teamId=t[9];const s=this._teamId===1?this._textures.liveTeamId1:this._textures.liveTeamId2,o=s?s.gunAnchor:null;o?this.gun.anchor.set(o.x,o.y):this.gun.anchor.set(.5);const a=this._size/10;this.body.scale.set(a),this.gun.scale.set(a),this.wreck.scale.set(a),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}=Et(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[0],this.y=t[1],this.rotation=t[2],this.gun.rotation=t[3],this._engineLoad=t[6],this._condition>0&&(this._soundId===null?this._initSounds():this._soundManager.updateSoundData(this._soundId,this._getSoundData()));const e=t[7],i=t[9];let s=!1;e!==void 0&&e!==this._condition&&(this._condition=e,s=!0),i!==void 0&&i!==this._teamId&&(this._teamId=i,s=!0),s&&this.create()}destroySounds(){this._soundId&&(this._soundManager.unregisterSound(this._soundId),this._soundId=null)}destroy(t){this.destroySounds(),super.destroy({children:!0,texture:!1,textureSource:!1,...t})}}class Rt extends C{constructor(t,e,i){super(),this.zIndex=2,this.body=new v(e.bombTexture),this.body.anchor.set(.5),this.x=t[0],this.y=t[1],this.rotation=t[2],this._size=t[3],this._totalDurationMs=t[4],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 dt({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),E.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[0],this.y=t[1],this.rotation=t[2],this._soundId&&(this._soundManager.updateSoundData(this._soundId,{position:{x:this.x,y:this.y}})||(this._soundId=null))}_stopTimer(){this._tickListener&&(E.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 V extends C{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),E.shared.add(this._tickListener),this._onEffectStart(),this.isComplete||this._update(0))}_onEffectStart(){}_update(){}_completeEffect(){this.isComplete||(this.isComplete=!0,this._tickListener&&(E.shared.remove(this._tickListener),this._tickListener=null),typeof this.onComplete=="function"&&this.onComplete())}destroy(t){this.isComplete=!0,this._tickListener&&(E.shared.remove(this._tickListener),this._tickListener=null),this.parent&&this.parent.removeChild(this),super.destroy({texture:!1,textureSource:!1,...t,children:!0})}}class Ft extends V{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 v(r),this._mainBody.anchor.set(.5),this._mainBody.tint=11393254,this._mainBody.scale.set(this._baseScale),this._core=new v(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 Z=[],X={get(n){if(Z.length>0){const t=Z.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 ut({texture:n,anchorX:.5,anchorY:.5})},release(n){n&&Z.push(n)}},tt=50,zt=400,Xt=800;class Yt extends V{constructor(t,e=tt){super();const i=e/tt;this._blastScale=i;const{texture:s,contentSize:o}=t.explosionTexture;this.explosionTexture=s,this._unitScale=1/o;const r=zt*i,a=Xt*i;this._particleContainer=new ht({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=X.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),X.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 c=(o-.4)/.6;s.alpha=this._startAlpha*(1-c)}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)X.release(this._particles[e].view);this._particles=[],super.destroy(t)}}const Bt=.168,Ot=.225,at=.15,Nt=2e4,Ut=50,Wt=4e3,Vt=4e3;class Ht extends V{constructor(t,e,i,s,o){super(s),this._assets=o,this._radius=i,this.x=t,this.y=e,this._funnelDurationMs=Nt,this._funnelFadeInDurationMs=Ut,this._funnelFadeDurationMs=Wt,this._elapsedMs=0,this._smokeDurationMs=Vt,this._smokeSpawningStopped=!1,this._funnel=this._createFunnelSprite(),this._smoke=new Yt(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 v(i);s.anchor.set(.5),s.alpha=0,s.rotation=Math.random()*Math.PI*2;const o=this._radius*Bt*M(1-at,1+at);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=Ot*j(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)}}class Gt extends C{constructor(t,e,i){super(),this.originX=t[0],this.originY=t[1],this.radius=t[2]??tt,this._assets=e,this._soundManager=i.soundManager,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}})}run(){if(!(this._isDestroyed||this._isStarted)){if(this._isStarted=!0,!this.parent){this.destroy();return}this.explosion=new Ft(this.originX,this.originY,this.radius,this._onExplosionComplete.bind(this),this._assets),this.explosion.zIndex=4,this.funnel=new Ht(this.originX,this.originY,this.radius,this._onFunnelComplete.bind(this),this._assets),this.funnel.zIndex=2,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 z=400,$t=0,jt=0,qt=8,b={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};class Kt extends C{constructor(t,e){super(),this.zIndex=4;const{texture:i,contentSize:s}=e.smokeTexture;this._smokeTexture=i,this._textureScale=qt/s,this._emitterX=t[0],this._emitterY=t[1],this._emitterRotation=t[2],this._emitterVX=t[4],this._emitterVY=t[5],this._engineLoad=t[6],this._condition=t[7],this._size=t[8],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._particleContainer=new ht({texture:this._smokeTexture,boundsArea:new D(this._emitterX-z,this._emitterY-z,z*2,z*2),dynamicProperties:{position:!0,vertex:!0,rotation:!0,color:!0}}),this.addChild(this._particleContainer),this._timeSinceLastSpawn=0,this._tickListener=o=>this._updateParticles(o.deltaMS),E.shared.add(this._tickListener)}update(t){const e=this._condition;this._emitterX=t[0],this._emitterY=t[1],this._emitterRotation=t[2],this._emitterVX=t[4],this._emitterVY=t[5],this._engineLoad=t[6],this._condition=t[7],this._particleContainer.boundsArea.x=this._emitterX-z,this._particleContainer.boundsArea.y=this._emitterY-z,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=b.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=b.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;const a=1-Math.pow(b.airResistance,t/16);for(let h=this._particles.length-1;h>=0;h-=1){const c=this._particles[h];if(c.age+=t,c.age>=c.lifetime){this._particleContainer.removeParticle(c.view),X.release(c.view),this._particles.splice(h,1);continue}c.vx=c.vx+($t-c.vx)*a,c.vy=c.vy+(jt-c.vy)*a,c.x+=c.vx*e,c.y+=c.vy*e;const p=c.age/c.lifetime,u=1-(1-p)*(1-p),g=T(c.startSizeFactor,c.endSizeFactor,u),f=T(c.startAlpha,c.endAlpha,p),m=g*this._particleScaleMultiplier*this._textureScale,d=c.view;d.x=c.x,d.y=c.y,d.scaleX=m,d.scaleY=m,d.alpha=f,d.rotation+=c.rotSpeed*e}}spawnParticle(t,e,i=!1){const s=M(b.particleLifetime.min,b.particleLifetime.max);let o=b.particleStartSizeFactor[this._condition]||.3,r=b.particleEndSizeFactor[this._condition]||1,a=b.particleStartAlpha,h=1;i&&(o*=2,r*=2.5,a=.8,h=2);const c=this._emitterRotation,p=c+Math.PI,u=Math.cos(p),g=Math.sin(p),f=c+Math.PI/2,m=Math.cos(f),d=Math.sin(f);let y=0;const x=this._width/2*b.streamOffsetFactor;e===2?y=t===0?-x:x:e===3&&(y=(t-1)*x);const S=this._height*.22,w=this._emitterX+u*S+m*y,l=this._emitterY+g*S+d*y;let A=M(b.particleInitialVelocity.away.min,b.particleInitialVelocity.away.max),Y=M(b.particleInitialVelocity.side.min,b.particleInitialVelocity.side.max);A*=h,Y*=h;let L=u*A+m*Y,B=g*A+d*Y;const H=b.particleVelocityVariance;L+=M(-H,H),B+=M(-H,H),L+=this._emitterVX,B+=this._emitterVY;const P=X.get(this._smokeTexture);P.tint=b.particleColor,P.x=w,P.y=l,P.alpha=a;const et=o*this._particleScaleMultiplier*this._textureScale;P.scaleX=et,P.scaleY=et,P.rotation=M(0,Math.PI*2);const lt={view:P,x:w,y:l,vx:L,vy:B,age:0,lifetime:s,startSizeFactor:o,endSizeFactor:r,startAlpha:a,endAlpha:b.particleEndAlpha,rotSpeed:M(-1,1)};this._particleContainer.addParticle(P),this._particles.push(lt)}_stopTimer(){this._tickListener&&(E.shared.remove(this._tickListener),this._tickListener=null)}destroy(t){this._stopTimer();for(let e=0;e<this._particles.length;e+=1)X.release(this._particles[e].view);this._particles=[],super.destroy({texture:!1,textureSource:!1,...t,children:!0})}}class Zt extends v{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}}class Jt extends C{constructor(t,e){super(),this.zIndex=1,this._currentX=t[0]||0,this._currentY=t[1]||0,this._currentRotation=t[2]||0,this._engineLoad=t[6]||0,this._condition=t[7],this._size=t[8],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),E.shared.add(this._tickListener)}update(t){this._currentX=t[0],this._currentY=t[1],this._currentRotation=t[2],this._engineLoad=t[6],this._condition=t[7]}_internalUpdate(t){if(t<=0)return;for(let f=this.children.length-1;f>=0;f-=1){const m=this.children[f];m.update(t)&&m.destroy()}const e=this._currentX-this._prevX,i=this._currentY-this._prevY,s=Math.sqrt(e*e+i*i),o=Tt(this._currentRotation-this._prevRotation),r=Math.abs(o),a=s-this._prevSpeed,h=Math.abs(a),c=r-this._prevAngularSpeed,p=Math.abs(c),u=performance.now();let g=!1;this._condition!==0&&u-this._lastTrackMarkTime>this._trackMarkCooldown&&(h>this._minAbsAccelerationForMark&&(g=!0),s>this._minSpeedForRotationMarks&&(r>this._minAngularSpeedForMark||p>this._minRotationAccelerationForMark)&&(g=!0)),this._engineLoad>1&&(g=!0),g&&(this.createTrackMarksAtPreviousPosition(),this._lastTrackMarkTime=u),this._prevX=this._currentX,this._prevY=this._currentY,this._prevRotation=this._currentRotation,this._prevSpeed=s,this._prevAngularSpeed=r}createTrackMarksAtPreviousPosition(){for(let t=-1;t<=1;t+=2){const e=Math.cos(this._prevRotation+Math.PI/2)*this._trackOffset*t,i=Math.sin(this._prevRotation+Math.PI/2)*this._trackOffset*t,s=-Math.cos(this._prevRotation)*this._backwardOffset,o=-Math.sin(this._prevRotation)*this._backwardOffset,r=this._prevX+e+s,a=this._prevY+i+o,h=new Zt(r,a,this._prevRotation,this._trackWidth,this._trackLength,this._trackInitialAlpha,this._assets.trackMarkTexture);this.addChild(h)}}_stopTimer(){this._tickListener&&(E.shared.remove(this._tickListener),this._tickListener=null)}destroy(t){this._stopTimer(),super.destroy({children:!0,texture:!1,textureSource:!1,...t})}}class Qt extends V{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 I,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:j(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=T(this.startPositionX,this.endPositionX,e),s=T(this.startPositionY,this.endPositionY,e),o=T(this.config.alphaStart,this.config.alphaEnd,e),r=Math.sin(this.elapsedTime*this.config.alphaPulseFrequency)*this.config.alphaPulseAmplitude;let a=o+r;a=j(a,0,this.config.alphaStart);const h=Math.pow(e,this.config.trailShrinkPower),c=T(this.config.trailLength,0,h),p=this.totalDist*e;if(p>=this.config.trailStartOffset){let u=p;this.totalDist>.001&&(u=Math.max(0,p-this.config.trailStartOffset));const g=Math.min(u,c);let f,m;this.totalDist>.001?(f=i-this.nx*g,m=s-this.ny*g):(f=i,m=s);const d=Math.hypot(i-f,s-m);if(d<this.config.segmentRadius*.5&&this.totalDist===0)this._drawSegment(i,s,this.config.segmentRadius,this.config.color,a);else if(d>=this.config.segmentRadius*.5){const y=Math.max(1,this.config.segmentCount);for(let x=0;x<y;x++){let S=.5;y>1&&(S=x/(y-1));const w=T(f,i,S),l=T(m,s,S),A=T(1,.8,S);this._drawSegment(w,l,this.config.segmentRadius,this.config.color,a*A)}}}}this.elapsedTime>=this.animationDuration&&(this.graphics.clear(),this._completeEffect())}destroy(t){this.graphics&&this.graphics.clear(),super.destroy(t)}}class te extends V{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:M(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+M(-i,i);const a=M(this.config.minInitialSpeed,this.config.maxInitialSpeed),h=new v(this._particleTexture);h.anchor.set(.5);const c={sprite:h,x:0,y:0,vx:Math.cos(r)*a,vy:Math.sin(r)*a,size:M(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:M(this.config.minLifetime,this.config.maxLifetime),age:0,alpha:1,active:!0,isMoving:!0,timeSinceStopped:0};h.tint=c.color,this.particlesData.push(c),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 p=Math.hypot(r.vx,r.vy);if(p>0){const g=p*this.config.dragCoefficient*e,f=Math.max(0,1-g/p);r.vx*=f,r.vy*=f}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 p=r.timeSinceStopped-this.config.lingerDuration,u=Math.min(500,r.lifetime*(1-this.config.fadeOutStart));r.alpha=T(1,0,Math.min(p/u,1))}else if(a>=this.config.fadeOutStart){const p=r.age-r.lifetime*this.config.fadeOutStart,u=r.lifetime*(1-this.config.fadeOutStart);r.alpha=u>0?T(1,0,Math.min(p/u,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 c=r.size/this._textureContentSize;h.scale.set(c)}i===0&&this._isStarted&&this._completeEffect()}destroy(t){this.particlesData=[],super.destroy(t)}}class ee extends C{constructor(t,e,i){super(),this.zIndex=2,this.startPositionX=t[0],this.startPositionY=t[1],this.endPositionX=t[2],this.endPositionY=t[3],this.soundPositionX=t[4],this.soundPositionY=t[5],this.hit=t[6],this.anchorKey=null,this.anchorLocalX=0,this.anchorLocalY=0,Array.isArray(t[8])&&([this.anchorKey,this.anchorLocalX,this.anchorLocalY]=t[8]),this._assets=e,this._soundManager=i.soundManager,this._mapDynamics=i.mapDynamics||null,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 Qt(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 te(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 ie={Map:vt,MapRadar:kt,TankRadar:It,Tank:Lt,Bomb:Rt,ExplosionEffect:Gt,Smoke:Kt,Tracks:Jt,ShotEffect:ee},se=4;function q(n){return Math.ceil(n*se)}function J(n,t){const{radius:e,blur:i,color:s,quality:o=40}=n,r=new I,a=(e+q(i))*2,h=a/2;r.circle(h,h,e),r.fill(s);const c=new ct({strength:i,quality:o});c.padding=q(i),r.filters=[c];const p=t.generateTexture({target:r,frame:new D(0,0,a,a)});return r.destroy(!0),{texture:p,contentSize:e*2}}function ne(n,t){const{baseRadius:e,irregularity:i=0,blur:s=0,numPoints:o=20,colorFill:r,colorRim:a=r,rimWidth:h=0,variants:c=1}=n,p=Math.max(1,Math.floor(c)||1),u=(e+i+h)*2,g=u+q(s)*2,f=g/2,m=[];for(let d=0;d<p;d+=1){const y=new I,x=[];for(let w=0;w<o;w+=1){const l=w/o*Math.PI*2,A=e+M(-i,i);x.push(f+A*Math.cos(l),f+A*Math.sin(l))}y.poly(x).fill(r).stroke({width:h,color:a,alignment:1});const S=new ct({strength:s,quality:10});S.padding=q(s),y.filters=[S],m.push(t.generateTexture({target:y,frame:new D(0,0,g,g)})),y.destroy(!0)}return{textures:m,contentSize:u}}function re(n,t){const{colors:e}=n,i={},s=10,o=s*4,r=s*3,a=15658734,h=p=>{const u=new I,g=new I,f=o,m=r;u.rect(-f/2,-m/2,f,m).fill(5592405).rect(-f/2+1,-m/2+1,f-2,m-2).fill(10066329).rect(-f/2+2,-m/2+2,f-4,m-4).fill(13421772).rect(-f/2+3,-m/2+3,f-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(p).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(p);const d=u.getBounds(),y=t.generateTexture({target:u,frame:new D(d.x,d.y,d.width,d.height)}),x=g.getBounds(),S=t.generateTexture({target:g,frame:new D(x.x,x.y,x.width,x.height)}),w={x:-x.x/x.width,y:-x.y/x.height};return u.destroy(!0),g.destroy(!0),{body:y,gun:S,gunAnchor:w}},c=()=>{const p=new C,u=new I,g=new I;p.addChild(u,g);const f=3815994,m=2434341,d=3158064,y=1579032,x=5263440,S=o,w=r,l=s;u.moveTo(-S/2-l*.1,-w/2+l*.2).lineTo(S/2+l*.2,-w/2-l*.1).lineTo(S/2-l*.1,w/2+l*.3).lineTo(-S/2+l*.3,w/2-l*.2).closePath().fill(f).stroke({width:l*.2,color:x,alignment:.5}),u.moveTo(-S/2+l*.4,-w/2+l*.5).lineTo(S/2-l*.3,-w/2+l*.2).lineTo(S/2-l*.4,w/2-l*.1).lineTo(-S/2+l*.2,w/2-l*.4).closePath().fill(m),u.circle(S*.15,w*.1,l*1.2).fill(y),u.circle(-S*.3,-w*.25,l*.5).fill(y),g.position.set(l*.3,-l*.2);const A=[l*1.1,-l*.7,l*.2,-l*1,-l*.6,-l*.9,-l*1.3,-l*.2,-l*1.1,l*.6,-l*.2,l*1,l*.7,l*.8,l*1.3,l*.1];g.poly(A).fill(d).stroke({width:l*.15,color:x,alignment:0});const Y=[l*.8,-l*.25,l*1.5,-l*.4,l*1.4,l*.15,l*.7,l*.05];g.poly(Y).fill(d).stroke({width:l*.1,color:x,alignment:0}),g.circle(l*.1,-l*.2,l*.4).fill(y);const L=p.getBounds(),B=t.generateTexture({target:p,frame:new D(L.x,L.y,L.width,L.height)});return p.destroy({children:!0}),B};return i.liveTeamId1=h(e.teamId1),i.liveTeamId2=h(e.teamId2),i.destroyed=c(),i}function oe(n,t){const{radius:e,borderWidth:i,crossSize:s,crossThickness:o,colors:r}=n,a={},h=(e+i)*2,c=h/2,p=15658734,u=3355443,g=m=>{const d=new I;d.circle(c,c,e).fill(p),d.circle(c,c,e-i).fill(m);const y=t.generateTexture({target:d,frame:new D(0,0,h,h)});return d.destroy(!0),y},f=()=>{const m=new I,d=s/2;m.moveTo(c-d,c-d).lineTo(c+d,c+d).moveTo(c-d,c+d).lineTo(c+d,c-d).stroke({width:o,color:u});const y=t.generateTexture({target:m,frame:new D(0,0,h,h)});return m.destroy(!0),y};return a.liveTeamId1=g(r.teamId1),a.liveTeamId2=g(r.teamId2),a.destroyed=f(),a}function ae(n,t){const{colorOuter:e,colorInner:i}=n,s=new I,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 he(n,t){const{width:e,length:i,color:s}=n,o=new I;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}const ce={explosionTexture:J,smokeTexture:J,impactParticleTexture:J,funnelTexture:ne,tankTexture:re,tankRadarTexture:oe,bombTexture:ae,trackMarkTexture:he},le=n=>(n??"").split(/[?#]/)[0].endsWith(".js"),_e=n=>import(n),ue={id:"tanks",engineApi:pt,async createClientCore(n,{wasmUrl:t}){if(le(t)){const i=await _e(t);return{core:new i.ClientCore(n),memory:null}}const e=await wt({module_or_path:t});return{core:new Q(n),memory:e.memory}},parts:ie,bakers:ce,styles:bt,hooks:{services(n){return{mapDynamics:{toWorld(t,e,i){const s=n.map_dynamics_to_world(t,e,i);return s.length===0?null:{x:s[0],y:s[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{ue as default};
|
|
1
|
+
import{Container as A,Assets as G,Sprite as v,Spritesheet as _t,Rectangle as D,Graphics as I,Text as dt,Ticker as E,Particle as ut,ParticleContainer as ht,BlurFilter as ct}from"pixi.js";const pt=3;class Q{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,it.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_clientcore_free(t,0)}apply_aim(t,e,i,s){_.clientcore_apply_aim(this.__wbg_ptr,t,e,i,s)}apply_input(t,e,i){const s=R(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=k,r=R(e,_.__wbindgen_malloc,_.__wbindgen_realloc),a=k;_.clientcore_apply_input(this.__wbg_ptr,s,o,r,a,i)}cycle_weapon(t){_.clientcore_cycle_weapon(this.__wbg_ptr,t)}debug_json(){let t,e;try{const i=_.clientcore_debug_json(this.__wbg_ptr);return t=i[0],e=i[1],F(i[0],i[1])}finally{_.__wbindgen_free(t,e,1)}}decode_frame(t){let e,i;try{const s=nt(t,_.__wbindgen_malloc),o=k,r=_.clientcore_decode_frame(this.__wbg_ptr,s,o);return e=r[0],i=r[1],F(r[0],r[1])}finally{_.__wbindgen_free(e,i,1)}}hot_ptr(){return _.clientcore_hot_ptr(this.__wbg_ptr)>>>0}hot_values(){const t=_.clientcore_hot_values(this.__wbg_ptr);var e=st(t[0],t[1]).slice();return _.__wbindgen_free(t[0],t[1]*4,4),e}map_dynamics_to_world(t,e,i){const s=R(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=k,r=_.clientcore_map_dynamics_to_world(this.__wbg_ptr,s,o,e,i);var a=st(r[0],r[1]).slice();return _.__wbindgen_free(r[0],r[1]*4,4),a}my_game_id(){return _.clientcore_my_game_id(this.__wbg_ptr)}constructor(t){const e=R(t,_.__wbindgen_malloc,_.__wbindgen_realloc),i=k,s=_.clientcore_new(e,i);if(s[2])throw rt(s[1]);return this.__wbg_ptr=s[0],it.register(this,this.__wbg_ptr,this),this}offset(){return _.clientcore_offset(this.__wbg_ptr)}push_frame(t,e){const i=nt(t,_.__wbindgen_malloc),s=k;return _.clientcore_push_frame(this.__wbg_ptr,i,s,e)!==0}reset(){_.clientcore_reset(this.__wbg_ptr)}resync(){_.clientcore_resync(this.__wbg_ptr)}sample(t){return _.clientcore_sample(this.__wbg_ptr,t)>>>0}set_active(t){_.clientcore_set_active(this.__wbg_ptr,t)}set_map(t){const e=R(t,_.__wbindgen_malloc,_.__wbindgen_realloc),i=k,s=_.clientcore_set_map(this.__wbg_ptr,e,i);if(s[1])throw rt(s[0])}set_model(t){const e=R(t,_.__wbindgen_malloc,_.__wbindgen_realloc),i=k;_.clientcore_set_model(this.__wbg_ptr,e,i)}sync_panel(t){const e=R(t,_.__wbindgen_malloc,_.__wbindgen_realloc),i=k;_.clientcore_sync_panel(this.__wbg_ptr,e,i)}take_divergence(){let t,e;try{const i=_.clientcore_take_divergence(this.__wbg_ptr);return t=i[0],e=i[1],F(i[0],i[1])}finally{_.__wbindgen_free(t,e,1)}}take_frames(){let t,e;try{const i=_.clientcore_take_frames(this.__wbg_ptr);return t=i[0],e=i[1],F(i[0],i[1])}finally{_.__wbindgen_free(t,e,1)}}try_fire(t){const e=_.clientcore_try_fire(this.__wbg_ptr,t);let i;return e[0]!==0&&(i=F(e[0],e[1]).slice(),_.__wbindgen_free(e[0],e[1]*1,1)),i}}Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);function ft(){return{__proto__:null,"./vimp_tanks_core_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(t,e){return Error(F(t,e))},__wbg___wbindgen_throw_344f42d3211c4765:function(t,e){throw new Error(F(t,e))},__wbindgen_init_externref_table:function(){const t=_.__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 it=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_clientcore_free(n,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>_.__wbg_gamecore_free(n,1));function st(n,t){return n=n>>>0,mt().subarray(n/4,n/4+t)}let O=null;function mt(){return(O===null||O.byteLength===0)&&(O=new Float32Array(_.memory.buffer)),O}function F(n,t){return yt(n>>>0,t)}let N=null;function U(){return(N===null||N.byteLength===0)&&(N=new Uint8Array(_.memory.buffer)),N}function nt(n,t){const e=t(n.length*1,1)>>>0;return U().set(n,e/1),k=n.length,e}function R(n,t,e){if(e===void 0){const a=W.encode(n),h=t(a.length,1)>>>0;return U().subarray(h,h+a.length).set(a),k=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=W.encodeInto(n,a);r+=h.written,s=e(s,i,r,1)>>>0}return k=r,s}function rt(n){const t=_.__wbindgen_externrefs.get(n);return _.__externref_table_dealloc(n),t}let $=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});$.decode();const gt=2146435072;let K=0;function yt(n,t){return K+=t,K>=gt&&($=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),$.decode(),K=t),$.decode(U().subarray(n,n+t))}const W=new TextEncoder;"encodeInto"in W||(W.encodeInto=function(n,t){const e=W.encode(n);return t.set(e),{read:n.length,written:e.length}});let k=0,_;function xt(n,t){return _=n.exports,O=null,N=null,_.__wbindgen_start(),_}async function St(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 wt(n){if(_!==void 0)return _;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-CAZB73AI.wasm",import.meta.url));const t=ft();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:e,module:i}=await St(await n,t);return xt(e)}const bt='@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}',T=(n,t,e)=>n+(t-n)*e,j=(n,t,e)=>Math.min(e,Math.max(t,n)),Mt=n=>n*(Math.PI/180),Tt=n=>{for(;n>Math.PI;)n-=Math.PI*2;for(;n<-Math.PI;)n+=Math.PI*2;return n},M=(n,t)=>Math.random()*(t-n)+n;class vt extends A{constructor(t,e,i){if(super(),this._baseTexturePromise=null,this._assetUrl=null,this._renderer=i.renderer,this._imageBase=null,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=G.load(this._assetUrl),this._map=t.map,this._tiles=t.tiles,this._spriteSheetData=t.spriteSheet,this._step=t.step,this.zIndex=t.layer||1,this.createStatic()):t.type==="dynamic"&&(this._assetUrl=`${this._imageBase}${t.img}`,this._baseTexturePromise=G.load(this._assetUrl),this.zIndex=t.layer||2,this._rotation=Mt(t.angle),this._width=t.width,this._height=t.height,this._x=t.position[0],this._y=t.position[1],this.createDynamic())}async createDynamic(){try{const t=await this._baseTexturePromise;this.sprite=new v(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={};this._spriteSheetData.frames.forEach((c,p)=>{const[u,g,f,m]=c;t[`frame${p}`]={frame:{x:u,y:g,w:f,h:m}}});const e={frames:t,meta:{scale:"1"}},i=await this._baseTexturePromise,s=new _t(i,e);await s.parse();const o=this._map[0].length*this._step,r=this._map.length*this._step,a=new A;for(let c=0,p=this._map.length;c<p;c+=1)for(let u=0,g=this._map[c].length;u<g;u+=1){const f=this._map[c][u];if(this._tiles.includes(f)){const m=`frame${f}`,d=s.textures[m];if(d){const y=new v(d);y.x=u*this._step,y.y=c*this._step,a.addChild(y)}else console.warn(`Texture not found. Tile: ${f}, sprite: ${m}`)}}const h=this._renderer.generateTexture({target:a,frame:new D(0,0,o,r)});a.destroy({children:!0}),this.mapSprite=new v(h),this.addChild(this.mapSprite)}catch(t){console.error(`Failed to create static map with asset ${this._assetUrl}:`,t)}}update(t){this.sprite&&(this.sprite.x=t[0]/this.scale.x,this.sprite.y=t[1]/this.scale.y,this.sprite.rotation=t[2])}destroy(t){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&&G.cache.has(this._assetUrl)&&G.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._spriteSheetData=null,this._renderer=null}}class kt extends A{constructor(t){super(),this._map=t.map,this._physicsStatic=t.physicsStatic,this._step=t.step,this.zIndex=2,this.scale=t.scale,this.radarGraphics=new I,this.addChild(this.radarGraphics),this.createRadarMap()}createRadarMap(){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._physicsStatic.includes(o)&&t.rect(s*this._step,e*this._step,this._step/2,this._step/2)}}t.fill(16777215)}update(){}destroy(t){super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this.radarGraphics=null,this._map=null,this._physicsStatic=null}}class It extends A{constructor(t,e){super(),this.zIndex=2,this._textures=e.tankRadarTexture,this.body=new v,this.body.anchor.set(.5),this.addChild(this.body),this.x=t[0]||0,this.y=t[1]||0,this._condition=t[7],this._teamId=t[9],this.scale.set(5,5),this.create()}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[0],this.y=t[1];const e=t[7],i=t[9];let s=!1;e!==void 0&&e!==this._condition&&(this._condition=e,s=!0),i!==void 0&&i!==this._teamId&&(this._teamId=i,s=!0),s&&this.create()}destroy(t){super.destroy({children:!0,texture:!1,textureSource:!1,...t}),this.body=null,this._textures=null}}const Dt=1,ot=1.1,At=1.18,Ct=.9,Pt=1;function Et(n){const t=j(n,0,1),e=Math.max(0,n-1),i=T(Dt,ot,t)+(At-ot)*e,s=T(Ct,Pt,t);return{rate:i,volumeFactor:s}}class Lt extends A{constructor(t,e,i){super(),this.zIndex=3,this.body=new v,this.gun=new v,this.wreck=new v,this.body.anchor.set(.5),this.wreck.anchor.set(.5),this.addChild(this.body,this.gun,this.wreck),this._textures=e.tankTexture,this.x=t[0]||0,this.y=t[1]||0,this.rotation=t[2]||0,this.gun.rotation=t[3]||0,this._engineLoad=t[6]||0,this._condition=t[7],this._size=t[8],this._teamId=t[9];const s=this._teamId===1?this._textures.liveTeamId1:this._textures.liveTeamId2,o=s?s.gunAnchor:null;o?this.gun.anchor.set(o.x,o.y):this.gun.anchor.set(.5);const a=this._size/10;this.body.scale.set(a),this.gun.scale.set(a),this.wreck.scale.set(a),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}=Et(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[0],this.y=t[1],this.rotation=t[2],this.gun.rotation=t[3],this._engineLoad=t[6],this._condition>0&&(this._soundId===null?this._initSounds():this._soundManager.updateSoundData(this._soundId,this._getSoundData()));const e=t[7],i=t[9];let s=!1;e!==void 0&&e!==this._condition&&(this._condition=e,s=!0),i!==void 0&&i!==this._teamId&&(this._teamId=i,s=!0),s&&this.create()}destroySounds(){this._soundId&&(this._soundManager.unregisterSound(this._soundId),this._soundId=null)}destroy(t){this.destroySounds(),super.destroy({children:!0,texture:!1,textureSource:!1,...t})}}class Rt extends A{constructor(t,e,i){super(),this.zIndex=2,this.body=new v(e.bombTexture),this.body.anchor.set(.5),this.x=t[0],this.y=t[1],this.rotation=t[2],this._size=t[3],this._totalDurationMs=t[4],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 dt({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),E.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[0],this.y=t[1],this.rotation=t[2],this._soundId&&(this._soundManager.updateSoundData(this._soundId,{position:{x:this.x,y:this.y}})||(this._soundId=null))}_stopTimer(){this._tickListener&&(E.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 V 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),E.shared.add(this._tickListener),this._onEffectStart(),this.isComplete||this._update(0))}_onEffectStart(){}_update(){}_completeEffect(){this.isComplete||(this.isComplete=!0,this._tickListener&&(E.shared.remove(this._tickListener),this._tickListener=null),typeof this.onComplete=="function"&&this.onComplete())}destroy(t){this.isComplete=!0,this._tickListener&&(E.shared.remove(this._tickListener),this._tickListener=null),this.parent&&this.parent.removeChild(this),super.destroy({texture:!1,textureSource:!1,...t,children:!0})}}class Ft extends V{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 v(r),this._mainBody.anchor.set(.5),this._mainBody.tint=11393254,this._mainBody.scale.set(this._baseScale),this._core=new v(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 Z=[],X={get(n){if(Z.length>0){const t=Z.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 ut({texture:n,anchorX:.5,anchorY:.5})},release(n){n&&Z.push(n)}},tt=50,zt=400,Xt=800;class Yt extends V{constructor(t,e=tt){super();const i=e/tt;this._blastScale=i;const{texture:s,contentSize:o}=t.explosionTexture;this.explosionTexture=s,this._unitScale=1/o;const r=zt*i,a=Xt*i;this._particleContainer=new ht({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=X.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),X.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 c=(o-.4)/.6;s.alpha=this._startAlpha*(1-c)}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)X.release(this._particles[e].view);this._particles=[],super.destroy(t)}}const Bt=.168,Ot=.225,at=.15,Nt=2e4,Ut=50,Wt=4e3,Vt=4e3;class Ht extends V{constructor(t,e,i,s,o){super(s),this._assets=o,this._radius=i,this.x=t,this.y=e,this._funnelDurationMs=Nt,this._funnelFadeInDurationMs=Ut,this._funnelFadeDurationMs=Wt,this._elapsedMs=0,this._smokeDurationMs=Vt,this._smokeSpawningStopped=!1,this._funnel=this._createFunnelSprite(),this._smoke=new Yt(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 v(i);s.anchor.set(.5),s.alpha=0,s.rotation=Math.random()*Math.PI*2;const o=this._radius*Bt*M(1-at,1+at);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=Ot*j(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)}}class Gt extends A{constructor(t,e,i){super(),this.originX=t[0],this.originY=t[1],this.radius=t[2]??tt,this._assets=e,this._soundManager=i.soundManager,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}})}run(){if(!(this._isDestroyed||this._isStarted)){if(this._isStarted=!0,!this.parent){this.destroy();return}this.explosion=new Ft(this.originX,this.originY,this.radius,this._onExplosionComplete.bind(this),this._assets),this.explosion.zIndex=4,this.funnel=new Ht(this.originX,this.originY,this.radius,this._onFunnelComplete.bind(this),this._assets),this.funnel.zIndex=2,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 z=400,$t=0,jt=0,qt=8,b={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};class Kt extends A{constructor(t,e){super(),this.zIndex=4;const{texture:i,contentSize:s}=e.smokeTexture;this._smokeTexture=i,this._textureScale=qt/s,this._emitterX=t[0],this._emitterY=t[1],this._emitterRotation=t[2],this._emitterVX=t[4],this._emitterVY=t[5],this._engineLoad=t[6],this._condition=t[7],this._size=t[8],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._particleContainer=new ht({texture:this._smokeTexture,boundsArea:new D(this._emitterX-z,this._emitterY-z,z*2,z*2),dynamicProperties:{position:!0,vertex:!0,rotation:!0,color:!0}}),this.addChild(this._particleContainer),this._timeSinceLastSpawn=0,this._tickListener=o=>this._updateParticles(o.deltaMS),E.shared.add(this._tickListener)}update(t){const e=this._condition;this._emitterX=t[0],this._emitterY=t[1],this._emitterRotation=t[2],this._emitterVX=t[4],this._emitterVY=t[5],this._engineLoad=t[6],this._condition=t[7],this._particleContainer.boundsArea.x=this._emitterX-z,this._particleContainer.boundsArea.y=this._emitterY-z,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=b.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=b.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;const a=1-Math.pow(b.airResistance,t/16);for(let h=this._particles.length-1;h>=0;h-=1){const c=this._particles[h];if(c.age+=t,c.age>=c.lifetime){this._particleContainer.removeParticle(c.view),X.release(c.view),this._particles.splice(h,1);continue}c.vx=c.vx+($t-c.vx)*a,c.vy=c.vy+(jt-c.vy)*a,c.x+=c.vx*e,c.y+=c.vy*e;const p=c.age/c.lifetime,u=1-(1-p)*(1-p),g=T(c.startSizeFactor,c.endSizeFactor,u),f=T(c.startAlpha,c.endAlpha,p),m=g*this._particleScaleMultiplier*this._textureScale,d=c.view;d.x=c.x,d.y=c.y,d.scaleX=m,d.scaleY=m,d.alpha=f,d.rotation+=c.rotSpeed*e}}spawnParticle(t,e,i=!1){const s=M(b.particleLifetime.min,b.particleLifetime.max);let o=b.particleStartSizeFactor[this._condition]||.3,r=b.particleEndSizeFactor[this._condition]||1,a=b.particleStartAlpha,h=1;i&&(o*=2,r*=2.5,a=.8,h=2);const c=this._emitterRotation,p=c+Math.PI,u=Math.cos(p),g=Math.sin(p),f=c+Math.PI/2,m=Math.cos(f),d=Math.sin(f);let y=0;const x=this._width/2*b.streamOffsetFactor;e===2?y=t===0?-x:x:e===3&&(y=(t-1)*x);const S=this._height*.22,w=this._emitterX+u*S+m*y,l=this._emitterY+g*S+d*y;let C=M(b.particleInitialVelocity.away.min,b.particleInitialVelocity.away.max),Y=M(b.particleInitialVelocity.side.min,b.particleInitialVelocity.side.max);C*=h,Y*=h;let L=u*C+m*Y,B=g*C+d*Y;const H=b.particleVelocityVariance;L+=M(-H,H),B+=M(-H,H),L+=this._emitterVX,B+=this._emitterVY;const P=X.get(this._smokeTexture);P.tint=b.particleColor,P.x=w,P.y=l,P.alpha=a;const et=o*this._particleScaleMultiplier*this._textureScale;P.scaleX=et,P.scaleY=et,P.rotation=M(0,Math.PI*2);const lt={view:P,x:w,y:l,vx:L,vy:B,age:0,lifetime:s,startSizeFactor:o,endSizeFactor:r,startAlpha:a,endAlpha:b.particleEndAlpha,rotSpeed:M(-1,1)};this._particleContainer.addParticle(P),this._particles.push(lt)}_stopTimer(){this._tickListener&&(E.shared.remove(this._tickListener),this._tickListener=null)}destroy(t){this._stopTimer();for(let e=0;e<this._particles.length;e+=1)X.release(this._particles[e].view);this._particles=[],super.destroy({texture:!1,textureSource:!1,...t,children:!0})}}class Zt extends v{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}}class Jt extends A{constructor(t,e){super(),this.zIndex=1,this._currentX=t[0]||0,this._currentY=t[1]||0,this._currentRotation=t[2]||0,this._engineLoad=t[6]||0,this._condition=t[7],this._size=t[8],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),E.shared.add(this._tickListener)}update(t){this._currentX=t[0],this._currentY=t[1],this._currentRotation=t[2],this._engineLoad=t[6],this._condition=t[7]}_internalUpdate(t){if(t<=0)return;for(let f=this.children.length-1;f>=0;f-=1){const m=this.children[f];m.update(t)&&m.destroy()}const e=this._currentX-this._prevX,i=this._currentY-this._prevY,s=Math.sqrt(e*e+i*i),o=Tt(this._currentRotation-this._prevRotation),r=Math.abs(o),a=s-this._prevSpeed,h=Math.abs(a),c=r-this._prevAngularSpeed,p=Math.abs(c),u=performance.now();let g=!1;this._condition!==0&&u-this._lastTrackMarkTime>this._trackMarkCooldown&&(h>this._minAbsAccelerationForMark&&(g=!0),s>this._minSpeedForRotationMarks&&(r>this._minAngularSpeedForMark||p>this._minRotationAccelerationForMark)&&(g=!0)),this._engineLoad>1&&(g=!0),g&&(this.createTrackMarksAtPreviousPosition(),this._lastTrackMarkTime=u),this._prevX=this._currentX,this._prevY=this._currentY,this._prevRotation=this._currentRotation,this._prevSpeed=s,this._prevAngularSpeed=r}createTrackMarksAtPreviousPosition(){for(let t=-1;t<=1;t+=2){const e=Math.cos(this._prevRotation+Math.PI/2)*this._trackOffset*t,i=Math.sin(this._prevRotation+Math.PI/2)*this._trackOffset*t,s=-Math.cos(this._prevRotation)*this._backwardOffset,o=-Math.sin(this._prevRotation)*this._backwardOffset,r=this._prevX+e+s,a=this._prevY+i+o,h=new Zt(r,a,this._prevRotation,this._trackWidth,this._trackLength,this._trackInitialAlpha,this._assets.trackMarkTexture);this.addChild(h)}}_stopTimer(){this._tickListener&&(E.shared.remove(this._tickListener),this._tickListener=null)}destroy(t){this._stopTimer(),super.destroy({children:!0,texture:!1,textureSource:!1,...t})}}class Qt extends V{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 I,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:j(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=T(this.startPositionX,this.endPositionX,e),s=T(this.startPositionY,this.endPositionY,e),o=T(this.config.alphaStart,this.config.alphaEnd,e),r=Math.sin(this.elapsedTime*this.config.alphaPulseFrequency)*this.config.alphaPulseAmplitude;let a=o+r;a=j(a,0,this.config.alphaStart);const h=Math.pow(e,this.config.trailShrinkPower),c=T(this.config.trailLength,0,h),p=this.totalDist*e;if(p>=this.config.trailStartOffset){let u=p;this.totalDist>.001&&(u=Math.max(0,p-this.config.trailStartOffset));const g=Math.min(u,c);let f,m;this.totalDist>.001?(f=i-this.nx*g,m=s-this.ny*g):(f=i,m=s);const d=Math.hypot(i-f,s-m);if(d<this.config.segmentRadius*.5&&this.totalDist===0)this._drawSegment(i,s,this.config.segmentRadius,this.config.color,a);else if(d>=this.config.segmentRadius*.5){const y=Math.max(1,this.config.segmentCount);for(let x=0;x<y;x++){let S=.5;y>1&&(S=x/(y-1));const w=T(f,i,S),l=T(m,s,S),C=T(1,.8,S);this._drawSegment(w,l,this.config.segmentRadius,this.config.color,a*C)}}}}this.elapsedTime>=this.animationDuration&&(this.graphics.clear(),this._completeEffect())}destroy(t){this.graphics&&this.graphics.clear(),super.destroy(t)}}class te extends V{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:M(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+M(-i,i);const a=M(this.config.minInitialSpeed,this.config.maxInitialSpeed),h=new v(this._particleTexture);h.anchor.set(.5);const c={sprite:h,x:0,y:0,vx:Math.cos(r)*a,vy:Math.sin(r)*a,size:M(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:M(this.config.minLifetime,this.config.maxLifetime),age:0,alpha:1,active:!0,isMoving:!0,timeSinceStopped:0};h.tint=c.color,this.particlesData.push(c),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 p=Math.hypot(r.vx,r.vy);if(p>0){const g=p*this.config.dragCoefficient*e,f=Math.max(0,1-g/p);r.vx*=f,r.vy*=f}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 p=r.timeSinceStopped-this.config.lingerDuration,u=Math.min(500,r.lifetime*(1-this.config.fadeOutStart));r.alpha=T(1,0,Math.min(p/u,1))}else if(a>=this.config.fadeOutStart){const p=r.age-r.lifetime*this.config.fadeOutStart,u=r.lifetime*(1-this.config.fadeOutStart);r.alpha=u>0?T(1,0,Math.min(p/u,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 c=r.size/this._textureContentSize;h.scale.set(c)}i===0&&this._isStarted&&this._completeEffect()}destroy(t){this.particlesData=[],super.destroy(t)}}class ee extends A{constructor(t,e,i){super(),this.zIndex=2,this.startPositionX=t[0],this.startPositionY=t[1],this.endPositionX=t[2],this.endPositionY=t[3],this.soundPositionX=t[4],this.soundPositionY=t[5],this.hit=t[6],this.anchorKey=null,this.anchorLocalX=0,this.anchorLocalY=0,Array.isArray(t[8])&&([this.anchorKey,this.anchorLocalX,this.anchorLocalY]=t[8]),this._assets=e,this._soundManager=i.soundManager,this._mapDynamics=i.mapDynamics||null,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 Qt(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 te(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 ie={Map:vt,MapRadar:kt,TankRadar:It,Tank:Lt,Bomb:Rt,ExplosionEffect:Gt,Smoke:Kt,Tracks:Jt,ShotEffect:ee},se=4;function q(n){return Math.ceil(n*se)}function J(n,t){const{radius:e,blur:i,color:s,quality:o=40}=n,r=new I,a=(e+q(i))*2,h=a/2;r.circle(h,h,e),r.fill(s);const c=new ct({strength:i,quality:o});c.padding=q(i),r.filters=[c];const p=t.generateTexture({target:r,frame:new D(0,0,a,a)});return r.destroy(!0),{texture:p,contentSize:e*2}}function ne(n,t){const{baseRadius:e,irregularity:i=0,blur:s=0,numPoints:o=20,colorFill:r,colorRim:a=r,rimWidth:h=0,variants:c=1}=n,p=Math.max(1,Math.floor(c)||1),u=(e+i+h)*2,g=u+q(s)*2,f=g/2,m=[];for(let d=0;d<p;d+=1){const y=new I,x=[];for(let w=0;w<o;w+=1){const l=w/o*Math.PI*2,C=e+M(-i,i);x.push(f+C*Math.cos(l),f+C*Math.sin(l))}y.poly(x).fill(r).stroke({width:h,color:a,alignment:1});const S=new ct({strength:s,quality:10});S.padding=q(s),y.filters=[S],m.push(t.generateTexture({target:y,frame:new D(0,0,g,g)})),y.destroy(!0)}return{textures:m,contentSize:u}}function re(n,t){const{colors:e}=n,i={},s=10,o=s*4,r=s*3,a=15658734,h=p=>{const u=new I,g=new I,f=o,m=r;u.rect(-f/2,-m/2,f,m).fill(5592405).rect(-f/2+1,-m/2+1,f-2,m-2).fill(10066329).rect(-f/2+2,-m/2+2,f-4,m-4).fill(13421772).rect(-f/2+3,-m/2+3,f-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(p).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(p);const d=u.getBounds(),y=t.generateTexture({target:u,frame:new D(d.x,d.y,d.width,d.height)}),x=g.getBounds(),S=t.generateTexture({target:g,frame:new D(x.x,x.y,x.width,x.height)}),w={x:-x.x/x.width,y:-x.y/x.height};return u.destroy(!0),g.destroy(!0),{body:y,gun:S,gunAnchor:w}},c=()=>{const p=new A,u=new I,g=new I;p.addChild(u,g);const f=3815994,m=2434341,d=3158064,y=1579032,x=5263440,S=o,w=r,l=s;u.moveTo(-S/2-l*.1,-w/2+l*.2).lineTo(S/2+l*.2,-w/2-l*.1).lineTo(S/2-l*.1,w/2+l*.3).lineTo(-S/2+l*.3,w/2-l*.2).closePath().fill(f).stroke({width:l*.2,color:x,alignment:.5}),u.moveTo(-S/2+l*.4,-w/2+l*.5).lineTo(S/2-l*.3,-w/2+l*.2).lineTo(S/2-l*.4,w/2-l*.1).lineTo(-S/2+l*.2,w/2-l*.4).closePath().fill(m),u.circle(S*.15,w*.1,l*1.2).fill(y),u.circle(-S*.3,-w*.25,l*.5).fill(y),g.position.set(l*.3,-l*.2);const C=[l*1.1,-l*.7,l*.2,-l*1,-l*.6,-l*.9,-l*1.3,-l*.2,-l*1.1,l*.6,-l*.2,l*1,l*.7,l*.8,l*1.3,l*.1];g.poly(C).fill(d).stroke({width:l*.15,color:x,alignment:0});const Y=[l*.8,-l*.25,l*1.5,-l*.4,l*1.4,l*.15,l*.7,l*.05];g.poly(Y).fill(d).stroke({width:l*.1,color:x,alignment:0}),g.circle(l*.1,-l*.2,l*.4).fill(y);const L=p.getBounds(),B=t.generateTexture({target:p,frame:new D(L.x,L.y,L.width,L.height)});return p.destroy({children:!0}),B};return i.liveTeamId1=h(e.teamId1),i.liveTeamId2=h(e.teamId2),i.destroyed=c(),i}function oe(n,t){const{radius:e,borderWidth:i,crossSize:s,crossThickness:o,colors:r}=n,a={},h=(e+i)*2,c=h/2,p=15658734,u=3355443,g=m=>{const d=new I;d.circle(c,c,e).fill(p),d.circle(c,c,e-i).fill(m);const y=t.generateTexture({target:d,frame:new D(0,0,h,h)});return d.destroy(!0),y},f=()=>{const m=new I,d=s/2;m.moveTo(c-d,c-d).lineTo(c+d,c+d).moveTo(c-d,c+d).lineTo(c+d,c-d).stroke({width:o,color:u});const y=t.generateTexture({target:m,frame:new D(0,0,h,h)});return m.destroy(!0),y};return a.liveTeamId1=g(r.teamId1),a.liveTeamId2=g(r.teamId2),a.destroyed=f(),a}function ae(n,t){const{colorOuter:e,colorInner:i}=n,s=new I,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 he(n,t){const{width:e,length:i,color:s}=n,o=new I;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}const ce={explosionTexture:J,smokeTexture:J,impactParticleTexture:J,funnelTexture:ne,tankTexture:re,tankRadarTexture:oe,bombTexture:ae,trackMarkTexture:he},le=n=>(n??"").split(/[?#]/)[0].endsWith(".js"),_e=n=>import(n),ue={id:"tanks",engineApi:pt,async createClientCore(n,{wasmUrl:t}){if(le(t)){const i=await _e(t);return{core:new i.ClientCore(n),memory:null}}const e=await wt({module_or_path:t});return{core:new Q(n),memory:e.memory}},parts:ie,bakers:ce,styles:bt,hooks:{services(n){return{mapDynamics:{toWorld(t,e,i){const s=n.map_dynamics_to_world(t,e,i);return s.length===0?null:{x:s[0],y:s[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{ue as default};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class x{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_gamecore_free(e,0)}alive_players(){const e=s.gamecore_alive_players(this.__wbg_ptr);var a=I(e[0],e[1]).slice();return s.__wbindgen_free(e[0],e[1]*4,4),a}apply_aim(e,a,n,r,i){s.gamecore_apply_aim(this.__wbg_ptr,e,a,n,r,i)}apply_input(e,a,n,r){const i=h(n,s.__wbindgen_malloc,s.__wbindgen_realloc),o=d,c=h(r,s.__wbindgen_malloc,s.__wbindgen_realloc),p=d;s.gamecore_apply_input(this.__wbg_ptr,e,a,i,o,c,p)}body_has_events(){return s.gamecore_body_has_events(this.__wbg_ptr)!==0}clear(){s.gamecore_clear(this.__wbg_ptr)}debug_json(){let e,a;try{const n=s.gamecore_debug_json(this.__wbg_ptr);return e=n[0],a=n[1],y(n[0],n[1])}finally{s.__wbindgen_free(e,a,1)}}deserialize_state(e){const a=L(e,s.__wbindgen_malloc),n=d,r=s.gamecore_deserialize_state(this.__wbg_ptr,a,n);if(r[1])throw g(r[0])}frame_bytes(){const e=s.gamecore_frame_bytes(this.__wbg_ptr);var a=F(e[0],e[1]).slice();return s.__wbindgen_free(e[0],e[1]*1,1),a}frame_ptr(){return s.gamecore_frame_ptr(this.__wbg_ptr)>>>0}is_alive(e){return s.gamecore_is_alive(this.__wbg_ptr,e)!==0}last_input_seq(e){return s.gamecore_last_input_seq(this.__wbg_ptr,e)>>>0}load_map(e){const a=h(e,s.__wbindgen_malloc,s.__wbindgen_realloc),n=d,r=s.gamecore_load_map(this.__wbg_ptr,a,n);if(r[1])throw g(r[0])}map_info(){let e,a;try{const n=s.gamecore_map_info(this.__wbg_ptr);return e=n[0],a=n[1],y(n[0],n[1])}finally{s.__wbindgen_free(e,a,1)}}constructor(e){const a=h(e,s.__wbindgen_malloc,s.__wbindgen_realloc),n=d,r=s.gamecore_new(a,n);if(r[2])throw g(r[1]);return this.__wbg_ptr=r[0],O.register(this,this.__wbg_ptr,this),this}pack_body(){const e=s.gamecore_pack_body(this.__wbg_ptr);if(e[1])throw g(e[0])}pack_frame(e,a,n,r,i,o,c,p){var l=W(c)?0:h(c,s.__wbindgen_malloc,s.__wbindgen_realloc),m=d;return s.gamecore_pack_frame(this.__wbg_ptr,e,a,n,r,i,o,l,m,p)>>>0}players_data(){let e,a;try{const n=s.gamecore_players_data(this.__wbg_ptr);return e=n[0],a=n[1],y(n[0],n[1])}finally{s.__wbindgen_free(e,a,1)}}position_of(e){const a=s.gamecore_position_of(this.__wbg_ptr,e);var n=I(a[0],a[1]).slice();return s.__wbindgen_free(a[0],a[1]*4,4),n}remove_actor(e){s.gamecore_remove_actor(this.__wbg_ptr,e)}remove_players_and_shots(){let e,a;try{const n=s.gamecore_remove_players_and_shots(this.__wbg_ptr);return e=n[0],a=n[1],y(n[0],n[1])}finally{s.__wbindgen_free(e,a,1)}}remove_scripted_actor(e){s.gamecore_remove_scripted_actor(this.__wbg_ptr,e)}reset_actor(e,a,n,r,i){s.gamecore_reset_actor(this.__wbg_ptr,e,a,n,r,i)}reset_all_vitals(){s.gamecore_reset_all_vitals(this.__wbg_ptr)}serialize_state(){const e=s.gamecore_serialize_state(this.__wbg_ptr);if(e[3])throw g(e[2]);var a=F(e[0],e[1]).slice();return s.__wbindgen_free(e[0],e[1]*1,1),a}spawn_actor(e,a,n,r,i,o){const c=h(a,s.__wbindgen_malloc,s.__wbindgen_realloc),p=d,l=s.gamecore_spawn_actor(this.__wbg_ptr,e,c,p,n,r,i,o);if(l[1])throw g(l[0])}spawn_scripted_actor(e,a,n,r,i,o){const c=h(a,s.__wbindgen_malloc,s.__wbindgen_realloc),p=d,l=s.gamecore_spawn_scripted_actor(this.__wbg_ptr,e,c,p,n,r,i,o);if(l[1])throw g(l[0])}step(e){s.gamecore_step(this.__wbg_ptr,e)}take_events(){let e,a;try{const n=s.gamecore_take_events(this.__wbg_ptr);return e=n[0],a=n[1],y(n[0],n[1])}finally{s.__wbindgen_free(e,a,1)}}}Symbol.dispose&&(x.prototype[Symbol.dispose]=x.prototype.free);function V(){return{__proto__:null,"./vimp_tanks_core_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(e,a){return Error(y(e,a))},__wbg___wbindgen_throw_344f42d3211c4765:function(e,a){throw new Error(y(e,a))},__wbindgen_init_externref_table:function(){const e=s.__wbindgen_externrefs,a=e.grow(4);e.set(0,void 0),e.set(a+0,void 0),e.set(a+1,null),e.set(a+2,!0),e.set(a+3,!1)}}}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(t=>s.__wbg_clientcore_free(t,1));const O=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>s.__wbg_gamecore_free(t,1));function I(t,e){return t=t>>>0,z().subarray(t/4,t/4+e)}function F(t,e){return t=t>>>0,v().subarray(t/1,t/1+e)}let S=null;function z(){return(S===null||S.byteLength===0)&&(S=new Float32Array(s.memory.buffer)),S}function y(t,e){return Y(t>>>0,e)}let k=null;function v(){return(k===null||k.byteLength===0)&&(k=new Uint8Array(s.memory.buffer)),k}function W(t){return t==null}function L(t,e){const a=e(t.length*1,1)>>>0;return v().set(t,a/1),d=t.length,a}function h(t,e,a){if(a===void 0){const c=T.encode(t),p=e(c.length,1)>>>0;return v().subarray(p,p+c.length).set(c),d=c.length,p}let n=t.length,r=e(n,1)>>>0;const i=v();let o=0;for(;o<n;o++){const c=t.charCodeAt(o);if(c>127)break;i[r+o]=c}if(o!==n){o!==0&&(t=t.slice(o)),r=a(r,n,n=o+t.length*3,1)>>>0;const c=v().subarray(r+o,r+n),p=T.encodeInto(t,c);o+=p.written,r=a(r,n,o,1)>>>0}return d=o,r}function g(t){const e=s.__wbindgen_externrefs.get(t);return s.__externref_table_dealloc(t),e}let E=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});E.decode();const U=2146435072;let A=0;function Y(t,e){return A+=e,A>=U&&(E=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),E.decode(),A=e),E.decode(v().subarray(t,t+e))}const T=new TextEncoder;"encodeInto"in T||(T.encodeInto=function(t,e){const a=T.encode(t);return e.set(a),{read:t.length,written:a.length}});let d=0,s;function j(t,e){return s=t.exports,S=null,k=null,s.__wbindgen_start(),s}async function P(t,e){if(typeof Response=="function"&&t instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(t,e)}catch(r){if(t.ok&&a(t.type)&&t.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",r);else throw r}const n=await t.arrayBuffer();return await WebAssembly.instantiate(n,e)}else{const n=await WebAssembly.instantiate(t,e);return n instanceof WebAssembly.Instance?{instance:n,module:t}:n}function a(n){switch(n){case"basic":case"cors":case"default":return!0}return!1}}async function q(t){if(s!==void 0)return s;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),t===void 0&&(t=new URL("/assets/vimp_tanks_core_bg-CfFxwgWS.wasm",import.meta.url));const e=V();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));const{instance:a,module:n}=await P(await t,e);return j(a)}const G={setId:"c1",scale:.2,spriteSheet:{img:"tiles3.png",frames:[[0,64,32,32],[0,192,32,32],[96,64,32,32]]},layers:{1:[0,1],4:[2]},step:32,physicsStatic:[1],physicsDynamic:(function(){const n=[];for(let l=0;l<20;l+=1)for(let m=0;m<1;m+=1){const _=(104+m*3)*32+48,B=(45+l*3)*32+48;n.push({density:20,layer:3,position:[_,B],angle:0,width:96,height:96,img:"b1.png",linearDamping:8,angularDamping:16})}return n})(),respawns:{team1:[[448,1840,0],[256,2304,0],[448,2688,0],[256,3e3,0],[256,512,0],[448,832,0],[256,1152,0],[448,3648,0],[256,3968,0],[448,4288,0]],team2:[[6272,1840,180],[6464,2304,180],[6272,2688,180],[6464,3e3,180],[6464,512,180],[6272,832,180],[6464,1152,180],[6272,3648,180],[6464,3968,180],[6272,4288,180]]},map:(function(){const a={floor:0,wall:1,effect:2},n=Array.from({length:150},()=>Array(210).fill(a.floor));for(let i=0;i<150;i++)for(let o=0;o<210;o++)(i<2||i>=148||o<2||o>=208)&&(n[i][o]=a.wall);const r=(i,o,c,p)=>{for(let l=o;l<=p;l++)for(let m=i;m<=c;m++)m>=0&&m<210&&l>=0&&l<150&&(n[l][m]=a.wall)};r(50,0,51,30),r(50,119,51,149),r(158,0,159,30),r(158,119,159,149),r(80,30,130,31),r(80,118,130,119);for(let i=64;i<86;i++)for(let o=2;o<208;o++)(o+i)%2===0?n[i][o]=a.effect:n[i][o]=a.floor;return n})()},N=[],M=32,u=(t,e,a,n)=>{for(let r=0;r<a;r+=1){const i=n?[t*M,(e+r)*M]:[(t+r)*M,e*M];N.push({density:100,layer:3,position:i,angle:0,img:"b1.png",width:32,height:32,linearDamping:5,angularDamping:14})}};u(30,2,10,!0);u(2,30,10,!1);u(30,22,9,!0);u(22,30,9,!1);const f=120,R=30;u(f-R-1,f-12,10,!0);u(f-12,f-R-1,10,!1);u(f-R-1,f-31,9,!0);u(f-31,f-R-1,9,!1);const H={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:[...N],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:(function(){const a={stone:0,grass:1,wall:2,water:3},n=Array.from({length:120},()=>Array(120).fill(a.grass)),r=()=>{for(let l=0;l<120;l+=1)for(let m=0;m<120;m+=1)(l===0||l===119||m===0||m===119)&&(n[l][m]=a.wall)},i=(l,m,_,B=.5)=>{for(let b=m-_;b<=m+_;b+=1)for(let w=l-_;w<=l+_;w+=1)w>0&&w<119&&b>0&&b<119&&Math.sqrt((w-l)**2+(b-m)**2)<=_&&Math.random()<B&&(n[b][w]=a.wall)};r();const o=Math.floor(120/2),c=Math.floor(120/2),p=22;for(let l=c-p;l<=c+p;l+=1)for(let m=o-p;m<=o+p;m+=1)Math.sqrt((m-o)**2+(l-c)**2)<=p&&(n[l][m]=a.stone);for(let l=c-10;l<=c+10;l+=1)for(let m=o-10;m<=o+10;m+=1)Math.sqrt((m-o)**2+(l-c)**2)<=10&&(n[l][m]=a.water);return i(35,85,12,.7),i(85,35,12,.7),i(20,60,8,.6),i(60,20,8,.6),i(100,60,8,.6),i(60,100,8,.6),n})()},X={setId:"c1",scale:.6,spriteSheet:{img:"tiles.png",frames:[[480,64,32,32],[128,224,32,32],[160,0,32,32],[0,64,32,32],[0,64,32,32]]},layers:{1:[0,2,4],2:[1],4:[3]},physicsStatic:[1],physicsDynamic:[],step:32,respawns:{team1:[[130,520,0],[130,620,0],[130,720,0],[130,820,0],[230,520,0],[230,620,0],[230,720,0],[230,820,0],[330,620,0],[330,720,0]],team2:[[1600,520,180],[1600,620,180],[1600,720,180],[1600,820,180],[1500,520,180],[1500,620,180],[1500,720,180],[1500,820,180],[1400,620,180],[1400,720,180]]},map:(function(){const t=[[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,1,1,2,2,2,1,1,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,2,2,2,2,2,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,4,4,4,4,4,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,4,3,3,3,4,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,4,3,3,3,4,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,2,2,4,3,3,3,4,2,2,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,4,3,3,3,4,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,4,4,4,4,4,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,2,2,2,2,2,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,1,1,2,2,2,1,1,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]],e=[];for(const a of t){const n=[],r=[];for(const i of a)n.push(i,i),r.push(i,i);e.push(n,r)}return e})()},K={canopy:G,garden:H,"pool mini":X},C={m1:{constructor:"Tank",currentWeapon:"w1",size:2,accelerationFactor:1e3,brakingFactor:.3,maxForwardSpeed:260,maxReverseSpeed:-130,baseTurnTorqueFactor:215,damping:{linear:3,angular:100},fixture:{density:200,friction:.5,restitution:.1},lateralGrip:20,turnSpeedThreshold:10,baseTurnFactorRatio:.8,reverseTurnMultiplier:.7,throttleIncreaseRate:2,throttleDecreaseRate:2.5,strainFactor:1.5,maxGunAngle:1.4,gunRotationSpeed:3,gunCenterSpeed:10}},$={w1:{type:"hitscan",impulseMagnitude:75e5,damage:40,range:1500,fireRate:.01,spread:0,consumption:1,cameraShake:{intensity:20,duration:200}},w2:{type:"explosive",constructor:"Bomb",time:300,shotOutcomeId:"w2e",size:8,fireRate:.1,damage:70,radius:50,impulseMagnitude:2e6,cameraShake:{intensity:30,duration:400}}},Q={m1:{id:1,kind:"indexed8",class:"hot",fields:[{name:"x",ty:"f32",interp:"lerp"},{name:"y",ty:"f32",interp:"lerp"},{name:"angle",ty:"f32",interp:"lerpAngle"},{name:"gunRotation",ty:"f32",interp:"lerpAngle"},{name:"vx",ty:"f32",interp:"lerp"},{name:"vy",ty:"f32",interp:"lerp"},{name:"engineLoad",ty:"f32",interp:"lerp"},{name:"condition",ty:"u8"},{name:"size",ty:"u8"},{name:"team",ty:"u8"},{name:"angvel",ty:"f32",interp:"lerp"}]},w1:{id:2,kind:"list16",class:"event",fields:[{name:"startX",ty:"f32"},{name:"startY",ty:"f32"},{name:"endX",ty:"f32"},{name:"endY",ty:"f32"},{name:"bodyX",ty:"f32"},{name:"bodyY",ty:"f32"},{name:"wasHit",ty:"u8"},{name:"shooterId",ty:"u8"}]},w2:{id:3,kind:"indexed32",class:"event",fields:[{name:"x",ty:"f32"},{name:"y",ty:"f32"},{name:"angle",ty:"f32"},{name:"size",ty:"u8"},{name:"time",ty:"u16"},{name:"ownerId",ty:"u8"}]},w2e:{id:4,kind:"list16",class:"event",fields:[{name:"x",ty:"f32"},{name:"y",ty:"f32"},{name:"radius",ty:"f32"}]},c1:{id:5,kind:"indexedNoNull8",class:"hot",optionalFrom:3,fields:[{name:"x",ty:"f32",interp:"lerp"},{name:"y",ty:"f32",interp:"lerp"},{name:"angle",ty:"f32",interp:"lerpAngle"},{name:"vx",ty:"f32",interp:"lerp"},{name:"vy",ty:"f32",interp:"lerp"},{name:"angvel",ty:"f32",interp:"lerp"}]},c2:{id:6,kind:"indexedNoNull8",class:"hot",optionalFrom:3,fields:[{name:"x",ty:"f32",interp:"lerp"},{name:"y",ty:"f32",interp:"lerp"},{name:"angle",ty:"f32",interp:"lerpAngle"},{name:"vx",ty:"f32",interp:"lerp"},{name:"vy",ty:"f32",interp:"lerp"},{name:"angvel",ty:"f32",interp:"lerp"}]}},Z={parts:{models:C,weapons:$,mapConstructor:"Map",hitscanService:"HitscanService",friendlyFire:!1},snapshot:Q,soundCues:{roundStart:"roundStart",victory:"victory",defeat:"defeat",frag:"frag",death:"gameOver"},initialVote:"teamChange",maps:K,mapScale:.3,currentMap:"pool mini",mapsInVote:4,mapSetId:"c1",roomDefaults:{maxPlayers:8},roomForm:[{name:"maxPlayers",control:"text",label:"Max players",numeric:!0},{name:"roundTime",control:"text",label:"Round time",unit:"s",numeric:!0},{name:"mapTime",control:"text",label:"Map time",unit:"s",numeric:!0},{name:"friendlyFire",control:"checkbox",label:"Friendly fire"},{name:"map",control:"select",label:"Map",source:"maps"}],stat:{name:{key:0,bodyMethod:"=",headSync:!0,headMethod:"#"},status:{key:1,bodyMethod:"=",bodyValue:"",headValue:""},score:{key:2,bodyMethod:"+",bodyValue:0,headMethod:"+",headValue:0},deaths:{key:3,bodyMethod:"+",bodyValue:0,headMethod:"+",headValue:0},latency:{key:4,bodyMethod:"="}},playerState:{defaultState:{}},panel:{fields:{health:{key:"h",value:100},w1:{key:"w1",value:200},w2:{key:"w2",value:100}},activeKey:"wa"},scripted:{namePrefix:"Bot",defaultModel:"m1"},spectatorTeam:"spectators",teams:{team1:1,team2:2,spectators:3},playerKeys:{forward:{key:1},back:{key:2},left:{key:4},right:{key:8},gunCenter:{key:16,type:1},gunLeft:{key:32},gunRight:{key:64},fire:{key:128,type:1},nextWeapon:{key:256,type:1},prevWeapon:{key:512,type:1}}},J={roundStart:{file:"round-start",priority:200,volume:.3},victory:{file:"victory",priority:200,volume:.3},defeat:{file:"defeat",priority:200,volume:.3},frag:{file:"frag",priority:150,volume:.3},hit:{file:"hit",priority:150,volume:.3},gameOver:{file:"game-over",priority:150,volume:.3},shot:{file:"shot",priority:100,volume:.4},explosion:{file:"explosion",priority:100,volume:.4},bombHasBeenPlanted:{file:"bomb-has-been-planted",priority:90,volume:.4},tankEngine:{file:"tank-engine",priority:50,loop:!0,volume:.5}},ee={codecList:["webm","mp3"],path:"/sounds/",sounds:J},te={parts:{gameSets:{c1:["Map","MapRadar"],c2:["Map"],m1:["Tank","TankRadar","Smoke","Tracks"],w1:["ShotEffect"],w2:["Bomb"],w2e:["ExplosionEffect"]},entitiesOnCanvas:{Map:"vimp",MapRadar:"radar",TankRadar:"radar",Tank:"vimp",ShotEffect:"vimp",Bomb:"vimp",ExplosionEffect:"vimp",Smoke:"vimp",Tracks:"vimp"},bakedAssets:{vimp:[{name:"explosionTexture",component:"ExplosionEffect",params:{radius:50,blur:2,quality:40,color:16777215}},{name:"impactParticleTexture",component:"ShotEffect",params:{radius:4,blur:1,quality:10,color:16777215}},{name:"funnelTexture",component:"ExplosionEffect",params:{baseRadius:25,irregularity:4,blur:3,numPoints:20,colorFill:1842204,colorRim:11579568,rimWidth:4,variants:5}},{name:"smokeTexture",component:"Smoke",params:{radius:3,blur:1,quality:40,color:16777215}},{name:"tankTexture",component:"Tank",params:{colors:{teamId1:5579298,teamId2:2250018}}},{name:"bombTexture",component:"Bomb",params:{colorOuter:16777215,colorInner:986895}},{name:"trackMarkTexture",component:"Tracks",params:{width:4,length:5,color:1710610}}],radar:[{name:"tankRadarTexture",component:"TankRadar",params:{radius:6,borderWidth:2,crossSize:9,crossThickness:1.5,colors:{teamId1:5579298,teamId2:2250018}}}]},componentDependencies:{renderer:["Map"],assetsBase:["Map"],soundManager:["ExplosionEffect","ShotEffect","Bomb","Tank"],mapDynamics:["ShotEffect"]},sounds:ee},initIdList:["vimp","radar","panel","chat"],modules:{canvasManager:{canvases:{vimp:{width:960,height:600,aspectRatio:"16:9",baseScale:"5:1",dynamicCamera:!0,shakeCamera:!0},radar:{width:150,height:150,fixSize:"150",baseScale:"1:8"}}},controls:{keySetList:[{78:"nextPlayer",80:"prevPlayer"},{87:"forward",83:"back",65:"left",68:"right",85:"gunCenter",75:"gunLeft",76:"gunRight",74:"fire",78:"nextWeapon",80:"prevWeapon"}]},chat:{params:{messages:{s:["Team {0} is full. Your current team: {1}","Your team: {0}","Your new team: {0}","Your new status: spectator","⚔️ {0} killed {1}","⚡ {0} joined the game","👋 {0} left the game"],v:["A vote has been created","Voting has started","Your vote has been accepted","Voting is temporarily unavailable","Vote passed","Vote failed"],m:["Current map: {0}","Next map: {0}"],c:["Command not found","Your rank: {0}"],n:["Invalid name","{0} changed name to {1}"],b:["Only active players can use /bot","Invalid bot count","Invalid team name","{0} bot(s) created for {1}","All bots removed from {0}","{0} bot(s) created","All bots removed"]}}},panel:{keys:{t:"time",h:"health",wa:"activeWeapon",w1:"bullet",w2:"bomb"},fields:[{name:"health",elem:"panel-health",type:"bar",max:100,blocks:30},{name:"bullet",elem:"panel-bullet",type:"weapon"},{name:"bomb",elem:"panel-bomb",type:"weapon"},{name:"time",elem:"panel-time",type:"time"}]},stat:{params:{columns:["names","status","score","deaths","latency"],heads:{1:"team1",2:"team2"},bodies:{1:"team1",2:"team2",3:"spectators"},sortList:{team1:[[2,!0],[3,!1]],team2:[[2,!0],[3,!1]]}}},vote:{params:{templates:{teamChange:["Choose a team","teams",!0],mapChangeBySystem:["Choose the next map"],mapChangeByUser:["{0} suggested the map: {1}",["Yes","No"]],createBotsForTeam:["{0} suggests creating {1} bot(s) to {2}. Agree?",["Yes","No"]],removeBotsForTeam:["{0} suggests removing all bots from {1}. Agree?",["Yes","No"]],createBots:["{0} suggests creating {1} bot(s) to the game. Agree?",["Yes","No"]],removeBots:["{0} suggests removing all bots from the game. Agree?",["Yes","No"]]},menu:[["teamChange",["Switch team","teams"]],["mapChange",["Suggest map","maps"]]]}}},gameInform:{list:["{0} WINS!","ROUND START!","GAME OVER!"]}},ae={elems:{authId:"auth",errorId:"auth-error",enterId:"auth-enter",fieldsId:"auth-fields",titleId:"auth-title",informsId:"auth-informs"},texts:{title:"Tank Battle",sections:[{heading:"Controls",lines:[{keys:"w, a, s, d",text:"move the tank"},{keys:"k, l",text:"turn the gun"},{keys:"u",text:"center the gun"},{keys:"j",text:"fire"},{keys:"n, p",text:"switch weapon/player",last:!0},{keys:"c",text:"chat/command line"},{keys:"m",text:"menu"},{keys:"<Tab>",text:"stats",last:!0}]},{heading:"Command line",lines:[{keys:"/name <name>",text:"change nickname"},{keys:"/mapname",text:"show current map name"},{keys:"/timeleft",text:"map time left"},{separator:!0},{keys:"/bot <count>",text:"add bot(s)"},{keys:"/bot <count> <team>",text:"add to team"},{keys:"/bot 0",text:"remove all bots"},{keys:"/bot 0 <team>",text:"remove from team"}]}]},params:[{name:"model",value:"m1",options:{control:"select",label:"Model",options:Object.keys(C),validator:"isValidModel",storage:"model"}}],validators:{isValidModel:t=>t in C}};function D(t,e,a){a?(t.scripted.removeScripted(a),e>0?(e=t.scripted.createScripted(e,a),t.chat.pushSystem("BOT_CREATED_FOR_TEAM",[e,a])):t.chat.pushSystem("BOT_REMOVED_FROM_TEAM",[a])):(t.scripted.removeScripted(),e>0?(e=t.scripted.createScripted(e,null),t.chat.pushSystem("BOT_CREATED",[e])):t.chat.pushSystem("BOT_REMOVED")),t.roundManager.initiateNewRound()}function ne(t,e,a,n){const r=t.participants.get(e).name,i="botManagement";let o,c;if(!t.voteCoordinator.canCreateVote(i,e))return;n?a>0?(o="createBotsForTeam",c=[r,a,n]):(o="removeBotsForTeam",c=[r,n]):a>0?(o="createBots",c=[r,a]):(o="removeBots",c=[r]);const p={name:o,params:c},l=t.participants.getHumans().map(m=>m.gameId).filter(m=>m!==e);t.voteCoordinator.createVote({voteName:o,voteCategory:i,payload:p,resultFunc:m=>{m==="Yes"?(t.chat.pushSystem("VOTE_PASSED"),D(t,a,n)):t.chat.pushSystem("VOTE_FAILED")},userList:l,gameId:e})}const re={name:"/bot",handler(t,e,a){if(t.participants.get(e).teamId===t.spectatorId){t.chat.pushSystemByUser(e,"BOT_PLAYERS_ONLY");return}const r=parseInt(a[0],10),i=a[1]||null;if(isNaN(r)||r<0){t.chat.pushSystemByUser(e,"BOT_INVALID_COUNT");return}if(i&&(!t.teams[i]||i===t.spectatorTeam)){t.chat.pushSystemByUser(e,"BOT_INVALID_TEAM");return}if(r===0){if(i&&t.scripted.getCountForTeam(i)===0){t.chat.pushSystemByUser(e,"BOT_REMOVED_FROM_TEAM",[i]);return}if(t.scripted.getCount()===0){t.chat.pushSystemByUser(e,"BOT_REMOVED");return}}t.participants.getHumans().filter(c=>c.teamId!==t.spectatorId).length<=1?D(t,r,i):ne(t,e,r,i)}};function se(t){const e=Math.floor(t/1e3),a=String(Math.floor(e/60)).padStart(2,"0"),n=String(e%60).padStart(2,"0");return`${a}:${n}`}const ie={name:"/name",handler(t,e,a){t.roundManager.changeName(e,a.join(" "))}},oe={name:"/nr",handler(t,e){t.isDevMode?t.roundManager.initiateNewRound():t.chat.pushSystemByUser(e,"COMMANDS_NOT_FOUND")}},le={name:"/timeleft",handler(t,e){t.chat.pushSystemByUser(e,[se(t.timerManager.getMapTimeLeft())])}},ce={name:"/mapname",handler(t,e){t.chat.pushSystemByUser(e,[t.roundManager.currentMap])}},me={name:"/rank",handler(t,e){t.chat.pushSystemByUser(e,"RANK",[t.playerDataSync.getRank(e)])}},pe={BOT_PLAYERS_ONLY:"b:0",BOT_INVALID_COUNT:"b:1",BOT_INVALID_TEAM:"b:2",BOT_CREATED_FOR_TEAM:"b:3",BOT_REMOVED_FROM_TEAM:"b:4",BOT_CREATED:"b:5",BOT_REMOVED:"b:6"};class de{constructor({participants:e,coreAdapter:a,panel:n,stat:r,scripted:i}){this._participants=e,this._coreAdapter=a,this._panel=n,this._stat=r,this._model=i.defaultModel,this._respawns=null}createMap(e){this._respawns=e.respawns}createScripted(e,a=null){if(!this._respawns)return 0;const n=this._participants.getPlayableTeams();let r=0;for(let i=0;i<e&&!this._participants.isFull;i+=1){let o=a;if(o||(o=n.sort((l,m)=>this._participants.getTeamSize(l)-this._participants.getTeamSize(m))[0]),!o||!this._respawns[o]||this._participants.getTeamSize(o)>=this._respawns[o].length)continue;const c=this._participants.createScripted({team:o,model:this._model}),p=this._participants.get(c);this._stat.addUser(c,p.teamId,{name:p.name,status:"dead",latency:"BOT"}),this._panel.addUser(c),r+=1}return r}removeScripted(e=null){(e?this._participants.getScripted().filter(n=>n.team===e):this._participants.getScripted()).forEach(n=>this._removeBotById(n.gameId))}removeOneForHuman(e){for(const a of this._participants.getScripted())if(a.team===e)return this._removeBotById(a.gameId),!0;return!1}_removeBotById(e){const a=this._participants.get(e);!a||!a.isScripted||(this._stat.removeUser(e,a.teamId),this._panel.removeUser(e),this._coreAdapter.removePlayer(e),this._participants.remove(e))}getBotById(e){const a=this._participants.get(e);return a&&a.isScripted?a:void 0}getBots(){return this._participants.getScripted()}getCount(){return this._participants.getScripted().length}getCountForTeam(e){return this._participants.getScripted().filter(a=>a.team===e).length}getCountsPerTeam(){const e={};for(const a of this._participants.getScripted())e[a.team]=(e[a.team]||0)+1;return e}}function _e(t){return{scripted:new de(t)}}const fe=t=>(t??"").split(/[?#]/)[0].endsWith(".js"),ue=t=>import(t),he={id:"tanks",engineApi:3,async createCore(t,{wasmUrl:e}){if(fe(e)){const a=await ue(e);return new a.GameCore(t)}return await q({module_or_path:e}),new x(t)},gameConfig:Z,authSchema:ae,chatCommands:[re,ie,oe,le,ce,me],systemMessages:pe,createModules:_e,buildClientGameConfig:()=>te};export{he as default};
|
|
1
|
+
class x{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_gamecore_free(e,0)}alive_players(){const e=s.gamecore_alive_players(this.__wbg_ptr);var a=I(e[0],e[1]).slice();return s.__wbindgen_free(e[0],e[1]*4,4),a}apply_aim(e,a,n,r,i){s.gamecore_apply_aim(this.__wbg_ptr,e,a,n,r,i)}apply_input(e,a,n,r){const i=h(n,s.__wbindgen_malloc,s.__wbindgen_realloc),o=d,c=h(r,s.__wbindgen_malloc,s.__wbindgen_realloc),p=d;s.gamecore_apply_input(this.__wbg_ptr,e,a,i,o,c,p)}body_has_events(){return s.gamecore_body_has_events(this.__wbg_ptr)!==0}clear(){s.gamecore_clear(this.__wbg_ptr)}debug_json(){let e,a;try{const n=s.gamecore_debug_json(this.__wbg_ptr);return e=n[0],a=n[1],y(n[0],n[1])}finally{s.__wbindgen_free(e,a,1)}}deserialize_state(e){const a=W(e,s.__wbindgen_malloc),n=d,r=s.gamecore_deserialize_state(this.__wbg_ptr,a,n);if(r[1])throw g(r[0])}frame_bytes(){const e=s.gamecore_frame_bytes(this.__wbg_ptr);var a=F(e[0],e[1]).slice();return s.__wbindgen_free(e[0],e[1]*1,1),a}frame_ptr(){return s.gamecore_frame_ptr(this.__wbg_ptr)>>>0}is_alive(e){return s.gamecore_is_alive(this.__wbg_ptr,e)!==0}last_input_seq(e){return s.gamecore_last_input_seq(this.__wbg_ptr,e)>>>0}load_map(e){const a=h(e,s.__wbindgen_malloc,s.__wbindgen_realloc),n=d,r=s.gamecore_load_map(this.__wbg_ptr,a,n);if(r[1])throw g(r[0])}map_info(){let e,a;try{const n=s.gamecore_map_info(this.__wbg_ptr);return e=n[0],a=n[1],y(n[0],n[1])}finally{s.__wbindgen_free(e,a,1)}}constructor(e){const a=h(e,s.__wbindgen_malloc,s.__wbindgen_realloc),n=d,r=s.gamecore_new(a,n);if(r[2])throw g(r[1]);return this.__wbg_ptr=r[0],O.register(this,this.__wbg_ptr,this),this}pack_body(){const e=s.gamecore_pack_body(this.__wbg_ptr);if(e[1])throw g(e[0])}pack_frame(e,a,n,r,i,o,c,p){var l=L(c)?0:h(c,s.__wbindgen_malloc,s.__wbindgen_realloc),m=d;return s.gamecore_pack_frame(this.__wbg_ptr,e,a,n,r,i,o,l,m,p)>>>0}players_data(){let e,a;try{const n=s.gamecore_players_data(this.__wbg_ptr);return e=n[0],a=n[1],y(n[0],n[1])}finally{s.__wbindgen_free(e,a,1)}}position_of(e){const a=s.gamecore_position_of(this.__wbg_ptr,e);var n=I(a[0],a[1]).slice();return s.__wbindgen_free(a[0],a[1]*4,4),n}remove_actor(e){s.gamecore_remove_actor(this.__wbg_ptr,e)}remove_players_and_shots(){let e,a;try{const n=s.gamecore_remove_players_and_shots(this.__wbg_ptr);return e=n[0],a=n[1],y(n[0],n[1])}finally{s.__wbindgen_free(e,a,1)}}remove_scripted_actor(e){s.gamecore_remove_scripted_actor(this.__wbg_ptr,e)}reset_actor(e,a,n,r,i){s.gamecore_reset_actor(this.__wbg_ptr,e,a,n,r,i)}reset_all_vitals(){s.gamecore_reset_all_vitals(this.__wbg_ptr)}serialize_state(){const e=s.gamecore_serialize_state(this.__wbg_ptr);if(e[3])throw g(e[2]);var a=F(e[0],e[1]).slice();return s.__wbindgen_free(e[0],e[1]*1,1),a}spawn_actor(e,a,n,r,i,o){const c=h(a,s.__wbindgen_malloc,s.__wbindgen_realloc),p=d,l=s.gamecore_spawn_actor(this.__wbg_ptr,e,c,p,n,r,i,o);if(l[1])throw g(l[0])}spawn_scripted_actor(e,a,n,r,i,o){const c=h(a,s.__wbindgen_malloc,s.__wbindgen_realloc),p=d,l=s.gamecore_spawn_scripted_actor(this.__wbg_ptr,e,c,p,n,r,i,o);if(l[1])throw g(l[0])}step(e){s.gamecore_step(this.__wbg_ptr,e)}take_events(){let e,a;try{const n=s.gamecore_take_events(this.__wbg_ptr);return e=n[0],a=n[1],y(n[0],n[1])}finally{s.__wbindgen_free(e,a,1)}}}Symbol.dispose&&(x.prototype[Symbol.dispose]=x.prototype.free);function V(){return{__proto__:null,"./vimp_tanks_core_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(e,a){return Error(y(e,a))},__wbg___wbindgen_throw_344f42d3211c4765:function(e,a){throw new Error(y(e,a))},__wbindgen_init_externref_table:function(){const e=s.__wbindgen_externrefs,a=e.grow(4);e.set(0,void 0),e.set(a+0,void 0),e.set(a+1,null),e.set(a+2,!0),e.set(a+3,!1)}}}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(t=>s.__wbg_clientcore_free(t,1));const O=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>s.__wbg_gamecore_free(t,1));function I(t,e){return t=t>>>0,z().subarray(t/4,t/4+e)}function F(t,e){return t=t>>>0,v().subarray(t/1,t/1+e)}let S=null;function z(){return(S===null||S.byteLength===0)&&(S=new Float32Array(s.memory.buffer)),S}function y(t,e){return Y(t>>>0,e)}let k=null;function v(){return(k===null||k.byteLength===0)&&(k=new Uint8Array(s.memory.buffer)),k}function L(t){return t==null}function W(t,e){const a=e(t.length*1,1)>>>0;return v().set(t,a/1),d=t.length,a}function h(t,e,a){if(a===void 0){const c=T.encode(t),p=e(c.length,1)>>>0;return v().subarray(p,p+c.length).set(c),d=c.length,p}let n=t.length,r=e(n,1)>>>0;const i=v();let o=0;for(;o<n;o++){const c=t.charCodeAt(o);if(c>127)break;i[r+o]=c}if(o!==n){o!==0&&(t=t.slice(o)),r=a(r,n,n=o+t.length*3,1)>>>0;const c=v().subarray(r+o,r+n),p=T.encodeInto(t,c);o+=p.written,r=a(r,n,o,1)>>>0}return d=o,r}function g(t){const e=s.__wbindgen_externrefs.get(t);return s.__externref_table_dealloc(t),e}let E=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});E.decode();const U=2146435072;let R=0;function Y(t,e){return R+=e,R>=U&&(E=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),E.decode(),R=e),E.decode(v().subarray(t,t+e))}const T=new TextEncoder;"encodeInto"in T||(T.encodeInto=function(t,e){const a=T.encode(t);return e.set(a),{read:t.length,written:a.length}});let d=0,s;function j(t,e){return s=t.exports,S=null,k=null,s.__wbindgen_start(),s}async function P(t,e){if(typeof Response=="function"&&t instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(t,e)}catch(r){if(t.ok&&a(t.type)&&t.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",r);else throw r}const n=await t.arrayBuffer();return await WebAssembly.instantiate(n,e)}else{const n=await WebAssembly.instantiate(t,e);return n instanceof WebAssembly.Instance?{instance:n,module:t}:n}function a(n){switch(n){case"basic":case"cors":case"default":return!0}return!1}}async function q(t){if(s!==void 0)return s;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),t===void 0&&(t=new URL("/assets/vimp_tanks_core_bg-CAZB73AI.wasm",import.meta.url));const e=V();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));const{instance:a,module:n}=await P(await t,e);return j(a)}const G={setId:"c1",scale:.2,spriteSheet:{img:"tiles3.png",frames:[[0,64,32,32],[0,192,32,32],[96,64,32,32]]},layers:{1:[0,1],4:[2]},step:32,physicsStatic:[1],physicsDynamic:(function(){const n=[];for(let l=0;l<20;l+=1)for(let m=0;m<1;m+=1){const _=(104+m*3)*32+48,B=(45+l*3)*32+48;n.push({density:20,layer:3,position:[_,B],angle:0,width:96,height:96,img:"b1.png",linearDamping:8,angularDamping:16})}return n})(),respawns:{team1:[[448,1840,0],[256,2304,0],[448,2688,0],[256,3e3,0],[256,512,0],[448,832,0],[256,1152,0],[448,3648,0],[256,3968,0],[448,4288,0]],team2:[[6272,1840,180],[6464,2304,180],[6272,2688,180],[6464,3e3,180],[6464,512,180],[6272,832,180],[6464,1152,180],[6272,3648,180],[6464,3968,180],[6272,4288,180]]},map:(function(){const a={floor:0,wall:1,effect:2},n=Array.from({length:150},()=>Array(210).fill(a.floor));for(let i=0;i<150;i++)for(let o=0;o<210;o++)(i<2||i>=148||o<2||o>=208)&&(n[i][o]=a.wall);const r=(i,o,c,p)=>{for(let l=o;l<=p;l++)for(let m=i;m<=c;m++)m>=0&&m<210&&l>=0&&l<150&&(n[l][m]=a.wall)};r(50,0,51,30),r(50,119,51,149),r(158,0,159,30),r(158,119,159,149),r(80,30,130,31),r(80,118,130,119);for(let i=64;i<86;i++)for(let o=2;o<208;o++)(o+i)%2===0?n[i][o]=a.effect:n[i][o]=a.floor;return n})()},N=[],M=32,u=(t,e,a,n)=>{for(let r=0;r<a;r+=1){const i=n?[t*M,(e+r)*M]:[(t+r)*M,e*M];N.push({density:100,layer:3,position:i,angle:0,img:"b1.png",width:32,height:32,linearDamping:5,angularDamping:14})}};u(30,2,10,!0);u(2,30,10,!1);u(30,22,9,!0);u(22,30,9,!1);const f=120,A=30;u(f-A-1,f-12,10,!0);u(f-12,f-A-1,10,!1);u(f-A-1,f-31,9,!0);u(f-31,f-A-1,9,!1);const H={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:[...N],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:(function(){const a={stone:0,grass:1,wall:2,water:3},n=Array.from({length:120},()=>Array(120).fill(a.grass)),r=()=>{for(let l=0;l<120;l+=1)for(let m=0;m<120;m+=1)(l===0||l===119||m===0||m===119)&&(n[l][m]=a.wall)},i=(l,m,_,B=.5)=>{for(let b=m-_;b<=m+_;b+=1)for(let w=l-_;w<=l+_;w+=1)w>0&&w<119&&b>0&&b<119&&Math.sqrt((w-l)**2+(b-m)**2)<=_&&Math.random()<B&&(n[b][w]=a.wall)};r();const o=Math.floor(120/2),c=Math.floor(120/2),p=22;for(let l=c-p;l<=c+p;l+=1)for(let m=o-p;m<=o+p;m+=1)Math.sqrt((m-o)**2+(l-c)**2)<=p&&(n[l][m]=a.stone);for(let l=c-10;l<=c+10;l+=1)for(let m=o-10;m<=o+10;m+=1)Math.sqrt((m-o)**2+(l-c)**2)<=10&&(n[l][m]=a.water);return i(35,85,12,.7),i(85,35,12,.7),i(20,60,8,.6),i(60,20,8,.6),i(100,60,8,.6),i(60,100,8,.6),n})()},X={setId:"c1",scale:.6,spriteSheet:{img:"tiles.png",frames:[[480,64,32,32],[128,224,32,32],[160,0,32,32],[0,64,32,32],[0,64,32,32]]},layers:{1:[0,2,4],2:[1],4:[3]},physicsStatic:[1],physicsDynamic:[],step:32,respawns:{team1:[[130,520,0],[130,620,0],[130,720,0],[130,820,0],[230,520,0],[230,620,0],[230,720,0],[230,820,0],[330,620,0],[330,720,0]],team2:[[1600,520,180],[1600,620,180],[1600,720,180],[1600,820,180],[1500,520,180],[1500,620,180],[1500,720,180],[1500,820,180],[1400,620,180],[1400,720,180]]},map:(function(){const t=[[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,1,1,2,2,2,1,1,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,2,2,2,2,2,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,4,4,4,4,4,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,4,3,3,3,4,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,4,3,3,3,4,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,2,2,4,3,3,3,4,2,2,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,4,3,3,3,4,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,4,4,4,4,4,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,2,2,2,2,2,2,2,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,1,1,1,2,2,2,1,1,1,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]],e=[];for(const a of t){const n=[],r=[];for(const i of a)n.push(i,i),r.push(i,i);e.push(n,r)}return e})()},K={canopy:G,garden:H,"pool mini":X},C={m1:{constructor:"Tank",currentWeapon:"w1",size:2,accelerationFactor:1e3,brakingFactor:.3,maxForwardSpeed:260,maxReverseSpeed:-130,baseTurnTorqueFactor:215,damping:{linear:3,angular:100},fixture:{density:200,friction:.5,restitution:.1},lateralGrip:20,turnSpeedThreshold:10,baseTurnFactorRatio:.8,reverseTurnMultiplier:.7,throttleIncreaseRate:2,throttleDecreaseRate:2.5,strainFactor:1.5,maxGunAngle:1.4,gunRotationSpeed:3,gunCenterSpeed:10}},$={w1:{type:"hitscan",impulseMagnitude:75e5,damage:40,range:1500,fireRate:.01,spread:0,consumption:1,cameraShake:{intensity:20,duration:200}},w2:{type:"explosive",constructor:"Bomb",time:300,shotOutcomeId:"w2e",size:8,fireRate:.1,damage:70,radius:50,impulseMagnitude:2e6,cameraShake:{intensity:30,duration:400}}},Z={m1:{id:1,kind:"indexed8",class:"hot",fields:[{name:"x",ty:"f32",interp:"lerp"},{name:"y",ty:"f32",interp:"lerp"},{name:"angle",ty:"f32",interp:"lerpAngle"},{name:"gunRotation",ty:"f32",interp:"lerpAngle"},{name:"vx",ty:"f32",interp:"lerp"},{name:"vy",ty:"f32",interp:"lerp"},{name:"engineLoad",ty:"f32",interp:"lerp"},{name:"condition",ty:"u8"},{name:"size",ty:"u8"},{name:"team",ty:"u8"},{name:"angvel",ty:"f32",interp:"lerp"}]},w1:{id:2,kind:"list16",class:"event",fields:[{name:"startX",ty:"f32"},{name:"startY",ty:"f32"},{name:"endX",ty:"f32"},{name:"endY",ty:"f32"},{name:"bodyX",ty:"f32"},{name:"bodyY",ty:"f32"},{name:"wasHit",ty:"u8"},{name:"shooterId",ty:"u8"}]},w2:{id:3,kind:"indexed32",class:"event",fields:[{name:"x",ty:"f32"},{name:"y",ty:"f32"},{name:"angle",ty:"f32"},{name:"size",ty:"u8"},{name:"time",ty:"u16"},{name:"ownerId",ty:"u8"}]},w2e:{id:4,kind:"list16",class:"event",fields:[{name:"x",ty:"f32"},{name:"y",ty:"f32"},{name:"radius",ty:"f32"}]},c1:{id:5,kind:"indexedNoNull8",class:"hot",optionalFrom:3,fields:[{name:"x",ty:"f32",interp:"lerp"},{name:"y",ty:"f32",interp:"lerp"},{name:"angle",ty:"f32",interp:"lerpAngle"},{name:"vx",ty:"f32",interp:"lerp"},{name:"vy",ty:"f32",interp:"lerp"},{name:"angvel",ty:"f32",interp:"lerp"}]},c2:{id:6,kind:"indexedNoNull8",class:"hot",optionalFrom:3,fields:[{name:"x",ty:"f32",interp:"lerp"},{name:"y",ty:"f32",interp:"lerp"},{name:"angle",ty:"f32",interp:"lerpAngle"},{name:"vx",ty:"f32",interp:"lerp"},{name:"vy",ty:"f32",interp:"lerp"},{name:"angvel",ty:"f32",interp:"lerp"}]}},Q={parts:{models:C,weapons:$,mapConstructor:"Map",hitscanService:"HitscanService",friendlyFire:!1},snapshot:Z,soundCues:{roundStart:"roundStart",victory:"victory",defeat:"defeat",frag:"frag",death:"gameOver"},initialVote:"teamChange",maps:K,mapScale:.3,currentMap:"pool mini",mapsInVote:4,mapSetId:"c1",roomDefaults:{maxPlayers:8},roomForm:[{name:"maxPlayers",control:"text",label:"Max players",numeric:!0},{name:"roundTime",control:"text",label:"Round time",unit:"s",numeric:!0},{name:"mapTime",control:"text",label:"Map time",unit:"s",numeric:!0},{name:"friendlyFire",control:"checkbox",label:"Friendly fire"},{name:"map",control:"select",label:"Map",source:"maps"}],stat:{name:{key:0,bodyMethod:"=",headSync:!0,headMethod:"#"},status:{key:1,bodyMethod:"=",bodyValue:"",headValue:""},score:{key:2,bodyMethod:"+",bodyValue:0,headMethod:"+",headValue:0},deaths:{key:3,bodyMethod:"+",bodyValue:0,headMethod:"+",headValue:0},latency:{key:4,bodyMethod:"="}},playerState:{defaultState:{}},panel:{fields:{health:{key:"h",value:100},w1:{key:"w1",value:200},w2:{key:"w2",value:100}},activeKey:"wa"},scripted:{namePrefix:"Bot",defaultModel:"m1"},spectatorTeam:"spectators",teams:{team1:1,team2:2,spectators:3},playerKeys:{forward:{key:1},back:{key:2},left:{key:4},right:{key:8},gunCenter:{key:16,type:1},gunLeft:{key:32},gunRight:{key:64},fire:{key:128,type:1},nextWeapon:{key:256,type:1},prevWeapon:{key:512,type:1}}},J={roundStart:{file:"round-start",priority:200,volume:.3},victory:{file:"victory",priority:200,volume:.3},defeat:{file:"defeat",priority:200,volume:.3},frag:{file:"frag",priority:150,volume:.3},hit:{file:"hit",priority:150,volume:.3},gameOver:{file:"game-over",priority:150,volume:.3},shot:{file:"shot",priority:100,volume:.4},explosion:{file:"explosion",priority:100,volume:.4},bombHasBeenPlanted:{file:"bomb-has-been-planted",priority:90,volume:.4},tankEngine:{file:"tank-engine",priority:50,loop:!0,volume:.5}},ee={codecList:["webm","mp3"],path:"/sounds/",sounds:J},te={parts:{gameSets:{c1:["Map","MapRadar"],c2:["Map"],m1:["Tank","TankRadar","Smoke","Tracks"],w1:["ShotEffect"],w2:["Bomb"],w2e:["ExplosionEffect"]},entitiesOnCanvas:{Map:"vimp",MapRadar:"radar",TankRadar:"radar",Tank:"vimp",ShotEffect:"vimp",Bomb:"vimp",ExplosionEffect:"vimp",Smoke:"vimp",Tracks:"vimp"},bakedAssets:{vimp:[{name:"explosionTexture",component:"ExplosionEffect",params:{radius:50,blur:2,quality:40,color:16777215}},{name:"impactParticleTexture",component:"ShotEffect",params:{radius:4,blur:1,quality:10,color:16777215}},{name:"funnelTexture",component:"ExplosionEffect",params:{baseRadius:25,irregularity:4,blur:3,numPoints:20,colorFill:1842204,colorRim:11579568,rimWidth:4,variants:5}},{name:"smokeTexture",component:"Smoke",params:{radius:3,blur:1,quality:40,color:16777215}},{name:"tankTexture",component:"Tank",params:{colors:{teamId1:5579298,teamId2:2250018}}},{name:"bombTexture",component:"Bomb",params:{colorOuter:16777215,colorInner:986895}},{name:"trackMarkTexture",component:"Tracks",params:{width:4,length:5,color:1710610}}],radar:[{name:"tankRadarTexture",component:"TankRadar",params:{radius:6,borderWidth:2,crossSize:9,crossThickness:1.5,colors:{teamId1:5579298,teamId2:2250018}}}]},componentDependencies:{renderer:["Map"],assetsBase:["Map"],soundManager:["ExplosionEffect","ShotEffect","Bomb","Tank"],mapDynamics:["ShotEffect"]},sounds:ee},initIdList:["vimp","radar","panel","chat"],modules:{canvasManager:{canvases:{vimp:{width:960,height:600,aspectRatio:"16:9",baseScale:"5:1",dynamicCamera:!0,shakeCamera:!0},radar:{width:150,height:150,fixSize:"150",baseScale:"1:8"}}},controls:{keySetList:[{78:"nextPlayer",80:"prevPlayer"},{87:"forward",83:"back",65:"left",68:"right",85:"gunCenter",75:"gunLeft",76:"gunRight",74:"fire",78:"nextWeapon",80:"prevWeapon"}]},chat:{params:{messages:{s:["Team {0} is full. Your current team: {1}","Your team: {0}","Your new team: {0}","Your new status: spectator","⚔️ {0} killed {1}","⚡ {0} joined the game","👋 {0} left the game"],v:["A vote has been created","Voting has started","Your vote has been accepted","Voting is temporarily unavailable","Vote passed","Vote failed"],m:["Current map: {0}","Next map: {0}"],c:["Command not found","Your rank: {0}"],n:["Invalid name","{0} changed name to {1}"],b:["Only active players can use /bot","Invalid bot count","Invalid team name","{0} bot(s) created for {1}","All bots removed from {0}","{0} bot(s) created","All bots removed"]}}},panel:{keys:{t:"time",h:"health",wa:"activeWeapon",w1:"bullet",w2:"bomb"},fields:[{name:"health",elem:"panel-health",type:"bar",max:100,blocks:30},{name:"bullet",elem:"panel-bullet",type:"weapon"},{name:"bomb",elem:"panel-bomb",type:"weapon"},{name:"time",elem:"panel-time",type:"time"}]},stat:{params:{columns:["names","status","score","deaths","latency"],heads:{1:"team1",2:"team2"},bodies:{1:"team1",2:"team2",3:"spectators"},sortList:{team1:[[2,!0],[3,!1]],team2:[[2,!0],[3,!1]]}}},vote:{params:{templates:{teamChange:["Choose a team","teams",!0],mapChangeBySystem:["Choose the next map"],mapChangeByUser:["{0} suggested the map: {1}",["Yes","No"]],createBotsForTeam:["{0} suggests creating {1} bot(s) to {2}. Agree?",["Yes","No"]],removeBotsForTeam:["{0} suggests removing all bots from {1}. Agree?",["Yes","No"]],createBots:["{0} suggests creating {1} bot(s) to the game. Agree?",["Yes","No"]],removeBots:["{0} suggests removing all bots from the game. Agree?",["Yes","No"]]},menu:[["teamChange",["Switch team","teams"]],["mapChange",["Suggest map","maps"]]]}}},gameInform:{list:["{0} WINS!","ROUND START!","GAME OVER!"]}},ae={elems:{authId:"auth",errorId:"auth-error",enterId:"auth-enter",fieldsId:"auth-fields",titleId:"auth-title",informsId:"auth-informs"},texts:{title:"Tank Battle",sections:[{heading:"Controls",lines:[{keys:"w, a, s, d",text:"move the tank"},{keys:"k, l",text:"turn the gun"},{keys:"u",text:"center the gun"},{keys:"j",text:"fire"},{keys:"n, p",text:"switch weapon/player",last:!0},{keys:"c",text:"chat/command line"},{keys:"m",text:"menu"},{keys:"<Tab>",text:"stats",last:!0}]},{heading:"Command line",lines:[{keys:"/name <name>",text:"change nickname"},{keys:"/mapname",text:"show current map name"},{keys:"/timeleft",text:"map time left"},{separator:!0},{keys:"/bot <count>",text:"add bot(s)"},{keys:"/bot <count> <team>",text:"add to team"},{keys:"/bot 0",text:"remove all bots"},{keys:"/bot 0 <team>",text:"remove from team"}]}]},params:[{name:"model",value:"m1",options:{control:"select",label:"Model",options:Object.keys(C),validator:"isValidModel",storage:"model"}}],validators:{isValidModel:t=>t in C}};function D(t,e,a){a?(t.scripted.removeScripted(a),e>0?(e=t.scripted.createScripted(e,a),t.chat.pushSystem("BOT_CREATED_FOR_TEAM",[e,a])):t.chat.pushSystem("BOT_REMOVED_FROM_TEAM",[a])):(t.scripted.removeScripted(),e>0?(e=t.scripted.createScripted(e,null),t.chat.pushSystem("BOT_CREATED",[e])):t.chat.pushSystem("BOT_REMOVED")),t.roundManager.initiateNewRound()}function ne(t,e,a,n){const r=t.participants.get(e).name,i="botManagement";let o,c;if(!t.voteCoordinator.canCreateVote(i,e))return;n?a>0?(o="createBotsForTeam",c=[r,a,n]):(o="removeBotsForTeam",c=[r,n]):a>0?(o="createBots",c=[r,a]):(o="removeBots",c=[r]);const p={name:o,params:c},l=t.participants.getHumans().map(m=>m.gameId).filter(m=>m!==e);t.voteCoordinator.createVote({voteName:o,voteCategory:i,payload:p,resultFunc:m=>{m==="Yes"?(t.chat.pushSystem("VOTE_PASSED"),D(t,a,n)):t.chat.pushSystem("VOTE_FAILED")},userList:l,gameId:e})}const re={name:"/bot",handler(t,e,a){if(t.participants.get(e).teamId===t.spectatorId){t.chat.pushSystemByUser(e,"BOT_PLAYERS_ONLY");return}const r=parseInt(a[0],10),i=a[1]||null;if(isNaN(r)||r<0){t.chat.pushSystemByUser(e,"BOT_INVALID_COUNT");return}if(i&&(!t.teams[i]||i===t.spectatorTeam)){t.chat.pushSystemByUser(e,"BOT_INVALID_TEAM");return}if(r===0){if(i&&t.scripted.getCountForTeam(i)===0){t.chat.pushSystemByUser(e,"BOT_REMOVED_FROM_TEAM",[i]);return}if(t.scripted.getCount()===0){t.chat.pushSystemByUser(e,"BOT_REMOVED");return}}t.participants.getHumans().filter(c=>c.teamId!==t.spectatorId).length<=1?D(t,r,i):ne(t,e,r,i)}};function se(t){const e=Math.floor(t/1e3),a=String(Math.floor(e/60)).padStart(2,"0"),n=String(e%60).padStart(2,"0");return`${a}:${n}`}const ie={name:"/name",handler(t,e,a){t.roundManager.changeName(e,a.join(" "))}},oe={name:"/nr",handler(t,e){t.isDevMode?t.roundManager.initiateNewRound():t.chat.pushSystemByUser(e,"COMMANDS_NOT_FOUND")}},le={name:"/timeleft",handler(t,e){t.chat.pushSystemByUser(e,[se(t.timerManager.getMapTimeLeft())])}},ce={name:"/mapname",handler(t,e){t.chat.pushSystemByUser(e,[t.roundManager.currentMap])}},me={name:"/rank",handler(t,e){t.chat.pushSystemByUser(e,"RANK",[t.playerDataSync.getRank(e)])}},pe={BOT_PLAYERS_ONLY:"b:0",BOT_INVALID_COUNT:"b:1",BOT_INVALID_TEAM:"b:2",BOT_CREATED_FOR_TEAM:"b:3",BOT_REMOVED_FROM_TEAM:"b:4",BOT_CREATED:"b:5",BOT_REMOVED:"b:6"};class de{constructor({participants:e,coreAdapter:a,panel:n,stat:r,scripted:i}){this._participants=e,this._coreAdapter=a,this._panel=n,this._stat=r,this._model=i.defaultModel,this._respawns=null}createMap(e){this._respawns=e.respawns}createScripted(e,a=null){if(!this._respawns)return 0;const n=this._participants.getPlayableTeams();let r=0;for(let i=0;i<e&&!this._participants.isFull;i+=1){let o=a;if(o||(o=n.sort((l,m)=>this._participants.getTeamSize(l)-this._participants.getTeamSize(m))[0]),!o||!this._respawns[o]||this._participants.getTeamSize(o)>=this._respawns[o].length)continue;const c=this._participants.createScripted({team:o,model:this._model}),p=this._participants.get(c);this._stat.addUser(c,p.teamId,{name:p.name,status:"dead",latency:"BOT"}),this._panel.addUser(c),r+=1}return r}removeScripted(e=null){(e?this._participants.getScripted().filter(n=>n.team===e):this._participants.getScripted()).forEach(n=>this._removeBotById(n.gameId))}removeOneForHuman(e){for(const a of this._participants.getScripted())if(a.team===e)return this._removeBotById(a.gameId),!0;return!1}_removeBotById(e){const a=this._participants.get(e);!a||!a.isScripted||(this._stat.removeUser(e,a.teamId),this._panel.removeUser(e),this._coreAdapter.removePlayer(e),this._participants.remove(e))}getBotById(e){const a=this._participants.get(e);return a&&a.isScripted?a:void 0}getBots(){return this._participants.getScripted()}getCount(){return this._participants.getScripted().length}getCountForTeam(e){return this._participants.getScripted().filter(a=>a.team===e).length}getCountsPerTeam(){const e={};for(const a of this._participants.getScripted())e[a.team]=(e[a.team]||0)+1;return e}}function _e(t){return{scripted:new de(t)}}const fe=t=>(t??"").split(/[?#]/)[0].endsWith(".js"),ue=t=>import(t),he={id:"tanks",engineApi:3,async createCore(t,{wasmUrl:e}){if(fe(e)){const a=await ue(e);return new a.GameCore(t)}return await q({module_or_path:e}),new x(t)},gameConfig:Q,authSchema:ae,chatCommands:[re,ie,oe,le,ce,me],systemMessages:pe,createModules:_e,buildClientGameConfig:()=>te};export{he as default};
|
package/dist/manifest.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "tanks",
|
|
3
3
|
"engineApi": 3,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "330372a23d9c7da5",
|
|
5
5
|
"title": "Tanks",
|
|
6
6
|
"entries": {
|
|
7
|
-
"client": "/games/tanks/client-
|
|
8
|
-
"host": "/games/tanks/host-
|
|
9
|
-
"wasm": "/games/tanks/assets/vimp_tanks_core_bg-
|
|
7
|
+
"client": "/games/tanks/client-DGxmZzuH.js",
|
|
8
|
+
"host": "/games/tanks/host-B9MP8wmb.js",
|
|
9
|
+
"wasm": "/games/tanks/assets/vimp_tanks_core_bg-CAZB73AI.wasm",
|
|
10
10
|
"wasmNode": "./core-node/vimp_tanks_core.js"
|
|
11
11
|
},
|
|
12
12
|
"assetsBase": "/games/tanks/",
|
|
13
13
|
"maps": {
|
|
14
|
-
"version": "
|
|
14
|
+
"version": "6a37543078f5c1b4",
|
|
15
15
|
"list": [
|
|
16
16
|
"canopy",
|
|
17
17
|
"garden",
|
|
@@ -31,7 +31,9 @@
|
|
|
31
31
|
"control": "text",
|
|
32
32
|
"label": "Max players",
|
|
33
33
|
"numeric": true,
|
|
34
|
-
"regExp": "[1-8]"
|
|
34
|
+
"regExp": "[1-8]",
|
|
35
|
+
"min": 1,
|
|
36
|
+
"max": 8
|
|
35
37
|
},
|
|
36
38
|
{
|
|
37
39
|
"name": "roundTime",
|
|
@@ -39,7 +41,9 @@
|
|
|
39
41
|
"label": "Round time",
|
|
40
42
|
"unit": "s",
|
|
41
43
|
"numeric": true,
|
|
42
|
-
"regExp": "(?:1[0-9]|[2-8][0-9]|9[0-9]|1(?:0[0-9]|[1-8][0-9]|9[0-9])|[2-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-9])|1(?:0(?:0[0-9]|[1-8][0-9]|9[0-9])|[1-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-9]))|2[0-9]{3}|3(?:0(?:0[0-9]|[1-8][0-9]|9[0-9])|[1-5][0-9]{2}|600))"
|
|
44
|
+
"regExp": "(?:1[0-9]|[2-8][0-9]|9[0-9]|1(?:0[0-9]|[1-8][0-9]|9[0-9])|[2-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-9])|1(?:0(?:0[0-9]|[1-8][0-9]|9[0-9])|[1-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-9]))|2[0-9]{3}|3(?:0(?:0[0-9]|[1-8][0-9]|9[0-9])|[1-5][0-9]{2}|600))",
|
|
45
|
+
"min": 10,
|
|
46
|
+
"max": 3600
|
|
43
47
|
},
|
|
44
48
|
{
|
|
45
49
|
"name": "mapTime",
|
|
@@ -47,7 +51,9 @@
|
|
|
47
51
|
"label": "Map time",
|
|
48
52
|
"unit": "s",
|
|
49
53
|
"numeric": true,
|
|
50
|
-
"regExp": "(?:1[0-9]|[2-8][0-9]|9[0-9]|1(?:0[0-9]|[1-8][0-9]|9[0-9])|[2-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-9])|1(?:0(?:0[0-9]|[1-8][0-9]|9[0-9])|[1-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-9]))|2[0-9]{3}|3(?:0(?:0[0-9]|[1-8][0-9]|9[0-9])|[1-5][0-9]{2}|600))"
|
|
54
|
+
"regExp": "(?:1[0-9]|[2-8][0-9]|9[0-9]|1(?:0[0-9]|[1-8][0-9]|9[0-9])|[2-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-9])|1(?:0(?:0[0-9]|[1-8][0-9]|9[0-9])|[1-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-9]))|2[0-9]{3}|3(?:0(?:0[0-9]|[1-8][0-9]|9[0-9])|[1-5][0-9]{2}|600))",
|
|
55
|
+
"min": 10,
|
|
56
|
+
"max": 3600
|
|
51
57
|
},
|
|
52
58
|
{
|
|
53
59
|
"name": "friendlyFire",
|
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],[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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{"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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2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vimp-games/tanks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "VIMP Tanks — игра-плагин для движка VIMP",
|
|
5
5
|
"homepage": "https://github.com/lgick/vimp-tanks#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"globals": "^16.2.0",
|
|
50
50
|
"happy-dom": "^20.10.6",
|
|
51
51
|
"pixi.js": "8.19.0",
|
|
52
|
-
"vimp-engine": "^0.
|
|
52
|
+
"vimp-engine": "^0.16.0",
|
|
53
53
|
"vite": "^7.1.11",
|
|
54
54
|
"vitest": "^4.1.9"
|
|
55
55
|
}
|