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
8d989163
Commit
8d989163
authored
Mar 22, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
效果处理
parent
30955449
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
350 additions
and
281 deletions
+350
-281
OP32_PLUS.fire
assets/OP32_PLUS/scene/OP32_PLUS.fire
+333
-272
OP32_PLUS.js
assets/OP32_PLUS/scene/OP32_PLUS.js
+11
-3
bg_box_front.png
assets/OP32_PLUS/textures/new/bg_box_front.png
+0
-0
bg_box_front.png.meta
assets/OP32_PLUS/textures/new/bg_box_front.png.meta
+6
-6
No files found.
assets/OP32_PLUS/scene/OP32_PLUS.fire
View file @
8d989163
This diff is collapsed.
Click to expand it.
assets/OP32_PLUS/scene/OP32_PLUS.js
View file @
8d989163
...
...
@@ -246,7 +246,9 @@ cc.Class({
const
optionNum
=
this
.
data
.
question_arr
[
questionIdx
].
option_arr
.
length
;
//TODO:copy---start
const
maxOptionHeight
=
400
;
const
maxOptionWidth
=
(
canvasWidth
*
0.8
)
/
optionNum
;
const
maxOptionWidth
=
(
canvasWidth
*
0.8
)
/
optionNum
>
300
?
300
:
(
canvasWidth
*
0.8
)
/
optionNum
;
const
box_mid
=
cc
.
find
(
'
Canvas/bg/box_mid
'
);
box_mid
.
removeAllChildren
();
//TODO:copy---end
const
arr
=
randomSortByArr
(
this
.
data
.
question_arr
[
questionIdx
].
option_arr
);
...
...
@@ -329,6 +331,11 @@ cc.Class({
return
;
}
//copy-start 把物品的父节点换到中间的box上。
const
box_mid
=
cc
.
find
(
'
Canvas/bg/box_mid
'
);
optionNode
.
parent
=
box_mid
;
//copy-end
cc
.
tween
(
optionNode
)
.
to
(
0.2
,
{
x
:
0
,
y
:
100
},
cc
.
easing
.
quadOut
)
.
start
();
...
...
@@ -498,8 +505,6 @@ cc.Class({
onAnswerRight
()
{
//TODO:copy
this
.
showFlower
();
this
.
coolCatSpeakRight
(()
=>
{
//TODO:copy
...
...
@@ -543,6 +548,9 @@ cc.Class({
},
0.1
*
1000
)
);
}
else
{
//TODO:copy
this
.
showFlower
();
this
.
coolCatSpeakEnd
(()
=>
{
this
.
submitBtnMoveOut
();
this
.
showNextBtn
();
...
...
assets/OP32_PLUS/textures/new/bg_box_front.png
View replaced file @
30955449
View file @
8d989163
86.4 KB
|
W:
|
H:
77 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/OP32_PLUS/textures/new/bg_box_front.png.meta
View file @
8d989163
...
...
@@ -18,12 +18,12 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX":
0
,
"offsetY": -
19
,
"trimX": 0,
"trimY":
38
,
"width":
386
,
"height": 25
8
,
"offsetX":
-3.5
,
"offsetY": -
20.5
,
"trimX":
6
0,
"trimY":
41
,
"width":
259
,
"height": 25
5
,
"rawWidth": 386,
"rawHeight": 296,
"borderTop": 0,
...
...
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