Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yyh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
yyh
Commits
1193bf01
Commit
1193bf01
authored
Dec 10, 2019
by
wangzhujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1232
parent
fa1b7749
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
PKScene.ts
egret/src/yazuwei/PKScene.ts
+6
-4
No files found.
egret/src/yazuwei/PKScene.ts
View file @
1193bf01
...
...
@@ -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
=
100
0
+
(
data
.
myTeamSteps
-
50000
)
*
0.009
this
.
myline
.
height
=
GameConst
.
stage
.
stageHeight
/
2
-
307
+
48
0
+
(
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
=
100
0
+
(
data
.
enemyTeamSteps
-
50000
)
*
0.009
this
.
otherline
.
height
=
GameConst
.
stage
.
stageHeight
/
2
-
307
+
48
0
+
(
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment