Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Z_04_syys
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
Z_04_syys
Commits
1a65a7e8
Commit
1a65a7e8
authored
Sep 10, 2020
by
huoshizhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 移动摄像头
parent
fac64a1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
syys.js
play/assets/z_04_syys/scene/syys.js
+8
-1
No files found.
play/assets/z_04_syys/scene/syys.js
View file @
1a65a7e8
...
@@ -175,6 +175,7 @@ cc.Class({
...
@@ -175,6 +175,7 @@ cc.Class({
this
.
_status
.
treeHeight
=
idx
;
this
.
_status
.
treeHeight
=
idx
;
this
.
growTree
(
idx
);
this
.
growTree
(
idx
);
this
.
growSky
(
idx
);
this
.
growSky
(
idx
);
this
.
moveCamera
(
idx
);
await
asyncTweenTo
(
nodeTree
,
3
,
{
y
:
500
+
200
*
idx
});
await
asyncTweenTo
(
nodeTree
,
3
,
{
y
:
500
+
200
*
idx
});
this
.
playEffect
(
'
路牌
'
);
this
.
playEffect
(
'
路牌
'
);
...
@@ -198,7 +199,13 @@ cc.Class({
...
@@ -198,7 +199,13 @@ cc.Class({
},
},
moveCamera
(
idx
)
{
moveCamera
(
idx
)
{
const
cameraYList
=
[
0
,
0
,
220
,
560
,
720
];
const
cameraYList
=
[
0
,
0
];
this
.
data
.
wordList
.
foreach
((
word
,
idx
)
=>
{
if
(
idx
<
2
)
{
return
;
}
cameraYList
.
push
(
idx
*
200
);
});
const
camera
=
cc
.
find
(
'
Canvas/Main Camera
'
);
const
camera
=
cc
.
find
(
'
Canvas/Main Camera
'
);
asyncTweenTo
(
camera
,
3
,
{
y
:
cameraYList
[
idx
]
});
asyncTweenTo
(
camera
,
3
,
{
y
:
cameraYList
[
idx
]
});
},
},
...
...
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