Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy14_pipei
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
hy14_pipei
Commits
2c944761
Commit
2c944761
authored
Nov 17, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a712afb2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
hy14_pipei.ts
assets/hy14_pipei/scene/hy14_pipei.ts
+3
-3
No files found.
assets/hy14_pipei/scene/hy14_pipei.ts
View file @
2c944761
...
@@ -224,9 +224,9 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
...
@@ -224,9 +224,9 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
this
.
layout_op
.
getComponent
(
cc
.
Layout
).
enabled
=
true
;
this
.
layout_op
.
getComponent
(
cc
.
Layout
).
enabled
=
true
;
let
x
=
0
;
let
x
=
0
;
// if (op.length > 12) x = 7680;
// if (op.length > 12) x = 7680;
if
(
op
.
length
>
12
)
x
=
5760
;
if
(
op
.
length
>
12
)
x
=
5760
+
1920
/
2
;
else
if
(
op
.
length
>
8
)
x
=
3840
;
else
if
(
op
.
length
>
8
)
x
=
3840
+
1920
/
2
;
else
if
(
op
.
length
>
oplen
)
x
=
1920
;
else
if
(
op
.
length
>
oplen
)
x
=
1920
+
1920
/
2
;
let
bottom
=
cc
.
find
(
"
bottom
"
,
this
.
node
);
let
bottom
=
cc
.
find
(
"
bottom
"
,
this
.
node
);
cc
.
tween
(
bottom
).
repeatForever
(
cc
.
tween
().
by
(
20
,
{
x
:
-
x
})
cc
.
tween
(
bottom
).
repeatForever
(
cc
.
tween
().
by
(
20
,
{
x
:
-
x
})
.
call
(()
=>
{
bottom
.
x
=
-
960
*
scale
;
}))
.
call
(()
=>
{
bottom
.
x
=
-
960
*
scale
;
}))
...
...
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