Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP46
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
OP46
Commits
aede7970
Commit
aede7970
authored
Jun 08, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OP46 调整
parent
c6a05d5c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
3 deletions
+48
-3
OP46.js
assets/OP46/scene/OP46.js
+6
-3
ew.json
assets/OP46/script/ew.json
+37
-0
ew.json.meta
assets/OP46/script/ew.json.meta
+5
-0
No files found.
assets/OP46/scene/OP46.js
View file @
aede7970
...
@@ -238,10 +238,12 @@ cc.Class({
...
@@ -238,10 +238,12 @@ cc.Class({
optionNode
.
y
=
0
;
//-(canvasHeight / 2) -800;
optionNode
.
y
=
0
;
//-(canvasHeight / 2) -800;
optionNode
.
scale
=
0
;
optionNode
.
scale
=
0
;
optionNode
.
parent
=
box
;
optionNode
.
parent
=
box
;
optionNode
.
targetScale
=
Math
.
min
((
maxOptionWidth
*
0.80
)
/
optionNode
.
width
,
maxOptionHeight
/
optionNode
.
height
)
// optionNode.targetScale = Math.min((maxOptionWidth * 0.80) / optionNode.width, maxOptionHeight / optionNode.height)
console
.
log
(
"
targetScale:
"
+
optionNode
.
targetScale
);
optionNode
.
width
=
280
;
optionNode
.
height
=
280
;
cc
.
tween
(
optionNode
)
cc
.
tween
(
optionNode
)
.
to
(
0.1
,
{
scale
:
optionNode
.
targetScale
})
.
to
(
0.1
,
{
scale
:
1
})
.
start
();
.
start
();
});
});
},
},
...
@@ -255,6 +257,7 @@ cc.Class({
...
@@ -255,6 +257,7 @@ cc.Class({
optionNode
.
optionData
=
optionData
;
optionNode
.
optionData
=
optionData
;
optionNode
.
optionData
.
selected
=
false
;
optionNode
.
optionData
.
selected
=
false
;
const
box
=
cc
.
find
(
'
Canvas/bg/box
'
);
const
box
=
cc
.
find
(
'
Canvas/bg/box
'
);
const
box_mid
=
cc
.
find
(
'
Canvas/bg/box_mid
'
);
const
box_mid
=
cc
.
find
(
'
Canvas/bg/box_mid
'
);
optionNode
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
(
event
)
=>
{
optionNode
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
(
event
)
=>
{
...
...
assets/OP46/script/ew.json
0 → 100644
View file @
aede7970
{
"title"
:
"幸运大转盘"
,
"questionText"
:
"亲爱的小玩家,游戏马上就要开始啦!请动动手指转动转盘,当转盘停止,注意观察指针指向的魔法图片,并大声说出魔法咒语,魔法咒语正确,你就可以获得一张魔法卡牌。 游戏结束后,根据获得的魔法卡牌数量,你将获得相应的能量石奖励!开始挑战吧!"
,
"questionTextAudio"
:
"https://teach.cdn.ireadabc.com/c4c3d00fe47a77947a99d9a8295a3a83.mp3"
,
"questions"
:
[
{
"type"
:
"img"
,
"audio"
:
"https://teach.cdn.ireadabc.com/5aab60bd5af071672c9f8fb9b0e7e986.mp3"
,
"text"
:
"pretty"
,
"image"
:
"https://teach.cdn.ireadabc.com/ef4ba2a6f31e8743c67a6d6446236ad3.png"
},
{
"type"
:
"img"
,
"audio"
:
"https://teach.cdn.ireadabc.com/7a96dd819d9edfebf8f806d1814367fb.mp3"
,
"text"
:
"happy"
,
"image"
:
"https://teach.cdn.ireadabc.com/204d41266bea773a3f3258d1b2cad690.png"
},
{
"type"
:
"img"
,
"audio"
:
"https://teach.cdn.ireadabc.com/c05aef42d92d195e89697082668e343b.mp3"
,
"text"
:
"tall"
,
"image"
:
"https://teach.cdn.ireadabc.com/edf0c93cece15ba832fd77f5da9939dd.png"
},
{
"type"
:
"img"
,
"audio"
:
"https://teach.cdn.ireadabc.com/d7bf3c7a78c14140ecffd24370ff0203.mp3"
,
"text"
:
"short"
,
"image"
:
"https://teach.cdn.ireadabc.com/72393c8fa3f0c5b5c8d200fd7b688823.png"
},
{
"type"
:
"img"
,
"audio"
:
"https://teach.cdn.ireadabc.com/5aab60bd5af071672c9f8fb9b0e7e986.mp3"
,
"text"
:
"pretty"
,
"image"
:
"https://teach.cdn.ireadabc.com/ef4ba2a6f31e8743c67a6d6446236ad3.png"
}
]
}
\ No newline at end of file
assets/OP46/script/ew.json.meta
0 → 100644
View file @
aede7970
{
"ver": "1.0.0",
"uuid": "5e9666f1-988c-471a-b44a-bd61ee58ceeb",
"subMetas": {}
}
\ No newline at end of file
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