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
2309dc1f
Commit
2309dc1f
authored
Oct 10, 2022
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加点击coolcat播放题目音频
parent
163456fb
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
399 additions
and
242 deletions
+399
-242
OP32_PLUS.meta
assets/OP32_PLUS.meta
+15
-1
OP32_PLUS.fire
assets/OP32_PLUS/scene/OP32_PLUS.fire
+373
-240
OP32_PLUS.js
assets/OP32_PLUS/scene/OP32_PLUS.js
+11
-1
No files found.
assets/OP32_PLUS.meta
View file @
2309dc1f
{"ver":"1.1.2","uuid":"efac53ec-d7b3-4ce9-aa78-c5e169cfd7c6","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
{
\ No newline at end of file
"ver": "1.1.2",
"uuid": "efac53ec-d7b3-4ce9-aa78-c5e169cfd7c6",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/OP32_PLUS/scene/OP32_PLUS.fire
View file @
2309dc1f
This diff is collapsed.
Click to expand it.
assets/OP32_PLUS/scene/OP32_PLUS.js
View file @
2309dc1f
...
@@ -202,6 +202,7 @@ cc.Class({
...
@@ -202,6 +202,7 @@ cc.Class({
};
};
},
},
gameStart
:
false
,
async
initView
()
{
async
initView
()
{
const
loadingLayerBase
=
cc
.
find
(
"
Canvas/bg/loadingLayerBase
"
);
const
loadingLayerBase
=
cc
.
find
(
"
Canvas/bg/loadingLayerBase
"
);
const
loadingLayerNode
=
cc
.
instantiate
(
this
.
loadingLayerProfab
);
const
loadingLayerNode
=
cc
.
instantiate
(
this
.
loadingLayerProfab
);
...
@@ -212,8 +213,8 @@ cc.Class({
...
@@ -212,8 +213,8 @@ cc.Class({
this
.
loadingLayer
.
setMaxPlayerNumber
(
5
);
this
.
loadingLayer
.
setMaxPlayerNumber
(
5
);
this
.
loadingLayer
.
onLoadFinished
(()
=>
{
this
.
loadingLayer
.
onLoadFinished
(()
=>
{
this
.
gameStart
=
true
;
this
.
refreshCoolCatPosition
();
this
.
refreshCoolCatPosition
();
this
.
coolCatSpeakStart
(()
=>
{
this
.
coolCatSpeakStart
(()
=>
{
this
.
startCountTime
();
this
.
startCountTime
();
this
.
jumpToQuestion
(
this
.
status
.
currentQuestionIdx
);
this
.
jumpToQuestion
(
this
.
status
.
currentQuestionIdx
);
...
@@ -397,6 +398,15 @@ cc.Class({
...
@@ -397,6 +398,15 @@ cc.Class({
this
.
optionJump
(
btnNext
,
0.05
);
this
.
optionJump
(
btnNext
,
0.05
);
});
});
const
coolCat
=
cc
.
find
(
"
Canvas/bg/catFrame/clickTarget
"
);
coolCat
.
on
(
"
click
"
,
()
=>
{
if
(
this
.
gameStart
)
{
const
questionAudioUrl
=
this
.
data
.
question_arr
[
this
.
status
.
currentQuestionIdx
].
audio_url
;
console
.
log
(
"
Click coolcat:
"
,
questionAudioUrl
)
this
.
coolCatSpeak
(
questionAudioUrl
)
}
});
this
.
initNetworkListener
();
this
.
initNetworkListener
();
},
},
...
...
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