Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP33_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
OP33_PLUS
Commits
43ab3585
Commit
43ab3585
authored
Oct 10, 2022
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加点击小猫播放题目音频
parent
7bf24277
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
399 additions
and
241 deletions
+399
-241
OP33_PLUS.meta
assets/OP33_PLUS.meta
+15
-1
OP33_PLUS.fire
assets/OP33_PLUS/scene/OP33_PLUS.fire
+373
-240
OP33_PLUS.js
assets/OP33_PLUS/scene/OP33_PLUS.js
+11
-0
No files found.
assets/OP33_PLUS.meta
View file @
43ab3585
{"ver":"1.1.2","uuid":"8ce9ad31-01f1-4d18-8881-390d12c43f85","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": "8ce9ad31-01f1-4d18-8881-390d12c43f85",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/OP33_PLUS/scene/OP33_PLUS.fire
View file @
43ab3585
This diff is collapsed.
Click to expand it.
assets/OP33_PLUS/scene/OP33_PLUS.js
View file @
43ab3585
...
...
@@ -202,6 +202,7 @@ cc.Class({
};
},
gameStart
:
false
,
async
initView
()
{
const
loadingLayerBase
=
cc
.
find
(
"
Canvas/bg/loadingLayerBase
"
);
const
loadingLayerNode
=
cc
.
instantiate
(
this
.
loadingLayerProfab
);
...
...
@@ -211,6 +212,7 @@ cc.Class({
this
.
loadingLayer
.
setMaxPlayerNumber
(
5
);
this
.
loadingLayer
.
onLoadFinished
(()
=>
{
this
.
gameStart
=
true
;
this
.
refreshCoolCatPosition
();
//TODO:copy
...
...
@@ -408,6 +410,15 @@ cc.Class({
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
();
},
...
...
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