Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LST-05
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
LST-05
Commits
07f4a6aa
Commit
07f4a6aa
authored
Nov 20, 2020
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:调整显示位置
parent
c67f9a34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
play.component.ts
src/app/play/play.component.ts
+10
-11
No files found.
src/app/play/play.component.ts
View file @
07f4a6aa
...
...
@@ -772,7 +772,6 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
cardArr
=
[];
this
.
holePosArr
=
[];
const
edge
=
30
*
this
.
mapScale
;
const
rightNum
=
Math
.
ceil
(
Math
.
random
()
*
3
);
const
idArr
=
randomSortByArr
([
1
,
2
,
3
]);
...
...
@@ -780,8 +779,8 @@ export class PlayComponent implements OnInit, OnDestroy {
let
card
=
new
Card
();
card
.
init
(
this
.
images
,
this
.
mapScale
);
card
.
bg
.
x
=
45
0
*
this
.
mapScale
;
card
.
bg
.
y
=
this
.
canvasHeight
-
4
0
*
this
.
mapScale
;
card
.
bg
.
x
=
38
0
*
this
.
mapScale
;
card
.
bg
.
y
=
this
.
canvasHeight
-
8
0
*
this
.
mapScale
;
card
.
bg
[
'
renderZ
'
]
=
8
;
card
[
'
id
'
]
=
0
;
this
.
renderArr
.
push
(
card
.
bg
);
...
...
@@ -791,8 +790,8 @@ export class PlayComponent implements OnInit, OnDestroy {
card
=
new
Card
();
card
.
init
(
this
.
images
,
this
.
mapScale
);
card
.
bg
.
x
=
8
5
0
*
this
.
mapScale
;
card
.
bg
.
y
=
this
.
canvasHeight
-
5
0
*
this
.
mapScale
;
card
.
bg
.
x
=
8
2
0
*
this
.
mapScale
;
card
.
bg
.
y
=
this
.
canvasHeight
-
6
0
*
this
.
mapScale
;
card
.
bg
[
'
renderZ
'
]
=
9
;
card
[
'
id
'
]
=
1
;
this
.
renderArr
.
push
(
card
.
bg
);
...
...
@@ -802,8 +801,8 @@ export class PlayComponent implements OnInit, OnDestroy {
card
=
new
Card
();
card
.
init
(
this
.
images
,
this
.
mapScale
);
card
.
bg
.
x
=
1
6
0
*
this
.
mapScale
;
card
.
bg
.
y
=
this
.
canvasHeight
+
11
0
*
this
.
mapScale
;
card
.
bg
.
x
=
1
0
0
*
this
.
mapScale
;
card
.
bg
.
y
=
this
.
canvasHeight
+
6
0
*
this
.
mapScale
;
card
.
bg
[
'
renderZ
'
]
=
19
;
card
[
'
id
'
]
=
1
;
this
.
renderArr
.
push
(
card
.
bg
);
...
...
@@ -812,7 +811,7 @@ export class PlayComponent implements OnInit, OnDestroy {
card
=
new
Card
();
card
.
init
(
this
.
images
,
this
.
mapScale
);
card
.
bg
.
x
=
5
4
0
*
this
.
mapScale
;
card
.
bg
.
x
=
5
7
0
*
this
.
mapScale
;
card
.
bg
.
y
=
this
.
canvasHeight
+
110
*
this
.
mapScale
;
card
.
bg
[
'
renderZ
'
]
=
19
;
card
[
'
id
'
]
=
1
;
...
...
@@ -822,8 +821,8 @@ export class PlayComponent implements OnInit, OnDestroy {
card
=
new
Card
();
card
.
init
(
this
.
images
,
this
.
mapScale
);
card
.
bg
.
x
=
76
0
*
this
.
mapScale
;
card
.
bg
.
y
=
this
.
canvasHeight
+
110
*
this
.
mapScale
;
card
.
bg
.
x
=
105
0
*
this
.
mapScale
;
card
.
bg
.
y
=
this
.
canvasHeight
;
card
.
bg
[
'
renderZ
'
]
=
19
;
card
[
'
id
'
]
=
1
;
this
.
renderArr
.
push
(
card
.
bg
);
...
...
@@ -949,7 +948,7 @@ export class PlayComponent implements OnInit, OnDestroy {
card
.
holeId
=
holeIndex
;
card
.
id
=
cardIndex
;
card
.
baseY
=
pos
.
y
;
card
.
targetY
=
pos
.
y
-
card
.
bg
.
height
-
2
0
*
this
.
mapScale
;
card
.
targetY
=
pos
.
y
-
card
.
bg
.
height
-
3
0
*
this
.
mapScale
;
card
.
bg
.
renderZ
=
pos
.
z
;
this
.
sortRenderZ
(
this
.
renderArr
);
...
...
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