Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sbox_FT_11
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
Sbox_FT_11
Commits
a052c664
Commit
a052c664
authored
Apr 13, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
09dcab2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
Sbox_FT_11.meta
assets/Sbox_FT_11.meta
+15
-1
Sbox_FT_11.js
assets/Sbox_FT_11/scene/Sbox_FT_11.js
+5
-1
No files found.
assets/Sbox_FT_11.meta
View file @
a052c664
{"ver":"1.1.2","uuid":"d421ad88-e36c-40a9-9b1d-4337d98697ca","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": "d421ad88-e36c-40a9-9b1d-4337d98697ca",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/Sbox_FT_11/scene/Sbox_FT_11.js
View file @
a052c664
...
@@ -118,7 +118,7 @@ cc.Class({
...
@@ -118,7 +118,7 @@ cc.Class({
loadEnd
()
{
loadEnd
()
{
GameData
.
questionIndex
=
0
;
GameData
.
questionIndex
=
0
;
this
.
initData
();
this
.
initData
();
console
.
log
(
'
汪汪汪
'
);
this
.
startGame
();
this
.
startGame
();
},
},
...
@@ -138,6 +138,7 @@ cc.Class({
...
@@ -138,6 +138,7 @@ cc.Class({
},
},
startGame
()
{
startGame
()
{
console
.
log
(
'
startGame
'
);
this
.
playAudioEntrer
();
this
.
playAudioEntrer
();
},
},
...
@@ -188,6 +189,7 @@ cc.Class({
...
@@ -188,6 +189,7 @@ cc.Class({
playAudioEntrer
()
{
playAudioEntrer
()
{
console
.
log
(
'
playAudioEntrer
'
);
GameData
.
audioCount
++
;
GameData
.
audioCount
++
;
let
id
=
cc
.
audioEngine
.
play
(
this
.
audEnter
,
false
,
1
);
let
id
=
cc
.
audioEngine
.
play
(
this
.
audEnter
,
false
,
1
);
cc
.
audioEngine
.
setFinishCallback
(
id
,
()
=>
{
cc
.
audioEngine
.
setFinishCallback
(
id
,
()
=>
{
...
@@ -197,6 +199,7 @@ cc.Class({
...
@@ -197,6 +199,7 @@ cc.Class({
},
},
playAudioQuestion
(
isBtn
)
{
playAudioQuestion
(
isBtn
)
{
console
.
log
(
'
playAudioQuestion
'
);
GameData
.
audioCount
++
;
GameData
.
audioCount
++
;
let
url
=
this
.
data
.
questionList
[
GameData
.
questionIndex
].
questionAudio
;
let
url
=
this
.
data
.
questionList
[
GameData
.
questionIndex
].
questionAudio
;
// url = 'http://127.0.0.1/iamflying.mp3';
// url = 'http://127.0.0.1/iamflying.mp3';
...
@@ -232,6 +235,7 @@ cc.Class({
...
@@ -232,6 +235,7 @@ cc.Class({
// 随机亮起一个题干
// 随机亮起一个题干
showRandomQuestion
()
{
showRandomQuestion
()
{
console
.
log
(
'
showRandomQuestion
'
);
if
(
this
.
isDestroy
)
{
if
(
this
.
isDestroy
)
{
return
;
return
;
...
...
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