Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP32_PLUS
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
OP32_PLUS
Commits
038f81bd
Commit
038f81bd
authored
Mar 22, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
8d989163
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
OP32_PLUS.js
assets/OP32_PLUS/scene/OP32_PLUS.js
+23
-8
No files found.
assets/OP32_PLUS/scene/OP32_PLUS.js
View file @
038f81bd
...
@@ -333,12 +333,11 @@ cc.Class({
...
@@ -333,12 +333,11 @@ cc.Class({
//copy-start 把物品的父节点换到中间的box上。
//copy-start 把物品的父节点换到中间的box上。
const
box_mid
=
cc
.
find
(
'
Canvas/bg/box_mid
'
);
const
box_mid
=
cc
.
find
(
'
Canvas/bg/box_mid
'
);
optionNode
.
parent
=
box_mid
;
cc
.
tween
(
optionNode
).
to
(
0.2
,
{
x
:
0
,
y
:
420
},
cc
.
easing
.
quadOut
).
call
(()
=>
{
optionNode
.
parent
=
box_mid
;
}).
to
(
0.2
,
{
x
:
0
,
y
:
100
},
cc
.
easing
.
quadOut
).
start
();
//copy-end
//copy-end
cc
.
tween
(
optionNode
)
.
to
(
0.2
,
{
x
:
0
,
y
:
100
},
cc
.
easing
.
quadOut
)
.
start
();
this
.
boxJump
();
this
.
boxJump
();
...
@@ -371,10 +370,11 @@ cc.Class({
...
@@ -371,10 +370,11 @@ cc.Class({
this
.
optionJump
(
btnSubmit
,
0.05
);
this
.
optionJump
(
btnSubmit
,
0.05
);
this
.
playEffect
(
"
submit
"
);
this
.
playEffect
(
"
submit
"
);
const
box
=
cc
.
find
(
"
Canvas/bg/box
"
);
const
box
=
cc
.
find
(
"
Canvas/bg/box
"
);
if
(
const
box_mid
=
cc
.
find
(
'
Canvas/bg/box_mid
'
);
box
.
children
.
every
(
let
children
=
box
.
children
.
concat
(
box_mid
.
children
);
(
child
)
=>
child
.
optionData
.
selected
==
child
.
optionData
.
is_right
if
(
children
.
every
(
)
(
child
)
=>
child
.
optionData
.
selected
==
child
.
optionData
.
is_right
)
)
{
)
{
this
.
onAnswerRight
();
this
.
onAnswerRight
();
}
else
{
}
else
{
...
@@ -525,6 +525,21 @@ cc.Class({
...
@@ -525,6 +525,21 @@ cc.Class({
.
start
();
.
start
();
});
});
//copy-start 把物品的父节点换到中间的box上。
const
box_mid
=
cc
.
find
(
'
Canvas/bg/box_mid
'
);
box_mid
.
children
.
filter
(
child
=>
child
.
optionData
.
selected
)
.
forEach
(
child
=>
{
child
.
optionData
.
selected
=
false
;
cc
.
tween
(
child
)
.
to
(
0.2
,
{
x
:
child
.
startPos
.
x
,
y
:
child
.
startPos
.
y
})
.
call
(()
=>
{
child
.
parent
=
box
;
})
.
start
();
});
//copy-end
this
.
playEffect
(
"
flyBackAll
"
);
this
.
playEffect
(
"
flyBackAll
"
);
},
},
...
...
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