Commit 1193bf01 authored by wangzhujun's avatar wangzhujun

1232

parent fa1b7749
......@@ -58,25 +58,27 @@ export default class PKScene extends Scene{
this.myscore.text = data.pkMyScore;
this.myteamnum.text = data.myTeamSteps;
this.otherteamnum.text = data.enemyTeamSteps;
let point:egret.Point = this.team1.localToGlobal(this.team1.x,this.team1.y)
if(data.myTeamSteps<50000){
this.myline.height = 520+data.myTeamSteps*0.0096
this.myline.height = GameConst.stage.stageHeight/2-307+data.myTeamSteps*0.0096
}else{
this.myline.height = 1000+(data.myTeamSteps-50000)*0.009
this.myline.height = GameConst.stage.stageHeight/2-307+480+(data.myTeamSteps-50000)*0.009
}
if(data.enemyTeamSteps<50000){
this.otherline.height = 520+data.enemyTeamSteps*0.0096
this.otherline.height = GameConst.stage.stageHeight/2-307+data.enemyTeamSteps*0.0096
}else{
this.otherline.height = 1000+(data.enemyTeamSteps-50000)*0.009
this.otherline.height = GameConst.stage.stageHeight/2-307+480+(data.enemyTeamSteps-50000)*0.009
}
this.myline.anchorOffsetY = this.myline.height
this.otherline.anchorOffsetY = this.otherline.height
this.myline.y = GameConst.stage.stageHeight;
this.otherline.y = GameConst.stage.stageHeight;
this.myteam.y = this.myline.y-this.myline.height-70;
this.myteamnum.y = this.myline.y-this.myline.height-35;
this.otherteam.y = this.otherline.y-this.otherline.height-70;
......
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