bundle-89d7b72ba8.js 131 KB

1
  1. !function(){"use strict";var e,t=Laya.View,i=Laya.Scene,s=Laya.ClassUtils.regClass;!function(e){!function(e){class i extends t{constructor(){super()}createChildren(){super.createChildren(),this.createView(i.uiView)}}i.uiView={type:"View",props:{width:1920,top:0,right:0,left:0,height:1080,bottom:0},compId:2,child:[{type:"Image",props:{skin:"res/imgs/game/bg/bg.jpg",scaleY:1.01,scaleX:1.01,centerY:0,centerX:0},compId:200},{type:"Box",props:{width:1920,var:"gameBox",height:1080,centerY:0,centerX:0},compId:218,child:[{type:"Image",props:{y:56,visible:!1,var:"settingBtn",skin:"res/imgs/game/bg_dzts.png",right:0,anchorY:.5,anchorX:.5},compId:22,child:[{type:"Box",props:{y:12,centerX:-18},compId:267,child:[{type:"Sprite",props:{y:16.5,x:71,texture:"res/imgs/game/icon_zt.png"},compId:264},{type:"Text",props:{y:12,x:92,width:211,valign:"middle",text:"左踮脚 • 暂停",height:50,fontSize:26,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:265}]}]},{type:"Sprite",props:{y:77,x:51,var:"timeBg",texture:"res/imgs/game/djs.png",skewY:0,skewX:0},compId:209,child:[{type:"Text",props:{y:133,x:15,width:193,var:"timeTxt",valign:"middle",text:"01:23",italic:!0,height:50,fontSize:38,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:60},{type:"Image",props:{y:35,x:74,skin:"res/imgs/game/icon_time_1.png"},compId:466}]},{type:"Image",props:{var:"heartBg",right:800,height:99,bottom:20},compId:281,child:[{type:"Image",props:{y:14.5,x:0,skin:"res/imgs/game/icon_heart_2.png"},compId:313,child:[{type:"Image",props:{y:0,x:0,var:"heart0",skin:"res/imgs/game/icon_heart_1.png"},compId:315}]},{type:"Image",props:{y:14,x:77,skin:"res/imgs/game/icon_heart_2.png"},compId:475,child:[{type:"Image",props:{y:0,x:0,var:"heart1",skin:"res/imgs/game/icon_heart_1.png"},compId:476}]},{type:"Image",props:{y:14,x:155,skin:"res/imgs/game/icon_heart_2.png"},compId:477,child:[{type:"Image",props:{y:0,x:0,var:"heart2",skin:"res/imgs/game/icon_heart_1.png"},compId:478}]},{type:"Image",props:{y:14,x:232,skin:"res/imgs/game/icon_heart_2.png"},compId:479,child:[{type:"Image",props:{y:0,x:0,var:"heart3",skin:"res/imgs/game/icon_heart_1.png"},compId:480}]},{type:"Image",props:{y:14,x:309,skin:"res/imgs/game/icon_heart_2.png"},compId:481,child:[{type:"Image",props:{y:0,x:0,var:"heart4",skin:"res/imgs/game/icon_heart_1.png"},compId:482}]},{type:"Image",props:{y:14,x:387,skin:"res/imgs/game/icon_heart_2.png"},compId:483,child:[{type:"Image",props:{y:0,x:0,var:"heart5",skin:"res/imgs/game/icon_heart_1.png"},compId:484}]},{type:"Image",props:{y:14,x:464,skin:"res/imgs/game/icon_heart_2.png"},compId:485,child:[{type:"Image",props:{y:0,x:0,var:"heart6",skin:"res/imgs/game/icon_heart_1.png"},compId:486}]},{type:"Image",props:{y:14,x:541,skin:"res/imgs/game/icon_heart_2.png"},compId:487,child:[{type:"Image",props:{y:0,x:0,var:"heart7",skin:"res/imgs/game/icon_heart_1.png"},compId:488}]},{type:"Image",props:{y:14,x:619,skin:"res/imgs/game/icon_heart_2.png"},compId:489,child:[{type:"Image",props:{y:0,x:0,var:"heart8",skin:"res/imgs/game/icon_heart_1.png"},compId:490}]},{type:"Image",props:{y:14.5,x:696,skin:"res/imgs/game/icon_heart_2.png"},compId:491,child:[{type:"Image",props:{y:0,x:0,var:"heart9",skin:"res/imgs/game/icon_heart_1.png"},compId:492}]}]},{type:"Sprite",props:{y:117,x:1451,var:"scoreBg",texture:"res/imgs/game/bg_fs.png"},compId:211,child:[{type:"Text",props:{y:83,x:104,width:238,var:"scoreTxt",valign:"middle",text:"100",strokeColor:"#000000",height:57,fontSize:45,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"right",runtime:"Laya.Text"},compId:61},{type:"Text",props:{y:83,x:345,width:38,valign:"middle",text:"分",strokeColor:"#000000",height:57,fontSize:30,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"right",runtime:"Laya.Text"},compId:260},{type:"Sprite",props:{y:167,x:73,width:36,texture:"res/imgs/rank/icon_df.png",height:29},compId:112},{type:"Text",props:{y:169,x:116,width:49,valign:"middle",text:"最佳",height:39,fontSize:24,font:"Microsoft YaHei",color:"#ffd748",bold:!0,align:"right",runtime:"Laya.Text"},compId:113},{type:"Text",props:{y:163,x:181,width:161,var:"highScoreTxt",valign:"middle",text:"1000",height:50,fontSize:32,font:"Microsoft YaHei",color:"#ffd748",bold:!0,align:"right",runtime:"Laya.Text"},compId:62},{type:"Text",props:{y:160,x:336,width:38,valign:"middle",text:"分",strokeColor:"#000000",height:57,fontSize:24,font:"Microsoft YaHei",color:"#ffd748",bold:!0,align:"right",runtime:"Laya.Text"},compId:261},{type:"Text",props:{y:16,x:103,width:142,valign:"middle",text:"当前模式:",strokeColor:"#000000",height:57,fontSize:20,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"right",runtime:"Laya.Text"},compId:262},{type:"Text",props:{y:16,x:249,width:142,var:"gametypeTxt",valign:"middle",text:"简单",strokeColor:"#000000",height:57,fontSize:30,font:"Microsoft YaHei",color:"#ff156d",bold:!0,align:"left",runtime:"Laya.Text"},compId:263}]},{type:"Image",props:{y:980,x:1131,visible:!1,var:"powerBg",skin:"res/imgs/game/bg_tili.png"},compId:283,child:[{type:"Sprite",props:{y:-30.5,x:651,texture:"res/imgs/game/icon_tili.png"},compId:321},{type:"Text",props:{y:-40,x:331,width:160,var:"powerTxt",valign:"middle",text:"+1",pivotY:25,pivotX:80,height:50,fontSize:48,font:"Microsoft YaHei",color:"#00ffff",bold:!0,alpha:0,align:"center",runtime:"Laya.Text"},compId:284},{type:"Image",props:{y:6,x:6,var:"power0",skin:"res/imgs/game/tili_jian.png"},compId:316},{type:"Image",props:{y:6,x:131,var:"power1",skin:"res/imgs/game/tili_jia.png"},compId:317},{type:"Image",props:{y:6,x:256,var:"power2",skin:"res/imgs/game/tili_jia.png"},compId:318},{type:"Image",props:{y:6,x:381,var:"power3",skin:"res/imgs/game/tili_jia.png"},compId:319},{type:"Image",props:{y:6,x:506,var:"power4",skin:"res/imgs/game/tili_jia.png"},compId:320}]},{type:"Image",props:{y:350.5,x:1256,width:63,var:"createPos",pivotY:40,pivotX:50,height:55,anchorY:.5,anchorX:.5},compId:94},{type:"Image",props:{y:490,x:762,width:50,var:"endPos",name:"",height:50,anchorY:.5,anchorX:.5},compId:137},{type:"Box",props:{y:1036,x:-68,var:"lineBox"},compId:462,child:[{type:"Image",props:{y:-661,x:1329,width:1140,var:"lineStartPos",scaleY:.02,scaleX:.02,pivotY:20,pivotX:570,height:39},compId:465},{type:"Image",props:{y:33,x:550,width:1140,var:"lineEndPos",pivotY:20,pivotX:570,height:39},compId:461}]},{type:"Box",props:{width:1920,var:"playBox",height:1080,centerY:0,centerX:0},compId:136,child:[{type:"Image",props:{y:928,x:642,width:817,var:"startPosImg",skin:"res/imgs/game/bg/position-yellow.png",pivotY:122,pivotX:395,height:274},compId:273,child:[{type:"SkeletonPlayer",props:{y:137,x:398,visible:!1,var:"startPosAni",url:"res/ani/skeleton.sk",runtime:"Laya.Skeleton"},compId:493}]}]},{type:"Image",props:{y:879,x:1,width:493,var:"shitou",height:201},compId:417},{type:"Image",props:{y:879,x:713.5,width:493,var:"jiandao",height:201},compId:418},{type:"Image",props:{y:879,x:1421.5,width:493,var:"bu",height:201},compId:420},{type:"Image",props:{y:97,x:589,width:88,skin:"res/imgs/game/star.png",scaleY:.8,scaleX:.8,rotation:22,pivotY:44,pivotX:44,height:88,alpha:0},compId:451},{type:"Image",props:{y:97,x:995,width:88,skin:"res/imgs/game/star.png",scaleY:.5,scaleX:.5,rotation:-9,pivotY:44,pivotX:44,height:88,alpha:1},compId:452},{type:"Image",props:{y:86,x:1271,width:88,skin:"res/imgs/game/star.png",scaleY:.7,scaleX:.7,rotation:-41,pivotY:44,pivotX:44,height:88,alpha:0},compId:453},{type:"Image",props:{y:420,x:1680,var:"missImg",text:"text",skin:"res/imgs/game/text_miss.png",anchorY:.5,anchorX:.5,alpha:0},compId:454}]},{type:"Image",props:{y:0,x:0,var:"startBg",top:0,skin:"res/imgs/game/new_back_black.png",right:0,mouseThrough:!0,left:0,bottom:0,alpha:.35,sizeGrid:"5,5,5,5"},compId:133},{type:"Image",props:{y:276,visible:!1,var:"startOrOverBg",skin:"res/imgs/game/bg_ksjs.png",centerY:-135,centerX:0},compId:215,child:[{type:"Image",props:{y:129,x:907,var:"startOrOverImg",skin:"res/imgs/game/text_go.png",centerY:0,centerX:0,anchorY:.5,anchorX:.5},compId:214},{type:"Text",props:{y:330,x:269,width:1276,var:"stepTxt",valign:"middle",text:"请双脚并拢站立 完成校准",height:100,fontSize:70,font:"Microsoft YaHei",color:"#ffd748",bold:!1,align:"center",runtime:"Laya.Text"},compId:500}]}],animations:[{nodes:[{target:215,keyframes:{centerX:[{value:-1870,tweenMethod:"linearNone",tween:!0,target:215,key:"centerX",index:0},{value:0,tweenMethod:"linearNone",tween:!0,target:215,key:"centerX",index:20}]}}],name:"openAni",id:2,frameRate:60,action:0},{nodes:[{target:215,keyframes:{centerX:[{value:1880,tweenMethod:"linearNone",tween:!0,target:215,key:"centerX",index:0},{value:0,tweenMethod:"linearNone",tween:!0,target:215,key:"centerX",index:20}]}}],name:"gameOverAni",id:4,frameRate:60,action:0},{nodes:[{target:217,keyframes:{scaleY:[{value:0,tweenMethod:"linearNone",tween:!0,target:217,key:"scaleY",index:0},{value:1,tweenMethod:"linearNone",tween:!0,target:217,key:"scaleY",index:25}],scaleX:[{value:0,tweenMethod:"linearNone",tween:!0,target:217,key:"scaleX",index:0},{value:1,tweenMethod:"linearNone",tween:!0,target:217,key:"scaleX",index:25}],alpha:[{value:1,tweenMethod:"linearNone",tween:!0,target:217,key:"alpha",index:0},{value:1,tweenMethod:"linearNone",tween:!0,target:217,key:"alpha",index:25},{value:1,tweenMethod:"linearNone",tween:!0,target:217,label:null,key:"alpha",index:50},{value:0,tweenMethod:"linearNone",tween:!0,target:217,key:"alpha",index:60}]}}],name:"gradeAni",id:5,frameRate:60,action:0},{nodes:[{target:214,keyframes:{scaleY:[{value:0,tweenMethod:"linearNone",tween:!0,target:214,key:"scaleY",index:0},{value:1.2,tweenMethod:"linearNone",tween:!0,target:214,key:"scaleY",index:20},{value:1,tweenMethod:"linearNone",tween:!0,target:214,key:"scaleY",index:25}],scaleX:[{value:0,tweenMethod:"linearNone",tween:!0,target:214,key:"scaleX",index:0},{value:1.2,tweenMethod:"linearNone",tween:!0,target:214,key:"scaleX",index:20},{value:1,tweenMethod:"linearNone",tween:!0,target:214,key:"scaleX",index:25}]}}],name:"countAni",id:6,frameRate:60,action:0},{nodes:[{target:284,keyframes:{y:[{value:27,tweenMethod:"linearNone",tween:!0,target:284,key:"y",index:0},{value:-40,tweenMethod:"linearNone",tween:!0,target:284,key:"y",index:30}],alpha:[{value:0,tweenMethod:"linearNone",tween:!0,target:284,key:"alpha",index:0},{value:1,tweenMethod:"linearNone",tween:!0,target:284,key:"alpha",index:30},{value:1,tweenMethod:"linearNone",tween:!0,target:284,key:"alpha",index:50},{value:0,tweenMethod:"linearNone",tween:!0,target:284,key:"alpha",index:60}]}}],name:"powerAni",id:7,frameRate:60,action:0},{nodes:[{target:200,keyframes:{centerY:[{value:-5,tweenMethod:"linearNone",tween:!0,target:200,key:"centerY",index:3},{value:5,tweenMethod:"linearNone",tween:!0,target:200,key:"centerY",index:6},{value:-2,tweenMethod:"linearNone",tween:!0,target:200,key:"centerY",index:9}],centerX:[{value:3,tweenMethod:"linearNone",tween:!0,target:200,key:"centerX",index:3},{value:0,tweenMethod:"linearNone",tween:!0,target:200,key:"centerX",index:6},{value:-2,tweenMethod:"linearNone",tween:!0,target:200,key:"centerX",index:9},{value:0,tweenMethod:"linearNone",tween:!0,target:200,key:"centerX",index:12}]}},{target:136,keyframes:{centerY:[{value:-5,tweenMethod:"linearNone",tween:!0,target:136,key:"centerY",index:3},{value:5,tweenMethod:"linearNone",tween:!0,target:136,key:"centerY",index:6},{value:-2,tweenMethod:"linearNone",tween:!0,target:136,key:"centerY",index:9},{value:0,tweenMethod:"linearNone",tween:!0,target:136,key:"centerY",index:12}],centerX:[{value:3,tweenMethod:"linearNone",tween:!0,target:136,key:"centerX",index:3},{value:0,tweenMethod:"linearNone",tween:!0,target:136,key:"centerX",index:6},{value:-2,tweenMethod:"linearNone",tween:!0,target:136,key:"centerX",index:9},{value:0,tweenMethod:"linearNone",tween:!0,target:136,key:"centerX",index:12}]}}],name:"vibrateAni",id:8,frameRate:60,action:0},{nodes:[{target:451,keyframes:{alpha:[{value:0,tweenMethod:"linearNone",tween:!0,target:451,key:"alpha",index:0},{value:1,tweenMethod:"linearNone",tween:!0,target:451,key:"alpha",index:20},{value:0,tweenMethod:"linearNone",tween:!0,target:451,key:"alpha",index:40}]}},{target:452,keyframes:{alpha:[{value:1,tweenMethod:"linearNone",tween:!0,target:452,key:"alpha",index:0},{value:0,tweenMethod:"linearNone",tween:!0,target:452,key:"alpha",index:10},{value:1,tweenMethod:"linearNone",tween:!0,target:452,key:"alpha",index:30},{value:0,tweenMethod:"linearNone",tween:!0,target:452,key:"alpha",index:50},{value:1,tweenMethod:"linearNone",tween:!0,target:452,key:"alpha",index:65}]}},{target:453,keyframes:{alpha:[{value:0,tweenMethod:"linearNone",tween:!0,target:453,key:"alpha",index:0},{value:0,tweenMethod:"linearNone",tween:!0,target:453,key:"alpha",index:10},{value:1,tweenMethod:"linearNone",tween:!0,target:453,key:"alpha",index:25},{value:0,tweenMethod:"linearNone",tween:!0,target:453,key:"alpha",index:40},{value:1,tweenMethod:"linearNone",tween:!0,target:453,key:"alpha",index:55},{value:0,tweenMethod:"linearNone",tween:!0,target:453,key:"alpha",index:75}]}}],name:"starAni",id:9,frameRate:30,action:0},{nodes:[{target:215,keyframes:{centerX:[{value:0,tweenMethod:"linearNone",tween:!0,target:215,key:"centerX",index:0},{value:1880,tweenMethod:"linearNone",tween:!0,target:215,key:"centerX",index:20}]}}],name:"goAni",id:10,frameRate:60,action:0}],loadList:["res/imgs/game/bg/bg.jpg","res/imgs/game/bg_dzts.png","res/imgs/game/icon_zt.png","res/imgs/game/djs.png","res/imgs/game/icon_time_1.png","res/imgs/game/icon_heart_2.png","res/imgs/game/icon_heart_1.png","res/imgs/game/bg_fs.png","res/imgs/rank/icon_df.png","res/imgs/game/bg_tili.png","res/imgs/game/icon_tili.png","res/imgs/game/tili_jian.png","res/imgs/game/tili_jia.png","res/imgs/game/bg/position-yellow.png","res/ani/skeleton.sk","res/imgs/game/star.png","res/imgs/game/text_miss.png","res/imgs/game/new_back_black.png","res/imgs/game/bg_ksjs.png","res/imgs/game/text_go.png"],loadList3D:[]},e.GameViewUI=i,s("game.ui.GameViewUI",i);class a extends t{constructor(){super()}createChildren(){super.createChildren(),this.createView(a.uiView)}}a.uiView={type:"View",props:{width:1920,top:0,right:0,left:0,height:1080,bottom:0},compId:2,child:[{type:"Image",props:{top:0,skin:"res/imgs/game/new_back_black.png",right:0,left:0,bottom:0,alpha:.9,sizeGrid:"5,5,5,5"},compId:197},{type:"Box",props:{y:0,x:0,width:1920,height:1080,centerY:0,centerX:0},compId:309,child:[{type:"Image",props:{y:179,x:163.5,var:"gameTypeImg",skin:"res/guide/btfgx.png"},compId:389},{type:"Sprite",props:{y:338,x:163.5,texture:"res/guide/ts_dzsm.png"},compId:391},{type:"Box",props:{y:81,x:165,visible:!1,var:"modelBox1"},compId:403,child:[{type:"Image",props:{text:"text",skin:"res/guide/text_gsms.png"},compId:398},{type:"Text",props:{y:48,x:307,width:244,valign:"middle",text:"MATCH MODE",italic:!0,height:47,fontSize:28,font:"Microsoft YaHei",color:"#5DC4FF",align:"left",runtime:"Laya.Text"},compId:394},{type:"Sprite",props:{y:131,texture:"res/guide/point_gsms.png"},compId:395},{type:"Text",props:{y:136,x:52,width:115,valign:"middle",text:"玩法:",italic:!0,height:47,fontSize:40,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:396},{type:"Text",props:{y:136,x:167,width:138,valign:"middle",text:"玩家遇到",italic:!0,height:47,fontSize:32,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:397},{type:"Text",props:{y:136,x:306,width:175,valign:"middle",text:"蓝色墙壁",italic:!0,height:47,fontSize:40,font:"Microsoft YaHei",color:"#5dc4ff",align:"left",runtime:"Laya.Text"},compId:399},{type:"Text",props:{y:136,x:482,width:202,valign:"middle",text:"需做出与墙体",italic:!0,height:47,fontSize:32,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:400},{type:"Text",props:{y:136,x:684,width:97,valign:"middle",text:"一致",italic:!0,height:47,fontSize:40,font:"Microsoft YaHei",color:"#5dc4ff",align:"left",runtime:"Laya.Text"},compId:401},{type:"Text",props:{y:136,x:779,width:109,valign:"middle",text:"的手势",italic:!0,height:47,fontSize:32,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:402}]},{type:"Box",props:{y:81,x:165,visible:!1,var:"modelBox2"},compId:404,child:[{type:"Image",props:{text:"text",skin:"res/guide/text_dkms.png"},compId:405},{type:"Text",props:{y:48,x:307,width:244,valign:"middle",text:"BATTLE MODE",italic:!0,height:47,fontSize:28,font:"Microsoft YaHei",color:"#ff6ed8",align:"left",runtime:"Laya.Text"},compId:406},{type:"Sprite",props:{y:131,texture:"res/guide/point_dkms.png"},compId:407},{type:"Text",props:{y:136,x:52,width:115,valign:"middle",text:"玩法:",italic:!0,height:47,fontSize:40,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:408},{type:"Text",props:{y:136,x:167,width:138,valign:"middle",text:"玩家遇到",italic:!0,height:47,fontSize:32,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:409},{type:"Text",props:{y:136,x:306,width:175,valign:"middle",text:"红色墙壁",italic:!0,height:47,fontSize:40,font:"Microsoft YaHei",color:"#ff6ed8",align:"left",runtime:"Laya.Text"},compId:410},{type:"Text",props:{y:136,x:482,width:202,valign:"middle",text:"需做出与墙体",italic:!0,height:47,fontSize:32,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:411},{type:"Text",props:{y:136,x:684,width:97,valign:"middle",text:"相克",italic:!0,height:47,fontSize:40,font:"Microsoft YaHei",color:"#ff6ed8",align:"left",runtime:"Laya.Text"},compId:412},{type:"Text",props:{y:136,x:779,width:109,valign:"middle",text:"的手势",italic:!0,height:47,fontSize:32,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:413}]},{type:"Box",props:{y:81,x:165,visible:!1,var:"modelBox3"},compId:414,child:[{type:"Image",props:{text:"text",skin:"res/guide/text_hhms.png"},compId:415},{type:"Text",props:{y:48,x:307,width:244,valign:"middle",text:"MATCH MODE",italic:!0,height:47,fontSize:28,font:"Microsoft YaHei",color:"#9d77ff",align:"left",runtime:"Laya.Text"},compId:416},{type:"Sprite",props:{y:131,texture:"res/guide/point_hhms.png"},compId:417},{type:"Text",props:{y:136,x:52,width:115,valign:"middle",text:"玩法:",italic:!0,height:47,fontSize:40,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:418},{type:"Text",props:{y:136,x:167,width:138,valign:"middle",text:"玩家遇到",italic:!0,height:47,fontSize:32,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:419},{type:"Text",props:{y:136,x:306,width:175,valign:"middle",text:"蓝色墙壁",italic:!0,height:47,fontSize:40,font:"Microsoft YaHei",color:"#5dc4ff",align:"left",runtime:"Laya.Text"},compId:420},{type:"Text",props:{y:136,x:482,width:202,valign:"middle",text:"需做出与墙体",italic:!0,height:47,fontSize:32,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:421},{type:"Text",props:{y:136,x:684,width:97,valign:"middle",text:"一致",italic:!0,height:47,fontSize:40,font:"Microsoft YaHei",color:"#5dc4ff",align:"left",runtime:"Laya.Text"},compId:422},{type:"Text",props:{y:136,x:779,width:109,valign:"middle",text:"的手势",italic:!0,height:47,fontSize:32,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:423},{type:"Text",props:{y:136,x:882,width:170,valign:"middle",text:",遇到",italic:!0,height:47,fontSize:32,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:424},{type:"Text",props:{y:136,x:987,width:175,valign:"middle",text:"红色墙壁",italic:!0,height:47,fontSize:40,font:"Microsoft YaHei",color:"#ff6ed8",align:"left",runtime:"Laya.Text"},compId:425},{type:"Text",props:{y:136,x:1162,width:202,valign:"middle",text:"则需做出与墙体",italic:!0,height:47,fontSize:32,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:426},{type:"Text",props:{y:136,x:1396,width:97,valign:"middle",text:"相克",italic:!0,height:47,fontSize:40,font:"Microsoft YaHei",color:"#ff6ed8",align:"left",runtime:"Laya.Text"},compId:427},{type:"Text",props:{y:136,x:1488,width:109,valign:"middle",text:"的手势",italic:!0,height:47,fontSize:32,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:428}]}]},{type:"Image",props:{width:1920,right:0,left:0,height:65,bottom:26,anchorY:.5,anchorX:.5},compId:209,child:[{type:"Box",props:{y:33,x:0,width:1560,scaleY:.8,scaleX:.8,height:60,centerX:0,anchorY:.5,anchorX:.5},compId:217,child:[{type:"Sprite",props:{y:0,x:630,visible:!1,texture:"res/imgs/game/icon_right_yellow@3x1.png"},compId:222,child:[{type:"Text",props:{y:10,x:79,width:211,valign:"middle",text:"右踮脚 • 确定",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:223}]},{type:"Text",props:{y:35,x:780,width:211,visible:!1,var:"skipTxt",valign:"middle",text:"任意动作跳过",pivotY:25,pivotX:106,height:50,fontSize:36,font:"Microsoft YaHei",color:"#abbfcc",bold:!0,align:"center",runtime:"Laya.Text"},compId:392},{type:"Text",props:{y:10,x:660,width:39,var:"skipTime",valign:"middle",text:"5",height:50,fontSize:50,font:"Microsoft YaHei",color:"#abbfcc",bold:!0,align:"center",runtime:"Laya.Text"},compId:429,child:[{type:"Text",props:{y:0,x:35,width:211,valign:"middle",text:"秒后可跳过",height:50,fontSize:36,font:"Microsoft YaHei",color:"#abbfcc",bold:!0,align:"center",runtime:"Laya.Text"},compId:430}]}]}]}],animations:[{nodes:[{target:392,keyframes:{scaleY:[{value:1,tweenMethod:"linearNone",tween:!0,target:392,key:"scaleY",index:0},{value:1.2,tweenMethod:"linearNone",tween:!0,target:392,key:"scaleY",index:20},{value:1,tweenMethod:"linearNone",tween:!0,target:392,key:"scaleY",index:40}],scaleX:[{value:1,tweenMethod:"linearNone",tween:!0,target:392,key:"scaleX",index:0},{value:1.2,tweenMethod:"linearNone",tween:!0,target:392,key:"scaleX",index:20},{value:1,tweenMethod:"linearNone",tween:!0,target:392,key:"scaleX",index:40}]}}],name:"ani1",id:1,frameRate:30,action:0}],loadList:["res/imgs/game/new_back_black.png","res/guide/btfgx.png","res/guide/ts_dzsm.png","res/guide/text_gsms.png","res/guide/point_gsms.png","res/guide/text_dkms.png","res/guide/point_dkms.png","res/guide/text_hhms.png","res/guide/point_hhms.png","res/imgs/game/icon_right_yellow@3x1.png"],loadList3D:[]},e.GuideViewUI=a,s("game.ui.GuideViewUI",a);class n extends t{constructor(){super()}createChildren(){super.createChildren(),this.createView(n.uiView)}}n.uiView={type:"View",props:{width:1920,top:0,right:0,left:0,height:1080,bottom:0},compId:2,child:[{type:"Image",props:{top:0,skin:"res/home/sybj.jpg",right:0,left:0,bottom:0},compId:21},{type:"Box",props:{width:1920,height:1080,centerY:0,centerX:0},compId:58,child:[{type:"Image",props:{y:-437,x:381,skin:"res/home/logo.png"},compId:25},{type:"Image",props:{y:743.5,x:508,skin:"res/home/xzms.png",alpha:0},compId:134},{type:"Image",props:{y:715,x:-239,var:"level1",skin:"res/home/bg_gsms.png",anchorY:.5,anchorX:.5},compId:15,child:[{type:"Image",props:{y:30,x:112,text:"text",skin:"res/home/text_gsms.png"},compId:27},{type:"Image",props:{y:150,x:38,var:"level1Light",skin:"res/home/xzfgt_gsms.png"},compId:131},{type:"Text",props:{y:110,x:134,width:175,valign:"middle",text:"MATCH MODE",strokeColor:"#fbfbfb",italic:!0,height:22,fontSize:18,font:"Microsoft YaHei",color:"#5dc4ff",bold:!0,align:"center",runtime:"Laya.Text"},compId:105},{type:"Sprite",props:{y:140,x:60,texture:"res/home/msfgx.png"},compId:104},{type:"Sprite",props:{y:159,x:98,texture:"res/home/icon_time.png"},compId:39},{type:"Sprite",props:{y:189,x:98,texture:"res/home/icon_score.png"},compId:40},{type:"Text",props:{y:161,x:123,width:46,text:"时间:",strokeColor:"#fbfbfb",height:17,fontSize:17,font:"Microsoft YaHei",color:"#ffffff",bold:!0,alpha:.6,align:"center",runtime:"Laya.Text"},compId:102},{type:"Text",props:{y:188,x:123,width:76,text:"历史最高:",strokeColor:"#fbfbfb",height:18,fontSize:17,font:"Microsoft YaHei",color:"#ffffff",bold:!0,alpha:.6,align:"left",runtime:"Laya.Text"},compId:103},{type:"Text",props:{y:161,x:254,width:103,var:"level1TimeTxt",text:"02:35:01",strokeColor:"#fbfbfb",italic:!0,height:17,fontSize:21,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"left",runtime:"Laya.Text"},compId:41},{type:"Text",props:{y:188,x:254,width:76,var:"level1ScoreTxt",text:"9999",strokeColor:"#fbfbfb",italic:!0,height:18,fontSize:21,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"left",runtime:"Laya.Text"},compId:42},{type:"Image",props:{y:0,x:0,width:442,var:"level1Mask",skin:"res/imgs/game/new_back_black.png",height:248,alpha:.6,sizeGrid:"5,5,5,5"},compId:32,child:[{type:"Sprite",props:{texture:"res/home/bg_gsms.png",renderType:"mask"},compId:33}]}]},{type:"Image",props:{y:1210,x:980,var:"level2",skin:"res/home/bg_dkms.png",anchorY:.5,anchorX:.5},compId:106,child:[{type:"Image",props:{y:30,x:112,text:"text",skin:"res/home/text_dkms.png"},compId:107},{type:"Image",props:{y:150,x:38,var:"level2Light",skin:"res/home/xzfgt_dkms.png"},compId:132},{type:"Text",props:{y:110,x:134,width:175,valign:"middle",text:"BATTLE MODE",strokeColor:"#fbfbfb",italic:!0,height:22,fontSize:18,font:"Microsoft YaHei",color:"#ff6ed8",bold:!0,align:"center",runtime:"Laya.Text"},compId:108},{type:"Sprite",props:{y:140,x:60,texture:"res/home/msfgx.png"},compId:109},{type:"Sprite",props:{y:159,x:98,texture:"res/home/icon_time.png"},compId:110},{type:"Sprite",props:{y:189,x:98,texture:"res/home/icon_score.png"},compId:111},{type:"Text",props:{y:161,x:123,width:46,text:"时间:",strokeColor:"#fbfbfb",height:17,fontSize:17,font:"Microsoft YaHei",color:"#ffffff",bold:!0,alpha:.6,align:"center",runtime:"Laya.Text"},compId:112},{type:"Text",props:{y:188,x:123,width:76,text:"历史最高:",strokeColor:"#fbfbfb",height:18,fontSize:17,font:"Microsoft YaHei",color:"#ffffff",bold:!0,alpha:.6,align:"left",runtime:"Laya.Text"},compId:113},{type:"Text",props:{y:161,x:254,width:103,var:"level2TimeTxt",text:"02:35:01",strokeColor:"#fbfbfb",italic:!0,height:17,fontSize:21,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"left",runtime:"Laya.Text"},compId:114},{type:"Text",props:{y:188,x:254,width:76,var:"level2ScoreTxt",text:"9999",strokeColor:"#fbfbfb",italic:!0,height:18,fontSize:21,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"left",runtime:"Laya.Text"},compId:115},{type:"Image",props:{y:0,x:0,width:442,var:"level2Mask",skin:"res/imgs/game/new_back_black.png",height:248,alpha:.6,sizeGrid:"5,5,5,5"},compId:116,child:[{type:"Sprite",props:{texture:"res/home/bg_gsms.png",renderType:"mask"},compId:117}]}]},{type:"Image",props:{y:715,x:2146,var:"level3",skin:"res/home/bg_hhms.png",anchorY:.5,anchorX:.5},compId:118,child:[{type:"Image",props:{y:30,x:112,text:"text",skin:"res/home/text_hhms.png"},compId:119},{type:"Image",props:{y:150,x:38,var:"level3Light",skin:"res/home/xzfgt_hhms.png"},compId:133},{type:"Text",props:{y:110,x:134,width:175,valign:"middle",text:"MIX MODE",strokeColor:"#fbfbfb",italic:!0,height:22,fontSize:18,font:"Microsoft YaHei",color:"#9d77ff",bold:!0,align:"center",runtime:"Laya.Text"},compId:120},{type:"Sprite",props:{y:140,x:60,texture:"res/home/msfgx.png"},compId:121},{type:"Sprite",props:{y:159,x:98,texture:"res/home/icon_time.png"},compId:122},{type:"Sprite",props:{y:189,x:98,texture:"res/home/icon_score.png"},compId:123},{type:"Text",props:{y:161,x:123,width:46,text:"时间:",strokeColor:"#fbfbfb",height:17,fontSize:17,font:"Microsoft YaHei",color:"#ffffff",bold:!0,alpha:.6,align:"center",runtime:"Laya.Text"},compId:124},{type:"Text",props:{y:188,x:123,width:76,text:"历史最高:",strokeColor:"#fbfbfb",height:18,fontSize:17,font:"Microsoft YaHei",color:"#ffffff",bold:!0,alpha:.6,align:"left",runtime:"Laya.Text"},compId:125},{type:"Text",props:{y:161,x:254,width:103,var:"level3TimeTxt",text:"02:35:01",strokeColor:"#fbfbfb",italic:!0,height:17,fontSize:21,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"left",runtime:"Laya.Text"},compId:126},{type:"Text",props:{y:188,x:254,width:76,var:"level3ScoreTxt",text:"9999",strokeColor:"#fbfbfb",italic:!0,height:18,fontSize:21,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"left",runtime:"Laya.Text"},compId:127},{type:"Image",props:{y:0,x:0,width:442,var:"level3Mask",skin:"res/imgs/game/new_back_black.png",height:248,alpha:.6,sizeGrid:"5,5,5,5"},compId:128,child:[{type:"Sprite",props:{texture:"res/home/bg_gsms.png",renderType:"mask"},compId:129}]}]}]},{type:"Image",props:{width:1920,skin:"res/imgs/game/new_back_black.png",right:0,left:0,height:65,bottom:-80,anchorY:.5,anchorX:.5,sizeGrid:"5,5,5,5"},compId:60,child:[{type:"Box",props:{y:33,width:1560,scaleY:.8,scaleX:.8,height:60,centerX:0,anchorY:.5,anchorX:.5},compId:77,child:[{type:"Sprite",props:{x:0,texture:"res/imgs/game/icon_zc1.png"},compId:61,child:[{type:"Text",props:{y:10,x:47,width:211,valign:"middle",text:"左踏 • 上一项",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:62}]},{type:"Sprite",props:{x:630,texture:"res/imgs/game/icon_yc1.png"},compId:63,child:[{type:"Text",props:{y:10,x:51,width:211,valign:"middle",text:"右踏 • 下一项",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:64}]},{type:"Sprite",props:{y:0,x:1264,texture:"res/imgs/game/icon_right_yellow@3x1.png"},compId:65,child:[{type:"Text",props:{y:10,x:79,width:211,valign:"middle",text:"右踮脚 • 确定",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:66}]}]}]},{type:"Image",props:{visible:!1,var:"exitBg",top:0,skin:"res/imgs/game/new_back_black.png",right:0,left:0,bottom:0,alpha:.5,sizeGrid:"5,5,5,5"},compId:93},{type:"Image",props:{y:493,x:960,width:507,visible:!1,var:"exitBtnBg",skin:"res/imgs/game/bg_tsk.png",scaleY:1.2,scaleX:1.2,height:456,centerY:-47,centerX:0,anchorY:.5,anchorX:.5},compId:78,child:[{type:"Image",props:{y:26,skin:"res/imgs/game/tittle_ts.png",centerX:0},compId:79},{type:"Text",props:{y:189,x:69.5,width:368,valign:"middle",text:"您确定要返回大厅界面?",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:98},{type:"Image",props:{y:321,x:39,var:"noBtn",skin:"res/imgs/game/btn_tyxz.png"},compId:94,child:[{type:"Image",props:{var:"noTxtImg",text:"text",skin:"res/imgs/game/text_qx1.png",centerY:0,centerX:0},compId:95}]},{type:"Image",props:{y:321,x:269,var:"yesBtn",skin:"res/imgs/game/btn_tywxz.png"},compId:96,child:[{type:"Image",props:{var:"yesTxtImg",text:"text",skin:"res/imgs/game/text_qd2.png",centerY:0,centerX:0},compId:97}]}]},{type:"Box",props:{y:37,x:1920,width:553,right:-553,height:107},compId:148,child:[{type:"Image",props:{y:47,x:52,var:"rankBtn",skin:"res/home/iocn_rank.png",name:"",label:"label",anchorY:.5,anchorX:.5},compId:38,child:[{type:"Sprite",props:{texture:"res/home/iocn_rank.png",renderType:"mask"},compId:56}]},{type:"Image",props:{y:48,x:194,var:"settingBtn",skin:"res/home/icon_setting.png",name:"",anchorY:.5,anchorX:.5},compId:20,child:[{type:"Sprite",props:{y:0,x:0,texture:"res/home/icon_setting.png",renderType:"mask"},compId:54}]},{type:"Image",props:{y:48,x:421,var:"homeBtn",skin:"res/home/bg_dzts_2.png",label:"label",anchorY:.5,anchorX:.5},compId:74,child:[{type:"Sprite",props:{y:29,x:26,texture:"res/home/icon_fh.png"},compId:149},{type:"Text",props:{y:30,x:75,width:200,valign:"middle",text:"左踮脚 • 退出",height:50,fontSize:28,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:150}]}]},{type:"Box",props:{y:82,x:-196,width:334,var:"selfIInfoBox",pivotY:49,pivotX:167,left:-363,height:98},compId:147,child:[{type:"Image",props:{y:9,x:30,skin:"res/home/bg_name.png"},compId:146,child:[{type:"Text",props:{y:17,x:66,width:212,var:"nameTxt",valign:"middle",strokeColor:"#000000",height:51,fontSize:24,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:136}]},{type:"Image",props:{y:0,x:0,skin:"res/home/bg_txk.png"},compId:139,child:[{type:"Image",props:{width:75,var:"avatarImg",skin:"res/imgs/rank/biaoqing3.png",height:75,centerY:0,centerX:-1},compId:135,child:[{type:"Image",props:{y:0,x:0,width:75,skin:"res/home/001.png",renderType:"mask",height:75,centerY:0,centerX:-1},compId:145}]}]}]}],animations:[{nodes:[{target:25,keyframes:{y:[{value:-437,tweenMethod:"linearNone",tween:!0,target:25,key:"y",index:0},{value:140,tweenMethod:"linearNone",tween:!0,target:25,key:"y",index:20},{value:100,tweenMethod:"linearNone",tween:!0,target:25,key:"y",index:25},{value:127,tweenMethod:"linearNone",tween:!0,target:25,key:"y",index:30}]}},{target:15,keyframes:{x:[{value:-239,tweenMethod:"linearNone",tween:!0,target:15,key:"x",index:0},{value:-239,tweenMethod:"linearNone",tween:!0,target:15,key:"x",index:5},{value:541,tweenMethod:"linearNone",tween:!0,target:15,key:"x",index:20},{value:511,tweenMethod:"linearNone",tween:!0,target:15,key:"x",index:25},{value:521,tweenMethod:"linearNone",tween:!0,target:15,key:"x",index:30}]}},{target:118,keyframes:{x:[{value:2146,tweenMethod:"linearNone",tween:!0,target:118,key:"x",index:0},{value:2146,tweenMethod:"linearNone",tween:!0,target:118,label:null,key:"x",index:5},{value:1418,tweenMethod:"linearNone",tween:!0,target:118,key:"x",index:20},{value:1448,tweenMethod:"linearNone",tween:!0,target:118,key:"x",index:25},{value:1438,tweenMethod:"linearNone",tween:!0,target:118,key:"x",index:30}]}},{target:106,keyframes:{y:[{value:1210,tweenMethod:"linearNone",tween:!0,target:106,key:"y",index:0},{value:695,tweenMethod:"linearNone",tween:!0,target:106,key:"y",index:20},{value:725,tweenMethod:"linearNone",tween:!0,target:106,key:"y",index:25},{value:715,tweenMethod:"linearNone",tween:!0,target:106,key:"y",index:30}]}},{target:134,keyframes:{alpha:[{value:0,tweenMethod:"linearNone",tween:!0,target:134,key:"alpha",index:0},{value:0,tweenMethod:"linearNone",tween:!0,target:134,key:"alpha",index:20},{value:1,tweenMethod:"linearNone",tween:!0,target:134,key:"alpha",index:40}]}},{target:147,keyframes:{left:[{value:-363,tweenMethod:"linearNone",tween:!0,target:147,key:"left",index:0},{value:75,tweenMethod:"linearNone",tween:!0,target:147,key:"left",index:40}]}},{target:148,keyframes:{right:[{value:-553,tweenMethod:"linearNone",tween:!1,target:148,key:"right",index:0},{value:-553,tweenMethod:"linearNone",tween:!0,target:148,key:"right",index:20},{value:0,tweenMethod:"linearNone",tween:!0,target:148,key:"right",index:40}]}},{target:60,keyframes:{bottom:[{value:-80,tweenMethod:"linearNone",tween:!1,target:60,key:"bottom",index:0},{value:-80,tweenMethod:"linearNone",tween:!0,target:60,key:"bottom",index:20},{value:0,tweenMethod:"linearNone",tween:!0,target:60,key:"bottom",index:40}]}},{target:61,keyframes:{x:[{value:0,tweenMethod:"linearNone",tween:!0,target:61,key:"x",index:0}]}},{target:77,keyframes:{width:[{value:1560,tweenMethod:"linearNone",tween:!0,target:77,key:"width",index:0}]}},{target:65,keyframes:{x:[{value:1264,tweenMethod:"linearNone",tween:!0,target:65,key:"x",index:0}]}},{target:63,keyframes:{x:[{value:630,tweenMethod:"linearNone",tween:!0,target:63,key:"x",index:0}]}}],name:"openAni",id:1,frameRate:60,action:0}],loadList:["res/home/sybj.jpg","res/home/logo.png","res/home/xzms.png","res/home/bg_gsms.png","res/home/text_gsms.png","res/home/xzfgt_gsms.png","res/home/msfgx.png","res/home/icon_time.png","res/home/icon_score.png","res/imgs/game/new_back_black.png","res/home/bg_dkms.png","res/home/text_dkms.png","res/home/xzfgt_dkms.png","res/home/bg_hhms.png","res/home/text_hhms.png","res/home/xzfgt_hhms.png","res/imgs/game/icon_zc1.png","res/imgs/game/icon_yc1.png","res/imgs/game/icon_right_yellow@3x1.png","res/imgs/game/bg_tsk.png","res/imgs/game/tittle_ts.png","res/imgs/game/btn_tyxz.png","res/imgs/game/text_qx1.png","res/imgs/game/btn_tywxz.png","res/imgs/game/text_qd2.png","res/home/iocn_rank.png","res/home/icon_setting.png","res/home/bg_dzts_2.png","res/home/icon_fh.png","res/home/bg_name.png","res/home/bg_txk.png","res/imgs/rank/biaoqing3.png","res/home/001.png"],loadList3D:[]},e.HomeViewUI=n,s("game.ui.HomeViewUI",n);class o extends t{constructor(){super()}createChildren(){super.createChildren(),this.createView(o.uiView)}}o.uiView={type:"View",props:{width:1920,top:0,right:0,left:0,height:1080,bottom:0},compId:2,child:[{type:"Image",props:{top:0,skin:"res/imgs/game/new_back_black.png",right:0,left:0,bottom:0,alpha:.75,sizeGrid:"5,5,5,5"},compId:197},{type:"Image",props:{y:278,var:"continueBtn",skin:"res/imgs/game/btom_bright.png",centerX:0,anchorY:.5,anchorX:.5},compId:131,child:[{type:"Image",props:{var:"continueImg",text:"text",skin:"res/imgs/game/text_jxb.png",centerY:0,centerX:0},compId:198}]},{type:"Image",props:{y:530,var:"resetBtn",skin:"res/imgs/game/btom_dark.png",scaleY:1,scaleX:1,centerX:0,anchorY:.5,anchorX:.5},compId:192,child:[{type:"Image",props:{y:0,x:0,var:"resetImg",text:"text",skin:"res/imgs/game/text_ckd.png",centerY:0,centerX:0},compId:199}]},{type:"Image",props:{y:781,var:"exitBtn",skin:"res/imgs/game/btom_dark.png",scaleY:1,scaleX:1,centerX:0,anchorY:.5,anchorX:.5},compId:194,child:[{type:"Image",props:{y:0,x:0,var:"exitImg",text:"text",skin:"res/imgs/game/text_fhd.png",centerY:0,centerX:0},compId:200}]},{type:"Image",props:{x:0,width:1920,right:0,left:0,height:65,bottom:0,anchorY:.5,anchorX:.5},compId:209,child:[{type:"Box",props:{y:33,x:0,width:1560,scaleY:.8,scaleX:.8,height:60,centerX:0,anchorY:.5,anchorX:.5},compId:217,child:[{type:"Sprite",props:{x:0,texture:"res/imgs/game/icon_zc1.png"},compId:218,child:[{type:"Text",props:{y:10,x:47,width:211,valign:"middle",text:"左踏 • 上一项",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:219}]},{type:"Sprite",props:{x:630,texture:"res/imgs/game/icon_yc1.png"},compId:220,child:[{type:"Text",props:{y:10,x:51,width:211,valign:"middle",text:"右踏 • 下一项",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:221}]},{type:"Sprite",props:{y:0,x:1264,texture:"res/imgs/game/icon_right_yellow@3x1.png"},compId:222,child:[{type:"Text",props:{y:10,x:79,width:211,valign:"middle",text:"右踮脚 • 确定",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:223}]}]}]}],animations:[{nodes:[{target:173,keyframes:{x:[{value:1762,tweenMethod:"linearNone",tween:!0,target:173,key:"x",index:0},{value:1583,tweenMethod:"linearNone",tween:!0,target:173,key:"x",index:30}]}},{target:175,keyframes:{x:[{value:1581,tweenMethod:"linearNone",tween:!0,target:175,key:"x",index:0},{value:1402,tweenMethod:"linearNone",tween:!0,target:175,key:"x",index:30}]}},{target:178,keyframes:{y:[{value:2,tweenMethod:"linearNone",tween:!0,target:178,key:"y",index:0},{value:2,tweenMethod:"linearNone",tween:!0,target:178,key:"y",index:30}],x:[{value:1400,tweenMethod:"linearNone",tween:!0,target:178,key:"x",index:0},{value:1221,tweenMethod:"linearNone",tween:!0,target:178,key:"x",index:30}]}},{target:177,keyframes:{y:[{value:2,tweenMethod:"linearNone",tween:!0,target:177,key:"y",index:0},{value:2,tweenMethod:"linearNone",tween:!0,target:177,key:"y",index:30}],x:[{value:1219,tweenMethod:"linearNone",tween:!0,target:177,key:"x",index:0},{value:1040,tweenMethod:"linearNone",tween:!0,target:177,key:"x",index:30}]}},{target:179,keyframes:{x:[{value:1038,tweenMethod:"linearNone",tween:!0,target:179,key:"x",index:0},{value:859,tweenMethod:"linearNone",tween:!0,target:179,key:"x",index:30}]}},{target:180,keyframes:{y:[{value:2,tweenMethod:"linearNone",tween:!0,target:180,key:"y",index:0},{value:2,tweenMethod:"linearNone",tween:!0,target:180,key:"y",index:30}],x:[{value:857,tweenMethod:"linearNone",tween:!0,target:180,key:"x",index:0},{value:678,tweenMethod:"linearNone",tween:!0,target:180,key:"x",index:30}]}},{target:181,keyframes:{x:[{value:676,tweenMethod:"linearNone",tween:!0,target:181,key:"x",index:0},{value:495,tweenMethod:"linearNone",tween:!0,target:181,key:"x",index:30}]}},{target:182,keyframes:{y:[{value:2,tweenMethod:"linearNone",tween:!0,target:182,key:"y",index:0},{value:2,tweenMethod:"linearNone",tween:!0,target:182,key:"y",index:30}],x:[{value:495,tweenMethod:"linearNone",tween:!0,target:182,key:"x",index:0},{value:316,tweenMethod:"linearNone",tween:!0,target:182,key:"x",index:30}]}},{target:183,keyframes:{y:[{value:2,tweenMethod:"linearNone",tween:!0,target:183,key:"y",index:0},{value:0,tweenMethod:"linearNone",tween:!0,target:183,key:"y",index:19},{value:3.1999999999999886,tweenMethod:"linearNone",tween:!0,target:183,key:"y",index:20},{value:2,tweenMethod:"linearNone",tween:!0,target:183,key:"y",index:30}],x:[{value:314,tweenMethod:"linearNone",tween:!0,target:183,key:"x",index:0},{value:204,tweenMethod:"linearNone",tween:!0,target:183,key:"x",index:19},{value:1822,tweenMethod:"linearNone",tween:!0,target:183,key:"x",index:20},{value:1762,tweenMethod:"linearNone",tween:!0,target:183,key:"x",index:30}]}}],name:"runWayAni",id:1,frameRate:60,action:0}],loadList:["res/imgs/game/new_back_black.png","res/imgs/game/btom_bright.png","res/imgs/game/text_jxb.png","res/imgs/game/btom_dark.png","res/imgs/game/text_ckd.png","res/imgs/game/text_fhd.png","res/imgs/game/icon_zc1.png","res/imgs/game/icon_yc1.png","res/imgs/game/icon_right_yellow@3x1.png"],loadList3D:[]},e.PauseViewUI=o,s("game.ui.PauseViewUI",o);class r extends t{constructor(){super()}createChildren(){super.createChildren(),this.createView(r.uiView)}}r.uiView={type:"View",props:{width:1545,height:200},compId:2,child:[{type:"Image",props:{y:11,x:0,skin:"res/imgs/rank/bg_ph.png"},compId:3},{type:"Image",props:{y:-9,x:67,var:"winImg",skin:"res/imgs/rank/icon_diyi.png"},compId:4},{type:"FontClip",props:{y:71,x:67,width:155,visible:!1,var:"rankTxt",value:"1",skin:"res/imgs/rank/num_ph.png",sheet:"0123456789",height:51,align:"center"},compId:24},{type:"Image",props:{y:42,x:274,width:115,var:"avatarImg",skin:"res/imgs/rank/biaoqing3.png",height:115},compId:19,child:[{type:"Image",props:{y:0,x:0,width:115,skin:"res/imgs/rank/biaoqing3.png",renderType:"mask",height:115},compId:20}]},{type:"Text",props:{y:71,x:435,width:289,var:"nameTxt",valign:"middle",strokeColor:"#000000",height:57,fontSize:40,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:21},{type:"Image",props:{y:68,x:1001,skin:"res/imgs/rank/icon_df.png"},compId:22},{type:"Text",props:{y:71,x:1099,width:326,var:"scoreTxt",valign:"middle",text:"0",strokeColor:"#000000",italic:!0,height:65,fontSize:70,font:"Microsoft YaHei",color:"#ffd748",bold:!0,align:"right",runtime:"Laya.Text"},compId:23},{type:"Text",props:{y:73,x:1434,width:57,var:"scoreTxt1",valign:"middle",text:"分",strokeColor:"#000000",italic:!0,height:65,fontSize:50,font:"Microsoft YaHei",color:"#ffd748",bold:!0,align:"right",runtime:"Laya.Text"},compId:27}],loadList:["res/imgs/rank/bg_ph.png","res/imgs/rank/icon_diyi.png","res/imgs/rank/num_ph.png","res/imgs/rank/biaoqing3.png","res/imgs/rank/icon_df.png"],loadList3D:[]},e.RankItemUI=r,s("game.ui.RankItemUI",r);class h extends t{constructor(){super()}createChildren(){super.createChildren(),this.createView(h.uiView)}}h.uiView={type:"View",props:{width:1920,top:0,right:0,left:0,height:1080,bottom:0},compId:2,child:[{type:"Image",props:{top:0,skin:"res/imgs/game/new_back_black.png",right:0,left:0,bottom:0,alpha:.75,sizeGrid:"5,5,5,5"},compId:3},{type:"Image",props:{top:75,skin:"res/imgs/rank/bg_phbsl.png",left:0,bottom:0},compId:4},{type:"Image",props:{top:0,skin:"res/imgs/rank/bg_phbhl.png",right:0,left:0},compId:6},{type:"Image",props:{x:141,top:18,skin:"res/imgs/rank/icon_phb.png"},compId:8},{type:"Image",props:{x:203,top:18,skin:"res/imgs/rank/tittle_phb.png"},compId:9},{type:"Image",props:{var:"closeBtn",top:5,skin:"res/imgs/rank/btn_back.png",right:80,label:"label"},compId:7},{type:"Image",props:{y:75,x:0,width:267,var:"friendBtn",label:"label",height:152},compId:11,child:[{type:"Image",props:{var:"friendBg",skin:"res/imgs/rank/btn_phbxz.png",label:"label",centerY:0,centerX:0},compId:17},{type:"Image",props:{text:"text",skin:"res/imgs/rank/btn_hyb.png",centerY:0,centerX:0},compId:10},{type:"Sprite",props:{y:151,x:-1,width:268,texture:"res/imgs/rank/phbfgx.png"},compId:61}]},{type:"Image",props:{y:229,x:0,width:267,var:"wordBtn",label:"label",height:152},compId:18,child:[{type:"Sprite",props:{y:-3,x:-1,width:268,texture:"res/imgs/rank/phbfgx.png"},compId:56},{type:"Image",props:{var:"wordBg",skin:"res/imgs/rank/btn_phbxz.png",label:"label",centerY:0,centerX:0},compId:19},{type:"Image",props:{text:"text",skin:"res/imgs/rank/btn_sjb.png",centerY:0,centerX:0},compId:20},{type:"Sprite",props:{y:151,x:-1,width:268,texture:"res/imgs/rank/phbfgx.png"},compId:21}]},{type:"Image",props:{top:75,right:0,left:263,bottom:160},compId:57,child:[{type:"List",props:{y:0,width:1617,visible:!1,var:"rankList",repeatY:4,height:800,centerX:0},compId:33,child:[{type:"RankItem",props:{y:27,x:56,runtime:"game/view/common/RankItem.ts",renderType:"render"},compId:34}]}]},{type:"Image",props:{width:1656,var:"selfBg",right:0,left:264,height:257,bottom:0},compId:32,child:[{type:"Image",props:{y:0,skin:"res/imgs/rank/bg_wdph.png",right:-47,left:-46,sizeGrid:"0,266,0,357"},compId:63},{type:"Box",props:{y:81,width:1648,height:150,centerX:0},compId:58,child:[{type:"Image",props:{width:109,var:"winImg",skin:"res/imgs/rank/icon_diyi.png",height:124},compId:35},{type:"Image",props:{y:46,x:148,text:"text",skin:"res/imgs/rank/text_wdph.png"},compId:41},{type:"Image",props:{y:92,x:116,var:"loseImg",text:"text",skin:"res/imgs/rank/text_wsb.png"},compId:42},{type:"FontClip",props:{y:93,x:178,var:"rankTxt",value:"1",skin:"res/imgs/rank/num_ph.png",sheet:"0123456789"},compId:44},{type:"Image",props:{y:35,x:340,width:115,var:"avatarImg",skin:"res/imgs/rank/biaoqing3.png",height:115},compId:36,child:[{type:"Image",props:{y:0,x:0,width:115,skin:"res/imgs/rank/biaoqing3.png",renderType:"mask",height:115},compId:40}]},{type:"Text",props:{y:64,x:501,width:289,var:"nameTxt",valign:"middle",strokeColor:"#000000",height:57,fontSize:40,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:37},{type:"Image",props:{y:61,x:1069,skin:"res/imgs/rank/icon_df.png"},compId:38},{type:"Text",props:{y:64,x:1159,width:340,var:"scoreTxt",valign:"middle",text:"0",strokeColor:"#000000",italic:!0,height:65,fontSize:70,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"right",runtime:"Laya.Text"},compId:39},{type:"Text",props:{y:68,x:1496,width:57,var:"scoreTxt1",valign:"middle",text:"分",strokeColor:"#000000",italic:!0,height:65,fontSize:50,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"right",runtime:"Laya.Text"},compId:59}]}]}],animations:[{nodes:[{target:33,keyframes:{y:[{value:1085,tweenMethod:"linearNone",tween:!0,target:33,key:"y",index:0},{value:27,tweenMethod:"linearNone",tween:!0,target:33,key:"y",index:30}]}}],name:"openAni",id:1,frameRate:60,action:0}],loadList:["res/imgs/game/new_back_black.png","res/imgs/rank/bg_phbsl.png","res/imgs/rank/bg_phbhl.png","res/imgs/rank/icon_phb.png","res/imgs/rank/tittle_phb.png","res/imgs/rank/btn_back.png","res/imgs/rank/btn_phbxz.png","res/imgs/rank/btn_hyb.png","res/imgs/rank/phbfgx.png","res/imgs/rank/btn_sjb.png","res/imgs/rank/bg_wdph.png","res/imgs/rank/icon_diyi.png","res/imgs/rank/text_wdph.png","res/imgs/rank/text_wsb.png","res/imgs/rank/num_ph.png","res/imgs/rank/biaoqing3.png","res/imgs/rank/icon_df.png"],loadList3D:[]},e.RankViewUI=h,s("game.ui.RankViewUI",h);class l extends t{constructor(){super()}createChildren(){super.createChildren(),this.createView(l.uiView)}}l.uiView={type:"View",props:{width:1920,top:0,right:0,left:0,height:1080,bottom:0},compId:2,child:[{type:"Image",props:{top:0,skin:"res/imgs/game/new_back_black.png",right:0,left:0,bottom:0,alpha:.9,sizeGrid:"5,5,5,5"},compId:198},{type:"Box",props:{width:1920,height:1080,centerX:0},compId:207,child:[{type:"Image",props:{y:844,var:"homeBtn",skin:"res/imgs/game/btom_bright.png",centerX:-253,anchorY:.5,anchorX:.5},compId:215,child:[{type:"Image",props:{var:"homeImg",text:"text",skin:"res/imgs/result/text_an_fhb.png",centerY:0,centerX:0},compId:217}]},{type:"Image",props:{y:844,var:"resetBtn",skin:"res/imgs/game/btom_dark.png",scaleY:1,scaleX:1,centerX:260,anchorY:.5,anchorX:.5},compId:216,child:[{type:"Image",props:{y:0,x:0,var:"resetImg",text:"text",skin:"res/imgs/result/text_an_zld.png",centerY:0,centerX:0},compId:218}]},{type:"Image",props:{y:118,x:470,skin:"res/imgs/result/tittle_js_bjdf.png",anchorY:.5,anchorX:.5},compId:264},{type:"Sprite",props:{y:156,x:113.5,texture:"res/imgs/result/bg_js_bjdf.png"},compId:265},{type:"Text",props:{y:229,x:87,width:191,valign:"middle",text:"您本局消耗",height:44,fontSize:38,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:227,child:[{type:"Text",props:{y:-2,x:230,width:398,var:"caloriesTxt",valign:"middle",text:"999.99",italic:!0,height:49,fontSize:60,font:"Microsoft YaHei",color:"#ffd748",align:"right",runtime:"Laya.Text"},compId:229},{type:"Text",props:{y:5,x:663,width:73,valign:"middle",text:"大卡",height:39,fontSize:36,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:275}]},{type:"Text",props:{y:312,x:88,width:190,valign:"middle",text:"相当于步行",height:42,fontSize:38,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:230,child:[{type:"Text",props:{y:-6,x:230,width:398,var:"stepTxt",valign:"middle",text:"99999",italic:!0,height:49,fontSize:60,font:"Microsoft YaHei",color:"#ffd748",align:"right",runtime:"Laya.Text"},compId:231},{type:"Text",props:{y:-1,x:699,width:36,valign:"middle",text:"步",height:39,fontSize:36,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:277}]},{type:"Sprite",props:{y:383,x:221.5,texture:"res/imgs/result/bg_js_sjbdfgx.png"},compId:266},{type:"Text",props:{y:419,x:200,width:76,valign:"middle",text:"得分",height:39,fontSize:38,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:232,child:[{type:"Text",props:{y:2,x:116,width:144,valign:"middle",text:"有效攻击",height:28,fontSize:36,font:"Microsoft YaHei",color:"#ffffff",align:"center",runtime:"Laya.Text"},compId:268,child:[{type:"Text",props:{y:-3,x:176,width:271,var:"addScoreTxt",valign:"middle",text:"+10000",italic:!0,height:35,fontSize:45,font:"Microsoft YaHei",color:"#00ffff",align:"right",runtime:"Laya.Text"},compId:269},{type:"Text",props:{y:1,x:464,width:38,valign:"middle",text:"分",italic:!0,height:29,fontSize:36,font:"Microsoft YaHei",color:"#00ffff",align:"center",runtime:"Laya.Text"},compId:270}]},{type:"Text",props:{y:58,x:116,width:144,valign:"middle",text:"无效攻击",height:29,fontSize:36,font:"Microsoft YaHei",color:"#ffffff",align:"center",runtime:"Laya.Text"},compId:272,child:[{type:"Text",props:{y:-3,x:179,width:269,var:"subScoreTxt",valign:"middle",text:"-10000",italic:!0,height:29,fontSize:45,font:"Microsoft YaHei",color:"#ff156d",align:"right",runtime:"Laya.Text"},compId:235},{type:"Text",props:{y:0,x:465,width:37,valign:"middle",text:"分",rotation:0,name:"",italic:!0,height:29,fontSize:36,font:"Microsoft YaHei",color:"#ff156d",align:"center",runtime:"Laya.Text"},compId:271}]}]},{type:"Text",props:{y:555,x:198,width:78,valign:"middle",text:"总分",name:"",height:39,fontSize:38,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:274,child:[{type:"Text",props:{y:-1,x:306,width:259,var:"scoreTxt",valign:"middle",text:"99999",name:"",italic:!0,height:39,fontSize:50,font:"Microsoft YaHei",color:"#ffd905",align:"right",runtime:"Laya.Text"},compId:233},{type:"Text",props:{y:6,x:583,width:36,valign:"middle",text:"分",rotation:0,name:"",italic:!0,height:29,fontSize:36,font:"Microsoft YaHei",color:"#ffd905",align:"center",runtime:"Laya.Text"},compId:273}]},{type:"Text",props:{y:628,x:198,width:76,valign:"middle",text:"用时",name:"",height:39,fontSize:38,font:"Microsoft YaHei",color:"#ffffff",align:"left",runtime:"Laya.Text"},compId:285,child:[{type:"Text",props:{y:4,x:314,width:301,var:"timeTxt",valign:"middle",text:"00:00",name:"",italic:!0,height:31,fontSize:45,font:"Microsoft YaHei",color:"#ffd905",align:"right",runtime:"Laya.Text"},compId:286}]},{type:"Sprite",props:{y:156,x:908,var:"rankBg",texture:"res/imgs/result/bg_js_sjbd.png"},compId:236,child:[{type:"Image",props:{y:-34,x:484,skin:"res/imgs/result/tittle_js_sjbd.png",anchorY:.5,anchorX:.5},compId:237},{type:"Box",props:{y:64,x:96,visible:!1,var:"rank1"},compId:248,child:[{type:"Image",props:{x:-42,visible:!1,var:"pmImg1",skin:"res/imgs/result/icon_pmxj.png",centerY:0},compId:247},{type:"Image",props:{x:-7.5,visible:!1,var:"noRank1",text:"text",skin:"res/imgs/result/text_pm_wsb.png",centerY:0},compId:281},{type:"FontClip",props:{x:46,width:75,var:"pmFontClip1",value:"2",skin:"res/imgs/result/text_pm_num2.png",sheet:"0123456789",height:40,centerY:0,anchorY:.5,anchorX:.5,align:"center"},compId:245},{type:"Image",props:{x:129,width:100,var:"avatarImg1",skin:"res/imgs/rank/biaoqing3.png",height:100},compId:241,child:[{type:"Image",props:{y:0,x:0,width:100,skin:"res/home/001.png",renderType:"mask",height:100,centerY:0,centerX:-1},compId:242}]},{type:"Text",props:{y:24.5,x:250,width:271,var:"nameTxt1",valign:"middle",text:"婷子",strokeColor:"#000000",height:51,fontSize:35,font:"Microsoft YaHei",color:"#ffffff",align:"center",runtime:"Laya.Text"},compId:240},{type:"Text",props:{y:30.5,x:543,width:305,var:"rankScore1",valign:"middle",text:"10000分",italic:!0,height:39,fontSize:42,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:244}]},{type:"Sprite",props:{y:194,x:240,texture:"res/imgs/result/bg_js_sjbdfgx.png"},compId:243},{type:"Box",props:{y:232.5,x:96,visible:!1,var:"rank2"},compId:249,child:[{type:"Image",props:{x:-42,visible:!1,var:"pmImg2",skin:"res/imgs/result/icon_pmss.png",centerY:0},compId:251},{type:"Image",props:{x:-7.5,visible:!1,var:"noRank2",text:"text",skin:"res/imgs/result/text_pm_wsb.png",centerY:0},compId:280},{type:"FontClip",props:{x:46,width:75,var:"pmFontClip2",value:"2",skin:"res/imgs/result/text_pm_num2.png",sheet:"0123456789",height:40,centerY:0,anchorY:.5,anchorX:.5,align:"center"},compId:252},{type:"Image",props:{x:129,width:100,var:"avatarImg2",skin:"res/imgs/rank/biaoqing3.png",height:100},compId:253,child:[{type:"Image",props:{y:0,x:0,width:100,skin:"res/home/001.png",renderType:"mask",height:100,centerY:0,centerX:-1},compId:254}]},{type:"Text",props:{y:24.5,x:250,width:271,var:"nameTxt2",valign:"middle",text:"婷子",strokeColor:"#000000",height:51,fontSize:35,font:"Microsoft YaHei",color:"#ffffff",align:"center",runtime:"Laya.Text"},compId:255},{type:"Text",props:{y:30.5,x:544,width:305,var:"rankScore2",valign:"middle",text:"10000分",italic:!0,height:39,fontSize:42,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:256}]},{type:"Sprite",props:{y:370,x:240,texture:"res/imgs/result/bg_js_sjbdfgx.png"},compId:250},{type:"Box",props:{y:405,x:96,visible:!1,var:"rank3"},compId:257,child:[{type:"Image",props:{x:-42,visible:!1,var:"pmImg3",skin:"res/imgs/result/icon_pmwsb.png",centerY:0},compId:258},{type:"Image",props:{x:-7.5,visible:!1,var:"noRank3",text:"text",skin:"res/imgs/result/text_pm_wsb.png",centerY:0},compId:279},{type:"FontClip",props:{y:37,x:46,width:75,var:"pmFontClip3",value:"3",skin:"res/imgs/result/text_pm_num2.png",sheet:"0123456789",height:40,centerY:0,anchorY:.5,anchorX:.5,align:"center"},compId:259},{type:"Image",props:{x:129,width:100,var:"avatarImg3",skin:"res/imgs/rank/biaoqing3.png",height:100},compId:260,child:[{type:"Image",props:{y:0,x:0,width:100,skin:"res/home/001.png",renderType:"mask",height:100,centerY:0,centerX:-1},compId:261}]},{type:"Text",props:{y:24.5,x:250,width:271,var:"nameTxt3",valign:"middle",text:"nikeName",strokeColor:"#000000",height:51,fontSize:35,font:"Microsoft YaHei",color:"#ffffff",align:"center",runtime:"Laya.Text"},compId:262},{type:"Text",props:{y:30.5,x:544,width:305,var:"rankScore3",valign:"middle",text:"0分",italic:!0,height:39,fontSize:42,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:263}]}]},{type:"Image",props:{y:1048,right:0,left:0,height:65,bottom:0,anchorY:.5,anchorX:.5},compId:219,child:[{type:"Box",props:{y:33,x:0,width:1560,scaleY:.8,scaleX:.8,height:60,centerX:0,anchorY:.5,anchorX:.5},compId:220,child:[{type:"Sprite",props:{x:0,texture:"res/imgs/game/icon_zc1.png"},compId:221,child:[{type:"Text",props:{y:10,x:47,width:211,valign:"middle",text:"左踏 • 上一项",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:222}]},{type:"Sprite",props:{x:630,texture:"res/imgs/game/icon_yc1.png"},compId:223,child:[{type:"Text",props:{y:10,x:51,width:211,valign:"middle",text:"右踏 • 下一项",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:224}]},{type:"Sprite",props:{y:0,x:1264,texture:"res/imgs/game/icon_right_yellow@3x1.png"},compId:225,child:[{type:"Text",props:{y:10,x:79,width:211,valign:"middle",text:"右踮脚 • 确定",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:226}]}]}]}]}],animations:[{nodes:[{target:173,keyframes:{x:[{value:1762,tweenMethod:"linearNone",tween:!0,target:173,key:"x",index:0},{value:1583,tweenMethod:"linearNone",tween:!0,target:173,key:"x",index:30}]}},{target:175,keyframes:{x:[{value:1581,tweenMethod:"linearNone",tween:!0,target:175,key:"x",index:0},{value:1402,tweenMethod:"linearNone",tween:!0,target:175,key:"x",index:30}]}},{target:178,keyframes:{y:[{value:2,tweenMethod:"linearNone",tween:!0,target:178,key:"y",index:0},{value:2,tweenMethod:"linearNone",tween:!0,target:178,key:"y",index:30}],x:[{value:1400,tweenMethod:"linearNone",tween:!0,target:178,key:"x",index:0},{value:1221,tweenMethod:"linearNone",tween:!0,target:178,key:"x",index:30}]}},{target:177,keyframes:{y:[{value:2,tweenMethod:"linearNone",tween:!0,target:177,key:"y",index:0},{value:2,tweenMethod:"linearNone",tween:!0,target:177,key:"y",index:30}],x:[{value:1219,tweenMethod:"linearNone",tween:!0,target:177,key:"x",index:0},{value:1040,tweenMethod:"linearNone",tween:!0,target:177,key:"x",index:30}]}},{target:179,keyframes:{x:[{value:1038,tweenMethod:"linearNone",tween:!0,target:179,key:"x",index:0},{value:859,tweenMethod:"linearNone",tween:!0,target:179,key:"x",index:30}]}},{target:180,keyframes:{y:[{value:2,tweenMethod:"linearNone",tween:!0,target:180,key:"y",index:0},{value:2,tweenMethod:"linearNone",tween:!0,target:180,key:"y",index:30}],x:[{value:857,tweenMethod:"linearNone",tween:!0,target:180,key:"x",index:0},{value:678,tweenMethod:"linearNone",tween:!0,target:180,key:"x",index:30}]}},{target:181,keyframes:{x:[{value:676,tweenMethod:"linearNone",tween:!0,target:181,key:"x",index:0},{value:495,tweenMethod:"linearNone",tween:!0,target:181,key:"x",index:30}]}},{target:182,keyframes:{y:[{value:2,tweenMethod:"linearNone",tween:!0,target:182,key:"y",index:0},{value:2,tweenMethod:"linearNone",tween:!0,target:182,key:"y",index:30}],x:[{value:495,tweenMethod:"linearNone",tween:!0,target:182,key:"x",index:0},{value:316,tweenMethod:"linearNone",tween:!0,target:182,key:"x",index:30}]}},{target:183,keyframes:{y:[{value:2,tweenMethod:"linearNone",tween:!0,target:183,key:"y",index:0},{value:0,tweenMethod:"linearNone",tween:!0,target:183,key:"y",index:19},{value:3.1999999999999886,tweenMethod:"linearNone",tween:!0,target:183,key:"y",index:20},{value:2,tweenMethod:"linearNone",tween:!0,target:183,key:"y",index:30}],x:[{value:314,tweenMethod:"linearNone",tween:!0,target:183,key:"x",index:0},{value:204,tweenMethod:"linearNone",tween:!0,target:183,key:"x",index:19},{value:1822,tweenMethod:"linearNone",tween:!0,target:183,key:"x",index:20},{value:1762,tweenMethod:"linearNone",tween:!0,target:183,key:"x",index:30}]}}],name:"runWayAni",id:1,frameRate:60,action:0}],loadList:["res/imgs/game/new_back_black.png","res/imgs/game/btom_bright.png","res/imgs/result/text_an_fhb.png","res/imgs/game/btom_dark.png","res/imgs/result/text_an_zld.png","res/imgs/result/tittle_js_bjdf.png","res/imgs/result/bg_js_bjdf.png","res/imgs/result/bg_js_sjbdfgx.png","res/imgs/result/bg_js_sjbd.png","res/imgs/result/tittle_js_sjbd.png","res/imgs/result/icon_pmxj.png","res/imgs/result/text_pm_wsb.png","res/imgs/result/text_pm_num2.png","res/imgs/rank/biaoqing3.png","res/home/001.png","res/imgs/result/icon_pmss.png","res/imgs/result/icon_pmwsb.png","res/imgs/game/icon_zc1.png","res/imgs/game/icon_yc1.png","res/imgs/game/icon_right_yellow@3x1.png"],loadList3D:[]},e.ResultViewUI=l,s("game.ui.ResultViewUI",l);class g extends t{constructor(){super()}createChildren(){super.createChildren(),this.createView(g.uiView)}}g.uiView={type:"View",props:{width:1920,top:0,right:0,left:0,height:1080,bottom:0},compId:2,child:[{type:"Image",props:{top:0,skin:"res/imgs/game/new_back_black.png",right:0,left:0,bottom:0,alpha:.75,sizeGrid:"5,5,5,5"},compId:3},{type:"Image",props:{width:507,var:"bg",skin:"res/imgs/game/bg_tsk.png",scaleY:1.2,scaleX:1.2,height:456,centerY:-47,centerX:0},compId:4,child:[{type:"Sprite",props:{y:28,x:30,texture:"res/imgs/game/tittle_sysz.png"},compId:5},{type:"Image",props:{y:24.5,x:429,var:"closeBtn",skin:"res/imgs/game/btn_close.png",label:"label"},compId:6},{type:"Text",props:{y:164,x:36,text:"音乐",fontSize:26,font:"Microsoft YaHei",color:"#ffffff",runtime:"Laya.Text"},compId:8},{type:"Image",props:{y:210,x:36,width:366,var:"musicBar",skin:"res/imgs/game/progress_sz.png",height:15,sizeGrid:"5,5,5,5"},compId:7,child:[{type:"Image",props:{width:366,var:"musicBg",skin:"res/imgs/game/progress$bar_sz.png",height:15},compId:9,child:[{type:"Image",props:{y:0,x:0,width:366,var:"musicBarMask",skin:"res/imgs/game/progressbar_sz.png",renderType:"mask",height:15,sizeGrid:"5,5,5,5"},compId:11}]},{type:"Image",props:{y:7.5,x:0,width:45,var:"btnMusic",skin:"res/imgs/game/hdan.png",height:45,anchorY:.5,anchorX:.5},compId:10},{type:"Text",props:{y:-3,x:379,width:64,var:"musicTxt",valign:"middle",text:"100%",height:26,fontSize:24,font:"Microsoft YaHei",color:"#ffffff",align:"center",runtime:"Laya.Text"},compId:18}]},{type:"Text",props:{y:284,x:36,text:"音效",fontSize:26,font:"Microsoft YaHei",color:"#ffffff",runtime:"Laya.Text"},compId:13},{type:"Image",props:{y:330,x:36,width:366,var:"soundBar",skin:"res/imgs/game/progress_sz.png",height:15,sizeGrid:"5,5,5,5"},compId:14,child:[{type:"Image",props:{width:366,var:"soundBg",skin:"res/imgs/game/progress$bar_sz.png",height:15},compId:15,child:[{type:"Image",props:{y:0,x:0,width:366,var:"soundBarMask",skin:"res/imgs/game/progressbar_sz.png",renderType:"mask",height:15,sizeGrid:"5,5,5,5"},compId:16}]},{type:"Image",props:{y:7.5,x:0,width:45,var:"btnSound",skin:"res/imgs/game/hdan.png",height:45,anchorY:.5,anchorX:.5},compId:17},{type:"Text",props:{y:-3,x:379,width:64,var:"soundTxt",valign:"middle",text:"100%",height:26,fontSize:24,font:"Microsoft YaHei",color:"#ffffff",align:"center",runtime:"Laya.Text"},compId:20}]},{type:"Text",props:{y:421,x:12,width:82,visible:!1,var:"versionTxt",text:"1.0.1",height:26,fontSize:24,color:"#ffffff",runtime:"Laya.Text"},compId:22}]}],loadList:["res/imgs/game/new_back_black.png","res/imgs/game/bg_tsk.png","res/imgs/game/tittle_sysz.png","res/imgs/game/btn_close.png","res/imgs/game/progress_sz.png","res/imgs/game/progress$bar_sz.png","res/imgs/game/progressbar_sz.png","res/imgs/game/hdan.png"],loadList3D:[]},e.SettingViewUI=g,s("game.ui.SettingViewUI",g)}(e.ui||(e.ui={}))}(e||(e={})),function(e){!function(e){!function(e){class t extends i{constructor(){super()}createChildren(){super.createChildren(),this.createView(t.uiView)}}t.uiView={type:"Scene",props:{width:240,height:240},loadList:[],loadList3D:[]},e.PropItemUI=t,s("game.ui.res.PropItemUI",t)}(e.res||(e.res={}))}(e.ui||(e.ui={}))}(e||(e={})),function(e){!function(e){!function(e){!function(e){class i extends t{constructor(){super()}createChildren(){super.createChildren(),this.createView(i.uiView)}}i.uiView={type:"View",props:{top:0,right:0,left:0,bottom:0},compId:2,child:[{type:"Image",props:{y:0,x:0,top:0,skin:"res/home/sybj.jpg",right:0,left:0,bottom:0},compId:25},{type:"Image",props:{y:220,skin:"res/home/logo.png",centerX:0},compId:26},{type:"Box",props:{width:1437,height:127,centerY:199,centerX:0},compId:22,child:[{type:"Image",props:{y:53,x:0,width:1431,var:"barBg",skin:"res/home/progress_load.png",sizeGrid:"0,161,0,161",height:88},compId:4},{type:"Image",props:{y:52,x:-1,width:0,var:"loadingBar",skin:"res/home/progressbar_load.png",sizeGrid:"0,241,0,175",height:88},compId:5},{type:"Sprite",props:{y:48,x:652,name:"circle"},compId:8},{type:"Text",props:{y:-3,x:642.5,width:146,var:"loadingTxt",valign:"middle",text:"0%",height:56,fontSize:48,font:"Helvetica",color:"#ffffff",bold:!0,align:"center",runtime:"Laya.Text"},compId:11}]}],loadList:["res/home/sybj.jpg","res/home/logo.png","res/home/progress_load.png","res/home/progressbar_load.png"],loadList3D:[]},e.LoadingViewUI=i,s("game.ui.res.scenes.LoadingViewUI",i)}(e.scenes||(e.scenes={}))}(e.res||(e.res={}))}(e.ui||(e.ui={}))}(e||(e={}));class a extends e.ui.RankItemUI{constructor(){super()}onEnable(){super.onEnable()}set dataSource(e){e&&(this.index=e.index,this.name=e.name,this.gender=e.gender,this.avatar=e.avatar,this.score=e.score,this.rank=e.rank,this.updataView())}updataView(){1==this.rank?(this.winImg.skin="res/imgs/rank/icon_diyi.png",this.winImg.visible=!0,this.rankTxt.visible=!1,this.scoreTxt.color="#ffd748",this.scoreTxt1.color="#ffd748"):2==this.rank?(this.winImg.skin="res/imgs/rank/icon_dier.png",this.winImg.visible=!0,this.rankTxt.visible=!1,this.scoreTxt.color="#ffd748",this.scoreTxt1.color="#ffd748"):3==this.rank?(this.winImg.skin="res/imgs/rank/icon_disan.png",this.winImg.visible=!0,this.rankTxt.visible=!1,this.scoreTxt.color="#ffd748",this.scoreTxt1.color="#ffd748"):(this.scoreTxt.color="#000000",this.scoreTxt1.color="#000000",this.winImg.visible=!1,this.rankTxt.visible=!0,this.rankTxt.value=this.rank.toString()),this.nameTxt.text=this.name,this.scoreTxt.text=this.score.toString(),this.avatar&&(this.avatarImg.skin=this.avatar)}onDisable(){super.onDisable()}destroy(){super.destroy()}}class n{constructor(){}static init(){(0,Laya.ClassUtils.regClass)("game/view/common/RankItem.ts",a)}}n.width=1920,n.height=1080,n.scaleMode="fixedauto",n.screenMode="horizontal",n.alignV="middle",n.alignH="center",n.startScene="GameView.scene",n.sceneRoot="",n.debug=!0,n.stat=!1,n.physicsDebug=!1,n.exportSceneToJson=!1,n.init();class o{static getSound(e){return"res/sound/"+e+".mp3"}static getGameUI(e){return"res/imgs/game/"+e+".png"}}o.fonts=[],o.preLoadUrls=["res/atlas/res/imgs/game.atlas","res/atlas/res/imgs/game.png","res/atlas/res/home.atlas","res/atlas/res/home.png","res/atlas/res/imgs/rank.atlas","res/atlas/res/imgs/rank.png","res/atlas/res/imgs/result.atlas","res/atlas/res/imgs/result.png","res/atlas/res/imgs/game/bg.atlas","res/atlas/res/imgs/game/bg.png","res/json/ConstConfig.json","res/ani/zidan3.atlas","res/ani/zidan3.png","res/ani/po_blue2.atlas","res/ani/po_blue2.png","res/ani/po_blue21.png","res/ani/hit.atlas","res/ani/hit.png","res/ani/shoot.atlas","res/ani/shoot.png","res/imgs/game/bg/bg.jpg","res/imgs/game/bg/position-yellow.png","res/imgs/game/bg/wall_blue_1.png","res/imgs/game/bg/wall_red_1.png","res/imgs/game/line.png","res/imgs/game/text_jsyx.png","res/imgs/game/text_ready.png","res/home/xzms.png","res/imgs/game/bg/bg.jpg","res/imgs/game/bg_ksjs.png","res/imgs/game/text_finsh.png","res/imgs/result/bg_js.png","res/imgs/result/jsfgx.png","res/imgs/rank/bg_ph.png","res/imgs/rank/bg_ph.png","res/imgs/rank/bg_ph.png","res/imgs/rank/bg_phbhl.png","res/imgs/rank/bg_phbsl.png","res/imgs/rank/bg_wdph.png","res/atlas/res/guide.atlas","res/guide/ts_dzsm.png","res/guide/btfgx.png"],o.sound={readyGo:"readygo",bgm:"bgm",combo:"combo",click:"click",true:"true",hit:"hit",miss:"miss",attack:"attack",attack2:"attack2"};const r=1e3/60;var h,l,g;!function(e){e[e.NONE_INTERATION=2e3]="NONE_INTERATION",e[e.FRONT_LEFT=2001]="FRONT_LEFT",e[e.FRONT_RIGHT=2002]="FRONT_RIGHT",e[e.BACK_LEFT=2003]="BACK_LEFT",e[e.BACK_RIGHT=2004]="BACK_RIGHT",e[e.ENTER_KEY=2005]="ENTER_KEY",e[e.CANCLE_KEY=2006]="CANCLE_KEY"}(h||(h={})),function(e){e[e.MOTION_STOP=0]="MOTION_STOP",e[e.MOTION_RUN=1]="MOTION_RUN",e[e.MOTION_JUMP=2]="MOTION_JUMP",e[e.MOTION_DOWN=3]="MOTION_DOWN",e[e.MOTION_LEFT=4]="MOTION_LEFT",e[e.MOTION_RIGHT=5]="MOTION_RIGHT",e[e.MOTION_FRONT=6]="MOTION_FRONT",e[e.MOTION_BACK=7]="MOTION_BACK",e[e.MOTION_LEFT_UP=8]="MOTION_LEFT_UP",e[e.MOTION_LEFT_DOWN=9]="MOTION_LEFT_DOWN",e[e.MOTION_RIGHT_UP=10]="MOTION_RIGHT_UP",e[e.MOTION_RIGHT_DOWN=11]="MOTION_RIGHT_DOWN",e[e.MOTION_STEP=12]="MOTION_STEP",e[e.MOTION_JUMP_OC=13]="MOTION_JUMP_OC",e[e.MOTION_JUMP_VERTICAL=14]="MOTION_JUMP_VERTICAL",e[e.MOTION_ROCK=15]="MOTION_ROCK",e[e.MOTION_SCISSORS=16]="MOTION_SCISSORS",e[e.MOTION_PAPER=17]="MOTION_PAPER",e[e.MOTION_STRETCH_LEFT=18]="MOTION_STRETCH_LEFT",e[e.MOTION_LIFT_LEFT=19]="MOTION_LIFT_LEFT",e[e.MOTION_STRETCH_RIGHT=20]="MOTION_STRETCH_RIGHT",e[e.MOTION_LIFT_RIGHT=21]="MOTION_LIFT_RIGHT",e[e.MOTION_STRETCH_FRONT_LEFT=22]="MOTION_STRETCH_FRONT_LEFT",e[e.MOTION_STRETCH_FRONT_RIGHT=23]="MOTION_STRETCH_FRONT_RIGHT",e[e.MOTION_DOWN_FRONT=24]="MOTION_DOWN_FRONT",e[e.NUMBERS_OF_MOTION=25]="NUMBERS_OF_MOTION"}(l||(l={})),function(e){e[e.FREQ=1e3]="FREQ"}(g||(g={}));class p{constructor(e,t){this._target=e,this._fn=t}}const m=new class{constructor(){this._ver=1,this._events={},this._motion=[0,0,0,0],this._motionTime=[0,0,0,0],this._responseCallMap={string:Function},this._inited=!1}callback(e,t){console.log("callback "+e+" "+t);const i=this._responseCallMap[e];i&&i.call(i,t)}isMotion(e,t){let i=new Date,s=this._motion[e]>0&&i.getTime()-this._motionTime[e]<=t;return s&&(this._motion[e]=0),s}isLeftFootDown(e=r){return this.isMotion(0,e)}isRightFootDown(e=r){return this.isMotion(1,e)}getCmd(){let e=this._cmd;return e>0&&(this._cmd=0),e}cmd(e,t){this._cmd=t+h.NONE_INTERATION;let i=(new Date).getTime();i-this._cmdTime<500||(this._cmdTime=i,console.log("cmd set "+t+" "+this._cmd),this.emit(this._cmd.toString(),i))}getMotion(){return this._motion}motion(e,t,i,s,a,n){this._motion[0]=i,this._motion[1]=s,this._motion[2]=a,this._motion[3]=n,console.log("motion set "+this._motion);let o=(new Date).getTime(),r=this._motion;for(let e=0;e<r.length;e++)if(r[e]>0){if(o-this._motionTime[e]<10)continue;this._motionTime[e]=o;let t=r[e],i=t.toString();this.emit(i,o),console.log("motion set "+t+" -> "+i+" "+l[t])}}getStepFreq(){return this._stepFreq}getStepCount(){return this._stepCount}getVelocity(){return this._velocity}stepFreq(e){this._stepFreq=e,console.log("step freq "+e),this.emit(g.FREQ.toString(),e)}step(e,t){this.stepFreq(e),this._stepCount=t,console.log("step count "+t)}stepData(e,t,i){this.stepFreq(e),this._stepCount=t,this._velocity=i}emit(e,...t){let i=this._events[e]||[];return i.length>0&&(console.log("motion emit "+e+", "+i.length),i.forEach(e=>e._fn.apply(e._target||e._fn,t))),this}on(e,t,i){this._inited||(this._inited=!0,this.onSdkLoaded());let s=this._events[e]||[];return t&&s.push(new p(i||this,t)),console.log("motion set on "+e+", "+s.length),this._events[e]=s,this}once(e,t,i){let s=(...a)=>{t&&t.apply(i||this,a),this.off(e,s)};return this.on(e,s),this}off(e,t){let i=this._events[e]||[];return this._events[e]=i.filter(e=>e._fn!==t),this}remove(e,t){return this._events[e]=[],t&&t(),this}onSdkLoaded(){this._callsdk("onLoad",{ver:this._ver})}onBackPressed(e=!1){this._callsdk("onBackPressed",{foot:e})}onGameStart(){this._callsdk("onGameStart",{})}onGameEnd(e=0,t=0,i=0,s=0,a=0,n){if(n){let e="onGameEnd_callback";this._responseCallMap[e]=n}this._callsdk("onGameEnd",{level:e,score:t,record:i,mode:s,opponentId:a})}getUserInfo(e){let t="getUserInfo_callback";this._responseCallMap[t]=e,this._callsdk(t,{callback:t})}getRank(e,t){let i="getRank_callback";this._responseCallMap[i]=t,this._callsdk(i,{callback:i,type:e})}vibrate(e,t=0){this._callsdk("vibrate",{duration:e,leftOrRight:t})}openGameData(e,t){this._gameDataCallback=t,this._callsdk("openGameData",{open:e})}gameData(e){this._gameDataCallback&&this._gameDataCallback.call(this._gameDataCallback,e)}_callsdk(e,t){console.log("sdk call "+e),window.SDKBridge&&window.SDKBridge.postMessage(JSON.stringify({method:e,args:t}))}};window.SHOES_SDK=m;class d extends e.ui.res.scenes.LoadingViewUI{constructor(){super(),this._baseProgress=0,this._targetProgress=1,this._curProgress=0,this.loadingPreload=["res/home/sybj.jpg","res/home/logo.png","res/home/progress_load.png","res/home/progressbar_load.png"],this.size(Laya.stage.width,Laya.stage.height)}static get instance(){return this._instance||(this._instance=new d),this._instance}onEnable(){super.onEnable()}preLoad(e){Laya.loader.load(this.loadingPreload,Laya.Handler.create(this,()=>{Laya.Scene3D.load("res/3d/NV_model.ls",Laya.Handler.create(this,()=>{e.run()}))}))}setProgress(e,t=!1){if(!this.barBg)return;let i=this._baseProgress+(this._targetProgress-this._baseProgress)*e;!t&&i<this._curProgress||(this._curProgress=i,this.loadingBar.width=this._curProgress*this.barBg.width,this.loadingTxt.text=Math.floor(100*this._curProgress)+"%",window.platform&&this._curProgress<1&&platform.progress({percent:Math.floor(100*this._curProgress)}))}show(){this.parent||Laya.stage.addChild(this)}hide(){this.parent&&d._instance.destroy(),d._instance=null}onDisable(){super.onDisable()}destroy(){this.loadingPreload=null,super.destroy(),window.platform&&platform.progress({percent:100})}}class c extends Laya.EventDispatcher{constructor(){super(),this.initW=1920,this.initH=1080,this.isStarGame=!1,this.isPlaying=!1,this.wallSpeed=0,this.guideData=[0,0,0],this.selfInfo={id:1,nickname:"昵称最多七个字",gender:1,avatar:""}}init(){Laya.SoundManager.useAudioMusic=!1,this.getGuideData(),this.getAllHighScoreData(),this.getLevel1HighScoreData(),this.getLevel2HighScoreData(),this.getLevel3HighScoreData(),window.SDKBridge?m.getUserInfo(e=>{this.selfInfo=e,log("selfInfo",e),V.view.homeView.show(),d.instance.hide()}):(V.view.homeView.show(),d.instance.hide())}reset(){this.score=0}getGuideData(){this.guideData=Laya.LocalStorage.getJSON("CQ_GuideData1"),this.guideData||this.setGuideData([0,0,0]),log("新手引导",this.guideData)}setGuideData(e){this.guideData=e,this.saveGuideData()}saveGuideData(){Laya.LocalStorage.setJSON("CQ_GuideData1",this.guideData)}getAllHighScoreData(){this.allHighScoreData=Laya.LocalStorage.getJSON("CQ_allHighScoreData"),this.allHighScoreData||this.setAllHighSocreData(0),log("获取总最高分数",this.allHighScoreData)}setAllHighSocreData(e){this.allHighScoreData=e,this.saveALlHighSocreData()}saveALlHighSocreData(){Laya.LocalStorage.setJSON("CQ_allHighScoreData",this.allHighScoreData)}getLevel1HighScoreData(){this.level1HighScoreData=Laya.LocalStorage.getJSON("CQ_level1HighScoreData"),this.level1HighScoreData||this.setLevel1HighSocreData(0,0),log("获取简单模式最高分数",this.level1HighScoreData)}setLevel1HighSocreData(e,t){this.level1HighScoreData={score:e,time:t},this.saveLevel1HighSocreData(),e>this.allHighScoreData&&this.setAllHighSocreData(e)}saveLevel1HighSocreData(){Laya.LocalStorage.setJSON("CQ_level1HighScoreData",this.level1HighScoreData)}getLevel2HighScoreData(){this.level2HighScoreData=Laya.LocalStorage.getJSON("CQ_level2HighScoreData"),this.level2HighScoreData||this.setLevel2HighSocreData(0,0),log("获取简单模式最高分数",this.level2HighScoreData)}setLevel2HighSocreData(e,t){this.level2HighScoreData={score:e,time:t},this.saveLevel2HighSocreData(),e>this.allHighScoreData&&this.setAllHighSocreData(e)}saveLevel2HighSocreData(){Laya.LocalStorage.setJSON("CQ_level2HighScoreData",this.level2HighScoreData)}getLevel3HighScoreData(){this.level3HighScoreData=Laya.LocalStorage.getJSON("CQ_level3HighScoreData"),this.level3HighScoreData||this.setLevel3HighSocreData(0,0),log("获取简单模式最高分数",this.level3HighScoreData)}setLevel3HighSocreData(e,t){this.level3HighScoreData={score:e,time:t},this.saveLevel3HighSocreData(),e>this.allHighScoreData&&this.setAllHighSocreData(e)}saveLevel3HighSocreData(){Laya.LocalStorage.setJSON("CQ_level3HighScoreData",this.level3HighScoreData)}}class y{constructor(){this.init()}init(){Laya.loader.load("res/json/ConstConfig.json",Laya.Handler.create(this,this.getConstConfig))}getConstConfig(e){this.constConfig=e[0]}}var f,x,w;!function(e){e[e.simple=1]="simple",e[e.normal=2]="normal",e[e.difficulty=3]="difficulty"}(f||(f={})),function(e){e[e.rock=1]="rock",e[e.scissors=2]="scissors",e[e.paper=3]="paper"}(x||(x={})),function(e){e[e.blue=1]="blue",e[e.red=2]="red"}(w||(w={}));class k extends Laya.Image{constructor(){super(),this.isDeath=!1,this.width=1142,this.height=668,this.anchorX=this.anchorY=.5,this.gestureBg=new Laya.Image,this.gestureBg.anchorX=this.gestureBg.anchorY=.5,this.gestureBg.centerX=this.gestureBg.centerY=0,this.gestureBg.scale(1.5,1.5),this.addChild(this.gestureBg),this.iconImg=new Laya.Image,this.iconImg.anchorX=this.iconImg.anchorY=.5,this.iconImg.centerX=this.iconImg.centerY=0,this.iconImg.scale(1.5,1.5),this.addChild(this.iconImg)}onEnable(){this.alphaTween=Laya.TimeLine.to(this,{alpha:1},V.view.gameView.wallSpeed/10*1e3),this.alphaTween.play()}startMove(){this.moveTween=Laya.TimeLine.to(this,{x:V.view.gameView.endPos.x,y:V.view.gameView.endPos.y},Math.floor(1e3*V.view.gameView.wallSpeed),Laya.Ease.circIn),this.moveTween.play(),this.scaleTween=Laya.TimeLine.to(this,{scaleX:1,scaleY:1},Math.floor(1e3*V.view.gameView.wallSpeed),Laya.Ease.circIn),this.scaleTween.play(),this.moveTween.on(Laya.Event.COMPLETE,this,()=>{this.isDeath||(this.isDeath=!0,V.view.gameView.playDeath(),V.view.gameView.playDeathAni(this),this.destroy())})}playError(){Laya.Tween.to(this,{alpha:0},80,null,Laya.Handler.create(this,()=>{Laya.Tween.to(this,{alpha:1},80,null,Laya.Handler.create(this,()=>{Laya.Tween.to(this,{alpha:0},80,null,Laya.Handler.create(this,()=>{Laya.Tween.to(this,{alpha:1},80,null)}))}))}))}destroy(){this.alpha=1,this.goldAni&&(this.goldAni.visible=!1),this.boomAni&&(this.boomAni.visible=!1),this.scale(.1,.1),this.removeSelf(),this.moveTween&&this.moveTween.destroy(),this.scaleTween&&this.scaleTween.destroy(),this.alphaTween&&this.alphaTween.destroy(),this.enemieAttack&&this.enemieAttack.destroy(),this.moveTween=null,this.scaleTween=null,this.alphaTween=null,Laya.Tween.clearAll(this),Laya.Tween.clearAll(this.gestureBg),this.timer.clearAll(this),V.view.gameView.enemies=V.view.gameView.enemies.filter(e=>!e.isDeath),V.view.gameView.isProtect&&V.view.gameView.enemies[0]&&(V.view.gameView.enemies[0].isDeath=!0,V.view.gameView.enemies[0].destroy()),this.recover()}recover(){Laya.Pool.recover("WallEnemie",this)}static create(e,t,i,s){let a,n=Laya.Pool.getItemByClass("WallEnemie",k);return n.isDeath=!1,n.x=e,n.y=t,n.wallType=i,n.gestureType=s,i==w.blue?a="blue":i==w.red&&(a="red"),n.skin="res/imgs/game/bg/wall_"+a+"_1.png",n.gestureBg.skin="res/imgs/game/bg/wall_"+a+"_2.png",s==x.rock?n.iconImg.skin="res/imgs/game/bg/wall_"+a+"_st.png":s==x.scissors?n.iconImg.skin="res/imgs/game/bg/wall_"+a+"_jd.png":s==x.paper&&(n.iconImg.skin="res/imgs/game/bg/wall_"+a+"_bu.png"),n.scale(.1,.1),n.startMove(),n}}class u extends Laya.FontClip{constructor(){super(),this.width=300,this.height=65,this.anchorX=this.anchorY=.5}onEnable(){this.starMove()}starMove(){let e=this.y-50;this.scaleTween=Laya.TimeLine.to(this,{scaleX:1,scaleY:1},1e3,Laya.Ease.elasticOut).to(this,{y:e},1e3),this.scaleTween.play(),this.timer.once(1e3,this,()=>{this.alphaTween=Laya.TimeLine.to(this,{alpha:0},500),this.alphaTween.play()}),this.scaleTween.on(Laya.Event.COMPLETE,this,()=>{this.destroy()})}destroy(){this.removeSelf(),V.view.gameView.socreTxtArr=V.view.gameView.socreTxtArr.filter(e=>e.parent),this.scaleTween&&this.scaleTween.destroy(),this.alphaTween&&this.alphaTween.destroy(),this.scaleTween=null,this.alphaTween=null,this.timer.clearAll(this),this.recover()}recover(){Laya.Pool.recover("ScoreTxt",this)}static create(e,t,i,s){let a=Laya.Pool.getItemByClass("ScoreTxt",u);return a.x=e,a.y=t,a.alpha=1,a.scaleX=a.scaleY=0,a.value=s,1==i?(a.sheet="+0123456789",a.skin="res/imgs/game/num_1.png"):2==i?(a.sheet="+0123456789",a.skin="res/imgs/game/num_2.png"):3==i&&(a.sheet="-0123456789",a.skin="res/imgs/game/num_3.png"),a}}class v extends Laya.Animation{static createOnceAni(e,t,i,s,a,n,o,r=15,h=999,l){let g=Laya.Pool.getItemByClass("FuritAnimation",v);return g.autoPlay=!0,g.interval=r,g.source=n,g.pivotX=i,g.pivotY=s,g.scale(a,a),g.pos(e,t),g.zOrder=h,g.filters&&(g.filters=[]),g.on(Laya.Event.COMPLETE,this,()=>{Laya.Pool.recover("FuritAnimation",g.removeSelf()),l&&l.run()}),o.addChild(g),g}}class I{static rand(e,t){return Math.floor(Math.random()*(t-e+1)+e)}static bound(e,t,i){return Math.max(Math.min(e,i),t)}}class T extends Laya.Image{constructor(){super(),this.imgAlpha=1,this.width=470,this.height=416,this.skin="",this.anchorX=this.anchorY=.5,this.bgImg=new Laya.Image,this.bgImg.anchorX=this.bgImg.anchorY=.5,this.bgImg.centerX=this.bgImg.centerY=0,this.bgImg.skin="res/imgs/game/bg/attack_1.png",this.bgImg.zOrder=1,this.addChild(this.bgImg),this.iconImg=new Laya.Image,this.iconImg.anchorX=this.iconImg.anchorY=.5,this.iconImg.centerX=this.iconImg.centerY=0,this.iconImg.zOrder=2,this.addChild(this.iconImg)}onEnable(){this.sdAlphaTween=Laya.TimeLine.to(this,{alpha:this.imgAlpha},100),this.sdAlphaTween.play()}startMove(){let e=600-300*V.view.gameView.enemies[0].scaleX-10*V.view.gameView.addWallSpeedNum;this.sdMoveTween=Laya.TimeLine.to(this,{x:V.view.gameView.enemies[0].x-3*V.view.gameView.addWallSpeedNum,y:V.view.gameView.enemies[0].y+1*V.view.gameView.addWallSpeedNum},e),this.sdMoveTween.play(),this.sdScaleTween=Laya.TimeLine.to(this,{scaleX:V.view.gameView.enemies[0].scaleX+.01*V.view.gameView.addWallSpeedNum,scaleY:V.view.gameView.enemies[0].scaleY+.01*V.view.gameView.addWallSpeedNum},e),this.sdScaleTween.play(),Laya.timer.once(e-120*V.view.gameView.enemies[0].scaleX*(V.view.gameView.wallSpeed/V.model.wallSpeed),this,()=>{1==this.imgAlpha&&this.enemie&&!this.enemie.isDeath&&V.view.gameView.gestureResult(this.gestureType,this.enemie),this.destroy()})}creatAttackAni(){this.attackAni?(this.attackAni.alpha=0,this.attackAni.visible=!0,this.attackAni.play(0,!0),Laya.timer.once(250,this,()=>{this.aniAlphaTween=Laya.TimeLine.to(this.attackAni,{alpha:1},150),this.aniAlphaTween.play()})):(this.attackAni=new Laya.Animation,this.attackAni.loadAtlas("res/ani/zidan3.atlas",Laya.Handler.create(this,()=>{this.attackAni.interval=5,this.attackAni.source="res/ani/zidan3.atlas",this.attackAni.pivotX=400,this.attackAni.pivotY=102,this.attackAni.scale(3,3),this.attackAni.pos(230,210),this.attackAni.zOrder=0,this.addChild(this.attackAni),this.attackAni.play(0,!0),this.attackAni.alpha=0,Laya.timer.once(250,this,()=>{this.aniAlphaTween=Laya.TimeLine.to(this.attackAni,{alpha:1},150),this.aniAlphaTween.play()})})))}destroy(){this.visible=!1,this.sdMoveTween&&this.sdMoveTween.destroy(),this.sdScaleTween&&this.sdScaleTween.destroy(),this.sdAlphaTween&&this.sdAlphaTween.destroy(),this.aniAlphaTween&&this.aniAlphaTween.destroy(),this.sdMoveTween=null,this.sdScaleTween=null,this.sdAlphaTween=null,this.aniAlphaTween=null,this.attackAni&&(this.attackAni.visible=!1),Laya.Tween.clearAll(this),this.timer.clearAll(this),Laya.timer.once(300,this,()=>{this.removeSelf(),this.recover()})}recover(){Laya.Pool.recover("EnemieAttack",this)}static create(e,t,i,s=1,a=null,n=1){let o=Laya.Pool.getItemByClass("EnemieAttack",T);return o.x=e,o.y=t,o.scale(n,n),o.alpha=0,o.gestureType=i,o.imgAlpha=s,o.enemie=a,o.visible=!0,i==x.rock?o.iconImg.skin="res/imgs/game/bg/attack_st.png":i==x.scissors?o.iconImg.skin="res/imgs/game/bg/attack_jd.png":i==x.paper&&(o.iconImg.skin="res/imgs/game/bg/attack_bu.png"),1==s&&o.creatAttackAni(),o.startMove(),o}}class _ extends Laya.Image{constructor(){super(),this.isDeath=!1,this.width=1140,this.height=39,this.anchorX=this.anchorY=.5,this.skin="res/imgs/game/line.png"}onEnable(){}startMove(){this.moveTween=Laya.TimeLine.to(this,{x:V.view.gameView.lineEndPos.x,y:V.view.gameView.lineEndPos.y},Math.floor(1e3*V.view.gameView.wallSpeed),Laya.Ease.circIn),this.moveTween.play(),this.scaleTween=Laya.TimeLine.to(this,{scaleX:1.05,scaleY:1.05},Math.floor(1e3*V.view.gameView.wallSpeed),Laya.Ease.circIn),this.scaleTween.play(),this.moveTween.on(Laya.Event.COMPLETE,this,()=>{this.isDeath=!0,this.destroy()})}destroy(){this.removeSelf(),this.moveTween&&this.moveTween.destroy(),this.scaleTween&&this.scaleTween.destroy(),this.moveTween=null,this.scaleTween=null,Laya.Tween.clearAll(this),this.timer.clearAll(this),V.view.gameView.enemies=V.view.gameView.enemies.filter(e=>!e.isDeath),this.recover()}recover(){Laya.Pool.recover("LineImg",this)}static create(e,t){let i=Laya.Pool.getItemByClass("LineImg",_);return i.isDeath=!1,i.x=e,i.y=t,i.scale(.01,.01),i.startMove(),i}}class S extends e.ui.GameViewUI{constructor(){super(),this.curTime=0,this.isScoreHigh=!1,this.isPlayAni=!1,this.heartNum=0,this.powerNum=0,this.wallSpeed=0,this.addWallSpeedNum=0,this.wallAddSpeed=0,this.isProtect=!1,this.isUpdatePower=!1,this.creatCount=0,this.creatTime=0,this.creatLineTime=0,this.model=V.model}onAwake(){super.onAwake(),this.playerShadow=new Laya.Image("res/imgs/game/shadow.png"),this.playerShadow.pos(this.startPosImg.x-80,this.startPosImg.y-20),this.playerShadow.scale(3,3),this.playBox.addChild(this.playerShadow),this.powerImgArr=[];for(let e=4;e>=0;e--)this.powerImgArr.push(this[`power${e}`]);this.heartImgArr=[];for(let e=9;e>=0;e--)this.heartImgArr.push(this[`heart${e}`])}onEnable(){super.onEnable(),this.addEvent(),this.InitEffect(),document.addEventListener("visibilitychange",function(){!0===document.hidden&&V.view.gameView.showPauseView()})}InitEffect(){if(null==this._playerScene)Laya.Scene3D.load("res/3d/NV_model.ls",Laya.Handler.create(this,this.onCompelt));else{this.playerAniControl=this._playerScene.getChildByName("Nv_final").getComponent(Laya.Animator),this.playerCamera=this._playerScene.getChildByName("Main Camera"),this.playerAniControl.speed=0;let e=Laya.stage.width/Laya.stage.height;(e/=1.77)<1&&(this.playerCamera.fieldOfView=60-60*e+60),this.playBox.addChild(this._playerScene)}}onCompelt(e){this._playerScene=e,this._playerScene.zOrder=1e3,this.playerAniControl=this._playerScene.getChildByName("Nv_final").getComponent(Laya.Animator),this.playerCamera=this._playerScene.getChildByName("Main Camera"),this.playerAniControl.speed=0;let t=Laya.stage.width/Laya.stage.height;(t/=1.77)<1&&(this.playerCamera.fieldOfView=60-60*t+60),this.playBox.addChild(this._playerScene)}addEvent(){this.settingBtn.on(Laya.Event.CLICK,this,this.onClick),this.shitou.on(Laya.Event.CLICK,this,this.onClick),this.jiandao.on(Laya.Event.CLICK,this,this.onClick),this.bu.on(Laya.Event.CLICK,this,this.onClick)}removeEvent(){this.settingBtn.off(Laya.Event.CLICK,this,this.onClick),this.shitou.off(Laya.Event.CLICK,this,this.onClick),this.jiandao.off(Laya.Event.CLICK,this,this.onClick),this.bu.off(Laya.Event.CLICK,this,this.onClick)}addJumpEvent(){Laya.stage.on(Laya.Event.KEY_DOWN,this,this.onkeydown),Laya.stage.on(Laya.Event.KEY_UP,this,this.onKeyUp),m.on(l.MOTION_ROCK.toString(),this.playRock,this),m.on(l.MOTION_SCISSORS.toString(),this.playScissors,this),m.on(l.MOTION_PAPER.toString(),this.playPaper,this),m.on(h.CANCLE_KEY.toString(),this.showPauseView,this)}removeJumpEvent(){Laya.stage.off(Laya.Event.KEY_DOWN,this,this.onkeydown),Laya.stage.off(Laya.Event.KEY_UP,this,this.onKeyUp),m.off(l.MOTION_ROCK.toString(),this.playRock),m.off(l.MOTION_SCISSORS.toString(),this.playScissors),m.off(l.MOTION_PAPER.toString(),this.playPaper),m.off(h.CANCLE_KEY.toString(),this.showPauseView)}onClick(e){if(this.model.isPlaying)switch(e.currentTarget){case this.settingBtn:core.SoundManager.playSound(o.getSound("click")),this.showPauseView();break;case this.shitou:case this.jiandao:case this.bu:}}onkeydown(e){Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.LEFT)&&!this.keyDownList[e.keyCode]&&this.playRock(),Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.UP)&&!this.keyDownList[e.keyCode]&&this.playScissors(),Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.RIGHT)&&!this.keyDownList[e.keyCode]&&this.playPaper(),this.keyDownList[e.keyCode]=!0}onKeyUp(e){delete this.keyDownList[e.keyCode]}playRock(){!this.model.isPlaying&&!this.model.isStarGame||this.enemies[0]&&1!=this.enemies[0].alpha||this.isPlayAni||0==this.enemies.length||this.enemies[0].isDeath||(this.playerAniControl.speed=1.2,this.playAni("shitou",!1),this.creatAttackAni(x.rock))}playScissors(){!this.model.isPlaying&&!this.model.isStarGame||this.enemies[0]&&1!=this.enemies[0].alpha||this.isPlayAni||0==this.enemies.length||this.enemies[0].isDeath||(this.playerAniControl.speed=1.2,this.playAni("jiandao",!1),this.creatAttackAni(x.scissors))}playPaper(){!this.model.isPlaying&&!this.model.isStarGame||this.enemies[0]&&1!=this.enemies[0].alpha||this.isPlayAni||0==this.enemies.length||this.enemies[0].isDeath||(this.playerAniControl.speed=1.2,this.playAni("bu",!1),this.creatAttackAni(x.paper))}playDeath(){this.isProtect||(this.isProtect=!0,this.creatTime=0,m.vibrate(500),core.SoundManager.playSound(o.getSound(o.sound.hit)),this.updateHeart(V.view.gameView.heartNum-1),this.isPlayAni=!1,this.playerAniControl.speed=2,this.playAni("death01",!1))}playAni(e,t){e=e;var i=this.playerAniControl.getControllerLayer().getAnimatorState(e);i.clip.islooping=t;var s=i.getScript(Laya.AnimatorStateScript);null==s&&(s=i.addScript(Laya.AnimatorStateScript)),s.onStateExit=function(){V.view.gameView.playerAniControl.speed=1,V.view.gameView.playAni("daiji",!0),V.view.gameView.isProtect&&(V.view.gameView.isProtect=!1)},this.playerAniControl.play(e)}creatAttackAni(e){this.isPlayAni=!0,this.startPosAni.playbackRate(.8),this.startPosAni.visible=!0,this.startPosAni.play(0,!1),this.startPosAni.on(Laya.Event.STOPPED,this,()=>{this.startPosAni.visible=!1}),core.SoundManager.playSound(o.getSound(o.sound.attack));let t=this.enemies[0];for(let i=1;i<=3;i++)Laya.timer.once(100*i-1,this,()=>{if(!t||t.isDeath)return;let s;1==i?(v.createOnceAni(this.startPosImg.x+120,this.startPosImg.y-500,138,132,1.5,"res/ani/shoot.atlas",this.playBox,40),s=T.create(this.startPosImg.x+120,this.startPosImg.y-500,e,1,t)):s=T.create(this.startPosImg.x+120,this.startPosImg.y-500,e,1-.25*i,t),s.zOrder=998,V.view.gameView.playBox.addChild(s)},null,!1)}gestureResult(e,t){let i,s,a,n;if(this.model.gameType==f.simple?n=e==t.gestureType:this.model.gameType==f.normal?n=t.gestureType==x.scissors&&e==x.rock||t.gestureType==x.rock&&e==x.paper||t.gestureType==x.paper&&e==x.scissors:this.model.gameType==f.difficulty&&(t.wallType==w.blue?n=e==t.gestureType:t.wallType==w.red&&(n=t.gestureType==x.scissors&&e==x.rock||t.gestureType==x.rock&&e==x.paper||t.gestureType==x.paper&&e==x.scissors)),n?(core.SoundManager.playSound(o.getSound(o.sound.true)),t.isDeath=!0,a=2,s="+"+(i=this.model.gameType==f.simple?V.dataManager.constConfig.level1Score[0]:this.model.gameType==f.normal?V.dataManager.constConfig.level2Score[0]:V.dataManager.constConfig.level3Score[0]),this.curScore+=i,this.addSocre+=i,this.playDeathAni(t),v.createOnceAni(t.x,t.y,171,153,4.5*t.scaleX,"res/ani/hit.atlas",this.playBox,25,991),t.destroy()):(a=3,s="-"+(i=this.model.gameType==f.simple?V.dataManager.constConfig.level1Score[1]:this.model.gameType==f.normal?V.dataManager.constConfig.level2Score[1]:V.dataManager.constConfig.level3Score[1]),this.curScore-=i,this.subSocre+=i,core.SoundManager.playSound(o.getSound(o.sound.miss)),this.enemies[0].playError(),this.vibrateAni.play(0,!1)),m.vibrate(500),this.isPlayAni=!1,s){let e=u.create(1680,420,a,s);e.zOrder=1002,this.playBox.addChild(e),this.socreTxtArr.push(e)}this.updateScore()}playDeathAni(e){let t=v.createOnceAni(e.x,e.y,317,225,3.5*e.scaleX,"res/ani/po_blue2.atlas",this.playBox,40,990);e.wallType==w.red&&(t.filters=[(new Laya.ColorFilter).setColor("#e037b0")]),this.vibrateAni.play(0,!1)}showPauseView(){this.model.isPlaying&&(this.pauseGame(),V.view.pauseViewView.show())}animate(){(this.model.isPlaying||this.model.isStarGame)&&(this.curTime+=Laya.timer.delta,this.timeTxt.text=this.exchangeCDTime(this.curTime),this.updateEnemies(),this.updateLine())}updateHeart(e){e<0&&(e=0),this.heartNum=e;for(let e=0;e<this.heartImgArr.length;e++)this.heartNum>e?this.heartImgArr[e].visible=!0:this.heartImgArr[e].visible=!1;0!=this.heartNum||this.gameOver()}updatePower(e,t=!1){let i;e<0&&(e=0),e>V.dataManager.constConfig.power&&(e=V.dataManager.constConfig.power),t?(this.powerTxt.color="#00ffff",i="+"+e,this.powerNum+=e):(this.powerTxt.color="#ff0060",i="-"+e,this.powerNum-=e);for(let e=0;e<5;e++)this.powerNum>e?this.powerImgArr[e].skin="res/imgs/game/tili_jia.png":this.powerImgArr[e].skin="res/imgs/game/tili_jian.png";this.powerTxt.text=i,this.powerAni.play(0,!1)}updateScore(){this.scoreTxt.text=this.curScore+""}exchangeCDTime(e){let t=parseInt(e/1e3/60%60+""),i=parseInt(e/1e3%60+"");return t<10&&(t="0"+t),i<10&&(i="0"+i),e>this.wallAddSpeed+5e3&&this.wallSpeed>1.8&&(this.wallAddSpeed=e,this.wallSpeed<1.8&&(this.wallSpeed=1.8),this.wallSpeed-=.2,this.addWallSpeedNum++,log("墙加速",this.wallSpeed)),t+":"+i}updateEnemies(){if(!this.isProtect&&this.curTime>=this.creatTime){let e;this.curTime<18e4?this.creatTime=this.curTime+I.rand(1500,2500):this.creatTime=this.curTime+I.rand(1e3,1500);let t=Math.ceil(3*Math.random());this.model.gameType==f.simple?e=w.blue:this.model.gameType==f.normal?e=w.red:this.model.gameType==f.difficulty&&(e=Math.ceil(2*Math.random()));let i=k.create(this.createPos.x,this.createPos.y,e,t);this.creatCount++,i.zOrder=900-this.creatCount,i.alpha=0,this.enemies.push(i),this.playBox.addChild(i)}}updateLine(){if(this.curTime>=this.creatLineTime){this.creatLineTime=this.curTime+300;let e=_.create(this.lineStartPos.x,this.lineStartPos.y);this.lineImgArr.push(e),this.lineBox.addChild(e)}}startGame(){this.openAni.play(0,!1),this.model.isStarGame=!0,this.startOrOverBg.visible=!0,this.stepTxt.visible=!0;for(let e=0;e<=3;e++)Laya.timer.once(1e3*e,this,()=>{3-e==0?(this.startOrOverImg.skin="res/imgs/game/text_ready.png",core.SoundManager.playSound(o.getSound(o.sound.readyGo)),Laya.timer.once(600,this,()=>{this.startOrOverImg.skin="res/imgs/game/text_go.png",Laya.timer.once(800,this,()=>{this.goAni.play(0,!1),this.model.isPlaying=!0,this.starAni.play(0,!0),core.SoundManager.playMusic(o.getSound(o.sound.bgm)),this.playerAniControl.speed=1,this.startBg.visible=!1,this.settingBtn.visible=!0,Laya.timer.frameLoop(1,this,this.animate),m.onGameStart(),this.goAni.on(Laya.Event.COMPLETE,this,()=>{this.startOrOverBg.visible=!1})}),this.countAni.play(0,!1)},null,!1)):this.startOrOverImg.skin=`res/imgs/game/time${3-e}.png`,this.countAni.play(0,!1)},null,!1)}pauseGame(){core.SoundManager.stopMusic(),this.model.isPlaying=!1,Laya.timer.clear(this,this.animate),this.starAni.stop(),this.playerAniControl.speed=0;for(let e=0;e<this.enemies.length;e++)this.enemies[e].alphaTween&&this.enemies[e].alphaTween.pause(),this.enemies[e].moveTween&&this.enemies[e].moveTween.pause(),this.enemies[e].scaleTween&&this.enemies[e].scaleTween.pause();for(let e=0;e<this.lineImgArr.length;e++)this.lineImgArr[e].moveTween&&this.lineImgArr[e].moveTween.pause(),this.lineImgArr[e].scaleTween&&this.lineImgArr[e].scaleTween.pause();this.removeJumpEvent()}continueGame(){this.openAni.play(0,!1),this.startBg.visible=!0,this.startOrOverBg.visible=!0,this.stepTxt.visible=!1,this.startOrOverImg.skin="res/imgs/game/text_ready.png",core.SoundManager.playSound(o.getSound(o.sound.readyGo)),Laya.timer.once(600,this,()=>{this.startOrOverImg.skin="res/imgs/game/text_go.png",Laya.timer.once(800,this,()=>{core.SoundManager.recoverMusic1(),this.goAni.play(0,!1),this.playerAniControl.speed=1;for(let e=0;e<this.enemies.length;e++)this.enemies[e].alphaTween&&this.enemies[e].alphaTween.resume(),this.enemies[e].moveTween&&this.enemies[e].moveTween.resume(),this.enemies[e].scaleTween&&this.enemies[e].scaleTween.resume();for(let e=0;e<this.lineImgArr.length;e++)this.lineImgArr[e].moveTween&&this.lineImgArr[e].moveTween.resume(),this.lineImgArr[e].scaleTween&&this.lineImgArr[e].scaleTween.resume();this.model.isPlaying=!0,Laya.timer.frameLoop(1,this,this.animate),this.starAni.play(0,!0),this.addJumpEvent(),this.startBg.visible=!1,this.goAni.on(Laya.Event.COMPLETE,this,()=>{this.startOrOverBg.visible=!1})}),this.countAni.play(0,!1)},null,!1)}exitGame(){switch(this.model.gameType){case 1:this.curScore>this.model.level1HighScoreData.score&&(this.isScoreHigh=!0,this.model.setLevel1HighSocreData(this.curScore,this.curTime));break;case 2:this.curScore>this.model.level2HighScoreData.score&&(this.isScoreHigh=!0,this.model.setLevel2HighSocreData(this.curScore,this.curTime));break;case 3:this.curScore>this.model.level3HighScoreData.score&&(this.isScoreHigh=!0,this.model.setLevel3HighSocreData(this.curScore,this.curTime))}m.onGameEnd(this.model.gameType,this.curScore),V.view.homeView.show(),V.view.hideGameView()}gameOver(){this.pauseGame(),this.model.isPlaying=!1,this.model.isStarGame=!1,this.startBg.visible=!1,this.startBg.visible=!0,this.stepTxt.visible=!1,this.startOrOverBg.visible=!0,this.startOrOverImg.skin="res/imgs/game/text_jsyx.png",this.removeJumpEvent(),this.gameOverAni.play(0,!1);let e=0;switch(this.model.gameType){case 1:this.curScore>this.model.level1HighScoreData.score&&(this.isScoreHigh=!0,this.model.setLevel1HighSocreData(this.curScore,this.curTime)),e=this.model.level1HighScoreData.score;break;case 2:this.curScore>this.model.level2HighScoreData.score&&(this.isScoreHigh=!0,this.model.setLevel2HighSocreData(this.curScore,this.curTime)),e=this.model.level2HighScoreData.score;break;case 3:this.curScore>this.model.level3HighScoreData.score&&(this.isScoreHigh=!0,this.model.setLevel3HighSocreData(this.curScore,this.curTime)),e=this.model.level3HighScoreData.score}m.onGameEnd(this.model.gameType,this.curScore,0,0,0,e=>{this.gameOverData=e,this.event("onGameEnd",e)}),Laya.timer.once(1e3,this,()=>{this.startOrOverBg.visible=!1,V.view.resultView.show(this.curScore,this.addSocre,this.subSocre,e,this.isScoreHigh,this.timeTxt.text)})}onDisable(){super.onDisable(),this.removeEvent(),this.removeJumpEvent(),Laya.timer.clear(this,this.animate)}destroy(){super.destroy(),Laya.timer.clearAll(this),this._playerScene&&this._playerScene.parent&&this._playerScene.removeSelf(),this.enemies&&core.ObjectUtil.destroyList(...this.enemies),this.lineImgArr&&core.ObjectUtil.destroyList(...this.lineImgArr),this.socreTxtArr&&core.ObjectUtil.destroyList(...this.socreTxtArr),this.model=null,this.enemies=null}resetGame(){core.SoundManager.stopAllSound(),Laya.timer.clear(this,this.animate),this.enemies&&core.ObjectUtil.destroyList(...this.enemies),this.enemies=[],this.lineImgArr&&core.ObjectUtil.destroyList(...this.lineImgArr),this.lineImgArr=[],this.curScore=0,this.subSocre=0,this.addSocre=0,this.updateScore(),this.model.reset(),this.startBg.visible=!0,this.settingBtn.visible=!1,this.model.isPlaying=!1,this.model.isStarGame=!1,this.isScoreHigh=!1,this.curTime=0,this.timeTxt.text=this.exchangeCDTime(this.curTime),this.keyDownList=[],this.socreTxtArr=[],this.playerShadow.x=this.startPosImg.x-80,this.creatCount=0,this.creatTime=0,this.creatLineTime=0,this.isProtect=!1,this.wallAddSpeed=0,this.gameOverData=null,this.updateHeart(V.dataManager.constConfig.heart);for(let e=0;e<5;e++)this.powerImgArr[e].skin="res/imgs/game/tili_jia.png";switch(this.model.gameType){case 1:this.highScoreTxt.text=this.model.level1HighScoreData.score+"",this.model.wallSpeed=V.dataManager.constConfig.wallSpeed1,this.gametypeTxt.text="跟随";break;case 2:this.highScoreTxt.text=this.model.level2HighScoreData.score+"",this.model.wallSpeed=V.dataManager.constConfig.wallSpeed2,this.gametypeTxt.text="对抗";break;case 3:this.highScoreTxt.text=this.model.level3HighScoreData.score+"",this.model.wallSpeed=V.dataManager.constConfig.wallSpeed3,this.gametypeTxt.text="混合"}this.wallSpeed=this.model.wallSpeed,this.addWallSpeedNum=1,this.addJumpEvent(),this.playerAniControl&&V.view.gameView.playAni("daiji",!0),this.selfRank=0,m.getRank(0,e=>{for(let t=0;t<e[1].list.length;t++)if(e[1].list[t].user.id==this.model.selfInfo.id){this.selfRank=e[1].list[t].rank,log("自己当前排行",this.selfRank);break}})}show(e){this.model.gameType=e,Laya.stage.addChild(this)}}class b extends e.ui.HomeViewUI{constructor(){super(),this.index=1,this.exitIndex=1}onAwake(){super.onAwake()}onEnable(){super.onEnable(),this.addEvent(),this.index=1,this.setSkin(),this.openAni.play(0,!1),0==V.model.level1HighScoreData.score?(this.level1TimeTxt.fontSize=20,this.level1ScoreTxt.fontSize=20,this.level1TimeTxt.text="暂无记录",this.level1ScoreTxt.text="暂无记录"):(this.level1TimeTxt.text=this.exchangeCDTime(V.model.level1HighScoreData.time),this.level1ScoreTxt.text=V.model.level1HighScoreData.score.toString()),0==V.model.level2HighScoreData.score?(this.level2TimeTxt.fontSize=20,this.level2ScoreTxt.fontSize=20,this.level2TimeTxt.text="暂无记录",this.level2ScoreTxt.text="暂无记录"):(this.level2TimeTxt.text=this.exchangeCDTime(V.model.level2HighScoreData.time),this.level2ScoreTxt.text=V.model.level2HighScoreData.score.toString()),0==V.model.level3HighScoreData.score?(this.level3TimeTxt.fontSize=20,this.level3ScoreTxt.fontSize=20,this.level3TimeTxt.text="暂无记录",this.level3ScoreTxt.text="暂无记录"):(this.level3TimeTxt.text=this.exchangeCDTime(V.model.level3HighScoreData.time),this.level3ScoreTxt.text=V.model.level3HighScoreData.score.toString()),V.model.selfInfo.avatar&&(this.avatarImg.skin=V.model.selfInfo.avatar),this.nameTxt.text=V.model.selfInfo.nickname,core.SoundManager.playMusic(o.getSound(o.sound.bgm))}addEvent(){this.level1.on(Laya.Event.CLICK,this,this.onClick),this.level2.on(Laya.Event.CLICK,this,this.onClick),this.level3.on(Laya.Event.CLICK,this,this.onClick),this.rankBtn.on(Laya.Event.CLICK,this,this.onClick),this.settingBtn.on(Laya.Event.CLICK,this,this.onClick),this.homeBtn.on(Laya.Event.CLICK,this,this.onClick),Laya.stage.on(Laya.Event.KEY_DOWN,this,this.onkeydown),m.on(h.BACK_LEFT.toString(),this.KeyUp,this),m.on(h.BACK_RIGHT.toString(),this.KeyDown,this),m.on(h.CANCLE_KEY.toString(),this.showExitGameView,this),m.on(h.ENTER_KEY.toString(),this.KeyEnter,this)}removeEvent(){this.level1.off(Laya.Event.CLICK,this,this.onClick),this.level2.off(Laya.Event.CLICK,this,this.onClick),this.level3.off(Laya.Event.CLICK,this,this.onClick),this.rankBtn.off(Laya.Event.CLICK,this,this.onClick),this.settingBtn.off(Laya.Event.CLICK,this,this.onClick),this.homeBtn.off(Laya.Event.CLICK,this,this.onClick),Laya.stage.off(Laya.Event.KEY_DOWN,this,this.onkeydown),m.off(h.BACK_LEFT.toString(),this.KeyUp),m.off(h.BACK_RIGHT.toString(),this.KeyDown),m.off(h.CANCLE_KEY.toString(),this.showExitGameView),m.off(h.ENTER_KEY.toString(),this.KeyEnter)}KeyUp(){if(core.SoundManager.playSound(o.getSound("click")),this.exitBg.visible)1==this.exitIndex?(this.exitIndex=2,this.yesBtn.skin="res/imgs/game/btn_tyxz.png",this.yesTxtImg.skin="res/imgs/game/text_qd1.png",this.noBtn.skin="res/imgs/game/btn_tywxz.png",this.noTxtImg.skin="res/imgs/game/text_qx2.png"):(this.exitIndex=1,this.yesBtn.skin="res/imgs/game/btn_tywxz.png",this.yesTxtImg.skin="res/imgs/game/text_qd2.png",this.noBtn.skin="res/imgs/game/btn_tyxz.png",this.noTxtImg.skin="res/imgs/game/text_qx1.png");else{if(V.view.rankView.parent||V.view.settingView.parent||this.exitBg.visible)return;this.index>1?this.index--:this.index=3,this.setSkin()}}KeyDown(){if(core.SoundManager.playSound(o.getSound("click")),this.exitBg.visible)1==this.exitIndex?(this.exitIndex=2,this.yesBtn.skin="res/imgs/game/btn_tyxz.png",this.yesTxtImg.skin="res/imgs/game/text_qd1.png",this.noBtn.skin="res/imgs/game/btn_tywxz.png",this.noTxtImg.skin="res/imgs/game/text_qx2.png"):(this.exitIndex=1,this.yesBtn.skin="res/imgs/game/btn_tywxz.png",this.yesTxtImg.skin="res/imgs/game/text_qd2.png",this.noBtn.skin="res/imgs/game/btn_tyxz.png",this.noTxtImg.skin="res/imgs/game/text_qx1.png");else{if(V.view.rankView.parent||V.view.settingView.parent||this.exitBg.visible)return;this.index<3?this.index++:this.index=1,this.setSkin()}}KeyEnter(){if(core.SoundManager.playSound(o.getSound("click")),this.exitBtnBg.visible)1==this.exitIndex?this.hideExitGameView():m.onBackPressed();else{if(V.view.rankView.parent||V.view.settingView.parent||this.exitBg.visible)return;this.startGame(this.index)}}onkeydown(e){core.SoundManager.playSound(o.getSound("click")),Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.LEFT)&&this.KeyUp(),Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.RIGHT)&&this.KeyDown(),Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.ENTER)&&this.KeyEnter()}onClick(e){if(!(V.view.rankView.parent||V.view.settingView.parent||this.exitBg.visible))switch(core.SoundManager.playSound(o.getSound("click")),e.currentTarget){case this.level1:this.index=1,this.setSkin(),this.startGame(f.simple);break;case this.level2:this.index=2,this.setSkin(),this.startGame(f.normal);break;case this.level3:this.index=3,this.setSkin(),this.startGame(f.difficulty);break;case this.rankBtn:this.showRankView();break;case this.settingBtn:this.showSettingView();break;case this.homeBtn:this.showExitGameView()}}onExitBtn(e){switch(e.currentTarget){case this.noBtn:this.hideExitGameView();break;case this.yesBtn:m.onBackPressed()}}setSkin(){switch(this.index){case 1:this.level1Mask.visible=!1,this.level2Mask.visible=!0,this.level3Mask.visible=!0,this.level1Light.visible=!0,this.level2Light.visible=!1,this.level3Light.visible=!1,this.level1.scale(1.1,1.1),this.level2.scale(1,1),this.level3.scale(1,1);break;case 2:this.level1Mask.visible=!0,this.level2Mask.visible=!1,this.level3Mask.visible=!0,this.level1Light.visible=!1,this.level2Light.visible=!0,this.level3Light.visible=!1,this.level1.scale(1,1),this.level2.scale(1.1,1.1),this.level3.scale(1,1);break;case 3:this.level1Mask.visible=!0,this.level2Mask.visible=!0,this.level3Mask.visible=!1,this.level1Light.visible=!1,this.level2Light.visible=!1,this.level3Light.visible=!0,this.level1.scale(1,1),this.level2.scale(1,1),this.level3.scale(1.1,1.1)}}startGame(e){let t;switch(this.index){case 1:t=this.level1;break;case 2:t=this.level2;break;case 3:t=this.level3}Laya.Tween.to(t,{scaleX:1,scaleY:1},100,null,Laya.Handler.create(this,()=>{Laya.timer.once(300,this,()=>{V.view.gameView.show(e),V.view.hideHomeView(),0==V.model.guideData[e-1]?V.view.guideView.show(e):(V.view.gameView.resetGame(),V.view.gameView.startGame())})})),core.SoundManager.stopAll()}showRankView(){Laya.Tween.to(this.rankBtn,{scaleX:.95,scaleY:.95},100,null,Laya.Handler.create(this,()=>{Laya.timer.once(300,this,()=>{V.view.rankView.getRank(),V.view.rankView.show()})}))}showSettingView(){Laya.Tween.to(this.settingBtn,{scaleX:.95,scaleY:.95},100,null,Laya.Handler.create(this,()=>{Laya.timer.once(300,this,()=>{V.view.settingView.show()})}))}showExitGameView(){this.exitBg.visible=!0,this.exitBtnBg.visible=!0,this.noBtn.on(Laya.Event.CLICK,this,this.onExitBtn),this.yesBtn.on(Laya.Event.CLICK,this,this.onExitBtn)}hideExitGameView(){this.exitBg.visible=!1,this.exitBtnBg.visible=!1,this.noBtn.off(Laya.Event.CLICK,this,this.onExitBtn),this.yesBtn.on(Laya.Event.CLICK,this,this.onExitBtn)}exchangeCDTime(e){let t=parseInt(e/1e3/60%60+""),i=parseInt(e/1e3%60+"");return t<10&&(t="0"+t),i<10&&(i="0"+i),t+":"+i}onDisable(){super.onDisable(),this.removeEvent()}destroy(){super.destroy()}show(){Laya.stage.addChild(this)}}class L extends e.ui.RankViewUI{constructor(){super(),this.selfInfo={id:1,nickname:"nickname",gender:1,avatar:""},this.friendInfoList=[{user:{id:1,nickname:"nickname",gender:1,avatar:""},score:100,rank:1}],this.wordInfoList=[{user:{id:1,nickname:"nickname",gender:1,avatar:""},score:100,rank:1}],this.testInfo={index:1,id:1,name:"Self",gender:1,avatar:"",score:V.model.allHighScoreData,rank:100},this.rankType=1,this.wordInfoList=[],this.friendInfoList=[],this.rankList.vScrollBarSkin=""}getRank(){window.SDKBridge||(this.rankList.visible=!0,this.showWordRank()),m.getUserInfo(e=>{this.selfInfo=e,log("info",e),m.getRank(1,e=>{this.friendInfoList=e[1].list,log("获取好友排行榜信息",this.friendInfoList,e[1].list),m.getRank(0,e=>{this.wordInfoList=e[1].list,log("获取世界排行榜信息",this.wordInfoList,e[1].list),this.rankList.visible=!0,this.showWordRank()})})})}notRankInfo(){let e=[],t={index:1,id:1,name:"nickname",gender:1,avatar:"",score:V.model.allHighScoreData,rank:1};return e.push(t),this.testInfo=e[0],e}setSelfInfo(e){let t=this.testInfo.rank,i=V.model.allHighScoreData;switch(e){case 1:for(let e=0;e<this.wordInfoList.length;e++)this.wordInfoList[e].user.id==this.selfInfo.id&&(t=this.wordInfoList[e].rank,i=this.wordInfoList[e].score);break;case 2:for(let e=0;e<this.friendInfoList.length;e++)this.friendInfoList[e].user.id==this.selfInfo.id&&(t=this.friendInfoList[e].rank,i=this.friendInfoList[e].score)}if(t<100){if(t<=3)switch(t){case 1:this.winImg.skin="res/imgs/rank/icon_diyi.png";break;case 2:this.winImg.skin="res/imgs/rank/icon_dier.png";break;case 3:this.winImg.skin="res/imgs/rank/icon_disan.png"}this.winImg.visible=!0,this.loseImg.visible=!1,this.rankTxt.visible=!0,this.rankTxt.value=t.toString()}else this.winImg.visible=!1,this.loseImg.visible=!0,this.rankTxt.visible=!1;this.selfInfo.avatar&&(this.avatarImg.skin=this.selfInfo.avatar),this.nameTxt.text=this.selfInfo.nickname,this.scoreTxt.text=i.toString()}onEnable(){super.onEnable(),this.addEvent()}addEvent(){this.friendBtn.on(Laya.Event.CLICK,this,this.onClick),this.wordBtn.on(Laya.Event.CLICK,this,this.onClick),this.closeBtn.on(Laya.Event.CLICK,this,this.onClick),this.on(Laya.Event.CLICK,this,this.onClick)}removeEvent(){this.friendBtn.off(Laya.Event.CLICK,this,this.onClick),this.wordBtn.off(Laya.Event.CLICK,this,this.onClick),this.closeBtn.off(Laya.Event.CLICK,this,this.onClick),this.closeBtn.off(Laya.Event.CLICK,this,this.onClick),this.off(Laya.Event.CLICK,this,this.onClick)}onClick(e){switch(core.SoundManager.playSound(o.getSound("click")),e.currentTarget){case this.friendBtn:this.showFriendRank();break;case this.wordBtn:this.showWordRank();break;case this.closeBtn:V.view.hideRankView()}}showFriendRank(){1!=this.rankType&&(this.rankType=1,this.friendBg.visible=!0,this.wordBg.visible=!1,this.friendInfoList.length>0?(this.rankList.array=this.getFriendRankList(),this.setSelfInfo(2)):(this.rankList.array=[],this.setSelfInfo(3)),this.rankList.refresh(),this.openAni.play(0,!1))}showWordRank(){2!=this.rankType&&(this.rankType=2,this.friendBg.visible=!1,this.wordBg.visible=!0,this.wordInfoList.length>0?(this.rankList.array=this.getWordRankList(),this.setSelfInfo(1)):(this.rankList.array=[],this.setSelfInfo(3)),this.rankList.refresh(),this.openAni.play(0,!1))}getFriendRankList(){let e=[];for(let t=0;t<this.friendInfoList.length&&100!=t;t++)e.push({index:t,name:this.friendInfoList[t].user.nickname,gender:this.friendInfoList[t].user.gender,avatar:this.friendInfoList[t].user.avatar,score:this.friendInfoList[t].score,rank:this.friendInfoList[t].rank});return e}getWordRankList(){let e=[];for(let t=0;t<this.wordInfoList.length&&100!=t;t++)e.push({index:t,name:this.wordInfoList[t].user.nickname,gender:this.wordInfoList[t].user.gender,avatar:this.wordInfoList[t].user.avatar,score:this.wordInfoList[t].score,rank:this.wordInfoList[t].rank});return e}onDisable(){super.onDisable(),this.removeEvent()}destroy(){super.destroy()}show(){Laya.stage.addChild(this)}}class M extends e.ui.ResultViewUI{constructor(){super(),this.index=1,this.rankIndex=0}onAwake(){super.onAwake()}onEnable(){super.onEnable(),this.addEvent(),this.index=1,this.setSkin()}setRank(){V.view.gameView.gameOverData?(this.caloriesTxt.text=`${V.view.gameView.gameOverData.consume}`,this.stepTxt.text=`${V.view.gameView.gameOverData.equivalent}`):(this.caloriesTxt.text="等待结算中",this.stepTxt.text="等待结算中",log("等待结算中"),V.view.gameView.once("onGameEnd",this,this.updateInfo)),window.SDKBridge||(this.noRank1.visible=!0,this.pmFontClip1.visible=!1,V.model.selfInfo.avatar&&(this.avatarImg1.skin=V.model.selfInfo.avatar),this.nameTxt1.text=V.model.selfInfo.nickname,this.nameTxt1.color="#ffd905",this.rankScore1.text=this.scoreTxt.text+"分",this.rankScore1.color="#ffd905",this.rank1.visible=!0),m.getRank(0,e=>{this.wordRankInfo=e[1].list,log("世界排行榜",this.wordRankInfo);for(let e=0;e<this.wordRankInfo.length;e++)if(this.wordRankInfo[e].user.id==V.model.selfInfo.id){this.selfInfo=this.wordRankInfo[e],log("自己的信息",this.selfInfo);break}this.selfInfo?(1==this.wordRankInfo.length?(this.pmFontClip1.value=`${this.selfInfo.rank}`,this.pmFontClip1.skin="res/imgs/result/text_pm_num.png",V.model.selfInfo.avatar&&(this.avatarImg1.skin=V.model.selfInfo.avatar),this.nameTxt1.text=V.model.selfInfo.nickname,this.nameTxt1.color="#ffd905",this.nameTxt1.fontSize=38,this.rankScore1.text=`${this.selfInfo.score}分`,this.rankScore1.color="#ffd905",this.rankScore1.fontSize=45,this.rank1.visible=!0,this.rankIndex=1):2==this.wordRankInfo.length?(1==this.selfInfo.rank?(this.pmFontClip2.value=`${this.wordRankInfo[1].rank}`,this.wordRankInfo[1].user.avatar&&(this.avatarImg2.skin=this.wordRankInfo[1].user.avatar),this.nameTxt2.text=this.wordRankInfo[1].user.nickname,this.rankScore2.text=`${this.wordRankInfo[1].score}分`,this.pmFontClip1.value=this.selfInfo.rank,this.pmFontClip1.skin="res/imgs/result/text_pm_num.png",V.model.selfInfo.avatar&&(this.avatarImg1.skin=V.model.selfInfo.avatar),this.nameTxt1.text=V.model.selfInfo.nickname,this.nameTxt1.color="#ffd905",this.nameTxt1.fontSize=38,this.rankScore1.text=`${this.selfInfo.score}分`,this.rankScore1.color="#ffd905",this.rankScore1.fontSize=45,this.rankIndex=1):(this.pmFontClip1.value=`${this.wordRankInfo[0].rank}`,this.wordRankInfo[0].user.avatar&&(this.avatarImg1.skin=this.wordRankInfo[0].user.avatar),this.nameTxt1.text=this.wordRankInfo[0].user.nickname,this.rankScore1.text=`${this.wordRankInfo[0].score}分`,this.pmFontClip2.value=this.selfInfo.rank,this.pmFontClip2.skin="res/imgs/result/text_pm_num.png",V.model.selfInfo.avatar&&(this.avatarImg2.skin=V.model.selfInfo.avatar),this.nameTxt2.text=V.model.selfInfo.nickname,this.nameTxt2.color="#ffd905",this.nameTxt2.fontSize=38,this.rankScore2.text=`${this.selfInfo.score}分`,this.rankScore2.color="#ffd905",this.rankScore2.fontSize=45,this.rankIndex=2),this.rank1.visible=!0,this.rank2.visible=!0):this.wordRankInfo.length>=3&&(1==this.selfInfo.rank?(this.pmFontClip2.value=`${this.wordRankInfo[1].rank}`,this.wordRankInfo[1].user.avatar&&(this.avatarImg2.skin=this.wordRankInfo[1].user.avatar),this.nameTxt2.text=this.wordRankInfo[1].user.nickname,this.rankScore2.text=`${this.wordRankInfo[1].score}分`,this.pmFontClip3.value=`${this.wordRankInfo[2].rank}`,this.wordRankInfo[2].user.avatar&&(this.avatarImg3.skin=this.wordRankInfo[2].user.avatar),this.nameTxt3.text=this.wordRankInfo[2].user.nickname,this.rankScore3.text=`${this.wordRankInfo[2].score}分`,this.pmFontClip1.value=this.selfInfo.rank,this.pmFontClip1.skin="res/imgs/result/text_pm_num.png",V.model.selfInfo.avatar&&(this.avatarImg1.skin=V.model.selfInfo.avatar),this.nameTxt1.text=V.model.selfInfo.nickname,this.nameTxt1.color="#ffd905",this.nameTxt1.fontSize=38,this.rankScore1.text=`${this.selfInfo.score}分`,this.rankScore1.color="#ffd905",this.rankScore1.fontSize=45,this.rankIndex=1):this.selfInfo.rank==this.wordRankInfo.length?(this.pmFontClip1.value=`${this.wordRankInfo[this.selfInfo.rank-1-2].rank}`,this.wordRankInfo[this.selfInfo.rank-1-2].user.avatar&&(this.avatarImg1.skin=this.wordRankInfo[this.selfInfo.rank-1-2].user.avatar),this.nameTxt1.text=this.wordRankInfo[this.selfInfo.rank-1-2].user.nickname,this.rankScore1.text=`${this.wordRankInfo[this.selfInfo.rank-1-2].score}分`,this.pmFontClip3.value=this.selfInfo.rank,this.pmFontClip3.skin="res/imgs/result/text_pm_num.png",V.model.selfInfo.avatar&&(this.avatarImg3.skin=V.model.selfInfo.avatar),this.nameTxt3.text=V.model.selfInfo.nickname,this.nameTxt3.color="#ffd905",this.nameTxt3.fontSize=38,this.rankScore3.text=`${this.selfInfo.score}分`,this.rankScore3.color="#ffd905",this.rankScore3.fontSize=45,this.pmFontClip2.value=`${this.wordRankInfo[this.selfInfo.rank-1-1].rank}`,this.wordRankInfo[this.selfInfo.rank-1-1].user.avatar&&(this.avatarImg2.skin=this.wordRankInfo[this.selfInfo.rank-1-1].user.avatar),this.nameTxt2.text=this.wordRankInfo[this.selfInfo.rank-1-1].user.nickname,this.rankScore2.text=`${this.wordRankInfo[this.selfInfo.rank-1-1].score}分`,this.rankIndex=3):(this.pmFontClip1.value=`${this.wordRankInfo[this.selfInfo.rank-1-1].rank}`,this.wordRankInfo[this.selfInfo.rank-1-1].user.avatar&&(this.avatarImg1.skin=this.wordRankInfo[this.selfInfo.rank-1-1].user.avatar),this.nameTxt1.text=this.wordRankInfo[this.selfInfo.rank-1-1].user.nickname,this.rankScore1.text=`${this.wordRankInfo[this.selfInfo.rank-1-1].score}分`,this.pmFontClip2.value=this.selfInfo.rank,this.pmFontClip2.skin="res/imgs/result/text_pm_num.png",V.model.selfInfo.avatar&&(this.avatarImg2.skin=V.model.selfInfo.avatar),this.nameTxt2.text=V.model.selfInfo.nickname,this.nameTxt2.color="#ffd905",this.nameTxt2.fontSize=38,this.rankScore2.text=`${this.selfInfo.score}分`,this.rankScore2.color="#ffd905",this.rankScore2.fontSize=45,this.pmFontClip3.value=`${this.wordRankInfo[this.selfInfo.rank-1+1].rank}`,this.wordRankInfo[this.selfInfo.rank-1+1].user.avatar&&(this.avatarImg3.skin=this.wordRankInfo[this.selfInfo.rank-1+1].user.avatar),this.nameTxt3.text=this.wordRankInfo[this.selfInfo.rank-1+1].user.nickname,this.rankScore3.text=`${this.wordRankInfo[this.selfInfo.rank-1+1].score}分`,this.rankIndex=2),this.rank1.visible=!0,this.rank2.visible=!0,this.rank3.visible=!0),this.selfInfo.rank==V.view.gameView.selfRank?1==this.rankIndex?(this.pmImg1.visible=!0,this.pmImg1.skin="res/imgs/result/icon_pmwsb.png"):2==this.rankIndex?(this.pmImg2.visible=!0,this.pmImg2.skin="res/imgs/result/icon_pmwsb.png"):3==this.rankIndex&&(this.pmImg3.visible=!0,this.pmImg3.skin="res/imgs/result/icon_pmwsb.png"):this.selfInfo.rank<V.view.gameView.selfRank?1==this.rankIndex?(this.pmImg1.visible=!0,this.pmImg1.skin="res/imgs/result/icon_pmss.png"):2==this.rankIndex?(this.pmImg2.visible=!0,this.pmImg2.skin="res/imgs/result/icon_pmss.png"):3==this.rankIndex&&(this.pmImg3.visible=!0,this.pmImg3.skin="res/imgs/result/icon_pmss.png"):1==this.rankIndex?(this.pmImg1.visible=!0,this.pmImg1.skin="res/imgs/result/icon_pmxj.png"):2==this.rankIndex?(this.pmImg2.visible=!0,this.pmImg2.skin="res/imgs/result/icon_pmxj.png"):3==this.rankIndex&&(this.pmImg3.visible=!0,this.pmImg3.skin="res/imgs/result/icon_pmxj.png")):0==this.wordRankInfo.length?(this.noRank1.visible=!0,this.pmFontClip1.visible=!1,V.model.selfInfo.avatar&&(this.avatarImg1.skin=V.model.selfInfo.avatar),this.nameTxt1.text=V.model.selfInfo.nickname,this.nameTxt1.color="#ffd905",this.nameTxt1.fontSize=38,this.rankScore1.text=this.scoreTxt.text+"分",this.rankScore1.color="#ffd905",this.rankScore1.fontSize=45,this.rank1.visible=!0,this.rankIndex=1):1==this.wordRankInfo.length?(this.pmFontClip1.value=`${this.wordRankInfo[0].rank}`,this.wordRankInfo[0].user.avatar&&(this.avatarImg1.skin=this.wordRankInfo[0].user.avatar),this.nameTxt1.text=this.wordRankInfo[0].user.nickname,this.rankScore1.text=`${this.wordRankInfo[0].score}分`,this.noRank2.visible=!0,this.pmFontClip2.visible=!1,V.model.selfInfo.avatar&&(this.avatarImg2.skin=V.model.selfInfo.avatar),this.nameTxt2.text=V.model.selfInfo.nickname,this.nameTxt2.color="#ffd905",this.nameTxt2.fontSize=38,this.rankScore2.text=this.scoreTxt.text+"分",this.rankScore2.color="#ffd905",this.rankScore2.fontSize=45,this.rank1.visible=!0,this.rank2.visible=!0,this.rankIndex=2):this.wordRankInfo.length>=2&&(this.pmFontClip1.value=`${this.wordRankInfo[0].rank}`,this.wordRankInfo[0].user.avatar&&(this.avatarImg1.skin=this.wordRankInfo[0].user.avatar),this.nameTxt1.text=this.wordRankInfo[0].user.nickname,this.rankScore1.text=`${this.wordRankInfo[0].score}分`,this.pmFontClip2.value=`${this.wordRankInfo[1].rank}`,this.wordRankInfo[1].user.avatar&&(this.avatarImg2.skin=this.wordRankInfo[0].user.avatar),this.nameTxt2.text=this.wordRankInfo[1].user.nickname,this.rankScore2.text=`${this.wordRankInfo[1].score}分`,this.noRank3.visible=!0,this.pmFontClip3.visible=!1,V.model.selfInfo.avatar&&(this.avatarImg3.skin=V.model.selfInfo.avatar),this.nameTxt3.text=V.model.selfInfo.nickname,this.nameTxt3.color="#ffd905",this.nameTxt3.fontSize=38,this.rankScore3.text=this.scoreTxt.text+"分",this.rankScore3.color="#ffd905",this.rankScore3.fontSize=45,this.rankIndex=3,this.rank1.visible=!0,this.rank2.visible=!0,this.rank3.visible=!0)})}addEvent(){this.homeBtn.on(Laya.Event.CLICK,this,this.onClick),this.resetBtn.on(Laya.Event.CLICK,this,this.onClick),Laya.stage.on(Laya.Event.KEY_DOWN,this,this.onkeydown),m.on(h.BACK_LEFT.toString(),this.KeyUp,this),m.on(h.BACK_RIGHT.toString(),this.KeyDown,this),m.on(h.ENTER_KEY.toString(),this.KeyEnter,this)}removeEvent(){this.homeBtn.off(Laya.Event.CLICK,this,this.onClick),this.resetBtn.off(Laya.Event.CLICK,this,this.onClick),Laya.stage.off(Laya.Event.KEY_DOWN,this,this.onkeydown),m.off(h.BACK_LEFT.toString(),this.KeyUp),m.off(h.BACK_RIGHT.toString(),this.KeyDown),m.off(h.ENTER_KEY.toString(),this.KeyEnter)}KeyUp(){core.SoundManager.playSound(o.getSound("click")),this.index>1?this.index--:this.index=2,this.setSkin()}KeyDown(){core.SoundManager.playSound(o.getSound("click")),this.index<2?this.index++:this.index=1,this.setSkin()}KeyEnter(){switch(core.SoundManager.playSound(o.getSound("click")),this.index){case 1:this.index=1,this.setSkin(),V.view.homeView.show(),V.view.hideGameView(),V.view.hideResultView();break;case 2:this.index=2,this.setSkin(),core.SoundManager.stopMusic(),V.view.gameView.resetGame(),V.view.gameView.startGame()}V.view.hideResultView()}onClick(e){switch(core.SoundManager.playSound(o.getSound("click")),e.currentTarget){case this.homeBtn:V.view.homeView.show(),V.view.hideGameView();break;case this.resetBtn:core.SoundManager.stopMusic(),V.view.gameView.resetGame(),V.view.gameView.startGame()}V.view.hideResultView()}onkeydown(e){Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.LEFT)&&this.KeyUp(),Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.RIGHT)&&this.KeyDown(),Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.ENTER)&&this.KeyEnter()}setSkin(){switch(this.index){case 1:this.homeBtn.skin="res/imgs/game/btom_bright.png",this.homeImg.skin="res/imgs/result/text_an_fhb.png",this.resetBtn.skin="res/imgs/game/btom_dark.png",this.resetImg.skin="res/imgs/result/text_an_zld.png";break;case 2:this.homeBtn.skin="res/imgs/game/btom_dark.png",this.homeImg.skin="res/imgs/result/text_an_fhd.png",this.resetBtn.skin="res/imgs/game/btom_bright.png",this.resetImg.skin="res/imgs/result/text_an_zlb.png"}}updateInfo(e){log("onGameEnd",e),this.caloriesTxt.text=`${e.consume}`,this.stepTxt.text=`${e.equivalent}`}onDisable(){super.onDisable(),this.removeEvent()}destroy(){super.destroy()}show(e,t,i,s,a=!1,n){this.setRank(),this.scoreTxt.text=e.toString(),this.addScoreTxt.text=`+${t}`,this.subScoreTxt.text=`-${i}`,this.timeTxt.text=n,Laya.stage.addChild(this)}}class C extends e.ui.PauseViewUI{constructor(){super(),this.index=1}onAwake(){super.onAwake()}onEnable(){super.onEnable(),this.addEvent(),this.index=1,this.setSkin()}addEvent(){this.continueBtn.on(Laya.Event.CLICK,this,this.onClick),this.resetBtn.on(Laya.Event.CLICK,this,this.onClick),this.exitBtn.on(Laya.Event.CLICK,this,this.onClick),Laya.stage.on(Laya.Event.KEY_DOWN,this,this.onkeydown),m.on(h.BACK_LEFT.toString(),this.KeyUp,this),m.on(h.BACK_RIGHT.toString(),this.KeyDown,this),m.on(h.ENTER_KEY.toString(),this.KeyEnter,this)}removeEvent(){this.continueBtn.off(Laya.Event.CLICK,this,this.onClick),this.resetBtn.off(Laya.Event.CLICK,this,this.onClick),this.exitBtn.off(Laya.Event.CLICK,this,this.onClick),Laya.stage.off(Laya.Event.KEY_DOWN,this,this.onkeydown),m.off(h.BACK_LEFT.toString(),this.KeyUp),m.off(h.BACK_RIGHT.toString(),this.KeyDown),m.off(h.ENTER_KEY.toString(),this.KeyEnter)}KeyUp(){core.SoundManager.playSound(o.getSound("click")),this.index>1?this.index--:this.index=3,this.setSkin()}KeyDown(){core.SoundManager.playSound(o.getSound("click")),this.index<3?this.index++:this.index=1,this.setSkin()}KeyEnter(){switch(core.SoundManager.playSound(o.getSound("click")),this.index){case 1:V.view.gameView.continueGame();break;case 2:core.SoundManager.stopMusic(),V.view.gameView.resetGame(),V.view.gameView.startGame();break;case 3:V.view.gameView.exitGame()}V.view.hidePauseViewView()}onClick(e){switch(core.SoundManager.playSound(o.getSound("click")),e.currentTarget){case this.continueBtn:this.index=1,this.setSkin(),V.view.gameView.continueGame();break;case this.resetBtn:this.index=2,this.setSkin(),core.SoundManager.stopMusic(),V.view.gameView.resetGame(),V.view.gameView.startGame();break;case this.exitBtn:this.index=3,this.setSkin(),V.view.gameView.exitGame()}V.view.hidePauseViewView()}onkeydown(e){Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.UP)&&this.KeyUp(),Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.DOWN)&&this.KeyDown(),Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.ENTER)&&this.KeyEnter()}setSkin(){switch(this.index){case 1:this.continueBtn.skin="res/imgs/game/btom_bright.png",this.continueImg.skin="res/imgs/game/text_jxb.png",this.resetBtn.skin="res/imgs/game/btom_dark.png",this.resetImg.skin="res/imgs/game/text_ckd.png",this.exitBtn.skin="res/imgs/game/btom_dark.png",this.exitImg.skin="res/imgs/game/text_fhd.png";break;case 2:this.continueBtn.skin="res/imgs/game/btom_dark.png",this.continueImg.skin="res/imgs/game/text_jxd.png",this.resetBtn.skin="res/imgs/game/btom_bright.png",this.resetImg.skin="res/imgs/game/text_ckb.png",this.exitBtn.skin="res/imgs/game/btom_dark.png",this.exitImg.skin="res/imgs/game/text_fhd.png";break;case 3:this.continueBtn.skin="res/imgs/game/btom_dark.png",this.continueImg.skin="res/imgs/game/text_jxd.png",this.resetBtn.skin="res/imgs/game/btom_dark.png",this.resetImg.skin="res/imgs/game/text_ckd.png",this.exitBtn.skin="res/imgs/game/btom_bright.png",this.exitImg.skin="res/imgs/game/text_fhb.png"}}onDisable(){super.onDisable(),this.removeEvent()}destroy(){super.destroy()}show(){Laya.stage.addChild(this)}}class E extends e.ui.SettingViewUI{constructor(){super()}onAwake(){super.onAwake()}onEnable(){super.onEnable(),this.addEvent(),this.btnMusic.x=366*core.SoundManager.musicVolume,this.btnSound.x=366*core.SoundManager.soundVolume,this.musicBarMask.x=core.SoundManager.musicVolume*this.musicBar.width-this.musicBar.width,this.soundBarMask.x=core.SoundManager.soundVolume*this.soundBar.width-this.soundBar.width,this.musicTxt.text=Math.ceil(100*core.SoundManager.musicVolume)+"%",this.soundTxt.text=Math.ceil(100*core.SoundManager.soundVolume)+"%"}addEvent(){this.btnMusic.on(Laya.Event.MOUSE_DOWN,this,this.musicMouseDown),this.btnSound.on(Laya.Event.MOUSE_DOWN,this,this.soundMouseDown),this.closeBtn.on(Laya.Event.CLICK,this,this.onClick)}removeEvent(){this.btnMusic.off(Laya.Event.MOUSE_DOWN,this,this.musicMouseDown),this.btnSound.off(Laya.Event.MOUSE_DOWN,this,this.soundMouseDown),this.btnSound.off(Laya.Event.CLICK,this,this.onClick),this.closeBtn.off(Laya.Event.CLICK,this,this.onClick),Laya.stage.off(Laya.Event.MOUSE_UP,this,this.mouseUp),Laya.stage.off(Laya.Event.MOUSE_MOVE,this,this.musicMousMove),Laya.stage.off(Laya.Event.MOUSE_MOVE,this,this.soundMousMove)}musicMouseDown(){Laya.stage.on(Laya.Event.MOUSE_MOVE,this,this.musicMousMove),Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp)}musicMousMove(e){this.btnMusic.x=e.stageX-this.soundBar.x-this.bg.x,this.btnMusic.x<=0&&(this.btnMusic.x=0),this.btnMusic.x>=366&&(this.btnMusic.x=366),this.musicBarMask.x=this.btnMusic.x/366*this.musicBar.width-this.musicBar.width,core.SoundManager.setMusicVolume(this.btnMusic.x/366),this.musicTxt.text=Math.ceil(100*core.SoundManager.musicVolume)+"%"}soundMouseDown(){Laya.stage.on(Laya.Event.MOUSE_MOVE,this,this.soundMousMove),Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp)}soundMousMove(e){this.btnSound.x=e.stageX-this.soundBar.x-this.bg.x,this.btnSound.x<=0&&(this.btnSound.x=0),this.btnSound.x>=366&&(this.btnSound.x=366),this.soundBarMask.x=this.btnSound.x/366*this.soundBar.width-this.soundBar.width,core.SoundManager.setSoundVolume(this.btnSound.x/366),this.soundTxt.text=Math.ceil(100*core.SoundManager.soundVolume)+"%"}mouseUp(){Laya.stage.off(Laya.Event.MOUSE_UP,this,this.mouseUp),Laya.stage.off(Laya.Event.MOUSE_MOVE,this,this.musicMousMove),Laya.stage.off(Laya.Event.MOUSE_MOVE,this,this.soundMousMove)}onClick(e){switch(core.SoundManager.playSound(o.getSound("click")),e.currentTarget){case this.closeBtn:V.view.hideSettingView()}}onDisable(){super.onDisable(),this.removeEvent(),this.destroy()}destroy(){super.destroy()}show(){Laya.stage.addChild(this)}}class N extends e.ui.GuideViewUI{constructor(){super(),this.gameType=0}onAwake(){super.onAwake()}onEnable(){super.onEnable(),1==this.gameType?this.modelBox1.visible=!0:2==this.gameType?this.modelBox2.visible=!0:3==this.gameType&&(this.modelBox3.visible=!0),this.skipTime.text="3",Laya.timer.once(1e3,this,()=>{this.skipTime.text="2",Laya.timer.once(1e3,this,()=>{this.skipTime.text="1",Laya.timer.once(1e3,this,()=>{this.skipTime.visible=!1,this.skipTxt.visible=!0,Laya.timer.clearAll(this),this.ani1.play(0,!0),this.addEvent()},null,!1)},null,!1)},null,!1)}addEvent(){this.on(Laya.Event.CLICK,this,this.onClick),m.on(h.ENTER_KEY.toString(),this.setGuide,this),m.on(h.BACK_LEFT.toString(),this.setGuide,this),m.on(h.BACK_RIGHT.toString(),this.setGuide,this),m.on(h.CANCLE_KEY.toString(),this.setGuide,this),m.on(l.MOTION_ROCK.toString(),this.setGuide,this),m.on(l.MOTION_SCISSORS.toString(),this.setGuide,this),m.on(l.MOTION_PAPER.toString(),this.setGuide,this)}removeEvent(){this.off(Laya.Event.CLICK,this,this.onClick),m.off(h.ENTER_KEY.toString(),this.setGuide),m.off(h.BACK_LEFT.toString(),this.setGuide),m.off(h.BACK_RIGHT.toString(),this.setGuide),m.off(h.CANCLE_KEY.toString(),this.setGuide),m.off(l.MOTION_ROCK.toString(),this.setGuide),m.off(l.MOTION_SCISSORS.toString(),this.setGuide),m.off(l.MOTION_PAPER.toString(),this.setGuide)}onClick(e){switch(e.currentTarget){case this:this.setGuide()}}setGuide(){this.ani1.stop(),V.model.guideData[this.gameType-1]=1,V.model.saveGuideData(),V.view.gameView.resetGame(),V.view.gameView.startGame(),V.view.hideGuideView()}onDisable(){super.onDisable(),this.removeEvent(),this.destroy()}destroy(){super.destroy()}show(e){this.gameType=e,Laya.stage.addChild(this)}}class O{get homeView(){return this._homeView||(this._homeView=new b),this._homeView}hideHomeView(){this._homeView&&this._homeView.destroy(),this._homeView=null}get gameView(){return this._gameView||(this._gameView=new S),this._gameView}hideGameView(){this._gameView&&this._gameView.destroy(),this._gameView=null}get pauseViewView(){return this._pauseViewView||(this._pauseViewView=new C),this._pauseViewView}hidePauseViewView(){this._pauseViewView&&this._pauseViewView.destroy(),this._pauseViewView=null}get resultView(){return this._resultView||(this._resultView=new M),this._resultView}hideResultView(){this._resultView&&this._resultView.destroy(),this._resultView=null}get rankView(){return this._rankView||(this._rankView=new L),this._rankView}hideRankView(){this._rankView&&this._rankView.destroy(),this._rankView=null}get settingView(){return this._settingView||(this._settingView=new E),this._settingView}hideSettingView(){this._settingView&&this._settingView.destroy(),this._settingView=null}get guideView(){return this._gudieView||(this._gudieView=new N),this._gudieView}hideGuideView(){this._gudieView&&this._gudieView.destroy(),this._gudieView=null}}class V{static init(){this.view=new O,this.model=new c,this.dataManager=new y,this.initFont()}static initFont(){let e=o.fonts;for(let t=0,i=e.length;t<i;t++){let i=e[t];core.FontUtil.registerFont(i.name,i.fntURL,i.pngURL)}}}new class{constructor(){window.Laya3D?Laya3D.init(n.width,n.height):Laya.init(n.width,n.height,Laya.WebGL),Laya.Physics&&Laya.Physics.enable(),Laya.DebugPanel&&Laya.DebugPanel.enable(),Laya.stage.scaleMode=n.scaleMode,Laya.stage.screenMode=n.screenMode,Laya.stage.alignV=n.alignV,Laya.stage.alignH=n.alignH,Laya.URL.exportSceneToJson=n.exportSceneToJson,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(){this.preload()}preload(){d.instance.preLoad(Laya.Handler.create(this,()=>{var e=document.getElementById("engineLoading");e&&e.parentNode.removeChild(e),d.instance.show(),Laya.loader.load(o.preLoadUrls,Laya.Handler.create(this,this.loadComplete),Laya.Handler.create(this,this.onLoading,null,!1),null,1,!0,"preload")}))}onLoading(e,t=!1){d.instance.setProgress(e,t)}loadComplete(){V.init(),V.model.init();var e=document.getElementById("engineLoading");e&&e.parentNode.removeChild(e)}startGame(){V.view.homeView.show(),d.instance.hide()}},log=function(e,...t){}}();