Commit d7bd2972 authored by wangzhujun's avatar wangzhujun

123

parent 75347933
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
}, },
{ {
"name": "preload", "name": "preload",
"keys": "hand_png,hand2_png,ydlight_png,ydlight2_png,ydline_png,mapBtn_png,maphz_png,mappass_png,mram_png,mrbg_png,mrcx_png,mrhg_png,mrhz_png,mrmg_png,mrrb_png,mrtb_png,mrtitle_png,mrxg_png,pkadd_png,pkagainBtn_png,pkaskBtn_png,pkBG_png,pkBtn_png,pkcirle_png,pkloselight_png,pkloselogo_png,pkmyline_png,pkotherline_png,pkprizebg_png,pkprizeBtn_png,pkrulebg_png,pkrulebtn_png,pkscorebg_png,pkwinbg_png,pkwinBtn_png,pkwinlogo_png,plplacelogo_png,finishbg_png,finishBtn_png,finishlight_png,finishlogo_png,lessscorebg_png,lessscoreBtn_png,rankbg_png,rankbg2_png,rankline_png,rankmybg_png,rulebg_png,sharebg_png,shareBtn_png,sharelab_png,sharerecordbg_png,sharerecordBtn_png,背景@2x_png,BG_png,chaoxian_png,CHNaomen_png,CHNhangzhou_png,CHNtaiwan_png,CHNxianggang_png,closeBtn_png,fireBtn_png,getBtn_png,hanguo_png,horn_png,littletitle_png,lockBtn_png,menggu_png,prizeBtn_png,rankBtn_png,recordBtn_png,riben_png,ruleBtn_png,startBtn_png,starttitle_png,teamBtn_png,unchaoxian_png,unCHNaomen_png,unCHNhangzhou_png,unCHNtaiwan_png,unCHNxianggang_png,unhanguo_png,unmenggu_png,unriben_png,waitBtn_png,yylogo_png,closeBtn2_png,xuanshiBG_png,xuanshiBtn_png,ranklight_png,pknoton_png,box_png,head1_png,pkpeacelight_png,pkwinlight_png,pkendbg_png,mapshareBtn_png,pkscorebg2_png" "keys": "hand_png,hand2_png,ydlight_png,ydlight2_png,ydline_png,mapBtn_png,maphz_png,mappass_png,mram_png,mrbg_png,mrcx_png,mrhg_png,mrhz_png,mrmg_png,mrrb_png,mrtb_png,mrtitle_png,mrxg_png,pkadd_png,pkagainBtn_png,pkaskBtn_png,pkBG_png,pkBtn_png,pkcirle_png,pkloselight_png,pkloselogo_png,pkmyline_png,pkotherline_png,pkprizebg_png,pkprizeBtn_png,pkrulebg_png,pkrulebtn_png,pkscorebg_png,pkwinbg_png,pkwinBtn_png,pkwinlogo_png,plplacelogo_png,finishbg_png,finishBtn_png,finishlight_png,finishlogo_png,lessscorebg_png,lessscoreBtn_png,rankbg_png,rankbg2_png,rankline_png,rankmybg_png,rulebg_png,sharebg_png,shareBtn_png,sharelab_png,sharerecordbg_png,sharerecordBtn_png,背景@2x_png,BG_png,chaoxian_png,CHNaomen_png,CHNhangzhou_png,CHNtaiwan_png,CHNxianggang_png,closeBtn_png,fireBtn_png,getBtn_png,hanguo_png,horn_png,littletitle_png,lockBtn_png,menggu_png,prizeBtn_png,rankBtn_png,recordBtn_png,riben_png,ruleBtn_png,startBtn_png,starttitle_png,teamBtn_png,unchaoxian_png,unCHNaomen_png,unCHNhangzhou_png,unCHNtaiwan_png,unCHNxianggang_png,unhanguo_png,unmenggu_png,unriben_png,waitBtn_png,yylogo_png,closeBtn2_png,xuanshiBG_png,xuanshiBtn_png,ranklight_png,pknoton_png,box_png,head1_png,pkpeacelight_png,pkwinlight_png,pkendbg_png,mapshareBtn_png,pkscorebg2_png,hand3_png,hand22_png,ydlight3_png,ydlight22_png,ydline2_png,mapBtn2_png,maphz2_png,mappass2_png,mapshareBtn2_png,mram2_png,mrbg2_png,mrcx2_png,mrhg2_png,mrhz2_png,mrmg2_png,mrrb2_png,mrtb2_png,mrtitle2_png,mrxg2_png,box2_png,head12_png,pkadd2_png,pkagainBtn2_png,pkaskBtn2_png,pkBG2_png,pkBtn2_png,pkcirle2_png,pkendbg2_png,pkloselight2_png,pkloselogo2_png,pkmyline2_png,pknoton2_png,pkotherline2_png,pkpeacelight2_png,pkprizebg2_png,pkprizeBtn2_png,pkrulebg2_png,pkrulebtn2_png,pkscorebg3_png,pkscorebg22_png,pkwinbg2_png,pkwinBtn2_png,pkwinlight2_png,pkwinlogo2_png,plplacelogo2_png,finishbg2_png,finishBtn2_png,finishlight2_png,finishlogo2_png,lessscorebg2_png,lessscoreBtn2_png,rankbg3_png,rankbg22_png,ranklight2_png,rankline2_png,rankmybg2_png,rulebg2_png,sharebg2_png,shareBtn2_png,sharelab2_png,sharerecordbg2_png,sharerecordBtn2_png,背景@2x2_png,BG2_png,chaoxian2_png,CHNaomen2_png,CHNhangzhou2_png,CHNtaiwan2_png,CHNxianggang2_png,closeBtn3_png,fireBtn2_png,getBtn2_png,hanguo2_png,horn2_png,littletitle2_png,lockBtn2_png,menggu2_png,prizeBtn2_png,rankBtn2_png,recordBtn2_png,riben2_png,ruleBtn2_png,startBtn2_png,starttitle2_png,teamBtn2_png,unchaoxian2_png,unCHNaomen2_png,unCHNhangzhou2_png,unCHNtaiwan2_png,unCHNxianggang2_png,unhanguo2_png,unmenggu2_png,unriben2_png,waitBtn2_png,yylogo2_png,bg2_png,progress2_png,closeBtn4_png,xuanshiBG2_png,xuanshiBtn2_png"
} }
], ],
"resources": [ "resources": [
...@@ -513,6 +513,506 @@ ...@@ -513,6 +513,506 @@
"name": "pkscorebg2_png", "name": "pkscorebg2_png",
"type": "image", "type": "image",
"url": "assets/pk/pkscorebg2.png" "url": "assets/pk/pkscorebg2.png"
},
{
"name": "hand3_png",
"type": "image",
"url": "assets/guide/hand.png"
},
{
"name": "hand22_png",
"type": "image",
"url": "assets/guide/hand2.png"
},
{
"name": "ydlight3_png",
"type": "image",
"url": "assets/guide/ydlight.png"
},
{
"name": "ydlight22_png",
"type": "image",
"url": "assets/guide/ydlight2.png"
},
{
"name": "ydline2_png",
"type": "image",
"url": "assets/guide/ydline.png"
},
{
"name": "mapBtn2_png",
"type": "image",
"url": "assets/map/mapBtn.png"
},
{
"name": "maphz2_png",
"type": "image",
"url": "assets/map/maphz.png"
},
{
"name": "mappass2_png",
"type": "image",
"url": "assets/map/mappass.png"
},
{
"name": "mapshareBtn2_png",
"type": "image",
"url": "assets/map/mapshareBtn.png"
},
{
"name": "mram2_png",
"type": "image",
"url": "assets/myrecord/mram.png"
},
{
"name": "mrbg2_png",
"type": "image",
"url": "assets/myrecord/mrbg.png"
},
{
"name": "mrcx2_png",
"type": "image",
"url": "assets/myrecord/mrcx.png"
},
{
"name": "mrhg2_png",
"type": "image",
"url": "assets/myrecord/mrhg.png"
},
{
"name": "mrhz2_png",
"type": "image",
"url": "assets/myrecord/mrhz.png"
},
{
"name": "mrmg2_png",
"type": "image",
"url": "assets/myrecord/mrmg.png"
},
{
"name": "mrrb2_png",
"type": "image",
"url": "assets/myrecord/mrrb.png"
},
{
"name": "mrtb2_png",
"type": "image",
"url": "assets/myrecord/mrtb.png"
},
{
"name": "mrtitle2_png",
"type": "image",
"url": "assets/myrecord/mrtitle.png"
},
{
"name": "mrxg2_png",
"type": "image",
"url": "assets/myrecord/mrxg.png"
},
{
"name": "box2_png",
"type": "image",
"url": "assets/pk/box.png"
},
{
"name": "head12_png",
"type": "image",
"url": "assets/pk/head1.png"
},
{
"name": "pkadd2_png",
"type": "image",
"url": "assets/pk/pkadd.png"
},
{
"name": "pkagainBtn2_png",
"type": "image",
"url": "assets/pk/pkagainBtn.png"
},
{
"name": "pkaskBtn2_png",
"type": "image",
"url": "assets/pk/pkaskBtn.png"
},
{
"name": "pkBG2_png",
"type": "image",
"url": "assets/pk/pkBG.png"
},
{
"name": "pkBtn2_png",
"type": "image",
"url": "assets/pk/pkBtn.png"
},
{
"name": "pkcirle2_png",
"type": "image",
"url": "assets/pk/pkcirle.png"
},
{
"name": "pkendbg2_png",
"type": "image",
"url": "assets/pk/pkendbg.png"
},
{
"name": "pkloselight2_png",
"type": "image",
"url": "assets/pk/pkloselight.png"
},
{
"name": "pkloselogo2_png",
"type": "image",
"url": "assets/pk/pkloselogo.png"
},
{
"name": "pkmyline2_png",
"type": "image",
"url": "assets/pk/pkmyline.png"
},
{
"name": "pknoton2_png",
"type": "image",
"url": "assets/pk/pknoton.png"
},
{
"name": "pkotherline2_png",
"type": "image",
"url": "assets/pk/pkotherline.png"
},
{
"name": "pkpeacelight2_png",
"type": "image",
"url": "assets/pk/pkpeacelight.png"
},
{
"name": "pkprizebg2_png",
"type": "image",
"url": "assets/pk/pkprizebg.png"
},
{
"name": "pkprizeBtn2_png",
"type": "image",
"url": "assets/pk/pkprizeBtn.png"
},
{
"name": "pkrulebg2_png",
"type": "image",
"url": "assets/pk/pkrulebg.png"
},
{
"name": "pkrulebtn2_png",
"type": "image",
"url": "assets/pk/pkrulebtn.png"
},
{
"name": "pkscorebg3_png",
"type": "image",
"url": "assets/pk/pkscorebg.png"
},
{
"name": "pkscorebg22_png",
"type": "image",
"url": "assets/pk/pkscorebg2.png"
},
{
"name": "pkwinbg2_png",
"type": "image",
"url": "assets/pk/pkwinbg.png"
},
{
"name": "pkwinBtn2_png",
"type": "image",
"url": "assets/pk/pkwinBtn.png"
},
{
"name": "pkwinlight2_png",
"type": "image",
"url": "assets/pk/pkwinlight.png"
},
{
"name": "pkwinlogo2_png",
"type": "image",
"url": "assets/pk/pkwinlogo.png"
},
{
"name": "plplacelogo2_png",
"type": "image",
"url": "assets/pk/plplacelogo.png"
},
{
"name": "finishbg2_png",
"type": "image",
"url": "assets/pop/finishbg.png"
},
{
"name": "finishBtn2_png",
"type": "image",
"url": "assets/pop/finishBtn.png"
},
{
"name": "finishlight2_png",
"type": "image",
"url": "assets/pop/finishlight.png"
},
{
"name": "finishlogo2_png",
"type": "image",
"url": "assets/pop/finishlogo.png"
},
{
"name": "lessscorebg2_png",
"type": "image",
"url": "assets/pop/lessscorebg.png"
},
{
"name": "lessscoreBtn2_png",
"type": "image",
"url": "assets/pop/lessscoreBtn.png"
},
{
"name": "rankbg3_png",
"type": "image",
"url": "assets/pop/rankbg.png"
},
{
"name": "rankbg22_png",
"type": "image",
"url": "assets/pop/rankbg2.png"
},
{
"name": "ranklight2_png",
"type": "image",
"url": "assets/pop/ranklight.png"
},
{
"name": "rankline2_png",
"type": "image",
"url": "assets/pop/rankline.png"
},
{
"name": "rankmybg2_png",
"type": "image",
"url": "assets/pop/rankmybg.png"
},
{
"name": "rulebg2_png",
"type": "image",
"url": "assets/pop/rulebg.png"
},
{
"name": "sharebg2_png",
"type": "image",
"url": "assets/share/sharebg.png"
},
{
"name": "shareBtn2_png",
"type": "image",
"url": "assets/share/shareBtn.png"
},
{
"name": "sharelab2_png",
"type": "image",
"url": "assets/share/sharelab.png"
},
{
"name": "sharerecordbg2_png",
"type": "image",
"url": "assets/share/sharerecordbg.png"
},
{
"name": "sharerecordBtn2_png",
"type": "image",
"url": "assets/share/sharerecordBtn.png"
},
{
"name": "背景@2x2_png",
"type": "image",
"url": "assets/share/背景@2x.png"
},
{
"name": "BG2_png",
"type": "image",
"url": "assets/startScene/BG.png"
},
{
"name": "chaoxian2_png",
"type": "image",
"url": "assets/startScene/chaoxian.png"
},
{
"name": "CHNaomen2_png",
"type": "image",
"url": "assets/startScene/CHNaomen.png"
},
{
"name": "CHNhangzhou2_png",
"type": "image",
"url": "assets/startScene/CHNhangzhou.png"
},
{
"name": "CHNtaiwan2_png",
"type": "image",
"url": "assets/startScene/CHNtaiwan.png"
},
{
"name": "CHNxianggang2_png",
"type": "image",
"url": "assets/startScene/CHNxianggang.png"
},
{
"name": "closeBtn3_png",
"type": "image",
"url": "assets/startScene/closeBtn.png"
},
{
"name": "fireBtn2_png",
"type": "image",
"url": "assets/startScene/fireBtn.png"
},
{
"name": "getBtn2_png",
"type": "image",
"url": "assets/startScene/getBtn.png"
},
{
"name": "hanguo2_png",
"type": "image",
"url": "assets/startScene/hanguo.png"
},
{
"name": "horn2_png",
"type": "image",
"url": "assets/startScene/horn.png"
},
{
"name": "littletitle2_png",
"type": "image",
"url": "assets/startScene/littletitle.png"
},
{
"name": "lockBtn2_png",
"type": "image",
"url": "assets/startScene/lockBtn.png"
},
{
"name": "menggu2_png",
"type": "image",
"url": "assets/startScene/menggu.png"
},
{
"name": "prizeBtn2_png",
"type": "image",
"url": "assets/startScene/prizeBtn.png"
},
{
"name": "rankBtn2_png",
"type": "image",
"url": "assets/startScene/rankBtn.png"
},
{
"name": "recordBtn2_png",
"type": "image",
"url": "assets/startScene/recordBtn.png"
},
{
"name": "riben2_png",
"type": "image",
"url": "assets/startScene/riben.png"
},
{
"name": "ruleBtn2_png",
"type": "image",
"url": "assets/startScene/ruleBtn.png"
},
{
"name": "startBtn2_png",
"type": "image",
"url": "assets/startScene/startBtn.png"
},
{
"name": "starttitle2_png",
"type": "image",
"url": "assets/startScene/starttitle.png"
},
{
"name": "teamBtn2_png",
"type": "image",
"url": "assets/startScene/teamBtn.png"
},
{
"name": "unchaoxian2_png",
"type": "image",
"url": "assets/startScene/unchaoxian.png"
},
{
"name": "unCHNaomen2_png",
"type": "image",
"url": "assets/startScene/unCHNaomen.png"
},
{
"name": "unCHNhangzhou2_png",
"type": "image",
"url": "assets/startScene/unCHNhangzhou.png"
},
{
"name": "unCHNtaiwan2_png",
"type": "image",
"url": "assets/startScene/unCHNtaiwan.png"
},
{
"name": "unCHNxianggang2_png",
"type": "image",
"url": "assets/startScene/unCHNxianggang.png"
},
{
"name": "unhanguo2_png",
"type": "image",
"url": "assets/startScene/unhanguo.png"
},
{
"name": "unmenggu2_png",
"type": "image",
"url": "assets/startScene/unmenggu.png"
},
{
"name": "unriben2_png",
"type": "image",
"url": "assets/startScene/unriben.png"
},
{
"name": "waitBtn2_png",
"type": "image",
"url": "assets/startScene/waitBtn.png"
},
{
"name": "yylogo2_png",
"type": "image",
"url": "assets/startScene/yylogo.png"
},
{
"name": "bg2_png",
"type": "image",
"url": "assets/waiting/bg.png"
},
{
"name": "progress2_png",
"type": "image",
"url": "assets/waiting/progress.png"
},
{
"name": "closeBtn4_png",
"type": "image",
"url": "assets/xuanshi/closeBtn.png"
},
{
"name": "xuanshiBG2_png",
"type": "image",
"url": "assets/xuanshi/xuanshiBG.png"
},
{
"name": "xuanshiBtn2_png",
"type": "image",
"url": "assets/xuanshi/xuanshiBtn.png"
} }
] ]
} }
\ No newline at end of file
...@@ -39,19 +39,21 @@ export default class PKScene extends Scene{ ...@@ -39,19 +39,21 @@ export default class PKScene extends Scene{
this.myteamnum.text = data.myTeamSteps; this.myteamnum.text = data.myTeamSteps;
this.otherteamnum.text = data.enemyTeamSteps; this.otherteamnum.text = data.enemyTeamSteps;
if(data.myTeamSteps<50000){ if(data.myTeamSteps<50000){
this.myline.anchorOffsetY = this.myline.height
this.myline.height = 200+data.myTeamSteps*0.016 this.myline.height = 200+data.myTeamSteps*0.016
}else{ }else{
this.myline.anchorOffsetY = this.myline.height
this.myline.height = 1000+(data.myTeamSteps-50000)*0.01 this.myline.height = 1000+(data.myTeamSteps-50000)*0.01
} }
if(data.enemyTeamSteps<50000){ if(data.enemyTeamSteps<50000){
this.otherline.anchorOffsetY = this.otherline.height
this.otherline.height = 200+data.enemyTeamSteps*0.016 this.otherline.height = 200+data.enemyTeamSteps*0.016
}else{ }else{
this.otherline.anchorOffsetY = this.otherline.height
this.otherline.height = 1000+(data.enemyTeamSteps-50000)*0.01 this.otherline.height = 1000+(data.enemyTeamSteps-50000)*0.01
} }
this.myline.anchorOffsetY = this.myline.height
this.otherline.anchorOffsetY = this.otherline.height
for(let i = 1;i<data.myTeamMembers.length+1;i++){ for(let i = 1;i<data.myTeamMembers.length+1;i++){
this["team"+i]["onnum"].text = "+"+data.myTeamMembers[i-1].steps; this["team"+i]["onnum"].text = "+"+data.myTeamMembers[i-1].steps;
this["team"+i]["onphone"].text = data.myTeamMembers[i-1].phone; this["team"+i]["onphone"].text = data.myTeamMembers[i-1].phone;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment