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",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:{visible:!1,var:"settingBtn",top:0,skin:"res/imgs/game/new_back_black.png",right:0,left:0,height:75,anchorY:.5,anchorX:.5,sizeGrid:"5,5,5,5"},compId:22,child:[{type:"Box",props:{y:7,centerX:0},compId:267,child:[{type:"Sprite",props:{texture:"res/imgs/game/icon_left1_yellow@3x.png"},compId:264},{type:"Text",props:{y:10,x:76,width:211,valign:"middle",text:"左踮脚 • 设置",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"laya.display.Text"},compId:265}]}]},{type:"Sprite",props:{y:77,x:51,var:"timeBg",texture:"res/imgs/game/djs.png"},compId:209,child:[{type:"Text",props:{y:126,x:15,width:193,var:"timeTxt",valign:"middle",text:"01:23`56",italic:!0,height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"laya.display.Text"},compId:60}]},{type:"Sprite",props:{y:85,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.display.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.display.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.display.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.display.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.display.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.display.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:"#f19149",bold:!0,align:"left",runtime:"laya.display.Text"},compId:263}]},{type:"Sprite",props:{y:306,x:380,texture:"res/imgs/game/bg/wpydd.png"},compId:201},{type:"Sprite",props:{y:779,x:1,texture:"res/imgs/game/bg/pd.png"},compId:202},{type:"Image",props:{y:1015,x:245.5,var:"pd_LigthImg",skin:"res/imgs/game/bg/pd_bright.png"},compId:235},{type:"Sprite",props:{y:787,x:140},compId:184,child:[{type:"Image",props:{y:73,x:1455,skin:"res/imgs/game/bg/pdjt.png"},compId:173},{type:"Image",props:{y:73,x:1120,skin:"res/imgs/game/bg/pdjt.png"},compId:178},{type:"Image",props:{y:73,x:785,skin:"res/imgs/game/bg/pdjt.png"},compId:179},{type:"Image",props:{y:73,x:450,skin:"res/imgs/game/bg/pdjt.png"},compId:180},{type:"Image",props:{y:73,x:116,skin:"res/imgs/game/bg/pdjt.png"},compId:181},{type:"Image",props:{y:73,x:-224,skin:"res/imgs/game/bg/pdjt.png"},compId:182},{type:"Image",props:{y:-21,x:-139,width:1920,skin:"res/imgs/game/new_back_black.png",renderType:"mask",height:252,alpha:1,sizeGrid:"5,5,5,5"},compId:228}]},{type:"Image",props:{y:858,x:226,width:435,var:"startPosImg",skin:"res/imgs/game/bg/hl_left.png",pivotY:297,pivotX:227,height:436},compId:75,child:[{type:"SkeletonPlayer",props:{y:202,x:140,var:"huaryUpAniL",url:"res/ani/board_glow.sk",scaleX:-1,runtime:"laya.ani.bone.Skeleton"},compId:243},{type:"Image",props:{y:206,x:146,width:161,skin:"res/imgs/game/bg/hu_left.png",height:181,anchorY:.5,anchorX:.5},compId:236}]},{type:"Image",props:{y:549,x:1637,var:"stopPosImg",skin:"res/imgs/game/bg/hl_right.png"},compId:203,child:[{type:"SkeletonPlayer",props:{y:202,x:128,var:"huaryUpAniR",url:"res/ani/board_glow.sk",runtime:"laya.ani.bone.Skeleton"},compId:242},{type:"Image",props:{y:204,x:125,width:161,skin:"res/imgs/game/bg/hu_right.png",height:181,anchorY:.5,anchorX:.5},compId:237}]},{type:"Image",props:{y:849,x:1694,width:455,var:"jumpBtn",scaleY:1,scaleX:1,height:455,anchorY:.5,anchorX:.5},compId:56},{type:"Image",props:{y:878,x:203,width:405,var:"runBtn",scaleY:1,scaleX:1,height:405,anchorY:.5,anchorX:.5},compId:53},{type:"Image",props:{y:82,x:782,var:"createBox",skin:"res/imgs/game/bg/bg_led.png"},compId:78,child:[{type:"Image",props:{y:185,x:49,var:"createPos1",skin:"res/imgs/game/bg/led_bright.png",pivotY:40,pivotX:50,anchorY:.5,anchorX:.5},compId:94},{type:"Image",props:{y:185,x:133,var:"createPos2",skin:"res/imgs/game/bg/led_dark.png",pivotY:40,pivotX:50,anchorY:.5,anchorX:.5},compId:95},{type:"Image",props:{y:186,x:217,var:"createPos3",skin:"res/imgs/game/bg/led_dark.png",pivotY:40,pivotX:50,anchorY:.5,anchorX:.5},compId:96},{type:"Image",props:{y:186,x:301,var:"createPos4",skin:"res/imgs/game/bg/led_dark.png",pivotY:40,pivotX:50,anchorY:.5,anchorX:.5},compId:97},{type:"Image",props:{y:114,x:49,var:"createPos5",skin:"res/imgs/game/bg/led_dark.png",pivotY:40,pivotX:50,anchorY:.5,anchorX:.5},compId:86},{type:"Image",props:{y:114,x:133,var:"createPos6",skin:"res/imgs/game/bg/led_dark.png",pivotY:40,pivotX:50,anchorY:.5,anchorX:.5},compId:87},{type:"Image",props:{y:115,x:217,var:"createPos7",skin:"res/imgs/game/bg/led_dark.png",pivotY:40,pivotX:50,anchorY:.5,anchorX:.5},compId:88},{type:"Image",props:{y:115,x:301,var:"createPos8",skin:"res/imgs/game/bg/led_dark.png",pivotY:40,pivotX:50,anchorY:.5,anchorX:.5},compId:89},{type:"Image",props:{y:43,x:49,var:"createPos9",skin:"res/imgs/game/bg/led_dark.png",pivotY:40,pivotX:50,anchorY:.5,anchorX:.5},compId:74},{type:"Image",props:{y:43,x:133,var:"createPos10",skin:"res/imgs/game/bg/led_dark.png",pivotY:40,pivotX:50,anchorY:.5,anchorX:.5},compId:79},{type:"Image",props:{y:43,x:217,var:"createPos11",skin:"res/imgs/game/bg/led_dark.png",pivotY:40,pivotX:50,anchorY:.5,anchorX:.5},compId:80},{type:"Image",props:{y:42,x:301,var:"createPos12",skin:"res/imgs/game/bg/led_dark.png",pivotY:40,pivotX:50,anchorY:.5,anchorX:.5},compId:81},{type:"Image",props:{y:792,x:-346,width:50,var:"endPos1",name:"",height:50,anchorY:.5,anchorX:.5},compId:137},{type:"Image",props:{y:792,x:11,width:50,var:"endPos2",height:50,anchorY:.5,anchorX:.5},compId:143},{type:"Image",props:{y:782,x:351,width:50,var:"endPos3",name:"",height:50,anchorY:.5,anchorX:.5},compId:149},{type:"Image",props:{y:782,x:720,width:50,var:"endPos4",height:50,anchorY:.5,anchorX:.5},compId:155},{type:"Image",props:{y:468,x:-346,width:50,var:"endPos5",name:"",height:50,anchorY:.5,anchorX:.5},compId:139},{type:"Image",props:{y:468,x:11,width:50,var:"endPos6",height:50,anchorY:.5,anchorX:.5},compId:145},{type:"Image",props:{y:458,x:351,width:50,var:"endPos7",name:"",height:50,anchorY:.5,anchorX:.5},compId:151},{type:"Image",props:{y:459,x:720,width:50,var:"endPos8",height:50,anchorY:.5,anchorX:.5},compId:157},{type:"Image",props:{y:144,x:-346,width:50,var:"endPos9",name:"",height:50,anchorY:.5,anchorX:.5},compId:141},{type:"Image",props:{y:144,x:11,width:50,var:"endPos10",height:50,anchorY:.5,anchorX:.5},compId:147},{type:"Image",props:{y:134,x:351,width:50,var:"endPos11",name:"",height:50,anchorY:.5,anchorX:.5},compId:153},{type:"Image",props:{y:135,x:720,width:50,var:"endPos12",height:50,anchorY:.5,anchorX:.5},compId:159},{type:"Image",props:{y:227.5,x:46,width:50,var:"sdStartPos1",name:"",height:50,anchorY:.5,anchorX:.5},compId:246},{type:"Image",props:{y:915,x:-376,width:50,var:"sdEndPos1",name:"",height:50,anchorY:.5,anchorX:.5},compId:247},{type:"Image",props:{y:227,x:133,width:50,var:"sdStartPos2",name:"",height:50,anchorY:.5,anchorX:.5},compId:248},{type:"Image",props:{y:915,x:-11,width:50,var:"sdEndPos2",name:"",height:50,anchorY:.5,anchorX:.5},compId:249},{type:"Image",props:{y:227,x:217,width:50,var:"sdStartPos3",name:"",height:50,anchorY:.5,anchorX:.5},compId:250},{type:"Image",props:{y:915,x:364,width:50,var:"sdEndPos3",name:"",height:50,anchorY:.5,anchorX:.5},compId:251},{type:"Image",props:{y:227,x:302,width:50,var:"sdStartPos4",name:"",height:50,anchorY:.5,anchorX:.5},compId:252},{type:"Image",props:{y:915,x:738,width:50,var:"sdEndPos4",name:"",height:50,anchorY:.5,anchorX:.5},compId:253}]},{type:"Box",props:{width:1920,var:"playBox",height:1080,centerY:0,centerX:0},compId:136},{type:"Image",props:{var:"startBg",top:0,skin:"res/imgs/game/new_back_black.png",right:0,left:0,bottom:0,alpha:.35,sizeGrid:"5,5,5,5"},compId:133},{type:"Image",props:{y:507,x:957,width:389,visible:!1,var:"startBtn",skin:"res/imgs/game/icon_qp.png",scaleY:1,scaleX:1,height:389,anchorY:.5,anchorX:.5},compId:131,child:[{type:"Text",props:{y:136,x:105.5,text:"开始",fontSize:90,font:"Microsoft YaHei",color:"#ffffff",runtime:"laya.display.Text"},compId:132}]},{type:"Image",props:{y:276,x:-1920,visible:!1,var:"startOrOverBg",skin:"res/imgs/game/bg_ksjs.png",centerY:-135},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:"Image",props:{zOrder:200,y:500.5,x:1315,width:418,visible:!1,var:"scoreGrade",height:97},compId:216,child:[{type:"Image",props:{y:170,x:247,var:"gradeImg",skin:"res/imgs/game/great.png",scaleY:1,scaleX:1,centerY:0,centerX:0,anchorY:.5,anchorX:.5,alpha:0},compId:217}]}]}],animations:[{nodes:[{target:173,keyframes:{x:[{value:1784,tweenMethod:"linearNone",tween:!0,target:173,key:"x",index:0},{value:1455,tweenMethod:"linearNone",tween:!0,target:173,key:"x",index:30}]}},{target:178,keyframes:{x:[{value:1449,tweenMethod:"linearNone",tween:!0,target:178,key:"x",index:0},{value:1120,tweenMethod:"linearNone",tween:!0,target:178,key:"x",index:30}]}},{target:179,keyframes:{x:[{value:1115,tweenMethod:"linearNone",tween:!0,target:179,key:"x",index:0},{value:785,tweenMethod:"linearNone",tween:!0,target:179,key:"x",index:30}]}},{target:180,keyframes:{x:[{value:780,tweenMethod:"linearNone",tween:!0,target:180,key:"x",index:0},{value:450,tweenMethod:"linearNone",tween:!0,target:180,key:"x",index:30}]}},{target:181,keyframes:{x:[{value:445,tweenMethod:"linearNone",tween:!0,target:181,key:"x",index:0},{value:116,tweenMethod:"linearNone",tween:!0,target:181,key:"x",index:30}]}},{target:182,keyframes:{x:[{value:111,tweenMethod:"linearNone",tween:!0,target:182,key:"x",index:0},{value:-224,tweenMethod:"linearNone",tween:!0,target:182,key:"x",index:30}]}}],name:"runWayAni",id:1,frameRate:60,action:0},{nodes:[{target:215,keyframes:{x:[{value:-2300,tweenMethod:"linearNone",tween:!0,target:215,key:"x",index:0},{value:53,tweenMethod:"linearNone",tween:!0,target:215,key:"x",index:20}]}}],name:"openAni",id:2,frameRate:60,action:0},{nodes:[{target:215,keyframes:{x:[{value:53,tweenMethod:"linearNone",tween:!0,target:215,key:"x",index:0},{value:2300,tweenMethod:"linearNone",tween:!0,target:215,key:"x",index:20}]}}],name:"goAni",id:3,frameRate:60,action:0},{nodes:[{target:215,keyframes:{x:[{value:2300,tweenMethod:"linearNone",tween:!0,target:215,key:"x",index:0},{value:53,tweenMethod:"linearNone",tween:!0,target:215,key:"x",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}]}},{target:216,keyframes:{visible:[{value:!0,tweenMethod:"linearNone",tween:!1,target:216,key:"visible",index:0},{value:!1,tweenMethod:"linearNone",tween:!1,target:216,key:"visible",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}],loadList:["res/imgs/game/bg/bg.jpg","res/imgs/game/new_back_black.png","res/imgs/game/icon_left1_yellow@3x.png","res/imgs/game/djs.png","res/imgs/game/bg_fs.png","res/imgs/rank/icon_df.png","res/imgs/game/bg/wpydd.png","res/imgs/game/bg/pd.png","res/imgs/game/bg/pd_bright.png","res/imgs/game/bg/pdjt.png","res/imgs/game/bg/hl_left.png","res/ani/board_glow.sk","res/imgs/game/bg/hu_left.png","res/imgs/game/bg/hl_right.png","res/imgs/game/bg/hu_right.png","res/imgs/game/bg/bg_led.png","res/imgs/game/bg/led_bright.png","res/imgs/game/bg/led_dark.png","res/imgs/game/icon_qp.png","res/imgs/game/bg_ksjs.png","res/imgs/game/text_go.png","res/imgs/game/great.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/home/bj_sy.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:198,x:1325,var:"level1",skin:"res/home/bg_simple.png",anchorY:.5,anchorX:.5},compId:15,child:[{type:"Image",props:{y:168,x:258,text:"text",skin:"res/home/text_simple.png"},compId:27},{type:"Image",props:{y:-12,x:-7,var:"level1Light",skin:"res/home/xz_simple.png"},compId:99},{type:"Image",props:{y:0,x:0,width:1412,var:"level1Mask",skin:"res/imgs/game/new_back_black.png",height:396,alpha:.6,sizeGrid:"5,5,5,5"},compId:32,child:[{type:"Sprite",props:{texture:"res/home/bg_simple.png",renderType:"mask"},compId:33}]},{type:"Sprite",props:{y:142,x:790,texture:"res/home/icon_sjsim.png",rotation:-10},compId:39},{type:"Sprite",props:{y:244,x:730,texture:"res/home/icon_dfsim.png",rotation:-10},compId:40},{type:"Text",props:{y:139,x:858,width:323,var:"level1TimeTxt",text:"时间:02:35:01",strokeColor:"#fbfbfb",rotation:-10,italic:!0,height:42,fontSize:42,font:"Microsoft YaHei",color:"#4a2206",bold:!0,align:"left",runtime:"laya.display.Text"},compId:41},{type:"Text",props:{y:239,x:800,width:395,var:"level1ScoreTxt",text:"历史最高:9999",strokeColor:"#fbfbfb",rotation:-10,italic:!0,height:42,fontSize:42,font:"Microsoft YaHei",color:"#4a2206",bold:!0,align:"left",runtime:"laya.display.Text"},compId:42}]},{type:"Image",props:{y:513,x:1330,var:"level2",skin:"res/home/bg_normal.png",anchorY:.5,anchorX:.5},compId:16,child:[{type:"Image",props:{y:65,x:276,text:"text",skin:"res/home/text_normal.png"},compId:28},{type:"Image",props:{y:-12,x:-10,var:"level2Light",skin:"res/home/xz_normal.png"},compId:100},{type:"Image",props:{y:0,x:0,width:1412,var:"level2Mask",skin:"res/imgs/game/new_back_black.png",height:396,alpha:.6,sizeGrid:"5,5,5,5"},compId:34,child:[{type:"Sprite",props:{texture:"res/home/bg_normal.png",renderType:"mask"},compId:35}]},{type:"Sprite",props:{y:87,x:791,texture:"res/home/icon_sjnor.png",rotation:0},compId:45},{type:"Sprite",props:{y:178,x:731,texture:"res/home/icon_dfnor.png",rotation:0},compId:46},{type:"Text",props:{y:91.5,x:863,width:323,var:"level2TimeTxt",text:"时间:02:35:01",strokeColor:"#fbfbfb",rotation:0,italic:!0,height:42,fontSize:42,font:"Microsoft YaHei",color:"#02203c",bold:!0,align:"left",runtime:"laya.display.Text"},compId:47},{type:"Text",props:{y:186,x:802,width:395,var:"level2ScoreTxt",text:"历史最高:9999",strokeColor:"#fbfbfb",rotation:0,height:42,fontSize:42,font:"Microsoft YaHei",color:"#02203c",bold:!0,align:"left",runtime:"laya.display.Text"},compId:48}]},{type:"Image",props:{y:806,x:1300,var:"level3",skin:"res/home/bg_difficulty.png",anchorY:.5,anchorX:.5},compId:18,child:[{type:"Image",props:{y:69,x:310,text:"text",skin:"res/home/text_difficulty.png"},compId:29},{type:"Image",props:{y:-10,x:-12,var:"level3Light",skin:"res/home/xz_difficulty.png"},compId:101},{type:"Image",props:{y:0,x:0,width:1412,var:"level3Mask",skin:"res/imgs/game/new_back_black.png",height:396,alpha:.6,sizeGrid:"5,5,5,5"},compId:36,child:[{type:"Sprite",props:{texture:"res/home/bg_difficulty.png",renderType:"mask"},compId:37}]},{type:"Sprite",props:{y:120,x:884,texture:"res/home/icon_sjdif.png",rotation:10},compId:49},{type:"Sprite",props:{y:190,x:783,texture:"res/home/icon_dfdif.png",rotation:7},compId:50},{type:"Text",props:{y:136,x:944,width:323,var:"level3TimeTxt",text:"时间:02:35:01",strokeColor:"#fbfbfb",rotation:7,italic:!0,height:42,fontSize:42,font:"Microsoft YaHei",color:"#3d080f",bold:!0,align:"left",runtime:"laya.display.Text"},compId:51},{type:"Text",props:{y:209,x:854,width:395,var:"level3ScoreTxt",text:"历史最高:9999",strokeColor:"#fbfbfb",rotation:7,height:42,fontSize:42,font:"Microsoft YaHei",color:"#3d080f",bold:!0,align:"left",runtime:"laya.display.Text"},compId:52}]},{type:"Sprite",props:{y:33,x:0,texture:"res/home/juese.png"},compId:26},{type:"Sprite",props:{y:38,x:23,texture:"res/home/logo.png"},compId:25},{type:"Image",props:{y:661,x:56,var:"rankBtn",skin:"res/home/btn_rank.png",name:"",label:"label",anchorY:.5,anchorX:.5},compId:38,child:[{type:"Image",props:{y:0,x:0,width:104,visible:!1,var:"rankMask",skin:"res/imgs/game/new_back_black.png",height:122,alpha:.5,sizeGrid:"5,5,5,5"},compId:55,child:[{type:"Sprite",props:{texture:"res/home/btn_rank.png",renderType:"mask"},compId:56}]}]},{type:"Image",props:{y:794,x:56,var:"settingBtn",skin:"res/home/btn_setting.png",name:"",anchorY:.5,anchorX:.5},compId:20,child:[{type:"Image",props:{y:0,x:0,width:116,visible:!1,var:"settingMask",skin:"res/imgs/game/new_back_black.png",height:122,alpha:.5,sizeGrid:"5,5,5,5"},compId:53,child:[{type:"Sprite",props:{texture:"res/home/btn_setting.png",renderType:"mask"},compId:54}]}]},{type:"Image",props:{y:920,x:58,var:"homeBtn",skin:"res/home/btn_home.png",name:"",label:"label",anchorY:.5,anchorX:.5},compId:74,child:[{type:"Image",props:{y:0,x:0,width:114,visible:!1,var:"homeMask",skin:"res/imgs/game/new_back_black.png",height:98,alpha:.5,sizeGrid:"5,5,5,5"},compId:75,child:[{type:"Sprite",props:{texture:"res/home/btn_home.png",renderType:"mask"},compId:76}]}]}]},{type:"Image",props:{y:1043,x:960,skin:"res/imgs/game/new_back_black.png",right:0,left:0,height:75,anchorY:.5,anchorX:.5,sizeGrid:"5,5,5,5"},compId:60,child:[{type:"Box",props:{y:6,width:985,height:60,centerX:0},compId:77,child:[{type:"Sprite",props:{texture:"res/imgs/game/icon_zc.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.display.Text"},compId:62}]},{type:"Sprite",props:{x:345,texture:"res/imgs/game/icon_yc.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.display.Text"},compId:64}]},{type:"Sprite",props:{x:695,texture:"res/imgs/game/icon_right_yellow@3x.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.display.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/img_sz.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.display.Text"},compId:98},{type:"Image",props:{y:321,x:39,var:"noBtn",skin:"res/imgs/game/btn_tywxz.png"},compId:94,child:[{type:"Image",props:{text:"text",skin:"res/imgs/game/text_qx2.png",centerY:0,centerX:0},compId:95}]},{type:"Image",props:{y:321,x:269,var:"yesBtn",skin:"res/imgs/game/btn_tyxz.png"},compId:96,child:[{type:"Image",props:{text:"text",skin:"res/imgs/game/text_qd1.png",centerY:0,centerX:0},compId:97}]}]}],animations:[{nodes:[{target:26,keyframes:{x:[{value:-1287,tweenMethod:"linearNone",tween:!0,target:26,key:"x",index:0},{value:20,tweenMethod:"linearNone",tween:!0,target:26,key:"x",index:25},{value:0,tweenMethod:"linearNone",tween:!0,target:26,key:"x",index:30}]}},{target:25,keyframes:{y:[{value:-194,tweenMethod:"linearNone",tween:!0,target:25,label:null,key:"y",index:0},{value:-194,tweenMethod:"linearNone",tween:!0,target:25,key:"y",index:30},{value:68,tweenMethod:"linearNone",tween:!0,target:25,key:"y",index:45},{value:38,tweenMethod:"linearNone",tween:!0,target:25,key:"y",index:50},{value:58,tweenMethod:"linearNone",tween:!0,target:25,key:"y",index:55},{value:38,tweenMethod:"linearNone",tween:!0,target:25,key:"y",index:60}]}},{target:15,keyframes:{x:[{value:2900,tweenMethod:"linearNone",tween:!0,target:15,label:null,key:"x",index:0},{value:2600,tweenMethod:"linearNone",tween:!0,target:15,key:"x",index:10},{value:1300,tweenMethod:"linearNone",tween:!0,target:15,key:"x",index:25},{value:1325,tweenMethod:"linearNone",tween:!0,target:15,key:"x",index:30}]}},{target:16,keyframes:{x:[{value:2900,tweenMethod:"linearNone",tween:!0,target:16,label:null,key:"x",index:0},{value:2560,tweenMethod:"linearNone",tween:!0,target:16,key:"x",index:15},{value:1300,tweenMethod:"linearNone",tween:!0,target:16,key:"x",index:30},{value:1330,tweenMethod:"linearNone",tween:!0,target:16,key:"x",index:35}]}},{target:18,keyframes:{x:[{value:2900,tweenMethod:"linearNone",tween:!0,target:18,label:null,key:"x",index:0},{value:2600,tweenMethod:"linearNone",tween:!0,target:18,key:"x",index:20},{value:1270,tweenMethod:"linearNone",tween:!0,target:18,key:"x",index:35},{value:1300,tweenMethod:"linearNone",tween:!0,target:18,key:"x",index:40}]}},{target:38,keyframes:{x:[{value:-350,tweenMethod:"linearNone",tween:!0,target:38,key:"x",index:0},{value:-350,tweenMethod:"linearNone",tween:!0,target:38,key:"x",index:35},{value:56,tweenMethod:"linearNone",tween:!0,target:38,key:"x",index:45}]}},{target:20,keyframes:{x:[{value:-350,tweenMethod:"linearNone",tween:!0,target:20,key:"x",index:0},{value:-350,tweenMethod:"linearNone",tween:!0,target:20,key:"x",index:40},{value:56,tweenMethod:"linearNone",tween:!0,target:20,key:"x",index:50}]}},{target:74,keyframes:{x:[{value:-350,tweenMethod:"linearNone",tween:!0,target:74,key:"x",index:0},{value:-350,tweenMethod:"linearNone",tween:!0,target:74,key:"x",index:45},{value:58,tweenMethod:"linearNone",tween:!0,target:74,key:"x",index:55}]}},{target:60,keyframes:{y:[{value:1155,tweenMethod:"linearNone",tween:!0,target:60,key:"y",index:0},{value:1155,tweenMethod:"linearNone",tween:!0,target:60,key:"y",index:35},{value:1043,tweenMethod:"linearNone",tween:!0,target:60,key:"y",index:50}]}}],name:"openAni",id:1,frameRate:60,action:0}],loadList:["res/home/bj_sy.jpg","res/home/bg_simple.png","res/home/text_simple.png","res/home/xz_simple.png","res/imgs/game/new_back_black.png","res/home/icon_sjsim.png","res/home/icon_dfsim.png","res/home/bg_normal.png","res/home/text_normal.png","res/home/xz_normal.png","res/home/icon_sjnor.png","res/home/icon_dfnor.png","res/home/bg_difficulty.png","res/home/text_difficulty.png","res/home/xz_difficulty.png","res/home/icon_sjdif.png","res/home/icon_dfdif.png","res/home/juese.png","res/home/logo.png","res/home/btn_rank.png","res/home/btn_setting.png","res/home/btn_home.png","res/imgs/game/icon_zc.png","res/imgs/game/icon_yc.png","res/imgs/game/icon_right_yellow@3x.png","res/imgs/game/img_sz.png","res/imgs/game/tittle_ts.png","res/imgs/game/btn_tywxz.png","res/imgs/game/text_qx2.png","res/imgs/game/btn_tyxz.png","res/imgs/game/text_qd1.png"],loadList3D:[]},e.HomeViewUI=a,s("game.ui.HomeViewUI",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/imgs/result/bj_mh.jpg",right:0,left:0,bottom:0},compId:197},{type:"Image",props:{top:0,skin:"res/imgs/game/new_back_black.png",right:0,left:0,bottom:0,alpha:.5,sizeGrid:"5,5,5,5"},compId:196},{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_tcd.png",centerY:0,centerX:0},compId:200}]},{type:"Image",props:{y:38,x:960,top:0,skin:"res/imgs/game/new_back_black.png",right:0,left:0,height:75,anchorY:.5,anchorX:.5,sizeGrid:"5,5,5,5"},compId:201},{type:"Box",props:{y:36,width:985,height:60,centerX:0,anchorY:.5,anchorX:.5},compId:208,child:[{type:"Sprite",props:{texture:"res/imgs/game/icon_zc.png"},compId:202,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.display.Text"},compId:203}]},{type:"Sprite",props:{x:345,texture:"res/imgs/game/icon_yc.png"},compId:204,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.display.Text"},compId:205}]},{type:"Sprite",props:{x:695,texture:"res/imgs/game/icon_right_yellow@3x.png"},compId:206,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.display.Text"},compId:207}]}]}],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/result/bj_mh.jpg","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_tcd.png","res/imgs/game/icon_zc.png","res/imgs/game/icon_yc.png","res/imgs/game/icon_right_yellow@3x.png"],loadList3D:[]},e.PauseViewUI=n,s("game.ui.PauseViewUI",n);class o extends t{constructor(){super()}createChildren(){super.createChildren(),this.createView(o.uiView)}}o.uiView={type:"View",props:{width:1545,height:200},compId:2,child:[{type:"Image",props:{y:29,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",text:"婷子",strokeColor:"#000000",height:57,fontSize:40,font:"Microsoft YaHei",color:"#000000",bold:!0,align:"center",runtime:"laya.display.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:"99999",strokeColor:"#000000",italic:!0,height:65,fontSize:70,font:"Microsoft YaHei",color:"#ff9005",bold:!0,align:"right",runtime:"laya.display.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:"#ff9005",bold:!0,align:"right",runtime:"laya.display.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=o,s("game.ui.RankItemUI",o);class r extends t{constructor(){super()}createChildren(){super.createChildren(),this.createView(r.uiView)}}r.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/result/bj_mh.jpg",right:0,left:0,bottom:0},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/text_hyb.png",centerY:0,centerX:0},compId:10},{type:"Sprite",props:{y:151,x:-1,width:268,texture:"res/imgs/rank/phbfgx.png"},compId:13}]},{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:{var:"selfBg",skin:"res/imgs/rank/bg_wdph.png",right:0,left:264,bottom:0},compId:32,child:[{type:"Box",props:{y:69,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",text:"婷子",strokeColor:"#000000",height:57,fontSize:40,font:"Microsoft YaHei",color:"#000000",bold:!0,align:"center",runtime:"laya.display.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:"99999",strokeColor:"#000000",italic:!0,height:65,fontSize:70,font:"Microsoft YaHei",color:"#000000",bold:!0,align:"right",runtime:"laya.display.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:"#050200",bold:!0,align:"right",runtime:"laya.display.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/result/bj_mh.jpg","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/text_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=r,s("game.ui.RankViewUI",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/result/bj_mh.jpg",right:0,left:0,bottom:0},compId:198},{type:"Box",props:{width:1920,height:1080,centerX:0},compId:207,child:[{type:"Image",props:{y:79,x:802,var:"tittleImg",skin:"res/imgs/result/tittle_df.png",centerY:-347,centerX:0},compId:201},{type:"Image",props:{y:270,x:53,skin:"res/imgs/result/bg_js.png",centerX:0},compId:199,child:[{type:"Image",props:{skin:"res/imgs/result/jsfgx.png",centerY:30,centerX:0},compId:200},{type:"Text",props:{y:61,x:586,width:619,var:"scoreTxt",valign:"middle",text:"100",strokeColor:"#000000",italic:!0,height:141,fontSize:80,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"laya.display.Text"},compId:202},{type:"Sprite",props:{y:224,x:583,width:36,texture:"res/imgs/rank/icon_df.png",height:29},compId:203},{type:"Text",props:{y:224,x:630,width:114,valign:"middle",text:"历史最高",height:39,fontSize:27,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"laya.display.Text"},compId:204},{type:"Text",props:{y:224,x:784,width:247,var:"highScoreTxt",valign:"middle",text:"100",italic:!0,height:39,fontSize:32,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"laya.display.Text"},compId:205}]},{type:"Image",props:{zOrder:10,width:718,top:552,scaleY:.7,scaleX:.7,height:69,centerX:0,anchorY:.5,anchorX:.5},compId:208,child:[{type:"Sprite",props:{y:4,x:38,texture:"res/imgs/game/icon_left1_yellow@3x.png"},compId:209},{type:"Text",props:{y:14,x:99,width:174,valign:"middle",text:"左踮脚 或",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"laya.display.Text"},compId:212},{type:"Sprite",props:{y:4,x:289,texture:"res/imgs/game/icon_right_yellow@3x.png"},compId:211},{type:"Text",props:{y:14,x:350,width:337,valign:"middle",text:"右踮脚 • 返回主界面",height:50,fontSize:34,font:"Microsoft YaHei",color:"#ffffff",bold:!0,align:"center",runtime:"laya.display.Text"},compId:210}]}]}],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/result/bj_mh.jpg","res/imgs/result/tittle_df.png","res/imgs/result/bg_js.png","res/imgs/result/jsfgx.png","res/imgs/rank/icon_df.png","res/imgs/game/icon_left1_yellow@3x.png","res/imgs/game/icon_right_yellow@3x.png"],loadList3D:[]},e.ResultViewUI=h,s("game.ui.ResultViewUI",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/result/bj_mh.jpg",right:0,left:0,bottom:0},compId:3},{type:"Image",props:{width:507,var:"bg",skin:"res/imgs/game/img_sz.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.display.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/progressbar_sz.png",height:15,sizeGrid:"5,5,5,5"},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.display.Text"},compId:18}]},{type:"Text",props:{y:284,x:36,text:"音效",fontSize:26,font:"Microsoft YaHei",color:"#ffffff",runtime:"laya.display.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/progressbar_sz.png",height:15,sizeGrid:"5,5,5,5"},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.display.Text"},compId:20}]}]}],loadList:["res/imgs/result/bj_mh.jpg","res/imgs/game/img_sz.png","res/imgs/game/tittle_sysz.png","res/imgs/game/btn_close.png","res/imgs/game/progress_sz.png","res/imgs/game/progressbar_sz.png","res/imgs/game/hdan.png"],loadList3D:[]},e.SettingViewUI=l,s("game.ui.SettingViewUI",l)}(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:"Box",props:{width:721,scaleY:.5,scaleX:.5,height:127,centerY:0,centerX:0},compId:22,child:[{type:"Image",props:{y:53,x:0,width:700,skin:"res/ui/loading/barBg.png",sizeGrid:"0,35,0,35",name:"barBg",height:58},compId:4},{type:"Image",props:{y:58,x:6,width:688,var:"bar",skin:"res/ui/loading/bar.png",sizeGrid:"0,35,0,35",height:48},compId:5,child:[{type:"Sprite",props:{var:"barMask",renderType:"mask"},compId:23}]},{type:"Sprite",props:{y:48,x:652,texture:"res/ui/loading/circle.png",name:"circle"},compId:8},{type:"Sprite",props:{y:81,x:685,width:46,var:"iconFlower",texture:"res/ui/loading/flower.png",pivotY:23,pivotX:23,height:46},compId:9},{type:"Text",props:{y:0,x:273,var:"txt0",text:"L",fontSize:35,font:"Helvetica",color:"#f4e0ac",bold:!0,runtime:"laya.display.Text"},compId:11},{type:"Text",props:{y:0,x:295,var:"txt1",text:"o",fontSize:35,font:"Helvetica",color:"#f4e0ac",bold:!0,runtime:"laya.display.Text"},compId:20},{type:"Text",props:{y:0,x:317,var:"txt2",text:"a",fontSize:35,font:"Helvetica",color:"#f4e0ac",bold:!0,runtime:"laya.display.Text"},compId:12},{type:"Text",props:{y:0,x:336,var:"txt3",text:"d",fontSize:35,font:"Helvetica",color:"#f4e0ac",bold:!0,runtime:"laya.display.Text"},compId:13},{type:"Text",props:{y:0,x:358,var:"txt4",text:"i",fontSize:35,font:"Helvetica",color:"#f4e0ac",bold:!0,runtime:"laya.display.Text"},compId:14},{type:"Text",props:{y:0,x:368,var:"txt5",text:"n",fontSize:35,font:"Helvetica",color:"#f4e0ac",bold:!0,runtime:"laya.display.Text"},compId:15},{type:"Text",props:{y:0,x:390,var:"txt6",text:"g",fontSize:35,font:"Helvetica",color:"#f4e0ac",bold:!0,runtime:"laya.display.Text"},compId:16},{type:"Text",props:{y:0,x:412,var:"txt7",text:".",fontSize:35,font:"Helvetica",color:"#f4e0ac",bold:!0,runtime:"laya.display.Text"},compId:17},{type:"Text",props:{y:0,x:422,var:"txt8",text:".",fontSize:35,font:"Helvetica",color:"#f4e0ac",bold:!0,runtime:"laya.display.Text"},compId:18},{type:"Text",props:{y:0,x:432,var:"txt9",text:".",fontSize:35,font:"Helvetica",color:"#f4e0ac",bold:!0,runtime:"laya.display.Text"},compId:19}]}],loadList:["res/ui/loading/barBg.png","res/ui/loading/bar.png","res/ui/loading/circle.png","res/ui/loading/flower.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="#ff9005",this.scoreTxt1.color="#ff9005"):2==this.rank?(this.winImg.skin="res/imgs/rank/icon_dier.png",this.winImg.visible=!0,this.rankTxt.visible=!1,this.scoreTxt.color="#ff9005",this.scoreTxt1.color="#ff9005"):3==this.rank?(this.winImg.skin="res/imgs/rank/icon_disan.png",this.winImg.visible=!0,this.rankTxt.visible=!1,this.scoreTxt.color="#ff9005",this.scoreTxt1.color="#ff9005"):(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="fixedheight",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+".ogg"}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/LevelConfig1.json","res/json/LevelConfig2.json","res/json/LevelConfig3.json","res/ani/Shield_after.sk","res/ani/Shield_after.png","res/ani/nv2.sk","res/ani/nv2.png","res/ani/Coin.sk","res/ani/Coin.png","res/ani/nv22.png","res/ani/nv23.png","res/ani/nv24.png","res/ani/nv25.png","res/ani/nv26.png","res/ani/nv27.png","res/ani/nv28.png","res/ani/nv29.png","res/ani/nv210.png","res/ani/nv211.png","res/ani/nv212.png","res/ani/nv213.png","res/ani/nv214.png","res/ani/nv215.png","res/ani/nv216.png","res/ani/nv217.png","res/ani/nv218.png","res/ani/gold.atlas","res/ani/gold.png","res/ani/board_glow.sk","res/ani/board_glow.png","res/ani/boom.atlas","res/ani/boom.png","res/ani/boomAni.atlas","res/ani/boomAni.png","res/home/bj_sy.jpg","res/home/bg_simple.png","res/home/bg_normal.png","res/home/bg_difficulty.png","res/home/xz_simple.png","res/home/xz_normal.png","res/home/xz_difficulty.png","res/imgs/game/bg/bg.jpg","res/home/juese.png","res/imgs/game/bg/pd.png","res/imgs/game/bg/wpydd.png","res/imgs/game/bg_ksjs.png","res/imgs/game/text_finsh.png","res/imgs/result/bj_mh.jpg","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"],o.preLoadUrls2=[],o.sound={readyGo:"readygo",bgm:"bgm",combo:"combo",jump:"jump"};class r extends Laya.EventDispatcher{constructor(){super(),this.initW=1920,this.initH=1080,this.gameTime=18e4,this.onceAddSpeed=70,this.forwordSpeed=10,this.forwordSpeedMax=36,this.backSpeed=9,this.addSpeed=1,this.runCountTime=100,this.jumpCountTime=1500,this.onceAddJump=270,this.jumpSpeed=15,this.jumpCount=0,this.step=0,this.isStarGame=!1,this.isPlaying=!1}init(){this.initW=Laya.stage.width,this.initH=Laya.stage.height,this.getAllHighScoreData(),this.getLevel1HighScoreData(),this.getLevel2HighScoreData(),this.getLevel3HighScoreData()}reset(){this.score=0}getAllHighScoreData(){this.allHighScoreData=Laya.LocalStorage.getJSON("allHighScoreData"),this.allHighScoreData||this.setAllHighSocreData(0),log("获取总最高分数",this.allHighScoreData)}setAllHighSocreData(e){this.allHighScoreData=e,this.saveALlHighSocreData()}saveALlHighSocreData(){Laya.LocalStorage.setJSON("allHighScoreData",this.allHighScoreData)}getLevel1HighScoreData(){this.level1HighScoreData=Laya.LocalStorage.getJSON("level1HighScoreData"),this.level1HighScoreData||this.setLevel1HighSocreData(0),log("获取简单模式最高分数",this.level1HighScoreData)}setLevel1HighSocreData(e){this.level1HighScoreData=e,this.saveLevel1HighSocreData(),e>this.allHighScoreData&&this.setAllHighSocreData(e)}saveLevel1HighSocreData(){Laya.LocalStorage.setJSON("level1HighScoreData",this.level1HighScoreData)}getLevel2HighScoreData(){this.level2HighScoreData=Laya.LocalStorage.getJSON("level2HighScoreData"),this.level2HighScoreData||this.setLevel2HighSocreData(0),log("获取简单模式最高分数",this.level2HighScoreData)}setLevel2HighSocreData(e){this.level2HighScoreData=e,this.saveLevel2HighSocreData(),e>this.allHighScoreData&&this.setAllHighSocreData(e)}saveLevel2HighSocreData(){Laya.LocalStorage.setJSON("level2HighScoreData",this.level2HighScoreData)}getLevel3HighScoreData(){this.level3HighScoreData=Laya.LocalStorage.getJSON("level3HighScoreData"),this.level3HighScoreData||this.setLevel3HighSocreData(0),log("获取简单模式最高分数",this.level3HighScoreData)}setLevel3HighSocreData(e){this.level3HighScoreData=e,this.saveLevel3HighSocreData(),e>this.allHighScoreData&&this.setAllHighSocreData(e)}saveLevel3HighSocreData(){Laya.LocalStorage.setJSON("level3HighScoreData",this.level3HighScoreData)}}class h{constructor(){this.levelConfig1=[],this.levelConfig2=[],this.levelConfig3=[],this.init()}init(){Laya.loader.load("res/json/LevelConfig1.json",Laya.Handler.create(this,this.getLevelConfig1)),Laya.loader.load("res/json/LevelConfig2.json",Laya.Handler.create(this,this.getLevelConfig2)),Laya.loader.load("res/json/LevelConfig3.json",Laya.Handler.create(this,this.getLevelConfig3)),this.levelConfig1=Laya.loader.getRes("res/json/LevelConfig1.json"),this.levelConfig2=Laya.loader.getRes("res/json/LevelConfig2.json"),this.levelConfig3=Laya.loader.getRes("res/json/LevelConfig3.json")}getLevelConfig(e,t){let i;1==e?i=this.levelConfig1:2==e?i=this.levelConfig2:3==e&&(i=this.levelConfig3);for(let e=i.length-1;e>=0;e--)if(i[e].id==t)return i[e];return null}getLevelConfig1(){this.goldCountArr1=[];for(let e=0;e<this.levelConfig1.length;e++)if(this.levelConfig1[e].indexArr>=this.goldCountArr1.length)for(let t=0;t<this.levelConfig1[e].type.length;t++)1!=this.levelConfig1[e].type[t]&&3!=this.levelConfig1[e].type[t]||(this.goldCountArr1[this.levelConfig1[e].indexArr-1]||(this.goldCountArr1[this.levelConfig1[e].indexArr-1]=0),this.goldCountArr1[this.levelConfig1[e].indexArr-1]++);log("goldCountArr1",this.goldCountArr1)}getLevelConfig2(){this.goldCountArr2=[];for(let e=0;e<this.levelConfig1.length;e++)if(this.levelConfig1[e].indexArr>=this.goldCountArr2.length)for(let t=0;t<this.levelConfig1[e].type.length;t++)1!=this.levelConfig1[e].type[t]&&3!=this.levelConfig1[e].type[t]||(this.goldCountArr2[this.levelConfig1[e].indexArr-1]||(this.goldCountArr2[this.levelConfig1[e].indexArr-1]=0),this.goldCountArr2[this.levelConfig1[e].indexArr-1]++);log("goldCountArr2",this.goldCountArr2)}getLevelConfig3(e){this.goldCountArr3=[];for(let e=0;e<this.levelConfig1.length;e++)if(this.levelConfig1[e].indexArr>=this.goldCountArr3.length)for(let t=0;t<this.levelConfig1[e].type.length;t++)1!=this.levelConfig1[e].type[t]&&3!=this.levelConfig1[e].type[t]||(this.goldCountArr3[this.levelConfig1[e].indexArr-1]||(this.goldCountArr3[this.levelConfig1[e].indexArr-1]=0),this.goldCountArr3[this.levelConfig1[e].indexArr-1]++);log("goldCountArr3",this.goldCountArr3)}}class l extends Laya.Image{constructor(){super(),this.width=47,this.height=20,this.skin="res/imgs/game/shadow.png",this.anchorX=this.anchorY=.5}onEnable(){Laya.timer.once(1e3,this,()=>{this.sdAlphaTween=Laya.TimeLine.to(this,{alpha:1},1e3),this.sdAlphaTween.play()})}startMove(){let e=Laya.Point.create();e.x=C.view.gameView.sdEndPosArr[this.index].x,e.y=C.view.gameView.sdEndPosArr[this.index].y,e=C.view.gameView.createBox.localToGlobal(e),this.sdMoveTween=Laya.TimeLine.to(this,{x:e.x-C.view.gameView.gameBox.x,y:e.y-C.view.gameView.gameBox.y},5900,Laya.Ease.expoIn),this.sdMoveTween.play(),this.sdScaleTween=Laya.TimeLine.to(this,{scaleX:3,scaleY:3},5900,Laya.Ease.expoIn),this.sdScaleTween.play(),this.sdMoveTween.on(Laya.Event.COMPLETE,this,()=>{this.destroy()})}destroy(){super.destroy(),this.removeSelf(),this.sdMoveTween&&this.sdMoveTween.destroy(),this.sdScaleTween&&this.sdScaleTween.destroy(),this.sdAlphaTween&&this.sdAlphaTween.destroy(),this.sdMoveTween=null,this.sdScaleTween=null,this.sdAlphaTween=null,Laya.Tween.clearAll(this),this.timer.clearAll(this)}recover(){Laya.Pool.recover("EnemieShadow",this)}static create(e,t,i){let s=new l;return s.x=e,s.y=t,s.index=i,s}}class g extends Laya.Image{constructor(){super(),this.dx=1,this.dy=1,this.isDeath=!1,this.width=this.height=240,this.anchorX=this.anchorY=.5,this.alpha=1,this.scale(.1,.1)}onEnable(){Laya.timer.once(1e3,this,()=>{this.alphaTween=Laya.TimeLine.to(this,{alpha:1},1e3),this.alphaTween.play()}),this.creatShadow()}creatShadow(){let e=Laya.Point.create(),t=this.index%4;0==t&&(t=4),e.x=C.view.gameView.sdStartPosArr[t].x,e.y=C.view.gameView.sdStartPosArr[t].y,e=C.view.gameView.createBox.localToGlobal(e);let i=l.create(e.x-C.view.gameView.gameBox.x,e.y-C.view.gameView.gameBox.y,t);i.alpha=0,i.scale(.5,.5),C.view.gameView.playBox.addChild(i),i.startMove(),this.shadow=i}creatCoinAni(){this.goldAni?(this.goldAni.visible=!0,1==this.type?this.goldAni.play("Sliver",!0,!0):this.goldAni.play("Golden",!0,!0)):(this.goldAni=new Laya.Skeleton,this.goldAni.load("res/ani/Coin.sk",Laya.Handler.create(this,()=>{this.goldAni.pos(120,250),this.goldAni.scale(1.8,1.8),this.addChild(this.goldAni),1==this.type?this.goldAni.play("Sliver",!0,!0):this.goldAni.play("Golden",!0,!0)})))}creatBoomAni(){this.boomAni?(this.boomAni.visible=!0,this.boomAni.play(0,!0)):(this.boomAni=new Laya.Animation,this.boomAni.loadAtlas("res/ani/boomAni.atlas",Laya.Handler.create(this,()=>{this.boomAni.interval=70,this.boomAni.source="res/ani/boomAni.atlas",this.boomAni.pivotX=70,this.boomAni.pivotY=109,this.boomAni.scale(2,2),this.boomAni.pos(126,141),this.addChild(this.boomAni),this.boomAni.play(0,!0)})))}startMove(){let e=Laya.Point.create();e.x=C.view.gameView.endPosArr[this.index].x,e.y=C.view.gameView.endPosArr[this.index].y,e=C.view.gameView.createBox.localToGlobal(e),this.moveTween=Laya.TimeLine.to(this,{x:e.x-C.view.gameView.gameBox.x,y:e.y-C.view.gameView.gameBox.y},6e3,Laya.Ease.expoIn),this.moveTween.play(),this.scaleTween=Laya.TimeLine.to(this,{scaleX:1,scaleY:1},6e3,Laya.Ease.expoIn),this.scaleTween.play(),this.moveTween.on(Laya.Event.COMPLETE,this,()=>{this.isDeath=!0,1==this.type?C.view.gameView.showGrade(!0,!1,!1):3==this.type&&C.view.gameView.showGrade(!0,!1,!1),this.destroy()})}destroy(){this.alpha=1,this.goldAni&&(this.goldAni.visible=!1),this.boomAni&&(this.boomAni.visible=!1),this.scale(.1,.1),this.removeSelf(),C.view.gameView.enemies=C.view.gameView.enemies.filter(e=>!e.isDeath),this.moveTween&&this.moveTween.destroy(),this.scaleTween&&this.scaleTween.destroy(),this.alphaTween&&this.alphaTween.destroy(),this.shadow&&this.shadow.destroy(),this.moveTween=null,this.scaleTween=null,this.alphaTween=null,Laya.Tween.clearAll(this),this.timer.clearAll(this),this.recover()}recover(){Laya.Pool.recover("Enemie",this)}static create(e,t,i,s,a){let n=Laya.Pool.getItemByClass("Enemie",g);return n.x=e,n.y=t,n.skin=i,n.type=s,n.index=a,n.scale(.2,.2),n.isDeath=!1,2==s?n.creatBoomAni():n.creatCoinAni(),n}}class p{}p.Standby="daiji",p.ReadyRun="manpaoqibu",p.Run="manpao",p.StopRun="manpaotingzhi",p.ReadyRun1="kuaipaoqibu",p.Run1="kuaipao",p.StopRun1="kuaipaotingzhi",p.Jump="yijitiao",p.Jump2="erjitiao",p.Dead="jiluo";class d extends Laya.Sprite{constructor(){super(),this.gravity=.8,this.dx=0,this.dy=0,this.isFalling=!1,this.isJumping=!1,this.isRuning=!1,this.isDeath=!1,this.isStand=!1,this.downDy=0,this.jumpSpeed=0,this.jumpCounter=0,this.runRate=.8,this.isGO=!1,this.speed=0,this.addSpeed=0,this.stepRate=1,this.createRole(),this.reset()}get width(){return 160}get height(){return 240}createRole(){this.role&&(this.role.destroy(),this.role=null);this.role=new Laya.Skeleton,this.role.load("res/ani/nv2.sk",Laya.Handler.create(this,()=>{this.addChild(this.role),this.playStandby()}))}playStandby(){this.isStand&&(this.role.playbackRate(1),this.role.play(p.Standby,!0,!1),this.isRuning=!1,this.isStand=!0)}playReadyRun(){this.role.playbackRate(1),this.role.play(p.ReadyRun,!1),Laya.timer.once(100,this,()=>{this.isRuning=!0,this.isStand=!1})}playRun(){this.role.playbackRate(this.runRate),this.role.play(p.Run,!0,!1),this.isStand=!1}playStopRun(){this.role.playbackRate(1),this.role.play(p.StopRun,!1,!1),this.isRuning=!1}playJump(){this.role.playbackRate(1),this.role.play(p.Jump,!1,!0),this.isJumping=!0,this.isStand=!1}playJump2(){this.role.playbackRate(1),this.role.play(p.Jump2,!1,!0),this.isJumping=!0,this.isStand=!1}playDead(){this.role.playbackRate(1),this.role.play(p.Dead,!1,!0),this.dy=0,this.dx=0,this.isJumping=!1,this.isFalling=!1,C.model.jumpCount=0,C.view.gameView.jumpCountTime=C.model.jumpCountTime}update(){this.dy>0&&!this.isDeath&&(this.dx=0,this.downDy=0,this.runRate=.8,this.y-=this.jumpSpeed,this.jumpSpeed>2?this.jumpSpeed-=.4:this.jumpSpeed=2,this.y-this.dy<=5&&(this.jumpSpeed=.3),this.isFalling=!1,this.y<=this.dy&&(this.y=this.dy,this.dy=0,this.isFalling=!0),this.isJumping||this.playJump()),this.dx>0&&!this.isDeath&&this.isRuning?(this.speed+=this.addSpeed*Math.min(1,C.model.step/this.stepRate),this.speed>C.model.forwordSpeedMax&&(this.speed=C.model.forwordSpeedMax),this.x+=this.speed,this.dx-=C.model.forwordSpeed/2,this.x>=1650&&(this.x=1650,this.dx=0),this.x>=460&&!this.isGO&&(this.isGO=!0)):this.speed>0&&(this.speed=0),this.x<=460&&this.isGO?(this.x=460,!C.model.isPlaying||this.isFalling||this.isJumping||this.isDeath||this.isRuning&&this.playRun()):this.x>C.view.gameView.startPosImg.x?this.isFalling||this.isJumping||this.isDeath||(this.curBackSpeed<this.backSpeed&&(this.curBackSpeed+=.1),this.x-=this.curBackSpeed,this.runRate-=.01,this.runRate<=.8&&(this.runRate=.8),this.role.playbackRate(this.runRate),this.isRuning&&this.playRun()):(this.x=C.view.gameView.startPosImg.x,!C.model.isPlaying||!this.isRuning&&(this.isStand||this.y!=C.view.gameView.startPosImg.y||this.isFalling||this.isJumping)||(this.isStand=!0,this.playStopRun(),Laya.timer.once(300,this,()=>{this.playStandby()}))),this.isFalling&&this.isJumping&&(this.downDy+=this.gravity,this.y+=this.downDy,this.jumpSpeed+=.4,this.y>C.view.gameView.startPosImg.y&&(this.y=C.view.gameView.startPosImg.y,this.isJumping=!1,this.isFalling=!1,C.model.jumpCount=0,C.view.gameView.jumpCountTime=C.model.jumpCountTime))}showHit(){this.hitTween=Laya.TimeLine.to(this,{alpha:.3},200),this.hitTween.play(0,!0)}hideHit(){this.alpha=1,this.hitTween.pause()}reset(){this.dx=0,this.dy=0,this.isFalling=!1,this.isJumping=!1,this.isRuning=!1,this.isStand=!0,this.runRate=.8,this.isDeath=!1,this.isGO=!1,this.role.templet&&this.playStandby(),1==C.model.gameType?(this.backSpeed=.7*C.model.backSpeed,this.addSpeed=.3,this.stepRate=100):2==C.model.gameType?(this.backSpeed=.9*C.model.backSpeed,this.addSpeed=.25,this.stepRate=150):3==C.model.gameType&&(this.backSpeed=C.model.backSpeed,this.addSpeed=.2,this.stepRate=200)}showProtectLight(){this.protectLight?(this.protectLight.visible=!0,this.protectLight.play("Play",!0)):(this.protectLight=new Laya.Skeleton,this.protectLight.load("res/ani/Shield_after.sk",Laya.Handler.create(this,()=>{this.protectLight.pos(0,20),this.protectLight.scale(3,3),this.addChild(this.protectLight),this.protectLight.play("Play",!0)})))}stopProtectLight(){this.protectLight&&(this.protectLight.stop(),this.protectLight.visible=!1)}destroy(){this.role&&this.role.destroy(),this.role=null,super.destroy()}}const m=1e3/60;var c,y,x;!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.CANCLE_KEY=2005]="CANCLE_KEY",e[e.ENTER_KEY=2006]="ENTER_KEY"}(c||(c={})),function(e){e[e.STOP=0]="STOP",e[e.RUN=1]="RUN",e[e.JUMP=2]="JUMP",e[e.DOWN=3]="DOWN",e[e.LEFT=4]="LEFT",e[e.RIGHT=5]="RIGHT",e[e.FRONT=6]="FRONT",e[e.BACK=7]="BACK",e[e.LEFT_UP=8]="LEFT_UP",e[e.LEFT_DOWN=9]="LEFT_DOWN",e[e.RIGHT_UP=10]="RIGHT_UP",e[e.RIGHT_DOWN=11]="RIGHT_DOWN",e[e.STEP=12]="STEP",e[e.MOTION_JUMP_OC=13]="MOTION_JUMP_OC",e[e.MOTION_JUMP_VERTICAL=14]="MOTION_JUMP_VERTICAL",e[e.NUMBERS_OF_MOTION=15]="NUMBERS_OF_MOTION"}(y||(y={})),function(e){e[e.FREQ=1e3]="FREQ"}(x||(x={}));class u{constructor(e,t){this._target=e,this._fn=t}}const w=new class{constructor(){this._events={},this._motion=[0,0,0,0],this._motionTime=[0,0,0,0],this._stepFreq=0,this._stepCount=0,this._responseCallMap={string:Function}}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=m){return this.isMotion(0,e)}isRightFootDown(e=m){return this.isMotion(1,e)}getCmd(){let e=this._cmd;return e>0&&(this._cmd=0),e}cmd(e,t){this._cmd=t+c.NONE_INTERATION;let i=(new Date).getTime();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]<33)continue;this._motionTime[e]=o;let t=r[e],i=t.toString();this.emit(i,o),console.log("motion set "+t+" -> "+i+" "+y[t])}}getStepFreq(){return this._stepFreq}getStepCount(){return this._stepCount}stepFreq(e){this._stepFreq=e,console.log("step freq "+e),this.emit(x.FREQ.toString(),e)}step(e,t){this.stepFreq(e),this._stepCount=t,console.log("step count "+t)}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){let s=this._events[e]||[];return t&&s.push(new u(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}onBackPressed(){this._callsdk("onBackPressed",{})}onGameStart(){window.SDKBridge&&window.SDKBridge.postMessage(JSON.stringify({method:"onGameStart"})),this._callsdk("onGameStart",{})}onGameEnd(e=0,t=0,i=0,s=0,a=0){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){this._callsdk("vibrate",{duration:e})}_callsdk(e,t){console.log("sdk call "+e),window.SDKBridge&&window.SDKBridge.postMessage(JSON.stringify({method:e,args:t}))}};window.SHOES_SDK=w;class v 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(),C.view.gameView.socreTxtArr=C.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",v);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 f extends Laya.Animation{static createOnceAni(e,t,i,s,a,n,o,r=15,h){let l=Laya.Pool.getItemByClass("FuritAnimation",f);return l.autoPlay=!0,l.interval=r,l.source=n,l.pivotX=i,l.pivotY=s,l.scale(a,a),l.pos(e,t),l.on(Laya.Event.COMPLETE,this,()=>{Laya.Pool.recover("FuritAnimation",l.removeSelf()),h&&h.run()}),o.addChild(l),l}}class k extends e.ui.GameViewUI{constructor(){super(),this.curTime=0,this.countNum=1,this.runCountTime=0,this.jumpCountTime=0,this.isProtect=!1,this.isScoreHigh=!1,this.goldIndex=0,this.goldNum=0,this.gradeCount=0,this.stepCount=0,this.creatCount=0,this.model=C.model}onAwake(){super.onAwake(),this.player=new d,this.player.zOrder=1e3,this.player.pos(this.startPosImg.x,this.startPosImg.y),this.playBox.addChild(this.player),this.playerShadow=new Laya.Image("res/imgs/game/shadow.png"),this.playerShadow.pos(this.player.x-80,this.startPosImg.y-20),this.playerShadow.scale(3,3),this.playBox.addChild(this.playerShadow)}onEnable(){super.onEnable(),this.addEvent(),this.size(this.model.initW,this.model.initH),this.createPosArr=[],this.endPosArr=[];for(let e=1;e<=12;e++)this.createPosArr[e]=this[`${"createPos"+e}`],this.endPosArr[e]=this[`${"endPos"+e}`];this.sdStartPosArr=[],this.sdEndPosArr=[];for(let e=1;e<=4;e++)this.sdStartPosArr[e]=this[`${"sdStartPos"+e}`],this.sdEndPosArr[e]=this[`${"sdEndPos"+e}`]}addEvent(){this.startBtn.on(Laya.Event.CLICK,this,this.onClick),this.settingBtn.on(Laya.Event.CLICK,this,this.onClick)}removeEvent(){this.startBtn.off(Laya.Event.CLICK,this,this.onClick),this.settingBtn.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),this.runBtn.on(Laya.Event.CLICK,this,this.playRun),this.jumpBtn.on(Laya.Event.CLICK,this,this.playJump),w.on(y.JUMP.toString(),this.playJump,this),w.on(c.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),this.runBtn.off(Laya.Event.CLICK,this,this.playRun),this.jumpBtn.off(Laya.Event.CLICK,this,this.playJump),w.off(y.JUMP.toString(),this.playJump),w.off(c.CANCLE_KEY.toString(),this.showPauseView)}onClick(e){switch(e.currentTarget){case this.startBtn:this.startGame();break;case this.settingBtn:this.showPauseView()}}showPauseView(){this.pauseGame(),C.view.pauseViewView.show()}onkeydown(e){Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.RIGHT)&&!this.keyDownList[e.keyCode]&&this.playRun(),Laya.KeyBoardManager.hasKeyDown(Laya.Keyboard.UP)&&!this.keyDownList[e.keyCode]&&this.playJump(),this.keyDownList[e.keyCode]=!0}onKeyUp(e){delete this.keyDownList[e.keyCode]}updateRun(){if(w.getStepCount()>this.stepCount){if(this.stepCount++,this.model.step=w.getStepFreq(),this.player.isFalling||this.player.isJumping||!this.model.isPlaying||this.player.isDeath)return;this.player.dx=this.model.onceAddSpeed,this.player.curBackSpeed=0,this.player.runRate<=1.5&&(this.player.runRate+=.2),this.player.isRuning||this.player.playReadyRun()}}playRun(){C.model.step=200*Math.random(),this.player.isFalling||this.player.isJumping||!this.model.isPlaying||this.player.isDeath||(this.player.dx=this.model.onceAddSpeed,this.player.curBackSpeed=0,this.player.runRate<=1.5&&(this.player.runRate+=.2),this.player.isRuning||this.player.playReadyRun())}playJump(){if(this.model.isPlaying&&!this.player.isDeath&&this.model.jumpCount<2){if(1==this.model.jumpCount&&this.jumpCountTime<=0)return;this.player.dy=this.player.y-this.model.onceAddJump,this.jumpCountTime=this.model.jumpCountTime,this.model.jumpCount++,this.player.jumpSpeed=this.model.jumpSpeed,2==this.model.jumpCount&&this.player.playJump2(),core.SoundManager.playSound(o.getSound(o.sound.jump))}}startGame(){this.openAni.play(0,!1),this.startBtn.visible=!1,this.model.isStarGame=!0,this.startOrOverBg.visible=!0;for(let e=0;e<=3;e++)Laya.timer.once(1e3*e,this,()=>{3-e>0?this.startOrOverImg.skin=`res/imgs/game/time${3-e}.png`:(this.startOrOverImg.skin="res/imgs/game/text_go.png",core.SoundManager.playSound(o.getSound(o.sound.readyGo)),Laya.timer.once(800,this,()=>{this.goAni.play(0,!1)})),this.countAni.play(0,!1)},null,!1);Laya.timer.once(4e3,this,()=>{this.model.isPlaying=!0,core.SoundManager.playMusic(o.getSound(o.sound.bgm));let e=this.runWayAni.interval;1==this.model.gameType?this.runWayAni.interval=e+.5*e:2==this.model.gameType&&(this.runWayAni.interval=e+.25*e),this.runWayAni.play(0,!0),this.pd_LigthImg.skin="res/imgs/game/bg/pd_bright.png",this.startOrOverBg.visible=!1,this.settingBtn.visible=!0,this.startBg.visible=!1,Laya.timer.frameLoop(1,this,this.animate),w.onGameStart()},null,!1)}pauseGame(){this.player.role.stop(),this.pd_LigthImg.skin="res/imgs/game/bg/pd_dark.png",this.runWayAni.stop();for(let e=0;e<this.enemies.length;e++)this.enemies[e].moveTween&&this.enemies[e].scaleTween&&(this.enemies[e].moveTween.pause(),this.enemies[e].scaleTween.pause(),this.enemies[e].shadow.sdMoveTween&&this.enemies[e].shadow.sdScaleTween&&(this.enemies[e].shadow.sdMoveTween.pause(),this.enemies[e].shadow.sdScaleTween.pause()));Laya.timer.clear(this,this.animate),this.removeJumpEvent()}continueGame(){this.openAni.play(0,!1),this.startBg.visible=!0,this.startOrOverBg.visible=!0;for(let e=0;e<3;e++)Laya.timer.once(1e3*e,this,()=>{this.startOrOverImg.skin=`res/imgs/game/time${3-e}.png`,3-e==1&&Laya.timer.once(800,this,()=>{this.goAni.play(0,!1);for(let e=0;e<this.enemies.length;e++)this.enemies[e].moveTween&&this.enemies[e].scaleTween&&(this.enemies[e].moveTween.resume(),this.enemies[e].scaleTween.resume(),this.enemies[e].shadow.sdMoveTween&&this.enemies[e].shadow.sdScaleTween&&(this.enemies[e].shadow.sdMoveTween.resume(),this.enemies[e].shadow.sdScaleTween.resume()));this.pd_LigthImg.skin="res/imgs/game/bg/pd_bright.png",this.runWayAni.play(0,!0),Laya.timer.frameLoop(1,this,this.animate),this.addJumpEvent(),Laya.timer.once(200,this,()=>{this.startOrOverBg.visible=!1,this.startBg.visible=!1},null,!1)}),this.countAni.play(0,!1)},null,!1)}exitGame(){Laya.timer.scale=1;let e=0;switch(this.model.gameType){case 1:this.curScore>this.model.level1HighScoreData&&(this.isScoreHigh=!0,this.model.setLevel1HighSocreData(this.curScore)),e=this.model.level1HighScoreData;break;case 2:this.curScore>this.model.level2HighScoreData&&(this.isScoreHigh=!0,this.model.setLevel2HighSocreData(this.curScore)),e=this.model.level2HighScoreData;break;case 3:this.curScore>this.model.level3HighScoreData&&(this.isScoreHigh=!0,this.model.setLevel3HighSocreData(this.curScore)),e=this.model.level3HighScoreData}w.onGameEnd(this.model.gameType,this.curScore),C.view.homeView.show(),C.view.hideGameView()}animate(){this.updateRun(),this.updatePlayer(),(this.model.isPlaying||this.model.isStarGame)&&(this.curTime>0?(this.curTime-=Laya.timer.delta,this.timeTxt.text=this.exchangeCDTime(this.curTime)):this.model.isPlaying&&this.gameOver(),this.updateEnemies())}updatePlayer(){this.player.update(),this.playerShadow.x=this.player.x-80,this.TirggerEnemies(),this.runCountTime>0&&(this.runCountTime-=Laya.timer.delta),this.jumpCountTime>0&&(this.jumpCountTime-=Laya.timer.delta)}exchangeCDTime(e){let t=parseInt(e/1e3/60%60+""),i=parseInt(e/1e3%60+""),s=e%100;return t<10&&(t="0"+t),i<10&&(i="0"+i),s<10&&(s="0"+s),t+":"+i+"`"+s}updateEnemies(){for(let e=0;e<this.createPosTime.length;e++)this.createPosTime[e]&&this.createPosTime[e]>0&&(this.createPosTime[e]-=this.timer.delta,this.createPosTime[e]<=0&&(this.createPosArr[e].skin="res/imgs/game/bg/led_dark.png"));if(!(this.countNum>=this.levelConfig.length)&&this.curTime<=1e3*C.dataManager.getLevelConfig(this.model.gameType,this.countNum).time){for(let e=0;e<C.dataManager.getLevelConfig(this.model.gameType,this.countNum).type.length;e++){this.createPosArr[C.dataManager.getLevelConfig(this.model.gameType,this.countNum).posArr[e]].skin="res/imgs/game/bg/led_bright.png";let t,i=C.dataManager.getLevelConfig(this.model.gameType,this.countNum).type[e],s=C.dataManager.getLevelConfig(this.model.gameType,this.countNum).posArr[e],a=Laya.Point.create();a.x=this.createPosArr[s].x,a.y=this.createPosArr[s].y,a=this.createBox.localToGlobal(a),1==i?t="":2==i?t="res/imgs/game/boomEnemy.png":3==i&&(t="");let n=g.create(a.x-this.gameBox.x,a.y-this.gameBox.y,t,i,s);this.creatCount++,n.zOrder=1e3-this.creatCount,n.alpha=0,this.playBox.addChild(n),this.enemies.push(n),n.startMove(),this.createPosTime[s]=2e3}this.countNum++}}TirggerEnemies(){for(let e=0;e<this.enemies.length;e++)if(this.player.y-this.enemies[e].y<=200&&this.player.y-this.enemies[e].y>=-100&&this.player.x-this.enemies[e].x<=150&&this.player.x-this.enemies[e].x>=-150&&this.enemies[e].scaleX>=.8&&this.enemies[e].scaleY>=.8&&this.enemies[e].parent){if(this.model.jumpCount<1&&this.enemies[e].index>4)return;let t,i;if(1==this.enemies[e].type||3==this.enemies[e].type?(core.SoundManager.playSound(o.getSound(o.sound.combo)),1==this.enemies[e].type?(1==this.model.gameType?(t="+100",this.curScore+=100):2==this.model.gameType?(t="+150",this.curScore+=150):3==this.model.gameType&&(t="+200",this.curScore+=200),i=1,this.showGrade(!0,!1,!0)):(1==this.model.gameType?(t="+300",this.curScore+=300):2==this.model.gameType?(t="+350",this.curScore+=350):3==this.model.gameType&&(t="+400",this.curScore+=400),i=2,this.showGrade(!0,!0,!0)),f.createOnceAni(this.enemies[e].x,this.enemies[e].y,190,210,1.5,"res/ani/gold.atlas",this.playBox)):2==this.enemies[e].type&&(this.player.isDeath||(1==this.model.gameType?(t="-200",this.curScore-=200):2==this.model.gameType?(t="-250",this.curScore-=250):3==this.model.gameType&&(t="-300",this.curScore-=300),i=3,this.huaryUpAniL.play(0,!0),this.huaryUpAniR.play(0,!0),this.huaryUpAniL.visible=!0,this.huaryUpAniR.visible=!0,this.showGrade(!1,!1,!1),w.vibrate(500),Laya.timer.once(500,this,()=>{this.huaryUpAniL.stop(),this.huaryUpAniR.stop(),this.huaryUpAniL.visible=!1,this.huaryUpAniR.visible=!1}),f.createOnceAni(this.enemies[e].x,this.enemies[e].y,266,209,1.5,"res/ani/boom.atlas",this.playBox,30),this.curScore<=0&&(this.curScore=0),this.isProtect||(this.isProtect=!0,this.player.showHit(),2==this.model.jumpCount?(this.player.isDeath=!0,this.player.playDead(),Laya.Tween.to(this.player,{y:this.startPosImg.y},500),Laya.timer.once(2e3,this,()=>{this.player.isDeath=!1,this.player.isRuning=!1,this.player.isStand=!0,this.player.playReadyRun(),Laya.timer.once(500,this,()=>{this.player.hideHit(),this.isProtect=!1})})):(0==this.model.jumpCount&&460!=this.player.x&&(this.player.x-this.enemies[e].x<=0?Laya.Tween.to(this.player,{x:this.player.x-this.enemies[e].width/2},200):Laya.Tween.to(this.player,{x:this.player.x+this.enemies[e].width/2},200)),Laya.timer.once(2500,this,()=>{this.player.hideHit(),this.isProtect=!1}))))),t){let s=Laya.Point.create();s.x=this.endPosArr[this.enemies[e].index].x,s.y=this.endPosArr[this.enemies[e].index].y,s=this.createBox.localToGlobal(s);let a=v.create(s.x+120,s.y-150,i,t);a.zOrder=1001,this.playBox.addChild(a),this.socreTxtArr.push(a)}this.enemies[e].isDeath=!0,this.enemies[e].destroy(),this.updateScore()}}showGrade(e=!1,t=!1,i=!1){e?(this.goldNum++,i?(t&&(this.gradeImg.skin="res/imgs/game/great.png",this.scoreGrade.visible=!0,this.gradeAni.play(0,!1)),this.goldNum==this.goldCountArr[this.goldIndex]&&(this.gradeCount++,!t&&this.isGood&&(3==this.gradeCount?this.gradeImg.skin="res/imgs/game/amaze.png":4==this.gradeCount||this.gradeCount>=this.goldCountArr.length?this.gradeImg.skin="res/imgs/game/perfect.png":1==this.gradeCount&&(this.gradeImg.skin="res/imgs/game/good.png"),this.scoreGrade.visible=!0,this.gradeAni.play(0,!1)),this.goldIndex++,this.goldNum=0,this.isGood=!0)):(this.gradeCount=0,this.isGood=!1,this.goldNum==this.goldCountArr[this.goldIndex]&&(this.goldIndex++,this.goldNum=0,this.isGood=!0))):(this.gradeCount=0,this.isGood=!1)}updateScore(){this.scoreTxt.text=this.curScore+""}gameOver(){this.timeTxt.text="00:00`00",this.model.isPlaying=!1,this.model.isStarGame=!1,this.startBg.visible=!1,this.startBg.visible=!0,this.startOrOverBg.visible=!0,this.startOrOverImg.skin="res/imgs/game/text_finsh.png",this.removeEvent(),this.removeJumpEvent(),this.player.isGO=!1,this.player.backSpeed=this.model.backSpeed,this.player.playStopRun(),this.gameOverAni.play(0,!1);let e=0;switch(this.model.gameType){case 1:this.curScore>this.model.level1HighScoreData&&(this.isScoreHigh=!0,this.model.setLevel1HighSocreData(this.curScore)),e=this.model.level1HighScoreData;break;case 2:this.curScore>this.model.level2HighScoreData&&(this.isScoreHigh=!0,this.model.setLevel2HighSocreData(this.curScore)),e=this.model.level2HighScoreData;break;case 3:this.curScore>this.model.level3HighScoreData&&(this.isScoreHigh=!0,this.model.setLevel3HighSocreData(this.curScore)),e=this.model.level3HighScoreData}w.onGameEnd(this.model.gameType,this.curScore),Laya.timer.once(300,this,()=>{this.player.playStandby(),Laya.timer.once(2500,this,()=>{this.runWayAni.stop(),this.pd_LigthImg.skin="res/imgs/game/bg/pd_dark.png",Laya.timer.once(2e3,this,()=>{C.view.resultView.show(this.curScore,e,this.isScoreHigh),C.view.hideGameView()})})})}onDisable(){super.onDisable(),this.removeEvent(),this.removeJumpEvent(),Laya.timer.clear(this,this.animate)}destroy(){super.destroy(),Laya.Tween.clearAll(this.player),Laya.timer.clearAll(this),this.enemies&&core.ObjectUtil.destroyList(...this.enemies),this.socreTxtArr&&core.ObjectUtil.destroyList(...this.socreTxtArr),this.model=null,this.player=null,this.enemies=null}resetGame(){switch(core.SoundManager.stopAllSound(),this.enemies&&core.ObjectUtil.destroyList(...this.enemies),this.enemies=[],this.curScore=0,this.updateScore(),this.model.reset(),this.player.reset(),this.runWayAni.stop(),this.pd_LigthImg.skin="res/imgs/game/bg/pd_dark.png",this.startBg.visible=!0,this.settingBtn.visible=!1,this.model.isPlaying=!1,this.model.isStarGame=!1,this.isScoreHigh=!1,this.countNum=1,this.curTime=1e3*C.dataManager.getLevelConfig(this.model.gameType,0).time,this.timeTxt.text=this.exchangeCDTime(this.curTime),this.keyDownList=[],this.createPosTime=[],this.socreTxtArr=[],this.playerShadow.x=this.player.x-80,this.goldIndex=0,this.goldNum=0,this.gradeCount=0,this.stepCount=0,this.runCountTime=this.model.runCountTime,this.jumpCountTime=this.model.jumpCountTime,this.huaryUpAniL.stop(),this.huaryUpAniR.stop(),this.huaryUpAniL.visible=!1,this.huaryUpAniR.visible=!1,this.model.gameType){case 1:this.highScoreTxt.text=this.model.level1HighScoreData+"";break;case 2:this.highScoreTxt.text=this.model.level2HighScoreData+"";break;case 3:this.highScoreTxt.text=this.model.level3HighScoreData+""}for(let e=0;e<this.createPosArr.length;e++)this.createPosArr[e]&&(this.createPosArr[e].skin="res/imgs/game/bg/led_dark.png");this.player.pos(this.startPosImg.x,this.startPosImg.y),Laya.timer.scale=1,this.addJumpEvent()}show(e){Laya.stage.addChild(this),this.model.gameType=e,1==this.model.gameType?(this.gametypeTxt.text="简单",this.levelConfig=C.dataManager.levelConfig1,this.goldCountArr=C.dataManager.goldCountArr1):2==this.model.gameType?(this.gametypeTxt.text="中等",this.levelConfig=C.dataManager.levelConfig2,this.goldCountArr=C.dataManager.goldCountArr2):3==this.model.gameType&&(this.gametypeTxt.text="困难",this.levelConfig=C.dataManager.levelConfig3,this.goldCountArr=C.dataManager.goldCountArr3),this.resetGame(),this.startGame()}}class I extends e.ui.HomeViewUI{constructor(){super(),this.index=1}onAwake(){super.onAwake()}onEnable(){super.onEnable(),this.addEvent(),this.noBtn.on(Laya.Event.CLICK,this,this.onClick),this.yesBtn.on(Laya.Event.CLICK,this,this.onClick),this.index=1,this.setSkin(),this.openAni.play(0,!1),this.level1TimeTxt.text="时间:"+this.exchangeCDTime(1e3*C.dataManager.getLevelConfig(1,0).time),this.level2TimeTxt.text="时间:"+this.exchangeCDTime(1e3*C.dataManager.getLevelConfig(2,0).time),this.level3TimeTxt.text="时间:"+this.exchangeCDTime(1e3*C.dataManager.getLevelConfig(3,0).time),this.level1ScoreTxt.text="历史最高:"+C.model.level1HighScoreData.toString(),this.level2ScoreTxt.text="历史最高:"+C.model.level2HighScoreData.toString(),this.level3ScoreTxt.text="历史最高:"+C.model.level3HighScoreData.toString(),core.SoundManager.stopMusic()}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),w.on(c.BACK_LEFT.toString(),this.KeyUp,this),w.on(c.BACK_RIGHT.toString(),this.KeyDown,this),w.on(c.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),w.off(c.BACK_LEFT.toString(),this.KeyUp),w.off(c.BACK_RIGHT.toString(),this.KeyDown),w.off(c.ENTER_KEY.toString(),this.KeyEnter)}KeyUp(){this.index>1&&(this.index--,this.setSkin())}KeyDown(){this.index<3&&(this.index++,this.setSkin())}KeyEnter(){this.startGame(this.index)}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()}onClick(e){switch(e.currentTarget){case this.level1:this.index=1,this.setSkin(),this.startGame(1);break;case this.level2:this.index=2,this.setSkin(),this.startGame(2);break;case this.level3:this.index=3,this.setSkin(),this.startGame(3);break;case this.rankBtn:this.showRankView();break;case this.settingBtn:this.showSettingView();break;case this.homeBtn:this.showExitGameView();break;case this.noBtn:this.hideExitGameView();break;case this.yesBtn:w.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;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;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}}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:.95,scaleY:.95},100,null,Laya.Handler.create(this,()=>{Laya.timer.once(300,this,()=>{C.view.gameView.show(e),C.view.hideHomeView()})}))}showRankView(){Laya.Tween.to(this.rankBtn,{scaleX:.95,scaleY:.95},100,null,Laya.Handler.create(this,()=>{Laya.timer.once(300,this,()=>{C.view.rankView.show(),C.view.hideHomeView()})}))}showSettingView(){Laya.Tween.to(this.settingBtn,{scaleX:.95,scaleY:.95},100,null,Laya.Handler.create(this,()=>{Laya.timer.once(300,this,()=>{C.view.settingView.show(),C.view.hideHomeView()})}))}showExitGameView(){this.exitBg.visible=!0,this.exitBtnBg.visible=!0,this.removeEvent()}hideExitGameView(){this.exitBg.visible=!1,this.exitBtnBg.visible=!1,this.addEvent()}exchangeCDTime(e){let t=parseInt(e/1e3/60%60+""),i=parseInt(e/1e3%60+""),s=e%100;return t<10&&(t="0"+t),i<10&&(i="0"+i),s<10&&(s="0"+s),t+":"+i+"`"+s}onDisable(){super.onDisable(),this.removeEvent(),this.noBtn.off(Laya.Event.CLICK,this,this.onClick),this.yesBtn.on(Laya.Event.CLICK,this,this.onClick)}destroy(){super.destroy()}show(){Laya.stage.addChild(this)}}class b 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:C.model.allHighScoreData,rank:1},this.rankType=1,this.wordInfoList=[],this.friendInfoList=[],this.rankList.vScrollBarSkin="",window.SDKBridge||(this.rankList.array=this.notRankInfo(),this.rankList.refresh(),this.setSelfInfo(3),this.openAni.play(0,!1),this.rankList.visible=!0),w.getUserInfo(e=>{this.selfInfo=e,log("info",e)}),w.getRank(1,e=>{this.friendInfoList=e[1].list,log("获取好友排行榜信息",this.friendInfoList,e[1].list),this.rankList.array=this.getFriendRankList(),this.rankList.refresh(),this.openAni.play(0,!1),this.setSelfInfo(2),this.openAni.play(0,!1),this.rankList.visible=!0,w.getRank(0,e=>{this.wordInfoList=e[1].list,log("获取世界排行榜信息",this.wordInfoList,e[1].list)})})}notRankInfo(){let e=[],t={index:1,id:1,name:"nickname",gender:1,avatar:"",score:C.model.allHighScoreData,rank:1};return e.push(t),this.testInfo=e[0],e}setSelfInfo(e){let t=1,i=C.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,this.scoreTxt.text=i.toString());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,this.scoreTxt.text=i.toString());break;case 3:t=this.testInfo.rank}if(t<=10){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}onAwake(){super.onAwake(),this.init()}onEnable(){super.onEnable(),this.addEvent()}init(){this.rankType=1,this.friendBg.visible=!0,this.wordBg.visible=!1}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(e.currentTarget){case this.friendBtn:this.showFriendRank();break;case this.wordBtn:this.showWordRank();break;case this.closeBtn:C.view.homeView.show(),C.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.notRankInfo(),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.notRankInfo(),this.setSelfInfo(3)),this.rankList.refresh(),this.openAni.play(0,!1))}getFriendRankList(){let e=[];for(let t=0;t<this.friendInfoList.length;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;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 L extends e.ui.ResultViewUI{constructor(){super()}onAwake(){super.onAwake()}onEnable(){super.onEnable(),this.addEvent()}addEvent(){this.on(Laya.Event.CLICK,this,this.onClick),w.on(c.ENTER_KEY.toString(),this.KeyEnter,this)}removeEvent(){this.off(Laya.Event.CLICK,this,this.onClick),w.off(c.ENTER_KEY.toString(),this.KeyEnter)}onClick(e){switch(e.currentTarget){case this:C.view.homeView.show(),C.view.hideResultView()}}KeyEnter(){C.view.homeView.show(),C.view.hideResultView()}onDisable(){super.onDisable(),this.removeEvent()}destroy(){super.destroy()}show(e,t,i=!1){Laya.stage.addChild(this),i?(this.scoreTxt.color="#ff9005",this.tittleImg.skin="res/imgs/result/tittle_dpjl.png"):(this.scoreTxt.color="#ffffff",this.tittleImg.skin="res/imgs/result/tittle_df.png"),this.scoreTxt.text=e.toString(),this.highScoreTxt.text=t.toString()}}class S extends e.ui.PauseViewUI{constructor(){super(),this.index=1}onAwake(){super.onAwake()}onEnable(){super.onEnable(),this.addEvent(),this.index=1}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),w.on(c.BACK_LEFT.toString(),this.KeyUp,this),w.on(c.BACK_RIGHT.toString(),this.KeyDown,this),w.on(c.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),w.off(c.BACK_LEFT.toString(),this.KeyUp),w.off(c.BACK_RIGHT.toString(),this.KeyDown),w.off(c.ENTER_KEY.toString(),this.KeyEnter)}KeyUp(){this.index>1&&(this.index--,this.setSkin())}KeyDown(){this.index<3&&(this.index++,this.setSkin())}KeyEnter(){switch(this.index){case 1:C.view.gameView.continueGame();break;case 2:core.SoundManager.stopMusic(),C.view.gameView.resetGame(),C.view.gameView.startGame();break;case 3:C.view.gameView.exitGame()}C.view.hidePauseViewView()}onClick(e){switch(e.currentTarget){case this.continueBtn:C.view.gameView.continueGame();break;case this.resetBtn:core.SoundManager.stopMusic(),C.view.gameView.resetGame(),C.view.gameView.startGame();break;case this.exitBtn:C.view.gameView.exitGame()}C.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_tcd.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_tcd.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_tcb.png"}}onDisable(){super.onDisable(),this.removeEvent()}destroy(){super.destroy()}show(){Laya.stage.addChild(this)}}class _ 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(e.currentTarget){case this.closeBtn:C.view.homeView.show(),C.view.hideSettingView()}}onDisable(){super.onDisable(),this.removeEvent(),this.destroy()}destroy(){super.destroy()}show(){Laya.stage.addChild(this)}}class T{get homeView(){return this._homeView||(this._homeView=new I),this._homeView}hideHomeView(){this._homeView&&this._homeView.destroy(),this._homeView=null}get gameView(){return this._gameView||(this._gameView=new k),this._gameView}hideGameView(){this._gameView&&this._gameView.destroy(),this._gameView=null}get pauseViewView(){return this._pauseViewView||(this._pauseViewView=new S),this._pauseViewView}hidePauseViewView(){this._pauseViewView&&this._pauseViewView.destroy(),this._pauseViewView=null}get resultView(){return this._resultView||(this._resultView=new L),this._resultView}hideResultView(){this._resultView&&this._resultView.destroy(),this._resultView=null}get rankView(){return this._rankView||(this._rankView=new b),this._rankView}hideRankView(){this._rankView&&this._rankView.destroy(),this._rankView=null}get settingView(){return this._settingView||(this._settingView=new _),this._settingView}hideSettingView(){this._settingView&&this._settingView.destroy(),this._settingView=null}}class C{static init(){this.view=new T,this.model=new r,this.dataManager=new h,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-17f0168bbca.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.initManager()}initManager(){core.Manager.init(core.GameID.PARKOUR,Laya.Handler.create(this,this.preload))}preload(){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){}loadComplete(){C.init(),C.model.init(),this.startGame()}startGame(){C.view.homeView.show(),Laya.loader.load(o.preLoadUrls2)}}}();
|