var preloaderBar={create:function(e,{posX:a,posY:r,callback:t}){e.cameras.main.fadeIn(100);var o=a,s=r;this.sc=e,this.callback=t,this.loaderGroup=e.add.group(),this.done=!1,this.loadBg=e.add.image(0,0,"gameBG").setDisplaySize(e.sys.canvas.width,e.sys.canvas.height).setOrigin(0),this.loaderBarBorder=e.add.image(o+50,s,"LoaderBarBorder").setOrigin(0,.5).setScale(1,1),this.loaderBarBorder.setDepth(6),this.loaderBarBG=e.add.image(o+50,s,"LoaderBarBg").setOrigin(0,.5).setScale(1,1),this.loaderBarBG.setDepth(4),this.loaderBar=e.add.image(o+60,s-7,"LoaderBar").setOrigin(0,.5),this.loaderBar.setDepth(5);var i=e.add.text(this.loaderBar.x+20,this.loaderBar.y-24,"0%",{fontFamily:"Impact",color:"White",stroke:"Black",strokeThickness:1,fontSize:"38px"});i.setOrigin(0),i.setShadow(0,4,"rgba(0,0,0,0.25)",5),i.setDepth(6),this.loaderGroup.addMultiple([this.loaderBarBorder,this.loadBg,this.loaderBarBG,this.loaderBar,i]),this.loaderGroup.setVisible(!1),e.load.on("progress",this.updateBar,{loaderBar:this.loaderBar,loadingText:i,game:e.game}),e.load.on("complete",this.complete,{scene:e,callback:this.callback,loaderGroup:this.loaderGroup}),e.load.on("load",(function(e){null!=this.loaderGroup.children&&this.loaderGroup.setVisible(!0)}),{loaderGroup:this.loaderGroup})},updateBar:function(e){null==this||this.done||null==this.loadingText.scene||(this.loaderBar.setScale(e,1),e*=100,null!=this.loadingText&&this.loadingText.setText(e.toFixed(0)+"%"))},complete:function(){null!=this.loaderGroup.scene&&(this.loaderGroup.setVisible(!1),this.callback(),this.done=!0)}};
//# sourceMappingURL=index.2b112808.js.map
