bundle.js 98 KB

1
  1. var laya=function(exports){"use strict";class GameManager{constructor(){this.BallPrefab=new Array("2","4","8","16","32","64","128","256","512","1024","2048","4096","8192","16384"),this.PrefabControl=[],this.ScoreProgress=0,this.Cloned=!1,this.ScoreRecord=0,this.MinBall=0,this.MinNextBall=0,this.FallDownLine=500,this.STAGE=0,GameManager.ins=this,this.Init()}static get Instance(){return GameManager.ins?GameManager.ins:new GameManager}Init(){}}var PropEffecf,StageMode;!function(PropEffecf){PropEffecf[PropEffecf.NONE=0]="NONE",PropEffecf[PropEffecf.DOUBLE=1]="DOUBLE",PropEffecf[PropEffecf.HAMMER=2]="HAMMER",PropEffecf[PropEffecf.UP=3]="UP",PropEffecf[PropEffecf.CLEARLAST=4]="CLEARLAST",PropEffecf[PropEffecf.CLEARTWO=5]="CLEARTWO"}(PropEffecf||(PropEffecf={})),function(StageMode){StageMode[StageMode.Start=0]="Start",StageMode[StageMode.Lose=1]="Lose",StageMode[StageMode.Win=2]="Win",StageMode[StageMode.Clone=3]="Clone"}(StageMode||(StageMode={}));class EventManager{static EventOn(_mode,caller,fun,args=[]){EventManager.Instance.on(PropEffecf[_mode],caller,fun,args)}static EventOff(_mode,caller,fun,args=[]){EventManager.Instance.off(PropEffecf[_mode],caller,fun)}static EventTrigger(_mode,args=[]){EventManager.Instance.event(PropEffecf[_mode],args),EventManager.PropState=_mode}static StageOn(_mode,caller,fun,args=[]){EventManager.Instance.on(StageMode[_mode],caller,fun,args)}static StageOff(_mode,caller,fun,args=[]){EventManager.Instance.off(StageMode[_mode],caller,fun)}static StageTrigger(_mode,args=[]){EventManager.Instance.event(StageMode[_mode],args)}}EventManager.Instance=new Laya.EventDispatcher,EventManager.PropState=PropEffecf.NONE;class JsonManager{}JsonManager.Level=[{id:"1",goal:"100",edge:"1;2"},{id:"2",goal:"200",edge:"1;2"},{id:"3",goal:"300",edge:"1;2"},{id:"4",goal:"600",edge:"1;2"},{id:"5",goal:"900",edge:"1;2"},{id:"6",goal:"1200",edge:"1;2"},{id:"7",goal:"1600",edge:"1;3"},{id:"8",goal:"3200",edge:"1;3"},{id:"9",goal:"4000",edge:"1;3"},{id:"10",goal:"4800",edge:"1;3"},{id:"11",goal:"5600",edge:"1;3"},{id:"12",goal:"6400",edge:"2;4"},{id:"13",goal:"7200",edge:"2;4"},{id:"14",goal:"8000",edge:"2;4"},{id:"15",goal:"8896",edge:"2;4"},{id:"16",goal:"9792",edge:"2;4"},{id:"17",goal:"10688",edge:"2;4"},{id:"18",goal:"11584",edge:"2;4"},{id:"19",goal:"12480",edge:"3;5"},{id:"20",goal:"13376",edge:"3;5"},{id:"21",goal:"14272",edge:"3;5"},{id:"22",goal:"15168",edge:"3;5"},{id:"23",goal:"16064",edge:"3;5"},{id:"24",goal:"16960",edge:"3;5"},{id:"25",goal:"20544",edge:"3;5"},{id:"26",goal:"24128",edge:"6;8"},{id:"27",goal:"27712",edge:"6;8"},{id:"28",goal:"31296",edge:"6;8"},{id:"29",goal:"34880",edge:"6;8"},{id:"30",goal:"38464",edge:"6;8"},{id:"31",goal:"42048",edge:"6;8"},{id:"32",goal:"45632",edge:"6;8"},{id:"33",goal:"49216",edge:"8;10"}];class faafssfafsa{constructor(_message,_pos,_size,_fontSize,_color=null){this.fontSize=30,this.message="",this.size=new Laya.Vector2(_size.x,_size.y),this.fontSize=_fontSize,this.color=_color,this.message=_message,this.pos=_pos}}class GameTools{constructor(){GameTools.ins=this}static get Instance(){return GameTools.ins?GameTools.ins:new GameTools}lerp(form,to,t){return t<=0?form:t>=1?to:t*to+(1-t)*form}SetCollider(setNode,CollisionGroup){setNode.numChildren;for(var i=0;i<setNode.numChildren;i++){setNode.getChildAt(i).numChildren>1&&this.SetCollider(setNode.getChildAt(i),CollisionGroup);var physicsCollider=setNode.getChildAt(i).getComponent(Laya.PhysicsCollider);physicsCollider&&(physicsCollider.collisionGroup=CollisionGroup)}}static RandomNumber(from,to){if(from>=to)return 0;var size=to-from;return Math.random()*size+from}static RandomANumber(from,to){if(from>=to)return 0;var size=to-from,curNumber=Math.random()*size+from;return Math.floor(curNumber)}static GetMoney(_num,_pos=null,_completeHandle=null){if(0!=_num){var fafaafsfa=new Laya.Box;fafaafsfa.width=400,fafaafsfa.height=100,fafaafsfa.pivotX=fafaafsfa.width/2,fafaafsfa.pivotY=fafaafsfa.height/2,null==_pos&&(_pos=new Laya.Vector2(Laya.stage.width/2,Laya.stage.height/2)),fafaafsfa.pos(_pos.x,_pos.y);var aafafaffa=new Laya.Image;aafafaffa.skin="game/qiandao_1_7.png",aafafaffa.width=60,aafafaffa.height=60,aafafaffa.left=50,aafafaffa.y=10,fafaafsfa.addChild(aafafaffa);var faasfafsafs=new Laya.Text;faasfafsafs.width=300,faasfafsafs.height=50,faasfafsafs.align="center",faasfafsafs.valign="middle",faasfafsafs.font="Microsoft YaHei",faasfafsafs.fontSize=40,faasfafsafs.color="#FFFFFF",faasfafsafs.bold=!0,faasfafsafs.font="Microsoft YaHei",faasfafsafs.text="金币 +"+_num,faasfafsafs.x=60,faasfafsafs.y=10,fafaafsfa.addChild(faasfafsafs),Laya.stage.addChild(fafaafsfa);var faasfsaf=Laya.Tween.to(fafaafsfa,{y:fafaafsfa.y-200},1500,Laya.Ease.expoInOut,Laya.Handler.create(this,()=>{faasfsaf.clear(),fafaafsfa.destroy(),_completeHandle&&_completeHandle.run()}),100)}}static TweenText(faafssfafsa,_hight,_completeHandle=null,hide=!0,_duration=500){var afasafsafsfa=new Laya.Text;afasafsafsfa.width=faafssfafsa.size.x,afasafsafsfa.height=faafssfafsa.size.y,afasafsafsfa.align="center",afasafsafsfa.valign="middle",afasafsafsfa.font="Microsoft YaHei",afasafsafsfa.fontSize=faafssfafsa.fontSize,afasafsafsfa.pivotX=afasafsafsfa.width/2,afasafsafsfa.pivotY=afasafsafsfa.height/2,afasafsafsfa.color="#5ad122",afasafsafsfa.bold=!0,afasafsafsfa.stroke=5,afasafsafsfa.strokeColor="#ffffff",faafssfafsa.color&&(faafssfafsa.color=faafssfafsa.color),afasafsafsfa.text=faafssfafsa.message,afasafsafsfa.zOrder=1,Laya.stage.addChildAt(afasafsafsfa,Laya.stage.numChildren-1),afasafsafsfa.pos(faafssfafsa.pos.x,faafssfafsa.pos.y);var tween=Laya.Tween.to(afasafsafsfa,{y:afasafsafsfa.y-_hight,update:new Laya.Handler(this,function(){})},_duration,Laya.Ease.expoInOut,Laya.Handler.create(this,function(){tween.clear(),hide&&afasafsafsfa.destroy(),_completeHandle&&_completeHandle.run()}));return hide&&Laya.Tween.to(afasafsafsfa,{alpha:.4},500),afasafsafsfa}static StationTweenText(faafssfafsa,_hight,_completeHandle=null,hide=!0,_duration=500){var afasafsafsfa=new Laya.Text;afasafsafsfa.width=faafssfafsa.size.x,afasafsafsfa.height=faafssfafsa.size.y,afasafsafsfa.align="center",afasafsafsfa.valign="middle",afasafsafsfa.font="Microsoft YaHei",afasafsafsfa.fontSize=50,afasafsafsfa.pivotX=afasafsafsfa.width/2,afasafsafsfa.pivotY=afasafsafsfa.height/2,afasafsafsfa.color="#5ad122",afasafsafsfa.bold=!0,afasafsafsfa.stroke=5,afasafsafsfa.strokeColor="#ffffff",faafssfafsa.color&&(faafssfafsa.color=faafssfafsa.color),afasafsafsfa.text=faafssfafsa.message,afasafsafsfa.zOrder=1,Laya.stage.addChildAt(afasafsafsfa,Laya.stage.numChildren-1),afasafsafsfa.pos(faafssfafsa.pos.x,faafssfafsa.pos.y);var tween=Laya.Tween.to(afasafsafsfa,{y:afasafsafsfa.y-_hight,update:new Laya.Handler(this,function(){})},_duration,Laya.Ease.expoInOut,Laya.Handler.create(this,function(){tween.clear(),hide&&afasafsafsfa.destroy(),_completeHandle&&_completeHandle.run()}));return hide&&Laya.Tween.to(afasafsafsfa,{alpha:.4},1e4),afasafsafsfa}static tweenMove(transform,targPos,delay,ease,complete){let curPos=transform.position.clone();return Laya.Tween.to(curPos,{x:targPos.x,y:targPos.y,z:targPos.z,update:new Laya.Handler(this,()=>{transform.position=curPos.clone()})},delay,ease,complete)}static tweenRotate(transform,targEuler,delay,ease,complete){let curEuler=transform.rotationEuler.clone();return Laya.Tween.to(curEuler,{x:targEuler.x,y:targEuler.y,z:targEuler.z,update:new Laya.Handler(this,()=>{transform.rotationEuler=curEuler.clone()})},delay,ease,complete)}}class GamePool{constructor(){this.BallPrefab=new Array("2","4","8","16","32","64","128","256","512","1024","2048","4096","8192","16384"),this.Cloned=!1,this.PrefabControl=[],GamePool.Ins=this,this.Init()}static get Instance(){return GamePool.Ins?GamePool.Ins:new GamePool}Init(){for(let i=0;i<14;i++)this.ReadJSON(i);this.FreshScore()}ReadJSON(i){Laya.loader.create("Prefab/"+this.BallPrefab[i]+".json",Laya.Handler.create(this,this.creat))}creat(Prefab){let obj=new Laya.Prefab;obj.json=Prefab,this.PrefabControl.push(obj)}CreatPrefab(id,_pos){let ball=this.PrefabControl[id],pre=Laya.Pool.getItemByCreateFun(this.BallPrefab[id],ball.create,ball);pre.pos(_pos.x,_pos.y),EventManager.StageTrigger(StageMode.Clone,[pre]),this.Cloned=!0}CreatPrefab2(id,_pos){let ball=this.PrefabControl[id],pre=Laya.Pool.getItemByCreateFun(this.BallPrefab[id],ball.create,ball);pre.pos(_pos.x,_pos.y),EventManager.StageTrigger(StageMode.Clone,[pre])}PrecossData(_num){for(let i=0;i<this.BallPrefab.length;i++){if(_num==Number(this.BallPrefab[i]))return i;if(_num>Number(this.BallPrefab[i])&&_num<Number(this.BallPrefab[i+1]))return i}}ProcessScore(_num){for(let i=0;i<this.BallPrefab.length;i++){if(_num==Number(this.BallPrefab[i]))return Number(this.BallPrefab[i]);if(_num>Number(this.BallPrefab[i])&&_num<Number(this.BallPrefab[i+1]))return Number(this.BallPrefab[i])}}FreshScore(){let edge=JsonManager.Level[1].edge.split(";"),min=Number(edge[0]),minnext=Number(edge[1]),minball=Number(this.BallPrefab[min-1]),minnextball=Number(this.BallPrefab[minnext-1]);GameManager.Instance.MinBall=minball,GameManager.Instance.MinNextBall=minnextball}FallDown(_time=2){let edge=JsonManager.Level[GameManager.Instance.STAGE].edge.split(";"),min=Number(edge[0]),minnext=Number(edge[1]),max=(Number(this.BallPrefab[min-1]),Number(this.BallPrefab[minnext-1]),Number(edge[edge.length-1]));for(let j=0;j<_time;j++){let num=GameTools.RandomANumber(min,max+1),X=GameTools.RandomANumber(100,500),pos=new Laya.Vector2(X,-30);this.CreatPrefab2(num-1,pos)}}}var AccountUser,Vector2=Laya.Vector2;class Ball extends Laya.Script{constructor(){super(),this.TargetArray=[],this.moved=!1,this.mark=!1,this.clear=!1,this.score=0,Ball.ins=this}static get Instance(){return Ball.ins?Ball.ins:new Ball}onAwake(){this.Light=this.owner.getChildByName("light"),this.Light.visible=!1,this.owner.on(Laya.Event.CLICK,this,this.ClickBall),EventManager.EventOn(PropEffecf.DOUBLE,this,this.ClickDouble),EventManager.EventOn(PropEffecf.NONE,this,this.ClickNone),EventManager.EventOn(PropEffecf.HAMMER,this,this.ClickHammer);let score=this.owner.getChildByName("num");this.score=Number(score.value)}onUpdate(){if(this.TargetArray.length>0){let num=0;for(let i=0;i<this.TargetArray.length;i++){this.TargetArray[i].destroyed&&num++}num&&(this.Light.visible=!0)}if(this.clear){let _rig=this.owner.getComponent(Laya.RigidBody),_collider=this.owner.getComponent(Laya.CircleCollider);_collider.isSensor=!0,_collider.enabled=!1,_rig.enabled=!1,this.Move(GameManager.Instance.TargetPosition),this.moved=!0}}ClickNone(){this.owner.offAll(),this.owner.on(Laya.Event.CLICK,this,this.ClickBall)}ClickDouble(){this.owner.offAll(),this.owner.on(Laya.Event.CLICK,this,this.Double)}Double(){console.log("点击到了----");let num=2*this.score,owner=this.owner,_position=new Laya.Vector2(owner.x,owner.y),_rig=this.owner.getComponent(Laya.RigidBody);this.owner.getComponent(Laya.CircleCollider).enabled=!1,_rig.enabled=!1,this.owner.removeSelf(),this.owner.destroy(),EventManager.EventTrigger(PropEffecf.NONE);let id=GamePool.Instance.PrecossData(num);GameManager.Instance.ScoreProgress+=num,GamePool.Instance.CreatPrefab(id,_position)}ClickHammer(){this.owner.offAll(),this.owner.on(Laya.Event.CLICK,this,this.Hammer)}Hammer(){let num=this.score;this.owner;GameManager.Instance.ScoreProgress+=num;let _rig=this.owner.getComponent(Laya.RigidBody);this.owner.getComponent(Laya.CircleCollider).enabled=!1,_rig.enabled=!1,this.owner.removeSelf(),this.owner.destroy(),EventManager.EventTrigger(PropEffecf.NONE)}onDestroy(){this.owner.offAll(),EventManager.EventOff(PropEffecf.DOUBLE,this,this.ClickDouble),EventManager.EventOff(PropEffecf.NONE,this,this.ClickNone),EventManager.EventOff(PropEffecf.HAMMER,this,this.ClickHammer)}onTriggerEnter(other){let targetparent=other.owner;if("RightCollider"!=targetparent.name&&"LeftCollider"!=targetparent.name&&"BottomCollider"!=targetparent.name){let num=targetparent.getChildByName("num"),ownernum=this.owner.getChildByName("num");Number(num.value)==Number(ownernum.value)&&this.TargetArray.push(targetparent)}}onTriggerStay(other){let targetparent=other.owner;if("RightCollider"!=targetparent.name&&"LeftCollider"!=targetparent.name&&"BottomCollider"!=targetparent.name){let num=targetparent.getChildByName("num"),ownernum=this.owner.getChildByName("num");Number(num.value)==Number(ownernum.value)&&this.TargetArray.push(targetparent)}}onTriggerExit(other){let targetparent=other.owner;if("RightCollider"!=targetparent.name&&"LeftCollider"!=targetparent.name&&"BottomCollider"!=targetparent.name)for(let i=this.TargetArray.length-1;i>-1;i--)this.TargetArray[i]==targetparent&&this.TargetArray.splice(i,1)}Move(_position){if(!this.moved){this.owner;let move=Laya.Tween.to(this.owner,{x:_position.x,y:_position.y,update:new Laya.Handler(this,function(){})},200,Laya.Ease.linearInOut,Laya.Handler.create(this,()=>{if(move.clear(),this.owner.removeSelf(),this.owner.destroy(),!GamePool.Instance.Cloned){let num=GamePool.Instance.PrecossData(GameManager.Instance.ScoreRecord),score=GamePool.Instance.ProcessScore(GameManager.Instance.ScoreRecord);GamePool.Instance.CreatPrefab(num,GameManager.Instance.TargetPosition);GameManager.Instance.ScoreProgress+=score,GamePool.Instance.FallDown()}}))}}ClickBall(){for(let j=this.TargetArray.length-1;j>-1;j--)this.TargetArray[j].destroyed&&this.TargetArray.splice(j,1);for(let i=0;i<this.TargetArray.length;i++){this.TargetArray[i].getChildByName("num")}let owner=this.owner;GamePool.Instance.Cloned=!1,GameManager.Instance.ScoreRecord=0,GameManager.Instance.TargetPosition=new Vector2(owner.x,owner.y),this.DisPose(owner)}DisPose(_node){let ball=_node.getComponent(Ball);if(ball.TargetArray.length>0){if(!ball.mark){let ownerscore=ball.score;GameManager.Instance.ScoreRecord+=ownerscore,ball.mark=!0}ball.clear=!0;for(let i=0;i<ball.TargetArray.length;i++){if(ball.TargetArray[i].getComponent(Ball).mark)continue;let score=ball.TargetArray[i].getChildByName("num");GameManager.Instance.ScoreRecord+=Number(score.value),ball.TargetArray[i].getComponent(Ball).mark=!0,ball.TargetArray[i].getComponent(Ball).clear=!0;let ball2=ball.TargetArray[i].getComponent(Ball);if(ball2.TargetArray.length>0)for(let j=0;j<ball2.TargetArray.length;j++)ball2.TargetArray[j]!=_node&&(ball2.clear=!0,ball2.mark=!0,this.DisPose(ball2.TargetArray[j]))}}}}class GameConfig{constructor(){}static init(){(0,Laya.ClassUtils.regClass)("Main/Ball.ts",Ball)}}GameConfig.width=720,GameConfig.height=1280,GameConfig.scaleMode="showall",GameConfig.screenMode="none",GameConfig.alignV="top",GameConfig.alignH="left",GameConfig.startScene="MainScene.scene",GameConfig.sceneRoot="",GameConfig.debug=!1,GameConfig.stat=!1,GameConfig.physicsDebug=!1,GameConfig.exportSceneToJson=!0,GameConfig.init();class Main{constructor(){window.Laya3D?Laya3D.init(GameConfig.width,GameConfig.height):Laya.init(GameConfig.width,GameConfig.height,Laya.WebGL),Laya.Physics&&Laya.Physics.enable(),Laya.DebugPanel&&Laya.DebugPanel.enable(),Laya.stage.scaleMode=GameConfig.scaleMode,Laya.stage.screenMode=GameConfig.screenMode,Laya.stage.alignV=GameConfig.alignV,Laya.stage.alignH=GameConfig.alignH,Laya.URL.exportSceneToJson=GameConfig.exportSceneToJson,(GameConfig.debug||"true"==Laya.Utils.getQueryString("debug"))&&Laya.enableDebugPanel(),GameConfig.physicsDebug&&Laya.PhysicsDebugDraw&&Laya.PhysicsDebugDraw.enable(),GameConfig.stat&&Laya.Stat.show(),Laya.alertGlobalError=!0,Laya.ResourceVersion.enable("version.json",Laya.Handler.create(this,this.onVersionLoaded),Laya.ResourceVersion.FILENAME_VERSION)}onVersionLoaded(){Laya.AtlasInfoManager.enable("fileconfig.json",Laya.Handler.create(this,this.onConfigLoaded))}onConfigLoaded(){new LoadView}}Main.Ver="1.0.0",Main.CFG="123",Main.SceneNum="000",new Main,function(AccountUser){AccountUser[AccountUser.buyed_kun=0]="buyed_kun",AccountUser[AccountUser.diamond=1]="diamond",AccountUser[AccountUser.equip_themes=2]="equip_themes",AccountUser[AccountUser.favorite_times=3]="favorite_times",AccountUser[AccountUser.game_times=4]="game_times",AccountUser[AccountUser.get_themes=5]="get_themes",AccountUser[AccountUser.list_kun=6]="list_kun",AccountUser[AccountUser.moeny=7]="moeny",AccountUser[AccountUser.progress_themes=8]="progress_themes",AccountUser[AccountUser.revival=9]="revival",AccountUser[AccountUser.stage=10]="stage"}(AccountUser||(AccountUser={}));class PlayerData{constructor(_token,_config,_appSetting,_user,_userbase,_useInvite,_user_stage=null,_user_sign,_user_achievement,lottery){this.openid="",this.userId="",this.jianglidic={},this.shitidic={},this.chengjiuliebiao={},this.zhengshu=_token,this.netzheshe=_appSetting,this.account=_user,this.accountssss=_userbase,this.qiandao=_user_sign,this.renwu=_user_achievement,this.userId=this.account.user_id,this.openid=this.accountssss.openid,this.m_invite=_useInvite,this.lottery=lottery,console.log("user_id:"+this.userId)}GainCollocation(_type){return this.peizhis[_type]}GainAccount(_type){return this.account[_type]}get fenxiang(){return"1"==this.netzheshe.share}get fenxiangneirong(){return this.netzheshe.sharecontent}get fuhuocishu(){return Number(this.netzheshe.revivenum)}get wudishijian(){return Number(this.netzheshe.Invincibletime)}get wudaoshijian(){return Number(this.netzheshe.cheattime)}get banner(){return"1"==this.netzheshe.banner}get video(){return"1"==this.netzheshe.video}get wudao(){return"1"==this.netzheshe.cheat}get jiancechangjin(){return 1==this.netzheshe.checkscence}get reviverate(){return Number(this.netzheshe.revive)}get uintid(){return this.netzheshe.uintid}get music(){return"1"==this.netzheshe.music}get skin(){return"1"==this.netzheshe.skinget}get aicheatspeed(){return Number(this.netzheshe.aicheatspeed)}get aispeedtime(){return Number(this.netzheshe.aispeedtime)}get videoshare(){return"1"==this.netzheshe.videoshare}get trial(){return"1"==this.netzheshe.trial}get invite(){return 1==this.netzheshe.invite}get re(){return 1==this.netzheshe.re}get autosign(){return 1==this.netzheshe.autosign}get showgift(){return 1==this.netzheshe.showgift}get showshop(){return 1==this.netzheshe.showshop}get lotteryTimer(){return this.netzheshe.lotteryTimer?Number(this.netzheshe.lotteryTimer):0}get falldownline(){return this.netzheshe.FallDownLine}get touchsize(){return Number(this.netzheshe.touchsize)}get touchsmoothness(){return Number(this.netzheshe.touchsmoothness)}GainQinDao(_key){return this.qiandao[_key]}GainShiTi(_key,shuxing){return this.shitidic[_key][shuxing]}GainJiangLi(_rewardid){return this.jianglidic[_rewardid]}GetUser(_type){var type=AccountUser[_type];return this.account[type]}HasRole(_id){for(var data=this.GainAccount("get_themes"),i=0;i<data.length;i++){if(_id==data[i])return!0}return!1}HasGun(_id){for(var data=this.GainAccount("buyed_kun"),i=0;i<data.length;i++){if(_id==data[i])return!0}return!1}GetProgress(_id){var config=this.account.progress_themes;return config[_id]?config[_id]:0}GetJiangLiLieBiao(){var peiz=this.GainCollocation("rewards");for(var key in peiz)this.jianglidic[peiz[key].id]=peiz[key]}GetShiTiLieBiao(){var peiz=this.GainCollocation("entity");for(var key in peiz)this.shitidic[peiz[key].entity_id]=peiz[key]}GetChengJiuLieBiao(){var shujiu=this.GainCollocation("achievement"),aadsadsdas={};for(var key1 in shujiu){var type1=shujiu[key1].type;if(!aadsadsdas[type1]){var fasas=[];for(var key2 in shujiu){type1==shujiu[key2].type&&fasas.push(shujiu[key2])}aadsadsdas[type1]=fasas}}this.chengjiuliebiao=aadsadsdas}}var HttpRequest=Laya.HttpRequest,Event=Laya.Event;const BlastToMergeApi="https://btmapi.xwxgame.com/";class BlastToMerge{}BlastToMerge.DengLu="user/login",BlastToMerge.KaiShi="game/start",BlastToMerge.JieShu="game/play",BlastToMerge.Use="game/use",BlastToMerge.GetProgress="game/progress",BlastToMerge.Save="game/save",BlastToMerge.WithDraw="qtt/withdraw",BlastToMerge.CheckCoin="qtt/balance",BlastToMerge.GetCoin="qtt/rewards",BlastToMerge.QianDao="sign/sign",BlastToMerge.Chengjiu="achievement/getRewards",BlastToMerge.Config="config/table",BlastToMerge.FenXiang="fission/share",BlastToMerge.LiXian="fission/offline",BlastToMerge.vd="fission/vd",BlastToMerge.FuHuo="game/revival",BlastToMerge.gadagdag="treasure/click",BlastToMerge.Invite="invite/getRewards",BlastToMerge.Lottery="lottery/lottery",BlastToMerge.ShareGetSkin="theme/fission",BlastToMerge.WearEquip="theme/equip",BlastToMerge.BuyEquip="theme/buy",BlastToMerge.ShouQuan="user/auth",BlastToMerge.JinBi="user/sync";class ServerManager{constructor(){}static get Instance(){return ServerManager.ins?ServerManager.ins:new ServerManager}Login(progresscb,completecb,errorcb){var Account=AccountManager.Instance,ver=Main.Ver;let Data=`code=${Account.code}&nickname=${Account.nickName}&avatar=${Account.avatarUrl}&gender=${Account.gender}&country=${Account.country}&province=${Account.province}&city=${Account.city}& device=${Account.device}$&share_id=${Account.share_id}&scene=${Account.scene}&v=${ver}`,httpRequest=new HttpRequest;httpRequest.once(Event.PROGRESS,this,this.Progress,[progresscb,httpRequest]),httpRequest.once(Event.COMPLETE,this,this.Complete,[completecb,httpRequest]),httpRequest.once(Event.ERROR,this,this.Errorcb,[errorcb,httpRequest]),httpRequest.send(BlastToMergeApi+BlastToMerge.DengLu,Data,"post","text")}Progress(_progresscb,_httpreq){_progresscb&&_progresscb.run()}Complete(_completecb,_httpreq){let data=JSON.parse(_httpreq.data);console.log(data),"0"==data.code?(console.log("-----------sss",data.t),AccountManager.Instance.SFSFSF=data.t,this.RessetConfig(data,_completecb)):console.log("登录异常错误!错误信息sssssssss:",_httpreq.data.code)}RessetConfig(data,completecb){AccountManager.Instance.ReSetting(data,flag=>{flag?completecb.runWith(data):this.RessetConfig(data,completecb)})}Errorcb(_errorcb,_httpreq){null!=_errorcb&&_errorcb.runWith(_httpreq)}SendHttp(protocol,param,completecb,errorcb,hasToken=!0){let sfaasfsfa="",daadsads=BlastToMergeApi+protocol;if(1==hasToken&&(sfaasfsfa=`token=${AccountManager.Instance.curplayerData.zhengshu}&`),protocol==BlastToMerge.KaiShi||protocol==BlastToMerge.JieShu||protocol==BlastToMerge.vd||protocol==BlastToMerge.Lottery){let asddsa="abcdefghijkimnopqrstuvwxyz0123456789",adsassda="{",saafsafs="";for(let i=0;i<4;i++)saafsafs+=asddsa[Math.floor(100*Math.random())%asddsa.length];for(let i=0;i<param.length;i++){for(let key in param[i])adsassda+=`"${key}":"${param[i][key]}"`;i<param.length-1?adsassda+=",":adsassda+="}"}sfaasfsfa+="_r="+saafsafs+this.SFGSGSG(adsassda)}else if(null!=param)for(let i=0;i<param.length;i++)for(let key in param[i]){sfaasfsfa+=`${key}=${param[i][key]}`,i<param.length-1&&(sfaasfsfa+="&")}let httpRequest=new HttpRequest;httpRequest.once(Event.COMPLETE,this,this.onHttpRequestComplete,[completecb,errorcb,httpRequest]),httpRequest.once(Event.ERROR,this,this.Errorcb,[errorcb,httpRequest]),httpRequest.send(daadsads,sfaasfsfa,"post","text")}onHttpRequestComplete(succeedcb,failurecb,httpRequest){let data=JSON.parse(httpRequest.data);0==data.code?(AccountManager.Instance.ReSetting(data),null!=succeedcb&&succeedcb.runWith(data)):(null!=failurecb&&failurecb.runWith(data),console.log("Error! Http request complete error, code: "+data.code+" message: "+data.message))}SFGSGSG(str){for(var c1,c2,c3,SFSFFSFSFSFS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,len=str.length,SFFSSFFS="";i<len;){if(c1=255&str.charCodeAt(i++),i==len){SFFSSFFS+=SFSFFSFSFSFS.charAt(c1>>2),SFFSSFFS+=SFSFFSFSFSFS.charAt((3&c1)<<4),SFFSSFFS+="==";break}if(c2=str.charCodeAt(i++),i==len){SFFSSFFS+=SFSFFSFSFSFS.charAt(c1>>2),SFFSSFFS+=SFSFFSFSFSFS.charAt((3&c1)<<4|(240&c2)>>4),SFFSSFFS+=SFSFFSFSFSFS.charAt((15&c2)<<2),SFFSSFFS+="=";break}c3=str.charCodeAt(i++),SFFSSFFS+=SFSFFSFSFSFS.charAt(c1>>2),SFFSSFFS+=SFSFFSFSFSFS.charAt((3&c1)<<4|(240&c2)>>4),SFFSSFFS+=SFSFFSFSFSFS.charAt((15&c2)<<2|(192&c3)>>6),SFFSSFFS+=SFSFFSFSFSFS.charAt(63&c3)}return SFFSSFFS}}class AccountManager{constructor(_code,_userinfo,_nickname,_avatarurl,_gender,_province,_city,_country,_device,_shareid,_scene,_v){this.createTime=Laya.timer.currTimer,AccountManager.ins=this,this.code=_code,this.userInfo=_userinfo,this.nickName=_nickname,this.avatarUrl=_avatarurl,this.gender=_gender,this.province=_province,this.city=_city,this.country=_country,this.device=_device,this.share_id=_shareid,this.scene=_scene,this.v=_v}static get Instance(){return null==AccountManager.ins&&new AccountManager("222222","你找谁?","1233","123",1,"中国","上海","上海","iphone6s","123","123","123"),AccountManager.ins}ReSetting(data,cb=null){var zhengshu=data.token,netset=data.app_setting,user=data.user,jichu=data.user_base,qiandao=data.user_sign,chengjiu=data.user_achievement,invite=data.user_invite,lottery=data.user_lottery;null==this.curplayerData?(this.curplayerData=new PlayerData(zhengshu,null,netset,user,jichu,invite,null,qiandao,chengjiu,lottery),this.JundgCfg(data.table_version,cb)):(netset&&(this.curplayerData.netzheshe=netset),user&&(this.curplayerData.account=user),jichu&&(this.curplayerData.accountssss=jichu),qiandao&&(this.curplayerData.qiandao=qiandao),chengjiu&&(this.curplayerData.renwu=chengjiu))}JundgCfg(ver,callball){var cfg=Laya.LocalStorage.getJSON(Main.CFG);cfg?cfg.VER==ver?(console.log("已经拥有,不用更新"),this.SetCfg(cfg),callball&&callball(!0)):(console.log("cfg存在但是过期了"),Laya.LocalStorage.removeItem(Main.CFG),ServerManager.Instance.SendHttp(BlastToMerge.Config,null,Laya.Handler.create(this,data=>{data.configs.VER=ver,Laya.LocalStorage.setJSON(Main.CFG,data.configs),this.SetCfg(data.configs),callball&&callball(!0)}),Laya.Handler.create(this,data=>{console.log("配置获取失败"+data),callball&&callball(!1)}))):(console.log("本地没有cfg"),ServerManager.Instance.SendHttp(BlastToMerge.Config,null,Laya.Handler.create(this,data=>{data.configs.VER=ver,Laya.LocalStorage.setJSON(Main.CFG,data.configs),this.SetCfg(data.configs),callball&&callball(!0)}),Laya.Handler.create(this,data=>{console.log("配置获取失败"+data)})))}SetCfg(data){this.curplayerData.peizhis=data,this.curplayerData.GetJiangLiLieBiao(),this.curplayerData.GetShiTiLieBiao(),this.curplayerData.GetChengJiuLieBiao()}RessetConfig(){ServerManager.Instance.SendHttp(BlastToMerge.Config,null,Laya.Handler.create(this,data=>{this.curplayerData.peizhis=data.configs,this.curplayerData.GetJiangLiLieBiao(),this.curplayerData.GetShiTiLieBiao(),this.curplayerData.GetChengJiuLieBiao()}),null)}get ServerTime(){let time=Laya.timer.currTimer;return this.SFSFSF+Math.ceil((time-this.createTime)/1e3)}}class RankPan{constructor(){this.Width=0,this.Height=0,this.shareCanvas=Laya.Browser.window.sharedCanvas,this.ShareSprite=new Laya.Sprite,this.ShareSprite.zOrder=1008,this.ShareSprite.pos(0,0),this.ShareSprite.cacheAs="normal",Laya.stage.addChild(this.ShareSprite),this.SSSS=new Laya.Texture2D,this.TTTT=new Laya.Texture(this.SSSS)}ShuShi(_width=720,_heigth=1280){this.Width=Laya.stage.width,this.Height=Laya.stage.height,this.shareCanvas.width=_width,this.shareCanvas.height=_heigth}open(){Laya.timer.frameLoop(10,this,this.gengxin),this.ShareSprite.visible=!0}close(){Laya.timer.clear(this,this.gengxin),this.ShareSprite.visible=!1}gengxin(){this.HuaTu()}HuaTu(){this.SSSS.loadImageSource(this.shareCanvas),this.TTTT.setTo(this.SSSS),this.ShareSprite.graphics.clear(),this.ShareSprite.graphics.drawTexture(this.TTTT,0,0,this.TTTT.width,this.TTTT.height)}draw2d(){this.AAAA.drawImage(this.shareCanvas,0,0,this.shareCanvas.width,this.shareCanvas.height)}}class RankSDK{constructor(){}static ShuShi(){Laya.Browser.onWeiXin&&(this.SetScreen(),this.RankPan=new RankPan,this.RankPan.ShuShi())}static OpenRank(keyName="Level"){Laya.Browser.onWeiXin&&(this.Send(keyName,"show_friend_rank"),console.log("打开排行榜---openrank"))}static Leftpe(){Laya.Browser.onWeiXin&&this.Send("","show_up_page")}static Rightpe(){Laya.Browser.onWeiXin&&this.Send("","show_next_page")}static OpenPan(){console.log("Laya.Browser.onWeiXin",Laya.Browser.onWeiXin),Laya.Browser.window.wx&&this.RankPan.open()}static ClosePan(){Laya.Browser.onWeiXin&&this.RankPan.close()}static SetScreen(){if(!Laya.Browser.onWeiXin)return;let data={width:Laya.stage.width,height:Laya.stage.height};this.Send("","canvase_width_height",data)}static Send(keyName,action,data){console.log("消息发送成功0---send"),Laya.Browser.window.wx.postMessage({keyName:keyName,action:action,data:data}),console.log("消息发送成功---send")}static SetStage(keyName,value,callBack=null){let obj=[{key:keyName,value:value}];Laya.Browser.window.wx.setUserCloudStorage({KVDataList:obj,success:function(res){console.log("数据上传成功"+res),callBack&&callBack()},fail:function(res){console.log("数据上传失败"+res),callBack&&callBack()}})}}class WXSDK{constructor(){WXSDK.ins=this}static get Instance(){return WXSDK.ins?WXSDK.ins:new WXSDK}static Init(){Laya.Browser.window.wx.showShareMenu({withShareTicket:!0}),Laya.Browser.window.wx.onShareAppMessage(function(){return{title:"",imageUrl:"gameResources/res/share/sharepictrue.png"}}),Laya.Browser.window.wx.onShow(option=>{option.shareTicket,option.query.userId,option.query.shareTitle;Main.SceneNum=option.scene,WXSDK.querychannel=option.query.channel,WXSDK.shareOpenId=option.query.userId,console.log("option---",option),console.log("scene:",option.scene),null!=WXSDK.querychannel&&console.log("onShow channel is:",WXSDK.querychannel),option.referrerInfo&&(WXSDK.referrerInfoappId=option.referrerInfo.appId,console.log("onShow appId is:",option.referrerInfo.appId))})}static DengLu(_complete){var that=this;Laya.Browser.window.wx.login({success:function(res){res.code?(console.log("微信登陆成功----"),that.codeValue=res.code,RankSDK.ShuShi(),console.log("shareid:"+WXSDK.shareOpenId),new AccountManager(res.code,"","","",0,"","","","",WXSDK.shareOpenId,WXSDK.shareOpenId,Main.Ver),_complete(res)):(WXSDK.DengLu(WXSDK.DengLu),console.log("wx no code"+res.errMsg))},fail:function(res){console.log("wx.login: failed, res="+res)}})}static ShowTxt(text){Laya.Browser.window.wx?Laya.Browser.window.wx.showToast({title:text}):console.log(text)}static ShortShake(){Laya.Browser.window.wx.vibrateShort({})}static LongShake(){Laya.Browser.window.wx.vibrateLong({})}static Shake(_short=!0){Laya.Browser.onWeiXin&&WXSDK.shake&&(_short?this.ShortShake():this.LongShake())}static LoadSubPackage(name,_complete){if(Laya.Browser.onWeiXin){Laya.Browser.window.wx.loadSubpackage({name:"Game",success:function(res){_complete&&_complete(!0),console.log("分包加载成功")},fail:function(res){_complete&&_complete(!1),console.log("分包加载失败")}})}else console.log("未进行分包加载"),_complete&&_complete(!0)}static UpdateScore(_level){var kvDataList=new Array;let date=(new Date).getTime();var myValue=JSON.stringify({wxgame:{Level:_level,update_time:date.toString()}});kvDataList.push({key:"Level",value:myValue}),Laya.Browser.onWeiXin&&Laya.Browser.window.wx.setUserCloudStorage({KVDataList:kvDataList,success:r=>{console.log("KVDATALIST---",kvDataList),console.log("上传分数成功:"+_level)}})}GuanKaKaiShi(stageId,stageName,userId){Laya.Browser.window&&Laya.Browser.window.wx&&Laya.Browser.window.wx.aldStage.onStart({stageId:stageId,stageName:stageName,userId:userId})}GuanKaChengGong(stageId,stageName,userId){Laya.Browser.window&&Laya.Browser.window.wx&&Laya.Browser.window.wx.aldStage.onEnd({stageId:stageId,stageName:stageName,userId:userId,event:"complete",params:{desc:"关卡完成"}})}GuanKaShiBai(stageId,stageName,userId,score,carname){Laya.Browser.window&&Laya.Browser.window.wx&&Laya.Browser.window.wx.aldStage.onEnd({stageId:stageId,stageName:stageName,userId:userId,event:"fail",params:{desc:"失败",score:score,car:carname}})}IsNeedUpdate(){if(!Laya.Browser.onWeiXin)return;const updateManager=Laya.Browser.window.wx.getUpdateManager();updateManager.onCheckForUpdate(function(res){console.log("最新版本:"+res.hasUpdate)}),updateManager.onUpdateReady(function(){Laya.Browser.window.wx.showModal({showCancel:!1,title:"更新提示",content:"新版本已经准备好,是否重启应用?",success(res){updateManager.applyUpdate()},fail(res){updateManager.applyUpdate()}})})}}WXSDK.codeValue="",WXSDK.shareOpenId="",WXSDK.openId=0,WXSDK.shareScene="",WXSDK.uid="123",WXSDK.querychannel="",WXSDK.referrerInfoappId="",WXSDK.shake=!0;var ui,on_off,MusicType,QianDaoMode,ViewType,REG=Laya.ClassUtils.regClass;!function(ui){class FailureViewUI extends Laya.Scene{constructor(){super()}createChildren(){super.createChildren(),this.createView(FailureViewUI.uiView)}}FailureViewUI.uiView={type:"Scene",props:{width:720,height:1280},compId:2,child:[{type:"Image",props:{y:16,x:0,skin:"ReviveView/fuhuo-1-1.png"},compId:5,child:[{type:"Image",props:{y:252,x:285,skin:"FailureView/shibai-1-1.png"},compId:4}]},{type:"Button",props:{y:489,x:252,var:"BackBtn",stateNum:1,skin:"FailureView/shibai-1-2.png"},compId:6},{type:"Button",props:{y:602,x:228,var:"TryBtn",stateNum:1,skin:"FailureView/shibai-1-3.png"},compId:7}],loadList:["ReviveView/fuhuo-1-1.png","FailureView/shibai-1-1.png","FailureView/shibai-1-2.png","FailureView/shibai-1-3.png"],loadList3D:[]},ui.FailureViewUI=FailureViewUI,REG("ui.FailureViewUI",FailureViewUI);class InGameSceneUI extends Laya.Scene{constructor(){super()}createChildren(){super.createChildren(),this.createView(InGameSceneUI.uiView)}}InGameSceneUI.uiView={type:"Scene",props:{width:720,pref:"@Prefab:Pr",height:1280},compId:2,child:[{type:"Image",props:{y:892,x:0,width:729,visible:!0,skin:"InGameView/colliderbottom.png",scaleY:1,scaleX:1,name:"BottomCollider",height:211,bottom:177,alpha:1},compId:58,child:[{type:"Script",props:{points:"-2,-1,78,-1,78,65,83,81,110,108,147,129,190,145,248,157,291,164,353,166,423,164,486,156,551,139,596,119,626,96,642,72,643,0,732,0",runtime:"laya.physics.ChainCollider"},compId:200},{type:"Script",props:{type:"static",runtime:"laya.physics.RigidBody"},compId:201}]},{type:"Image",props:{y:937,x:720,width:82,skin:"InGameView/0.png",pivotY:939,pivotX:79,name:"RightCollider",height:957,alpha:1},compId:55,child:[{type:"Script",props:{y:0,x:0,points:"230,-454,82,-1,84,958,-1,958,0,716,1,631,0,571,7,478,23,332,31,235,32,191,31,169,34,143,39,121,49,81,58,36,61,-1,84,0",runtime:"laya.physics.ChainCollider"},compId:195},{type:"Script",props:{type:"static",runtime:"laya.physics.RigidBody"},compId:196}]},{type:"Image",props:{y:943,x:78,width:80,skin:"InGameView/1.png",scaleY:1,scaleX:1,pivotY:939,pivotX:80,name:"LeftCollider",height:885,alpha:1},compId:52,child:[{type:"Script",props:{y:0,x:0,points:"-153,-466,-1,-5,1,959,0,-1,15,-1,18,32,25,67,39,115,44,144,46,165,46,198,49,254,57,312,63,366,80,533,80,678,80,964",runtime:"laya.physics.ChainCollider"},compId:197},{type:"Script",props:{type:"static",runtime:"laya.physics.RigidBody"},compId:198}]},{type:"Image",props:{y:0,x:0,top:0,skin:"InGameView/groundplane.png",sizeGrid:"179,113,184,121",right:0,name:"BG",left:0,bottom:0},compId:4},{type:"Image",props:{x:78,width:514,skin:"InGameView/borderbottom.png",scaleX:1.1,name:"bottom",height:160,bottom:222},compId:37},{type:"Image",props:{skin:"InGameView/blast-35.png",right:0,name:"prop",left:0,bottom:0},compId:3,child:[{type:"Button",props:{y:132,x:629,width:82,var:"arrowbtn",stateNum:1,skin:"Skillicon/BoosterArrow1_00239.png",pivotY:37,pivotX:41,name:"",height:73},compId:383,child:[{type:"Image",props:{y:62,x:84,width:29,skin:"InGameView/blast-45.png",pivotY:14,pivotX:15,name:"cycle",height:28},compId:20},{type:"Text",props:{y:64,x:84,width:32,valign:"middle",text:"10",pivotY:9,pivotX:16,name:"num",height:18,fontSize:20,font:"Microsoft YaHei",color:"#ffffff",bold:!1,align:"center",runtime:"laya.display.Text"},compId:21}]},{type:"Button",props:{y:130,x:88,width:79,var:"doublebtn",stateNum:1,skin:"Skillicon/BoosterExplode1_00239.png",pivotY:29,pivotX:40,height:55},compId:384,child:[{type:"Image",props:{y:57,x:80,width:29,skin:"InGameView/blast-45.png",pivotY:14,pivotX:15,name:"cycle",height:28},compId:12},{type:"Text",props:{y:60,x:79,width:28,valign:"middle",text:"10",pivotY:10,pivotX:14,name:"num",height:20,fontSize:20,font:"Microsoft YaHei",color:"#ffffff",bold:!1,align:"center",runtime:"laya.display.Text"},compId:13}]},{type:"Button",props:{y:166,x:222,width:85,var:"zhunxin1btn",stateNum:1,skin:"Skillicon/BoosterFire1_00239.png",pivotY:40,pivotX:43,height:80},compId:385,child:[{type:"Image",props:{y:57,x:79,width:29,skin:"InGameView/blast-45.png",pivotY:14,pivotX:15,name:"cycle",height:28},compId:14},{type:"Text",props:{y:59.5,x:79,width:27,valign:"middle",text:"10",pivotY:12,pivotX:14,name:"num",height:23,fontSize:20,font:"Microsoft YaHei",color:"#ffffff",bold:!1,align:"center",runtime:"laya.display.Text"},compId:15}]},{type:"Button",props:{y:175,x:361,width:77,var:"zhunxin2btn",stateNum:1,skin:"Skillicon/BoosterShoot1_00240.png",pivotY:37,pivotX:39,height:73},compId:386,child:[{type:"Image",props:{y:58,x:76,width:29,skin:"InGameView/blast-45.png",pivotY:14,pivotX:15,name:"cycle",height:28},compId:16},{type:"Text",props:{y:61,x:76,width:31,valign:"middle",text:"10",pivotY:11,pivotX:16,name:"num",height:22,fontSize:20,font:"Microsoft YaHei",color:"#ffffff",bold:!1,align:"center",runtime:"laya.display.Text"},compId:17}]},{type:"Button",props:{y:165,x:499,width:68,var:"hammerbtn",stateNum:1,skin:"Skillicon/BoosterHammer1_00238.png",pivotY:39,pivotX:34,height:78},compId:388,child:[{type:"Image",props:{y:56,x:84,width:29,skin:"InGameView/blast-45.png",pivotY:14,pivotX:15,name:"cycle",height:28},compId:18},{type:"Text",props:{y:58,x:84,width:31,valign:"middle",text:"10",pivotY:12,pivotX:16,name:"num",height:24,fontSize:20,font:"Microsoft YaHei",color:"#ffffff",bold:!1,align:"center",runtime:"laya.display.Text"},compId:19}]}]},{type:"Image",props:{x:14,width:346,top:0,skin:"InGameView/border2.png",scaleY:2,scaleX:2,name:"area",bottom:380},compId:36},{type:"Sprite",props:{y:0,x:0,var:"prefabbox"},compId:677},{type:"ProgressBar",props:{y:98,x:360,width:281,var:"LevelProgress",value:0,skin:"InGameView/jindutiao-1-2.png",pivotY:22,pivotX:141,height:44},compId:574,child:[{type:"Image",props:{y:22,x:-14,width:73,skin:"InGameView/jindutiao-1-3.png",pivotY:37,pivotX:37,height:73},compId:570,child:[{type:"FontClip",props:{y:36,x:36,width:25,var:"NowLv",value:"1",skin:"Ball/43.png",sheet:"0123456789",pivotY:15,pivotX:13,height:29,align:"center"},compId:578}]},{type:"Image",props:{y:22,x:298,width:73,skin:"InGameView/jindutiao-1-3.png",pivotY:37,pivotX:37,height:73},compId:571,child:[{type:"FontClip",props:{y:36.5,x:36.5,width:25,var:"NextLv",value:"2",skin:"Ball/43.png",sheet:"0123456789",pivotY:15,pivotX:13,height:29,align:"center"},compId:576}]},{type:"Text",props:{y:-22,x:38,width:117,var:"NowScore",valign:"middle",text:"0",pivotY:13,pivotX:19,height:26,fontSize:30,color:"#ffffff",align:"right",runtime:"laya.display.Text"},compId:674},{type:"Text",props:{y:-21,x:208,width:124,var:"RequireScore",valign:"middle",text:"0",pivotY:14,pivotX:62,height:27,fontSize:30,color:"#ffffff",align:"left",runtime:"laya.display.Text"},compId:675},{type:"Text",props:{y:-34,x:136,width:10,text:"/",height:25,fontSize:30,color:"#ffffff",runtime:"laya.display.Text"},compId:676}]},{type:"Image",props:{y:49,x:0,visible:!1,var:"Effect",skin:"InGameView/youxinei-1-2.png",right:0,left:0},compId:558,child:[{type:"Button",props:{y:883,x:360,width:298,var:"EffectBtn",stateNum:1,skin:"InGameView/youxinei-1-5.png",pivotY:53,pivotX:149,height:106},compId:564},{type:"Image",props:{y:95,x:626,width:69,skin:"Ball/blast-08.png",pivotY:36,pivotX:35,name:"ICON",height:72},compId:565},{type:"Image",props:{x:0,width:72,top:-48,skin:"InGameView/youxinei-1-1.png",name:"Left",height:1280},compId:566},{type:"Image",props:{x:684,width:72,top:-48,skin:"InGameView/youxinei-1-1.png",rotation:180,pivotY:640,pivotX:36,name:"Right",height:1280},compId:567},{type:"Text",props:{y:52,x:318,width:153,valign:"middle",text:"消除所有的",pivotY:28,pivotX:77,name:"describe",height:55,fontSize:30,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"laya.display.Text"},compId:579,child:[{type:"Text",props:{y:26,x:176,width:40,var:"ClearNum",valign:"middle",text:"2",pivotY:23,pivotX:20,height:45,fontSize:35,color:"#ffffff",align:"center",runtime:"laya.display.Text"},compId:580}]},{type:"Text",props:{y:52,x:362,width:241,valign:"middle",text:"消除你所砸到的球",pivotY:28,pivotX:121,name:"describe2",height:55,fontSize:30,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"laya.display.Text"},compId:678}]}],animations:[{nodes:[{target:383,keyframes:{var:[{value:"arrowbtn",tweenMethod:"linearNone",tween:!1,target:383,key:"var",index:0}],skin:[{value:"Skillicon/BoosterArrow1_00239.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:0},{value:"Skillicon/BoosterArrow1_00240.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:1},{value:"Skillicon/BoosterArrow1_00241.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:2},{value:"Skillicon/BoosterArrow1_00242.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:3},{value:"Skillicon/BoosterArrow1_00243.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:4},{value:"Skillicon/BoosterArrow1_00244.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:5},{value:"Skillicon/BoosterArrow1_00245.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:6},{value:"Skillicon/BoosterArrow1_00246.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:7},{value:"Skillicon/BoosterArrow1_00247.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:8},{value:"Skillicon/BoosterArrow1_00248.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:9},{value:"Skillicon/BoosterArrow1_00249.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:10},{value:"Skillicon/BoosterArrow1_00250.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:11},{value:"Skillicon/BoosterArrow1_00251.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:12},{value:"Skillicon/BoosterArrow1_00252.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:13},{value:"Skillicon/BoosterArrow1_00253.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:14},{value:"Skillicon/BoosterArrow1_00254.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:15},{value:"Skillicon/BoosterArrow1_00255.png",tweenMethod:"linearNone",tween:!1,target:383,key:"skin",index:16}],name:[{value:"",tweenMethod:"linearNone",tween:!1,target:383,key:"name",index:0}]}}],name:"ani1",id:1,frameRate:24,action:0},{nodes:[{target:384,keyframes:{skin:[{value:"Skillicon/BoosterExplode1_00239.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:0},{value:"Skillicon/BoosterExplode1_00240.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:1},{value:"Skillicon/BoosterExplode1_00241.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:2},{value:"Skillicon/BoosterExplode1_00242.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:3},{value:"Skillicon/BoosterExplode1_00243.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:4},{value:"Skillicon/BoosterExplode1_00244.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:5},{value:"Skillicon/BoosterExplode1_00245.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:6},{value:"Skillicon/BoosterExplode1_00246.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:7},{value:"Skillicon/BoosterExplode1_00247.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:8},{value:"Skillicon/BoosterExplode1_00248.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:9},{value:"Skillicon/BoosterExplode1_00249.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:10},{value:"Skillicon/BoosterExplode1_00250.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:11},{value:"Skillicon/BoosterExplode1_00251.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:12},{value:"Skillicon/BoosterExplode1_00252.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:13},{value:"Skillicon/BoosterExplode1_00253.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:14},{value:"Skillicon/BoosterExplode1_00254.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:15},{value:"Skillicon/BoosterExplode1_00255.png",tweenMethod:"linearNone",tween:!1,target:384,key:"skin",index:16}]}}],name:"ani2",id:2,frameRate:24,action:0},{nodes:[{target:385,keyframes:{skin:[{value:"Skillicon/BoosterFire1_00239.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:0},{value:"Skillicon/BoosterFire1_00240.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:1},{value:"Skillicon/BoosterFire1_00241.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:2},{value:"Skillicon/BoosterFire1_00242.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:3},{value:"Skillicon/BoosterFire1_00243.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:4},{value:"Skillicon/BoosterFire1_00244.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:5},{value:"Skillicon/BoosterFire1_00245.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:6},{value:"Skillicon/BoosterFire1_00246.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:7},{value:"Skillicon/BoosterFire1_00247.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:8},{value:"Skillicon/BoosterFire1_00248.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:9},{value:"Skillicon/BoosterFire1_00249.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:10},{value:"Skillicon/BoosterFire1_00250.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:11},{value:"Skillicon/BoosterFire1_00251.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:12},{value:"Skillicon/BoosterFire1_00252.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:13},{value:"Skillicon/BoosterFire1_00253.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:14},{value:"Skillicon/BoosterFire1_00254.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:15},{value:"Skillicon/BoosterFire1_00255.png",tweenMethod:"linearNone",tween:!1,target:385,key:"skin",index:16}]}}],name:"ani3",id:3,frameRate:24,action:0},{nodes:[{target:386,keyframes:{skin:[{value:"Skillicon/BoosterShoot1_00240.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:0},{value:"Skillicon/BoosterShoot1_00241.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:1},{value:"Skillicon/BoosterShoot1_00242.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:2},{value:"Skillicon/BoosterShoot1_00243.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:3},{value:"Skillicon/BoosterShoot1_00244.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:4},{value:"Skillicon/BoosterShoot1_00245.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:5},{value:"Skillicon/BoosterShoot1_00246.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:6},{value:"Skillicon/BoosterShoot1_00247.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:7},{value:"Skillicon/BoosterShoot1_00248.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:8},{value:"Skillicon/BoosterShoot1_00249.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:9},{value:"Skillicon/BoosterShoot1_00250.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:10},{value:"Skillicon/BoosterShoot1_00251.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:11},{value:"Skillicon/BoosterShoot1_00252.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:12},{value:"Skillicon/BoosterShoot1_00253.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:13},{value:"Skillicon/BoosterShoot1_00254.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:14},{value:"Skillicon/BoosterShoot1_00255.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:15},{value:"Skillicon/BoosterShoot1_00256.png",tweenMethod:"linearNone",tween:!1,target:386,key:"skin",index:16}]}}],name:"ani4",id:4,frameRate:24,action:0},{nodes:[{target:388,keyframes:{skin:[{value:"Skillicon/BoosterHammer1_00238.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:0},{value:"Skillicon/BoosterHammer1_00239.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:1},{value:"Skillicon/BoosterHammer1_00240.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:2},{value:"Skillicon/BoosterHammer1_00241.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:3},{value:"Skillicon/BoosterHammer1_00242.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:4},{value:"Skillicon/BoosterHammer1_00243.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:5},{value:"Skillicon/BoosterHammer1_00244.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:6},{value:"Skillicon/BoosterHammer1_00245.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:7},{value:"Skillicon/BoosterHammer1_00246.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:8},{value:"Skillicon/BoosterHammer1_00247.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:9},{value:"Skillicon/BoosterHammer1_00248.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:10},{value:"Skillicon/BoosterHammer1_00249.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:11},{value:"Skillicon/BoosterHammer1_00250.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:12},{value:"Skillicon/BoosterHammer1_00251.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:13},{value:"Skillicon/BoosterHammer1_00252.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:14},{value:"Skillicon/BoosterHammer1_00253.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:15},{value:"Skillicon/BoosterHammer1_00254.png",tweenMethod:"linearNone",tween:!1,target:388,key:"skin",index:16}]}}],name:"ani5",id:5,frameRate:24,action:0}],loadList:["InGameView/colliderbottom.png","InGameView/0.png","InGameView/1.png","InGameView/groundplane.png","InGameView/borderbottom.png","InGameView/blast-35.png","Skillicon/BoosterArrow1_00239.png","InGameView/blast-45.png","Skillicon/BoosterExplode1_00239.png","Skillicon/BoosterFire1_00239.png","Skillicon/BoosterShoot1_00240.png","Skillicon/BoosterHammer1_00238.png","InGameView/border2.png","InGameView/jindutiao-1-2.png","InGameView/jindutiao-1-3.png","Ball/43.png","InGameView/youxinei-1-2.png","InGameView/youxinei-1-5.png","Ball/blast-08.png","InGameView/youxinei-1-1.png","Skillicon/BoosterArrow1_00240.png","Skillicon/BoosterArrow1_00241.png","Skillicon/BoosterArrow1_00242.png","Skillicon/BoosterArrow1_00243.png","Skillicon/BoosterArrow1_00244.png","Skillicon/BoosterArrow1_00245.png","Skillicon/BoosterArrow1_00246.png","Skillicon/BoosterArrow1_00247.png","Skillicon/BoosterArrow1_00248.png","Skillicon/BoosterArrow1_00249.png","Skillicon/BoosterArrow1_00250.png","Skillicon/BoosterArrow1_00251.png","Skillicon/BoosterArrow1_00252.png","Skillicon/BoosterArrow1_00253.png","Skillicon/BoosterArrow1_00254.png","Skillicon/BoosterArrow1_00255.png","Skillicon/BoosterExplode1_00240.png","Skillicon/BoosterExplode1_00241.png","Skillicon/BoosterExplode1_00242.png","Skillicon/BoosterExplode1_00243.png","Skillicon/BoosterExplode1_00244.png","Skillicon/BoosterExplode1_00245.png","Skillicon/BoosterExplode1_00246.png","Skillicon/BoosterExplode1_00247.png","Skillicon/BoosterExplode1_00248.png","Skillicon/BoosterExplode1_00249.png","Skillicon/BoosterExplode1_00250.png","Skillicon/BoosterExplode1_00251.png","Skillicon/BoosterExplode1_00252.png","Skillicon/BoosterExplode1_00253.png","Skillicon/BoosterExplode1_00254.png","Skillicon/BoosterExplode1_00255.png","Skillicon/BoosterFire1_00240.png","Skillicon/BoosterFire1_00241.png","Skillicon/BoosterFire1_00242.png","Skillicon/BoosterFire1_00243.png","Skillicon/BoosterFire1_00244.png","Skillicon/BoosterFire1_00245.png","Skillicon/BoosterFire1_00246.png","Skillicon/BoosterFire1_00247.png","Skillicon/BoosterFire1_00248.png","Skillicon/BoosterFire1_00249.png","Skillicon/BoosterFire1_00250.png","Skillicon/BoosterFire1_00251.png","Skillicon/BoosterFire1_00252.png","Skillicon/BoosterFire1_00253.png","Skillicon/BoosterFire1_00254.png","Skillicon/BoosterFire1_00255.png","Skillicon/BoosterShoot1_00241.png","Skillicon/BoosterShoot1_00242.png","Skillicon/BoosterShoot1_00243.png","Skillicon/BoosterShoot1_00244.png","Skillicon/BoosterShoot1_00245.png","Skillicon/BoosterShoot1_00246.png","Skillicon/BoosterShoot1_00247.png","Skillicon/BoosterShoot1_00248.png","Skillicon/BoosterShoot1_00249.png","Skillicon/BoosterShoot1_00250.png","Skillicon/BoosterShoot1_00251.png","Skillicon/BoosterShoot1_00252.png","Skillicon/BoosterShoot1_00253.png","Skillicon/BoosterShoot1_00254.png","Skillicon/BoosterShoot1_00255.png","Skillicon/BoosterShoot1_00256.png","Skillicon/BoosterHammer1_00239.png","Skillicon/BoosterHammer1_00240.png","Skillicon/BoosterHammer1_00241.png","Skillicon/BoosterHammer1_00242.png","Skillicon/BoosterHammer1_00243.png","Skillicon/BoosterHammer1_00244.png","Skillicon/BoosterHammer1_00245.png","Skillicon/BoosterHammer1_00246.png","Skillicon/BoosterHammer1_00247.png","Skillicon/BoosterHammer1_00248.png","Skillicon/BoosterHammer1_00249.png","Skillicon/BoosterHammer1_00250.png","Skillicon/BoosterHammer1_00251.png","Skillicon/BoosterHammer1_00252.png","Skillicon/BoosterHammer1_00253.png","Skillicon/BoosterHammer1_00254.png"],loadList3D:[]},ui.InGameSceneUI=InGameSceneUI,REG("ui.InGameSceneUI",InGameSceneUI);class LotteryViewUI extends Laya.View{constructor(){super()}createChildren(){super.createChildren(),this.createView(LotteryViewUI.uiView)}}LotteryViewUI.uiView={type:"View",props:{width:720,height:1280},compId:2,child:[{type:"Image",props:{y:183,x:60,var:"dial",skin:"LotteryView/choujiang-1-1.png"},compId:4,child:[{type:"Box",props:{y:171,x:344,width:93,rotation:0,pivotY:46,pivotX:47,height:91},compId:8,child:[{type:"Image",props:{y:46,x:47,width:87,skin:"LotteryView/func1.png",rotation:221,pivotY:43,pivotX:44,height:86},compId:9},{type:"Text",props:{y:2,x:91,width:68,valign:"middle",text:"X1",rotation:225,pivotY:13,pivotX:34,height:25,fontSize:20,color:"#ffffff",align:"center",runtime:"laya.display.Text"},compId:10}]},{type:"Box",props:{y:277,x:403,width:93,rotation:12,pivotY:46,pivotX:47,height:91},compId:14,child:[{type:"Image",props:{y:46,x:47,width:87,skin:"LotteryView/func4.png",rotation:253,pivotY:43,pivotX:44,height:86},compId:15},{type:"Text",props:{y:33,x:110,width:68,valign:"middle",text:"X2",rotation:254,pivotY:13,pivotX:34,height:25,fontSize:20,color:"#ffffff",align:"center",runtime:"laya.display.Text"},compId:16}]},{type:"Box",props:{y:395,x:345,width:93,rotation:60,pivotY:46,pivotX:47,height:91},compId:17,child:[{type:"Image",props:{y:46,x:47,width:87,skin:"LotteryView/func5.png",rotation:-86,pivotY:43,pivotX:44,height:86},compId:18},{type:"Text",props:{y:45.5,x:109,width:68,valign:"middle",text:"X1",rotation:-91,pivotY:13,pivotX:34,height:25,fontSize:20,color:"#ffffff",align:"center",runtime:"laya.display.Text"},compId:19}]},{type:"Box",props:{y:395,x:207,width:93,rotation:120,pivotY:46,pivotX:47,height:91},compId:20,child:[{type:"Image",props:{y:46,x:47,width:87,skin:"LotteryView/func5.png",rotation:-87,pivotY:43,pivotX:44,height:86},compId:21},{type:"Text",props:{y:45.5,x:109,width:68,valign:"middle",text:"X2",rotation:-91,pivotY:13,pivotX:34,height:25,fontSize:20,color:"#ffffff",align:"center",runtime:"laya.display.Text"},compId:22}]},{type:"Box",props:{y:277,x:139,width:93,rotation:180,pivotY:46,pivotX:47,height:91},compId:23,child:[{type:"Image",props:{y:46,x:47,width:87,skin:"LotteryView/func1.png",rotation:-83,pivotY:43,pivotX:44,height:86},compId:24},{type:"Text",props:{y:45.5,x:109,width:68,valign:"middle",text:"X2",rotation:-91,pivotY:13,pivotX:34,height:25,fontSize:20,color:"#ffffff",align:"center",runtime:"laya.display.Text"},compId:25}]},{type:"Box",props:{y:162,x:207,width:93,rotation:236,pivotY:46,pivotX:47,height:91},compId:26,child:[{type:"Image",props:{y:46,x:47,width:87,skin:"LotteryView/func2.png",rotation:90,pivotY:43,pivotX:44,height:86},compId:27},{type:"Text",props:{y:45.5,x:109,width:68,valign:"middle",text:"X1",rotation:-91,pivotY:13,pivotX:34,height:25,fontSize:20,color:"#ffffff",align:"center",runtime:"laya.display.Text"},compId:28}]}]},{type:"Button",props:{y:227,x:614,var:"CloseBtn",stateNum:1,skin:"LotteryView/choujiang-1-4.png"},compId:5},{type:"Image",props:{y:437,x:337,width:87,skin:"LotteryView/choujiang-1-2.png",pivotY:77,pivotX:44,name:"Pointer",height:153},compId:6},{type:"Button",props:{y:878,x:211,var:"LotteryBtn",stateNum:1,skin:"LotteryView/choujiang-1-3.png"},compId:7}],loadList:["LotteryView/choujiang-1-1.png","LotteryView/func1.png","LotteryView/func4.png","LotteryView/func5.png","LotteryView/func2.png","LotteryView/choujiang-1-4.png","LotteryView/choujiang-1-2.png","LotteryView/choujiang-1-3.png"],loadList3D:[]},ui.LotteryViewUI=LotteryViewUI,REG("ui.LotteryViewUI",LotteryViewUI);class MainSceneUI extends Laya.View{constructor(){super()}createChildren(){super.createChildren(),this.createView(MainSceneUI.uiView)}}MainSceneUI.uiView={type:"View",props:{width:720,height:1280},compId:2,child:[{type:"Image",props:{y:0,x:0,skin:"MainView/main1-1.png",name:"BG",alpha:1},compId:13},{type:"Button",props:{y:831,x:347.5,width:207,var:"StartBtn",stateNum:1,skin:"MainView/zhujiemian-1-5.png",pivotY:104,pivotX:104,height:207},compId:9},{type:"Button",props:{y:258,x:42,width:42,var:"SetBtn",stateNum:1,skin:"MainView/zhujiemian-1-6.png",pivotY:21,pivotX:21,height:42},compId:30},{type:"Box",props:{name:"decorate"},compId:15,child:[{type:"Image",props:{y:868,x:492,width:90,skin:"Ball/blast-10.png",pivotY:45,pivotX:45,height:90},compId:20,child:[{type:"FontClip",props:{y:45,x:45,width:25,value:"8",skin:"Ball/43.png",sheet:"0123456789",pivotY:15,pivotX:13,height:29},compId:21}]},{type:"Image",props:{y:840,x:188,width:110,skin:"Ball/blast-12.png",pivotY:55,pivotX:55,height:110},compId:24,child:[{type:"FontClip",props:{y:55,x:55,width:72,value:"32",skin:"Ball/44.png",sheet:"0123456789",scaleY:.8,scaleX:.8,pivotY:22,pivotX:36,height:43},compId:25}]},{type:"Image",props:{y:693,x:484,width:150,skin:"Ball/blast-13.png",height:150},compId:35,child:[{type:"FontClip",props:{y:75,x:75,width:72,value:"64",skin:"Ball/44.png",sheet:"0123456789",pivotY:22,pivotX:36,height:43},compId:36}]},{type:"Image",props:{y:593,x:150,width:170,skin:"Ball/blast-14.png",height:170},compId:37,child:[{type:"FontClip",props:{y:85,x:85,width:108,value:"128",skin:"Ball/44.png",sheet:"0123456789",pivotY:22,pivotX:54,height:43},compId:40}]},{type:"Image",props:{y:757,x:131,width:90,skin:"Ball/blast-10.png",pivotY:45,pivotX:45,height:90},compId:38,child:[{type:"FontClip",props:{y:45,x:45,width:25,value:"8",skin:"Ball/43.png",sheet:"0123456789",pivotY:15,pivotX:13,height:29},compId:39}]}]},{type:"Button",props:{y:994,x:317,var:"RankBtn",stateNum:1,skin:"MainView/zhujiemian-1-3(1).png"},compId:31},{type:"Button",props:{y:985,x:533,var:"LotteryBtn",stateNum:1,skin:"MainView/zhujiemian-1-4(1).png"},compId:32},{type:"Button",props:{y:985,x:116,var:"SignBtn",stateNum:1,skin:"MainView/zhujiemian-1-2(1).png"},compId:33}],loadList:["MainView/main1-1.png","MainView/zhujiemian-1-5.png","MainView/zhujiemian-1-6.png","Ball/blast-10.png","Ball/43.png","Ball/blast-12.png","Ball/44.png","Ball/blast-13.png","Ball/blast-14.png","MainView/zhujiemian-1-3(1).png","MainView/zhujiemian-1-4(1).png","MainView/zhujiemian-1-2(1).png"],loadList3D:[]},ui.MainSceneUI=MainSceneUI,REG("ui.MainSceneUI",MainSceneUI);class RankViewUI extends Laya.View{constructor(){super()}createChildren(){super.createChildren(),this.createView(RankViewUI.uiView)}}RankViewUI.uiView={type:"View",props:{width:720,height:1280},compId:2,child:[{type:"Image",props:{y:129,x:82.5,width:555,skin:"SetView/shezhi-1-1.png",sizeGrid:"98,159,125,118",height:767},compId:5,child:[{type:"Image",props:{y:14,x:198,skin:"RankView/paihang-1-1.png"},compId:6}]},{type:"Button",props:{y:139,x:573,var:"CloseBtn",stateNum:1,skin:"SetView/shezhi-1-3.png"},compId:7},{type:"Box",props:{y:231,x:118,width:495,height:623},compId:9,child:[{type:"Image",props:{y:6,x:12,width:459,skin:"RankView/paihang-1-2.png",sizeGrid:"22,39,25,23",height:65},compId:8},{type:"Image",props:{y:84,x:12,width:459,skin:"RankView/paihang-1-2.png",sizeGrid:"22,39,25,23",height:65},compId:11},{type:"Image",props:{y:163,x:12,width:459,skin:"RankView/paihang-1-2.png",sizeGrid:"22,39,25,23",height:65},compId:12},{type:"Image",props:{y:246.5,x:12,width:459,skin:"RankView/paihang-1-2.png",sizeGrid:"22,39,25,23",height:65},compId:13},{type:"Image",props:{y:328,x:12,width:459,skin:"RankView/paihang-1-2.png",sizeGrid:"22,39,25,23",height:65},compId:14},{type:"Image",props:{y:407,x:12,width:459,skin:"RankView/paihang-1-2.png",sizeGrid:"22,39,25,23",height:65},compId:15},{type:"Image",props:{y:551,x:2,width:487,skin:"RankView/paihang-1-7.png",sizeGrid:"25,31,28,24",height:70},compId:16}]},{type:"Button",props:{y:733,x:194,var:"UpPageBtn",stateNum:1,skin:"RankView/paihang-1-6.png"},compId:17},{type:"Button",props:{y:744,x:476,width:69,var:"DownPageBtn",stateNum:1,skin:"RankView/paihang-1-6.png",rotation:180,pivotY:16,pivotX:35,height:31},compId:18}],loadList:["SetView/shezhi-1-1.png","RankView/paihang-1-1.png","SetView/shezhi-1-3.png","RankView/paihang-1-2.png","RankView/paihang-1-7.png","RankView/paihang-1-6.png"],loadList3D:[]},ui.RankViewUI=RankViewUI,REG("ui.RankViewUI",RankViewUI);class ReviveViewUI extends Laya.Scene{constructor(){super()}createChildren(){super.createChildren(),this.createView(ReviveViewUI.uiView)}}ReviveViewUI.uiView={type:"Scene",props:{width:720,height:1280},compId:2,child:[{type:"Image",props:{y:17,x:0,skin:"ReviveView/fuhuo-1-1.png"},compId:4,child:[{type:"Image",props:{y:250,x:285,skin:"ReviveView/fuhuo-1-2.png"},compId:5}]},{type:"Image",props:{y:449,x:370,width:147,skin:"ReviveView/fuhuo-1-4.png",pivotY:74,pivotX:74,height:147},compId:6,child:[{type:"Text",props:{y:70,x:74,width:103,var:"Time",valign:"middle",text:"5",pivotY:58,pivotX:52,height:117,fontSize:125,color:"#f05929",align:"center",runtime:"laya.display.Text"},compId:7}]},{type:"Button",props:{y:760,x:304.5,var:"NoBtn",stateNum:1,skin:"ReviveView/fuhuo-1-5.png"},compId:8},{type:"Button",props:{y:583,x:304.5,var:"VideoBtn",stateNum:1,skin:"ReviveView/fuhuo-1-3.png"},compId:9}],loadList:["ReviveView/fuhuo-1-1.png","ReviveView/fuhuo-1-2.png","ReviveView/fuhuo-1-4.png","ReviveView/fuhuo-1-5.png","ReviveView/fuhuo-1-3.png"],loadList3D:[]},ui.ReviveViewUI=ReviveViewUI,REG("ui.ReviveViewUI",ReviveViewUI);class SetViewUI extends Laya.View{constructor(){super()}createChildren(){super.createChildren(),this.createView(SetViewUI.uiView)}}SetViewUI.uiView={type:"View",props:{width:720,height:1280},compId:2,child:[{type:"Image",props:{y:380,x:360,width:550,skin:"SetView/shezhi-1-1.png",pivotY:178,pivotX:275,height:355,alpha:1,sizeGrid:"98,159,125,118"},compId:4,child:[{type:"Image",props:{y:17,x:225,skin:"SetView/shezhi-1-2.png"},compId:5}]},{type:"Button",props:{y:226,x:574,var:"CloseBtn",stateNum:1,skin:"SetView/shezhi-1-3.png"},compId:6},{type:"Sprite",props:{y:335,x:191,texture:"SetView/shezhi-1-4.png",name:"SoundSprite"},compId:7},{type:"Sprite",props:{y:431,x:193,texture:"SetView/shezhi-1-5.png",name:"ShakeSprite"},compId:8},{type:"Box",props:{y:325,x:427,width:100,var:"Sound",height:51},compId:9,child:[{type:"Image",props:{y:21,x:0,skin:"SetView/shezhi-1-6.png"},compId:10},{type:"Image",props:{y:26,x:70,width:51,skin:"SetView/shezhi-1-8.png",pivotY:26,pivotX:26,name:"open",height:51},compId:11},{type:"Image",props:{y:26,x:32,width:51,skin:"SetView/shezhi-1-9.png",pivotY:26,pivotX:26,name:"close",height:51},compId:12},{type:"Button",props:{y:26,x:50,width:100,pivotY:26,pivotX:50,name:"btn",height:51},compId:17}]},{type:"Box",props:{y:423,x:427,width:100,var:"Shake",height:54},compId:13,child:[{type:"Image",props:{y:23,x:0,skin:"SetView/shezhi-1-7.png"},compId:14},{type:"Image",props:{y:28,x:70,width:51,skin:"SetView/shezhi-1-8.png",pivotY:26,pivotX:26,name:"open",height:51},compId:15},{type:"Image",props:{y:28,x:32,width:51,skin:"SetView/shezhi-1-9.png",pivotY:26,pivotX:26,name:"close",height:51},compId:16},{type:"Button",props:{y:28,x:50,width:100,pivotY:26,pivotX:50,name:"btn",height:51},compId:18}]}],loadList:["SetView/shezhi-1-1.png","SetView/shezhi-1-2.png","SetView/shezhi-1-3.png","SetView/shezhi-1-4.png","SetView/shezhi-1-5.png","SetView/shezhi-1-6.png","SetView/shezhi-1-8.png","SetView/shezhi-1-9.png","SetView/shezhi-1-7.png"],loadList3D:[]},ui.SetViewUI=SetViewUI,REG("ui.SetViewUI",SetViewUI);class SignViewUI extends Laya.View{constructor(){super()}createChildren(){super.createChildren(),this.createView(SignViewUI.uiView)}}SignViewUI.uiView={type:"View",props:{y:1280,width:720,height:1280,anchorY:1},compId:2,child:[{type:"Image",props:{y:62,x:82.5,width:555,skin:"SetView/shezhi-1-1.png",sizeGrid:"98,159,125,118",height:871},compId:4,child:[{type:"Image",props:{y:13,x:225,skin:"SignView/qiandao-1-1.png"},compId:5}]},{type:"Button",props:{y:79,x:573,var:"CloseBtn",stateNum:1,skin:"SetView/shezhi-1-3.png"},compId:6},{type:"Box",props:{y:171,x:109,width:497,var:"ItemList",height:572},compId:7,child:[{type:"Box",props:{y:3,x:0,width:150,height:188},compId:8,child:[{type:"Image",props:{y:32,x:0,width:147,skin:"SignView/qiandao-1-3.png",sizeGrid:"9,45,22,34",height:157},compId:10,child:[{type:"Image",props:{y:-32,x:0,width:147,skin:"SignView/qiandao-1-2.png",height:46},compId:9},{type:"Image",props:{y:-23,x:39,skin:"SignView/qiandao-1-4.png"},compId:11},{type:"Text",props:{y:-23,x:66.548095703125,text:"1",fontSize:25,color:"#ffffff",runtime:"laya.display.Text"},compId:12}]},{type:"Button",props:{y:114,x:74,width:147,pivotY:73,pivotX:74,name:"btn",height:145},compId:13},{type:"Image",props:{y:94,x:74,width:100,pivotY:50,pivotX:50,name:"icon",height:100},compId:14,child:[{type:"Text",props:{y:119,x:50,width:99,valign:"middle",text:"X3",pivotY:16,pivotX:50,name:"num",height:31,fontSize:25,align:"center",runtime:"laya.display.Text"},compId:58}]},{type:"Image",props:{y:0,x:0,width:148,skin:"SignView/qiandao-1-7(1).png",name:"complete",height:186},compId:65,child:[{type:"Image",props:{y:93,x:74,width:51,skin:"SignView/qiandao-1-8.png",pivotY:26,pivotX:26,height:51},compId:66}]}]},{type:"Box",props:{y:3,x:173.5,width:150,height:188},compId:15,child:[{type:"Image",props:{y:32,x:0,width:147,skin:"SignView/qiandao-1-3.png",sizeGrid:"9,45,22,34",height:157},compId:16,child:[{type:"Image",props:{y:-32,x:0,width:147,skin:"SignView/qiandao-1-2.png",height:46},compId:17},{type:"Image",props:{y:-23,x:39,skin:"SignView/qiandao-1-4.png"},compId:18},{type:"Text",props:{y:-23,x:66.548095703125,text:"2",fontSize:25,color:"#ffffff",runtime:"laya.display.Text"},compId:19}]},{type:"Button",props:{y:114,x:74,width:147,pivotY:73,pivotX:74,name:"btn",height:145},compId:20},{type:"Image",props:{y:94,x:74,width:100,pivotY:50,pivotX:50,name:"icon",height:100},compId:21,child:[{type:"Text",props:{y:119,x:50,width:99,valign:"middle",text:"X3",pivotY:16,pivotX:50,name:"num",height:31,fontSize:25,align:"center",runtime:"laya.display.Text"},compId:59}]},{type:"Image",props:{y:0,x:0,width:148,skin:"SignView/qiandao-1-7(1).png",name:"complete",height:186},compId:67,child:[{type:"Image",props:{y:93,x:74,width:51,skin:"SignView/qiandao-1-8.png",pivotY:26,pivotX:26,height:51},compId:68}]}]},{type:"Box",props:{y:3,x:347,width:150,height:188},compId:22,child:[{type:"Image",props:{y:32,x:0,width:147,skin:"SignView/qiandao-1-3.png",sizeGrid:"9,45,22,34",height:157},compId:23,child:[{type:"Image",props:{y:-32,x:0,width:147,skin:"SignView/qiandao-1-2.png",height:46},compId:24},{type:"Image",props:{y:-23,x:39,skin:"SignView/qiandao-1-4.png"},compId:25},{type:"Text",props:{y:-23,x:66.548095703125,text:"3",fontSize:25,color:"#ffffff",runtime:"laya.display.Text"},compId:26}]},{type:"Button",props:{y:114,x:74,width:147,pivotY:73,pivotX:74,name:"btn",height:145},compId:27},{type:"Image",props:{y:94,x:74,width:100,pivotY:50,pivotX:50,name:"icon",height:100},compId:28,child:[{type:"Text",props:{y:119,x:50,width:99,valign:"middle",text:"X3",pivotY:16,pivotX:50,name:"num",height:31,fontSize:25,align:"center",runtime:"laya.display.Text"},compId:60}]},{type:"Image",props:{y:0,x:0,width:148,skin:"SignView/qiandao-1-7(1).png",name:"complete",height:186},compId:69,child:[{type:"Image",props:{y:93,x:74,width:51,skin:"SignView/qiandao-1-8.png",pivotY:26,pivotX:26,height:51},compId:70}]}]},{type:"Box",props:{y:217,x:0,width:150,height:188},compId:29,child:[{type:"Image",props:{y:32,x:0,width:147,skin:"SignView/qiandao-1-3.png",sizeGrid:"9,45,22,34",height:157},compId:30,child:[{type:"Image",props:{y:-32,x:0,width:147,skin:"SignView/qiandao-1-2.png",height:46},compId:31},{type:"Image",props:{y:-23,x:39,skin:"SignView/qiandao-1-4.png"},compId:32},{type:"Text",props:{y:-23,x:66.548095703125,text:"4",fontSize:25,color:"#ffffff",runtime:"laya.display.Text"},compId:33}]},{type:"Button",props:{y:114,x:74,width:147,pivotY:73,pivotX:74,name:"btn",height:145},compId:34},{type:"Image",props:{y:94,x:74,width:100,pivotY:50,pivotX:50,name:"icon",height:100},compId:35,child:[{type:"Text",props:{y:119,x:50,width:99,valign:"middle",text:"X3",pivotY:16,pivotX:50,name:"num",height:31,fontSize:25,align:"center",runtime:"laya.display.Text"},compId:61}]},{type:"Image",props:{y:0,x:0,width:148,skin:"SignView/qiandao-1-7(1).png",name:"complete",height:186},compId:71,child:[{type:"Image",props:{y:93,x:74,width:51,skin:"SignView/qiandao-1-8.png",pivotY:26,pivotX:26,height:51},compId:72}]}]},{type:"Box",props:{y:217,x:173.5,width:150,height:188},compId:36,child:[{type:"Image",props:{y:32,x:0,width:147,skin:"SignView/qiandao-1-3.png",sizeGrid:"9,45,22,34",height:157},compId:37,child:[{type:"Image",props:{y:-32,x:0,width:147,skin:"SignView/qiandao-1-2.png",height:46},compId:38},{type:"Image",props:{y:-23,x:39,skin:"SignView/qiandao-1-4.png"},compId:39},{type:"Text",props:{y:-23,x:66.548095703125,text:"5",fontSize:25,color:"#ffffff",runtime:"laya.display.Text"},compId:40}]},{type:"Button",props:{y:114,x:74,width:147,pivotY:73,pivotX:74,name:"btn",height:145},compId:41},{type:"Image",props:{y:94,x:74,width:100,pivotY:50,pivotX:50,name:"icon",height:100},compId:42,child:[{type:"Text",props:{y:119,x:50,width:99,valign:"middle",text:"X3",pivotY:16,pivotX:50,name:"num",height:31,fontSize:25,align:"center",runtime:"laya.display.Text"},compId:62}]},{type:"Image",props:{y:0,x:0,width:148,skin:"SignView/qiandao-1-7(1).png",name:"complete",height:186},compId:73,child:[{type:"Image",props:{y:93,x:74,width:51,skin:"SignView/qiandao-1-8.png",pivotY:26,pivotX:26,height:51},compId:74}]}]},{type:"Box",props:{y:217,x:347,width:150,height:188},compId:43,child:[{type:"Image",props:{y:32,x:0,width:147,skin:"SignView/qiandao-1-3.png",sizeGrid:"9,45,22,34",height:157},compId:44,child:[{type:"Image",props:{y:-32,x:0,width:147,skin:"SignView/qiandao-1-2.png",height:46},compId:45},{type:"Image",props:{y:-23,x:39,skin:"SignView/qiandao-1-4.png"},compId:46},{type:"Text",props:{y:-23,x:66.548095703125,text:"6",fontSize:25,color:"#ffffff",runtime:"laya.display.Text"},compId:47}]},{type:"Button",props:{y:114,x:74,width:147,pivotY:73,pivotX:74,name:"btn",height:145},compId:48},{type:"Image",props:{y:94,x:74,width:100,pivotY:50,pivotX:50,name:"icon",height:100},compId:49,child:[{type:"Text",props:{y:119,x:50,width:99,valign:"middle",text:"X3",pivotY:16,pivotX:50,name:"num",height:31,fontSize:25,align:"center",runtime:"laya.display.Text"},compId:63}]},{type:"Image",props:{y:0,x:0,width:148,skin:"SignView/qiandao-1-7(1).png",name:"complete",height:186},compId:75,child:[{type:"Image",props:{y:93,x:74,width:51,skin:"SignView/qiandao-1-8.png",pivotY:26,pivotX:26,height:51},compId:76}]}]},{type:"Box",props:{y:413,x:1,width:490,height:158},compId:50,child:[{type:"Image",props:{y:2,x:3,skin:"SignView/qiandao-1-6.png"},compId:51,child:[{type:"Image",props:{y:20,x:243.5,width:69,skin:"SignView/qiandao-1-4.png",pivotY:14,pivotX:35,height:28},compId:52},{type:"Text",props:{y:6,x:237,text:"7",fontSize:25,color:"#ffffff",runtime:"laya.display.Text"},compId:54}]},{type:"Button",props:{y:43,x:4,width:485,name:"btn",height:113},compId:55},{type:"Image",props:{y:79,x:245,width:71,pivotY:32,pivotX:34,name:"icon",height:69},compId:56,child:[{type:"Text",props:{y:86,x:34,width:99,valign:"middle",text:"X3",pivotY:16,pivotX:50,name:"num",height:31,fontSize:25,align:"center",runtime:"laya.display.Text"},compId:64}]},{type:"Image",props:{y:0,x:2,width:489,skin:"SignView/qiandao-1-7(1).png",name:"complete",height:157},compId:77,child:[{type:"Image",props:{y:78.5,x:244.5,width:51,skin:"SignView/qiandao-1-8.png",pivotY:26,pivotX:26,height:51},compId:78}]}]}]},{type:"Button",props:{y:827,x:360,width:298,var:"SignBtn",stateNum:1,skin:"SignView/qiandao-1-5.png",pivotY:53,pivotX:149,height:106},compId:57}],loadList:["SetView/shezhi-1-1.png","SignView/qiandao-1-1.png","SetView/shezhi-1-3.png","SignView/qiandao-1-3.png","SignView/qiandao-1-2.png","SignView/qiandao-1-4.png","SignView/qiandao-1-7(1).png","SignView/qiandao-1-8.png","SignView/qiandao-1-6.png","SignView/qiandao-1-5.png"],loadList3D:[]},ui.SignViewUI=SignViewUI,REG("ui.SignViewUI",SignViewUI);class WinViewUI extends Laya.Scene{constructor(){super()}createChildren(){super.createChildren(),this.createView(WinViewUI.uiView)}}WinViewUI.uiView={type:"Scene",props:{width:720,height:1280},compId:2,child:[{type:"Image",props:{y:17,x:0,skin:"WinView/guoguan-1-1.png"},compId:4,child:[{type:"Image",props:{y:249,x:283,skin:"WinView/guoguan-1-2.png"},compId:5}]},{type:"Button",props:{y:487,x:252,var:"BackBtn",stateNum:1,skin:"WinView/guoguan-1-3.png"},compId:6},{type:"Button",props:{y:600,x:228,var:"NextBtn",stateNum:1,skin:"WinView/guoguan-1-4.png"},compId:7}],loadList:["WinView/guoguan-1-1.png","WinView/guoguan-1-2.png","WinView/guoguan-1-3.png","WinView/guoguan-1-4.png"],loadList3D:[]},ui.WinViewUI=WinViewUI,REG("ui.WinViewUI",WinViewUI)}(ui||(ui={}));class GameControl{constructor(){GameControl.ins=this,this.Init()}static get Instance(){return GameControl.ins?GameControl.ins:new GameControl}Init(){EventManager.StageOn(StageMode.Start,this,this.GameStart),EventManager.StageOn(StageMode.Lose,this,this.GameLose),EventManager.StageOn(StageMode.Win,this,this.GmaeWin)}GameStart(){ViewManager.Instance.ShowView(ViewType.InGameView),GamePool.Instance.FallDown(30)}GameLose(){}GmaeWin(){ViewManager.Instance.ShowView(ViewType.WinView)}}class MainView extends ui.MainSceneUI{constructor(){super(),new GameControl,new GameManager,new GamePool}static get Instance(){return MainView.ins?MainView.ins:new MainView}Show(){this.StartBtn.clickHandler=Laya.Handler.create(this,this.ClickStart),this.RankBtn.clickHandler=Laya.Handler.create(this,this.ClickRank),this.SignBtn.clickHandler=Laya.Handler.create(this,this.ClickSign),this.LotteryBtn.clickHandler=Laya.Handler.create(this,this.ClickLottery),this.SetBtn.clickHandler=Laya.Handler.create(this,this.ClickSet)}ClickStart(){var agrs=[{t:AccountManager.Instance.ServerTime.toString()}];ServerManager.Instance.SendHttp(BlastToMerge.KaiShi,agrs,Laya.Handler.create(this,this.GameStart),null)}GameStart(_data){this.play_id=_data.play_id,EventManager.StageTrigger(StageMode.Start)}ClickRank(){ViewManager.Instance.ShowView(ViewType.RankView)}ClickLottery(){ViewManager.Instance.ShowView(ViewType.LotteryView)}ClickSign(){ViewManager.Instance.ShowView(ViewType.SignView)}ClickSet(){ViewManager.Instance.ShowView(ViewType.SetView)}Close(){}}class InGameView extends ui.InGameSceneUI{constructor(){super(),InGameView.ins=this,EventManager.StageOn(StageMode.Clone,this,this.AddPrefab)}static get Instance(){return InGameView.ins?InGameView.ins:new InGameView}Show(){let stage=AccountManager.Instance.curplayerData.GainAccount("stage");this.STAGE=Number(stage),Laya.timer.once(200,this,()=>{this.SkillRefresh()}),Laya.timer.frameLoop(2,this,this.CheckHeight),Laya.timer.frameLoop(1,this,this.Progress),this.ScoreRefresh(),this.SkillAnimation(),this.arrowbtn.clickHandler=new Laya.Handler(this,this.ClickArrow),this.zhunxin1btn.clickHandler=new Laya.Handler(this,this.ClickZhunXin1),this.zhunxin2btn.clickHandler=new Laya.Handler(this,this.ClickZhunXin2),this.doublebtn.clickHandler=new Laya.Handler(this,this.ClickDouble),this.hammerbtn.clickHandler=new Laya.Handler(this,this.ClickHammer),this.height=Laya.stage.height,Laya.stage.on(Laya.Event.RESIZE,this,()=>{this.height=Laya.stage.height})}AddPrefab(ball){this.prefabbox.addChild(ball)}CheckHeight(){let down=!1;for(let i=0;i<this.prefabbox.numChildren;i++){this.prefabbox.getChildAt(i).y<GameManager.Instance.FallDownLine&&(down=!0)}if(!down){let num=GameTools.RandomANumber(2,4);GamePool.Instance.FallDown(num)}}ScoreRefresh(){let score,stage=JsonManager.Level[this.STAGE-1];score=Number(stage.goal),this.NowLv.value=this.STAGE.toString(),this.NextLv.value=(this.STAGE+1).toString(),this.NowScore.text=GameManager.Instance.ScoreProgress.toString(),this.RequireScore.text=score.toString()}SkillRefresh(){this.ani1.play(null,!1),this.ani2.play(null,!1),this.ani3.play(null,!1),this.ani4.play(null,!1),this.ani5.play(null,!1)}SkillAnimation(){Laya.timer.frameLoop(500,this,()=>{switch(GameTools.RandomANumber(1,6)){case 1:this.ani1.play(null,!1);break;case 2:this.ani2.play(null,!1);break;case 3:this.ani3.play(null,!1);break;case 4:this.ani4.play(null,!1);break;case 5:this.ani5.play(null,!1)}})}get Ratio(){let score,stage=JsonManager.Level[this.STAGE-1];return score=Number(stage.goal),GameManager.Instance.ScoreProgress/score}Progress(){this.LevelProgress.value=this.Ratio,GameManager.Instance.ScoreProgress>Number(this.RequireScore.text)&&(GameManager.Instance.ScoreProgress=Number(this.RequireScore.text),this.NowScore.text=GameManager.Instance.ScoreProgress.toString()),this.NowScore.text=GameManager.Instance.ScoreProgress.toString()}ClickArrow(){console.log("点到了箭头道具--");let num=this.arrowbtn.getChildByName("num");if(Number(num.text)>0){for(let i=0;i<this.prefabbox.numChildren;i++){let ball=this.prefabbox.getChildAt(i);if(!ball.destroyed){ball.getComponent(Laya.RigidBody).applyLinearImpulseToCenter({x:0,y:-500})}}let num=this.arrowbtn.getChildByName("num"),propnum=Number(num.text);num.text=(propnum-1).toString()}}ClickDouble(){if(EventManager.PropState==PropEffecf.DOUBLE)return EventManager.EventTrigger(PropEffecf.NONE),void console.log("切换为普通模式");console.log("点到了X2道具--");let num=this.doublebtn.getChildByName("num");Number(num.text)>0&&(EventManager.EventTrigger(PropEffecf.DOUBLE),console.log("切换为双倍模式"))}ClickZhunXin1(){console.log("点到了准心1道具--");let num=this.zhunxin1btn.getChildByName("num");Number(num.text)>0&&(EventManager.PropState==PropEffecf.NONE?this.EffectMode(!0,PropEffecf.CLEARLAST):this.EffectMode(!1))}ClickZhunXin2(){console.log("点到了准心2道具--");let num=this.zhunxin2btn.getChildByName("num");Number(num.text)>0&&(EventManager.PropState==PropEffecf.NONE?this.EffectMode(!0,PropEffecf.CLEARTWO):this.EffectMode(!1))}ClickHammer(){console.log("点到了锤子道具--");let num=this.hammerbtn.getChildByName("num");Number(num.text)>0&&(EventManager.PropState==PropEffecf.NONE?this.EffectMode(!0,PropEffecf.HAMMER):this.EffectMode(!1))}EffectMode(_open,_type=null){if(this.Effect.visible=_open,_open){EventManager.PropState=_type;let describe2=this.Effect.getChildByName("describe2"),describe=this.Effect.getChildByName("describe");switch(_type){case PropEffecf.CLEARLAST:this.EffectBtn.visible=!0,describe.visible=!0,describe2.visible=!1,this.ClearNum.text=GameManager.Instance.MinBall.toString(),this.EffectBtn.clickHandler=Laya.Handler.create(this,this.ClearLast);break;case PropEffecf.CLEARTWO:this.EffectBtn.visible=!0,describe.visible=!0,describe2.visible=!1,this.ClearNum.text=GameManager.Instance.MinNextBall.toString(),this.EffectBtn.clickHandler=Laya.Handler.create(this,this.ClearTwo);break;case PropEffecf.HAMMER:this.EffectBtn.visible=!1,describe.visible=!1,describe2.visible=!0,EventManager.EventTrigger(PropEffecf.HAMMER)}}else EventManager.PropState=PropEffecf.NONE,this.EffectBtn.clickHandler=null}ClearLast(){for(let i=this.prefabbox.numChildren-1;i>-1;i--){let prefab=this.prefabbox.getChildAt(i),ball=prefab.getComponent(Ball);ball.score==GameManager.Instance.MinBall&&(GameManager.Instance.ScoreProgress+=ball.score,prefab.removeSelf())}let num=this.zhunxin1btn.getChildByName("num"),propnum=Number(num.text);num.text=(propnum-1).toString(),this.Effect.visible=!1,this.EffectBtn.clickHandler=null,EventManager.PropState=PropEffecf.NONE}ClearTwo(){for(let i=this.prefabbox.numChildren-1;i>-1;i--){let prefab=this.prefabbox.getChildAt(i),ball=prefab.getComponent(Ball);ball.score==GameManager.Instance.MinNextBall&&(GameManager.Instance.ScoreProgress+=ball.score,prefab.removeSelf())}let num=this.zhunxin2btn.getChildByName("num"),propnum=Number(num.text);num.text=(propnum-1).toString(),this.Effect.visible=!1,this.EffectBtn.clickHandler=null,EventManager.PropState=PropEffecf.NONE}Close(){}}!function(on_off){on_off[on_off.on=0]="on",on_off[on_off.off=1]="off"}(on_off||(on_off={}));class Switch extends Laya.Script{constructor(){super(),this.kaiguan=on_off.off}onAwake(){this.CloseSprite=this.owner.getChildByName("close"),this.OpenSprite=this.owner.getChildByName("open"),this.Button=this.owner.getChildByName("btn"),this.Button.clickHandler=Laya.Handler.create(this,()=>{this.ChangeMode(this.kaiguan),this.kaiguan++,this.kaiguan>1&&(this.kaiguan=0)},null,!1)}ListenOn_Off(on=!0,OpenFunction=null,CloseFunction=null){this.kaiguan=on?on_off.on:on_off.off,this.OpenFunction=OpenFunction,this.CloseFunction=CloseFunction,this.ChangeMode(this.kaiguan),this.kaiguan++,this.kaiguan>1&&(this.kaiguan=0)}ChangeMode(_mode){switch(_mode){case on_off.off:this.OpenSprite.visible=!1,this.CloseSprite.visible=!0,this.CloseFunction.run();break;case on_off.on:this.OpenSprite.visible=!0,this.CloseSprite.visible=!1,this.OpenFunction.run()}}}!function(MusicType){MusicType[MusicType.coin=0]="coin",MusicType[MusicType.jump=1]="jump",MusicType[MusicType.shoot=2]="shoot",MusicType[MusicType.explosion=3]="explosion",MusicType[MusicType.maledie=4]="maledie",MusicType[MusicType.femaledie=5]="femaledie"}(MusicType||(MusicType={}));class AudioManager{constructor(){}static musicres(_type){return"Game/res/Music/"+MusicType[_type]+".wav"}static playMusic(_type){this.open&&Laya.SoundManager.playSound(this.musicres(_type))}static StopMusic(){Laya.SoundManager.stopMusic()}}AudioManager.open=!0;class SetView extends ui.SetViewUI{constructor(){super()}static get Instance(){return SetView.ins?SetView.ins:new SetView}Show(){this.CloseBtn.clickHandler=Laya.Handler.create(this,this.ClickClose),this.SoundSwitch=this.Sound.addComponent(Switch),this.ShakeSwitch=this.Shake.addComponent(Switch),this.SoundSwitch.ListenOn_Off(AudioManager.open,Laya.Handler.create(this,this.OpenSound,[!0],!1),Laya.Handler.create(this,this.OpenSound,[!1],!1)),this.ShakeSwitch.ListenOn_Off(WXSDK.shake,Laya.Handler.create(this,this.OpenShake,[!0],!1),Laya.Handler.create(this,this.OpenShake,[!1],!1)),this.height=Laya.stage.height,Laya.stage.on(Laya.Event.RESIZE,this,()=>{this.height=Laya.stage.height})}Close(){}ClickClose(){ViewManager.Instance.ShowView(ViewType.MainView)}OpenSound(_open){AudioManager.open=_open}OpenShake(_open){WXSDK.shake=_open}}class RankView extends ui.RankViewUI{constructor(){super()}static get Instance(){return RankView.ins?RankView.ins:new RankView}Show(){this.CloseBtn.clickHandler=Laya.Handler.create(this,this.ClickClose),this.height=Laya.stage.height,Laya.stage.on(Laya.Event.RESIZE,this,()=>{this.height=Laya.stage.height})}Close(){}ClickClose(){ViewManager.Instance.ShowView(ViewType.MainView)}}class GuangGao{static InitId(){}static JiaZaiShiPin(){this.afsfsaafsfsa||Laya.Browser.onWeiXin&&(this.fsaasfafssfa=Laya.Browser.window.wx.createRewardedVideoAd({adUnitId:this.videlAdUnitId}),this.fsaasfafssfa.onLoad(()=>{console.log("激励视频 广告加载成功"),this.asfasfsaffsa=!0}),this.fsaasfafssfa.onError(err=>{console.log("激励视屏加载失败:"+err),this.asfasfsaffsa=!1}),this.afsfasfasasf=0,this.afsfsaafsfsa=!0)}static KaiShiPin(callback){if(Laya.Browser.onWeiXin){if(console.log("showVideoAd , asfasfsaffsa:"+this.asfasfsaffsa),AccountManager.Instance.curplayerData.videoshare&&AccountManager.Instance.curplayerData.fenxiang,0==AccountManager.Instance.curplayerData.video)return void WXSDK.ShowTxt("暂未开放");this.fassfafasafs(callback),this.fsaasfafssfa.show().catch(err=>{this.fsaasfafssfa.load().then(()=>{this.fassfafasafs(callback),this.fsaasfafssfa.show()})})}else callback(!1)}static fassfafasafs(callback){this.fsaasfafssfa.offClose(),this.fsaasfafssfa.onClose(res=>{console.log("激励视频关闭:"+res.isEnded),res&&res.isEnded||void 0===res?callback&&callback(!0):callback&&callback(!1),this.fsaasfafssfa.offClose()})}static OpenBanner(gap=0,callVack=null,iswait=!1){if(Laya.Browser.onWeiXin)if(this.afsfasfasasf>=1e4){var hh=this.gasagsgasgsa(gap);iswait?(this.asgagassga.hide(),Laya.timer.once(1e3*AccountManager.Instance.curplayerData.wudaoshijian,this,()=>{null!=callVack&&callVack(hh),this.asgagassga.show()})):(null!=callVack&&callVack(hh),this.asgagassga.show())}else{var idd=this.bannerAdUnitId;console.log("adUnitId:"+idd);let newBanner=Laya.Browser.window.wx.createBannerAd({adUnitId:idd,style:{left:0,top:0,width:460}});newBanner.onError(err=>{console.log(err),this.gasagsgasgsa(gap)}),newBanner.onLoad(()=>{this.afsfasfasasf++,this.asgagassga&&this.asgagassga.destroy(),this.asgagassga=newBanner;var hight=this.gasagsgasgsa(gap);iswait?(this.asgagassga.hide(),Laya.timer.once(1e3*AccountManager.Instance.curplayerData.wudaoshijian,this,()=>{null!=callVack&&callVack(hight),this.asgagassga.show()})):(null!=callVack&&callVack(hight),this.asgagassga.show())})}}static gasagsgasgsa(gap){if(this.asgagassga){let info=Laya.Browser.window.wx.getSystemInfoSync();return this.asgagassga.style.width=info.windowWidth,this.asgagassga.style.top=info.windowHeight-this.asgagassga.style.realHeight-gap-30,Laya.stage.height/info.windowHeight*this.asgagassga.style.realHeight}}static Clear(){Laya.timer.clearAll(this),Laya.Browser.onWeiXin&&this.asgagassga&&this.asgagassga.hide()}static agagsagags(){Laya.Browser.onWeiXin&&this.asgagassga&&this.asgagassga.hide()}static gasagsasg(){Laya.Browser.onWeiXin&&this.asgagassga&&this.asgagassga.show()}static get keyiwudao(){var wudao=AccountManager.Instance.curplayerData.wudao;if(0==wudao)return console.log("cheat:"+wudao),!1;if("1037"==Main.SceneNum||"1007"==Main.SceneNum||"1044"==Main.SceneNum||"1104"==Main.SceneNum||"1089"==Main.SceneNum||"1001"==Main.SceneNum||"00000"==Main.SceneNum)return console.log("cheat:true-> "+Main.SceneNum),!0;var checkscence=AccountManager.Instance.curplayerData.jiancechangjin;return 0==checkscence?(console.log("cheat:true->checkscence: "+checkscence),!0):(console.log("cheat:false-> "+Main.SceneNum),!1)}static WudaoAnNiu(btn,ShowBanner=!0,complete=null,gap=0){AccountManager.Instance.curplayerData.banner&&(GuangGao.agagsagags(),0==GuangGao.keyiwudao?(btn.bottom=300,GuangGao.OpenBanner()):ShowBanner?(btn.bottom=100,btn.mouseEnabled=!1,console.log("bottom:100"),GuangGao.OpenBanner(gap,height=>{if(null==height)console.log("展示互推位");else{var end=Laya.stage.height-height-btn.height;btn.y=end,btn.bottom=NaN,console.log("y:"+end)}},!0),Laya.timer.once(1e3*AccountManager.Instance.curplayerData.wudaoshijian,this,()=>{btn.mouseEnabled=!0,null!=complete&&complete()})):null!=complete&&complete())}on3DComplete(){Laya.stage.addChild(void 0);var camera1=new Laya.Camera;(void 0).addChild(camera1),camera1.transform.translate(new Laya.Vector3(0,2,8),!0),camera1.transform.rotate(new Laya.Vector3(-23,0,0),!0,!1),camera1.viewport=new Laya.Viewport(0,0,640,720);var camera2=new Laya.Camera;(void 0).addChild(camera2),camera2.transform.rotate(new Laya.Vector3(-45,0,0),!1,!1),camera2.transform.translate(new Laya.Vector3(0,0,25),!0),camera2.viewport=new Laya.Viewport(640,0,640,720)}onModelOK(){var scene=new Laya.Scene;Laya.stage.addChild(scene);var camera=new Laya.Camera(0,.1,1e3);scene.addChild(camera),camera.transform.rotate(new Laya.Vector3(-25,0,0),!1,!1),camera.transform.position=new Laya.Vector3(0,5,10);var role3D=Laya.loader.getRes("monkey/monkey.lh");scene.addChild(role3D)}}GuangGao.videlAdUnitId="adunit-47ace2391e74f21e",GuangGao.bannerAdUnitId="adunit-876b793421608933",GuangGao.afsfsaafsfsa=!1,GuangGao.asfasfsaffsa=!1,GuangGao.afsfasfasasf=0,function(QianDaoMode){QianDaoMode[QianDaoMode.start=0]="start",QianDaoMode[QianDaoMode.none=1]="none",QianDaoMode[QianDaoMode.end=2]="end"}(QianDaoMode||(QianDaoMode={}));class reward{constructor(_rewradid,_rewradnum){this.rewardid=_rewradid,this.rewardnum=_rewradnum}}class SignItem{get GetRewardData(){return this.rewardids.split(";").length>1?new reward(Number(6e3),Number(1)):new reward(Number(this.rewardids),Number(this.rewardnum))}}class SignView extends ui.SignViewUI{constructor(){super(),this.SignDatas=[],this.rewardsdic={},SignView.ins=this}static get Instance(){return SignView.ins?SignView.ins:new SignView}Show(){this.SignDatas=this.GainSignDatas(),this.RefreshDatas(),this.SignBtn.visible=SignView.CanSign,this.SignBtn.clickHandler=Laya.Handler.create(this,this.OnNormalSign),this.CloseBtn.clickHandler=Laya.Handler.create(this,this.ClickClose),this.height=Laya.stage.height,Laya.stage.on(Laya.Event.RESIZE,this,()=>{this.height=Laya.stage.height})}Close(){}ClickClose(){ViewManager.Instance.ShowView(ViewType.MainView)}RefreshDatas(){for(var i=0;i<this.ItemList.numChildren;i++){var sign=this.ItemList.getChildAt(i),data=this.SignDatas[i],rewardid=data.GetRewardData.rewardid,icon=sign.getChildByName("icon");sign.getChildByName("icon").getChildByName("num").text="X"+data.GetRewardData.rewardnum.toString();var roleicon=AccountManager.Instance.curplayerData.GainShiTi(rewardid.toString(),"icon");icon.skin="Game/res/Skin/"+roleicon+".png";var cansign=data.mold;if(cansign==QianDaoMode.end)sign.getChildByName("complete").visible=!0;else if(cansign==QianDaoMode.start){sign.getChildByName("btn").clickHandler=Laya.Handler.create(this,this.OnDoubleSign,null,!1)}}}OnSign(){var curgold=Number(AccountManager.Instance.curplayerData.GainAccount("money"));ServerManager.Instance.SendHttp(BlastToMerge.QianDao,[{video:"0"}],Laya.Handler.create(this,function(e){var reward=e.rewards;if(SignView.Instance.SignDatas=SignView.Instance.GainSignDatas(),SignView.Instance.SignBtn.visible=!1,SignView.Instance.RefreshDatas(),reward[1e3]){var gg=Number(AccountManager.Instance.curplayerData.GainAccount("money"))-curgold;GameTools.GetMoney(gg,null,Laya.Handler.create(this,()=>{ViewManager.Instance.ShowView(ViewType.MainView)}))}else GameTools.TweenText(new faafssfafsa("人物 + 1",new Laya.Vector2(Laya.stage.width/2,.35*Laya.stage.height),new Laya.Vector2(250,80),30),150,Laya.Handler.create(this,()=>{ViewManager.Instance.ShowView(ViewType.MainView)}))}),Laya.Handler.create(this,this.OnSignError),!0)}OnNormalSign(){this.OnDoubleSign()}OnDoubleSign(){GuangGao.KaiShiPin(flag=>{if(flag){let param=[{video:"1"}];ServerManager.Instance.SendHttp(BlastToMerge.QianDao,param,Laya.Handler.create(this,function(e){e.rewards;SignView.Instance.SignDatas=SignView.Instance.GainSignDatas(),SignView.Instance.SignBtn.visible=!1,SignView.Instance.RefreshDatas(),GameTools.TweenText(new faafssfafsa("道具 + 1",new Laya.Vector2(Laya.stage.width/2,.35*Laya.stage.height),new Laya.Vector2(250,80),30),150,Laya.Handler.create(this,()=>{ViewManager.Instance.ShowView(ViewType.MainView)}))}),Laya.Handler.create(this,this.OnSignError),!0)}})}OnSignError(e){console.log(e)}GainSignDatas(){for(var signdatas=[],config=AccountManager.Instance.curplayerData.GainCollocation("sign"),signday=Number(AccountManager.Instance.curplayerData.GainQinDao("sign_days")),indes=signday<7?0:7,i=indes;i<indes+7;i++)this.rewardsdic[config[i].id]=config[i].rewards;for(var key in this.rewardsdic){var rewardid=this.rewardsdic[key],reward=AccountManager.Instance.curplayerData.GainJiangLi(rewardid),item=new SignItem;item.desc=reward.group_name,item.icon=reward.icon,item.signday=Number(reward.id),item.rewardids=reward.reward_item,item.rewardnum=reward.reward_num,item.weight=reward.reward_weight;var num=Number(key);signday>num-1&&(item.mold=QianDaoMode.end),signday<num-1&&(item.mold=QianDaoMode.none),signday==num-1&&SignView.CanSign&&(item.mold=QianDaoMode.start),signdatas.push(item)}return signdatas}static get CanSign(){let SSS=new Date(1e3*AccountManager.Instance.ServerTime);SSS.setHours(0,0,0,0);var AAA=SSS.valueOf();return 1e3*Number(AccountManager.Instance.curplayerData.GainQinDao("sign_time"))<AAA}}class LotteryView extends ui.LotteryViewUI{constructor(){super(),this.circleNum=5}static get Instance(){return LotteryView.ins?LotteryView.ins:new LotteryView}Show(){this.CloseBtn.clickHandler=Laya.Handler.create(this,this.ClickClose),this.LotteryBtn.clickHandler=Laya.Handler.create(this,this.OnVedio),this.height=Laya.stage.height,Laya.stage.on(Laya.Event.RESIZE,this,()=>{this.height=Laya.stage.height})}Close(){}ClickClose(){ViewManager.Instance.ShowView(ViewType.MainView)}OnVedio(){GuangGao.KaiShiPin(flag=>{if(flag){this.LotteryBtn.visible=!1;let param=[{channel:"video"},{t:AccountManager.Instance.ServerTime.toString()}];ServerManager.Instance.SendHttp(BlastToMerge.Lottery,param,Laya.Handler.create(this,function(e){this.RotationDial(e)}),Laya.Handler.create(this,()=>{WXSDK.ShowTxt("抽奖次数已经用完!")}),!0)}})}RotationDial(e){var result=e.lottery_id-1;this.dial.rotation=0;let tween=Laya.Tween.to(this.dial,{rotation:360*this.circleNum-60*result},5e3,Laya.Ease.quadInOut,new Laya.Handler(null,()=>{tween.clear(),this.LotteryBtn.visible=!0,LotteryView.IsCanLottery()||(this.LotteryBtn.gray=!0,console.log("观看视频抽奖按钮已变灰"));e.rewards;GameTools.TweenText(new faafssfafsa("道具 + 1",new Laya.Vector2(Laya.stage.width/2,.35*Laya.stage.height),new Laya.Vector2(250,80),30),150,Laya.Handler.create(this,()=>{ViewManager.Instance.ShowView(ViewType.MainView)}))}))}static IsCanLottery(){return Number(AccountManager.Instance.curplayerData.lottery.day_video_times)>0}}class FailureView extends ui.FailureViewUI{constructor(){super()}static get Instance(){return FailureView.ins?FailureView.ins:new FailureView}Show(){this.BackBtn.clickHandler=Laya.Handler.create(this,this.ClickBack),this.TryBtn.clickHandler=Laya.Handler.create(this,this.ClickTry),this.height=Laya.stage.height,Laya.stage.on(Laya.Event.RESIZE,this,()=>{this.height=Laya.stage.height})}Close(){}ClickBack(){var args=[{t:AccountManager.Instance.ServerTime.toString()},{play_id:MainView.Instance.play_id},{win:"0"}];ServerManager.Instance.SendHttp(BlastToMerge.JieShu,args,Laya.Handler.create(this,this.BackMain),null)}ClickTry(){var args=[{t:AccountManager.Instance.ServerTime.toString()},{play_id:MainView.Instance.play_id},{win:"0"}];ServerManager.Instance.SendHttp(BlastToMerge.JieShu,args,Laya.Handler.create(this,this.Try),null)}BackMain(){}Try(){EventManager.StageTrigger(StageMode.Start)}}class WinView extends ui.WinViewUI{constructor(){super()}static get Instance(){return WinView.ins?WinView.ins:new WinView}Show(){this.BackBtn.clickHandler=Laya.Handler.create(this,this.ClickBack),this.height=Laya.stage.height,Laya.stage.on(Laya.Event.RESIZE,this,()=>{this.height=Laya.stage.height})}Close(){}ClickBack(){var args=[{t:AccountManager.Instance.ServerTime.toString()},{play_id:MainView.Instance.play_id},{win:"1"}];ServerManager.Instance.SendHttp(BlastToMerge.JieShu,args,Laya.Handler.create(this,this.BackMain),null)}ClickNextLevel(){var args=[{t:AccountManager.Instance.ServerTime.toString()},{play_id:MainView.Instance.play_id},{win:"1"}];ServerManager.Instance.SendHttp(BlastToMerge.JieShu,args,Laya.Handler.create(this,this.NextLevel),null)}BackMain(){ViewManager.Instance.ShowView(ViewType.MainView)}NextLevel(){EventManager.StageTrigger(StageMode.Start)}}class ReviveView extends ui.ReviveViewUI{constructor(){super()}static get Instance(){return ReviveView.ins?ReviveView.ins:new ReviveView}Show(){this.NoBtn.clickHandler=Laya.Handler.create(this,this.ClickClose),this.height=Laya.stage.height,Laya.stage.on(Laya.Event.RESIZE,this,()=>{this.height=Laya.stage.height})}Close(){}ClickClose(){ViewManager.Instance.ShowView(ViewType.MainView)}}!function(ViewType){ViewType[ViewType.MainView=0]="MainView",ViewType[ViewType.SignView=1]="SignView",ViewType[ViewType.SetView=2]="SetView",ViewType[ViewType.LotteryView=3]="LotteryView",ViewType[ViewType.InGameView=4]="InGameView",ViewType[ViewType.RankView=5]="RankView",ViewType[ViewType.WinView=6]="WinView",ViewType[ViewType.FailureView=7]="FailureView",ViewType[ViewType.ReviveView=8]="ReviveView"}(ViewType||(ViewType={}));class ViewManager{constructor(){this.ViewSprite=new Laya.Sprite,this.OtherViewSprite=new Laya.Sprite,ViewManager.ins=this,Laya.stage.addChild(this.ViewSprite),Laya.stage.addChild(this.OtherViewSprite)}static get Instance(){return ViewManager.ins?ViewManager.ins:new ViewManager}ShowView(_viewtype,data=null){null!=this.curView&&(this.curView.Close(),this.curView.destroy(),this.curView.removeSelf()),this.curView=this.CreateView(_viewtype),this.curView.name=ViewType[_viewtype],this.ViewSprite.addChild(this.curView),this.curView.Show(data)}CloseView(){null!=this.curView&&(this.curView.Close(),this.curView.destroy(),this.curView.removeSelf())}CreateView(_viewtype){switch(_viewtype){case ViewType.MainView:return new MainView;case ViewType.InGameView:return new InGameView;case ViewType.SetView:return new SetView;case ViewType.RankView:return new RankView;case ViewType.SignView:return new SignView;case ViewType.LotteryView:return new LotteryView;case ViewType.FailureView:return new FailureView;case ViewType.WinView:return new WinView;case ViewType.ReviveView:return new ReviveView}return null}}class LoadView{constructor(){this.Login()}static get Instance(){return LoadView.ins?LoadView.ins:new LoadView}Login(){Laya.Browser.onWeiXin?this.WXLogin():this.LocalLogin()}WXLogin(){Laya.Browser.onWeiXin?WXSDK.DengLu(res=>{"error"!=res?(console.log("1微信登录成功:"+res),this.LocalLogin()):this.WXLogin()}):(this.LocalLogin(),ServerManager.Instance.Login(null,Laya.Handler.create(this,this.LoginComplete),Laya.Handler.create(this,this.LoginFail)))}LocalLogin(){ServerManager.Instance.Login(null,Laya.Handler.create(this,this.LoginComplete),Laya.Handler.create(this,this.LoginFail))}LoginComplete(){ViewManager.Instance.ShowView(ViewType.MainView),console.log("本地服务器登陆成功")}LoginFail(e){console.log("本地服务器登陆失败"),console.log(e)}}class Main$1{constructor(){window.Laya3D?Laya3D.init(GameConfig.width,GameConfig.height):Laya.init(GameConfig.width,GameConfig.height,Laya.WebGL),Laya.Physics&&Laya.Physics.enable(),Laya.DebugPanel&&Laya.DebugPanel.enable(),Laya.stage.scaleMode=GameConfig.scaleMode,Laya.stage.screenMode=GameConfig.screenMode,Laya.stage.alignV=GameConfig.alignV,Laya.stage.alignH=GameConfig.alignH,Laya.URL.exportSceneToJson=GameConfig.exportSceneToJson,(GameConfig.debug||"true"==Laya.Utils.getQueryString("debug"))&&Laya.enableDebugPanel(),GameConfig.physicsDebug&&Laya.PhysicsDebugDraw&&Laya.PhysicsDebugDraw.enable(),GameConfig.stat&&Laya.Stat.show(),Laya.alertGlobalError=!0,Laya.ResourceVersion.enable("version.json",Laya.Handler.create(this,this.onVersionLoaded),Laya.ResourceVersion.FILENAME_VERSION)}onVersionLoaded(){Laya.AtlasInfoManager.enable("fileconfig.json",Laya.Handler.create(this,this.onConfigLoaded))}onConfigLoaded(){new LoadView}}return Main$1.Ver="1.0.0",Main$1.CFG="123",Main$1.SceneNum="000",new Main$1,exports.Main=Main$1,exports}({});