Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FT_06
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
FT_06
Commits
29107ec2
Commit
29107ec2
authored
Oct 27, 2020
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 开始音频与题目音频重合问题
parent
0034f321
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
263 additions
and
487 deletions
+263
-487
wrong.mp3
play/assets/tmpGame/audios/wrong.mp3
+0
-0
wrong.mp3.meta
play/assets/tmpGame/audios/wrong.mp3.meta
+7
-0
FT_06.fire
play/assets/tmpGame/scene/FT_06.fire
+221
-46
FT_06.js
play/assets/tmpGame/scene/FT_06.js
+5
-1
MusicNode.js
play/assets/tmpGame/script/MusicNode.js
+20
-0
MusicNode.js.meta
play/assets/tmpGame/script/MusicNode.js.meta
+9
-0
defaultData.js
play/assets/tmpGame/script/defaultData.js
+1
-440
No files found.
play/assets/tmpGame/audios/wrong.mp3
0 → 100644
View file @
29107ec2
File added
play/assets/tmpGame/audios/wrong.mp3.meta
0 → 100644
View file @
29107ec2
{
"ver": "2.0.1",
"uuid": "cbec1a32-0bc0-4ac8-bfff-b72f9faf24b7",
"downloadMode": 0,
"duration": 1.07102,
"subMetas": {}
}
\ No newline at end of file
play/assets/tmpGame/scene/FT_06.fire
View file @
29107ec2
...
...
@@ -17,10 +17,13 @@
"__id__": 2
},
{
"__id__": 8
4
"__id__": 8
6
},
{
"__id__": 95
"__id__": 97
},
{
"__id__": 108
}
],
"_active": true,
...
...
@@ -91,18 +94,21 @@
},
{
"__id__": 52
},
{
"__id__": 81
}
],
"_active": true,
"_components": [
{
"__id__": 8
1
"__id__": 8
3
},
{
"__id__": 8
2
"__id__": 8
4
},
{
"__id__": 8
3
"__id__": 8
5
}
],
"_prefab": null,
...
...
@@ -1669,7 +1675,7 @@
"array": [
0,
0,
709.
3289322871918
,
709.
2748056994553
,
0,
0,
0,
...
...
@@ -3829,6 +3835,81 @@
"_atlas": null,
"_id": "5ctIMxaJpCPqDnXZ5q9xOm"
},
{
"__type__": "cc.Node",
"_name": "MusicNode",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 82
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "96dasxTFZEk73zNvOPUIpm"
},
{
"__type__": "5e1acpduVBE/6ENMDHl1gbl",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 81
},
"_enabled": true,
"wrong": {
"__uuid__": "cbec1a32-0bc0-4ac8-bfff-b72f9faf24b7"
},
"_id": "f8MXmdg/FGCpZZnMxAL8RJ"
},
{
"__type__": "cc.Canvas",
"_name": "",
...
...
@@ -3892,19 +3973,19 @@
},
"_children": [
{
"__id__": 8
5
"__id__": 8
7
},
{
"__id__": 8
7
"__id__": 8
9
},
{
"__id__":
88
"__id__":
90
}
],
"_active": true,
"_components": [
{
"__id__": 9
4
"__id__": 9
6
}
],
"_prefab": null,
...
...
@@ -3960,13 +4041,13 @@
"_name": "OptionBg",
"_objFlags": 0,
"_parent": {
"__id__": 8
4
"__id__": 8
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
6
"__id__": 8
8
}
],
"_prefab": null,
...
...
@@ -4022,7 +4103,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
5
"__id__": 8
7
},
"_enabled": true,
"_materials": [
...
...
@@ -4054,7 +4135,7 @@
"_name": "OptionDragonBoneBaseNode",
"_objFlags": 0,
"_parent": {
"__id__": 8
4
"__id__": 8
6
},
"_children": [],
"_active": true,
...
...
@@ -4112,20 +4193,20 @@
"_name": "OptionSpeakerBtn",
"_objFlags": 0,
"_parent": {
"__id__": 8
4
"__id__": 8
6
},
"_children": [
{
"__id__":
89
"__id__":
91
},
{
"__id__": 9
1
"__id__": 9
3
}
],
"_active": true,
"_components": [
{
"__id__": 9
3
"__id__": 9
5
}
],
"_prefab": null,
...
...
@@ -4181,13 +4262,13 @@
"_name": "BtnFlower",
"_objFlags": 0,
"_parent": {
"__id__":
88
"__id__":
90
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 9
0
"__id__": 9
2
}
],
"_prefab": null,
...
...
@@ -4243,7 +4324,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
89
"__id__":
91
},
"_enabled": true,
"_materials": [
...
...
@@ -4275,13 +4356,13 @@
"_name": "BtnFlower_P",
"_objFlags": 0,
"_parent": {
"__id__":
88
"__id__":
90
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
2
"__id__": 9
4
}
],
"_prefab": null,
...
...
@@ -4337,7 +4418,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
1
"__id__": 9
3
},
"_enabled": true,
"_materials": [
...
...
@@ -4369,7 +4450,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
88
"__id__":
90
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -4437,7 +4518,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
4
"__id__": 8
6
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -4509,19 +4590,19 @@
},
"_children": [
{
"__id__": 9
6
"__id__": 9
8
},
{
"__id__":
98
"__id__":
100
},
{
"__id__":
99
"__id__":
101
}
],
"_active": true,
"_components": [
{
"__id__": 10
5
"__id__": 10
7
}
],
"_prefab": null,
...
...
@@ -4577,13 +4658,13 @@
"_name": "OptionBg",
"_objFlags": 0,
"_parent": {
"__id__": 9
5
"__id__": 9
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
7
"__id__": 9
9
}
],
"_prefab": null,
...
...
@@ -4639,7 +4720,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
6
"__id__": 9
8
},
"_enabled": true,
"_materials": [
...
...
@@ -4671,7 +4752,7 @@
"_name": "OptionDragonBoneBaseNode",
"_objFlags": 0,
"_parent": {
"__id__": 9
5
"__id__": 9
7
},
"_children": [],
"_active": true,
...
...
@@ -4729,20 +4810,20 @@
"_name": "OptionSpeakerBtn",
"_objFlags": 0,
"_parent": {
"__id__": 9
5
"__id__": 9
7
},
"_children": [
{
"__id__": 10
0
"__id__": 10
2
},
{
"__id__": 10
2
"__id__": 10
4
}
],
"_active": true,
"_components": [
{
"__id__": 10
4
"__id__": 10
6
}
],
"_prefab": null,
...
...
@@ -4798,13 +4879,13 @@
"_name": "BtnFlower",
"_objFlags": 0,
"_parent": {
"__id__":
99
"__id__":
101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
1
"__id__": 10
3
}
],
"_prefab": null,
...
...
@@ -4860,7 +4941,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
0
"__id__": 10
2
},
"_enabled": true,
"_materials": [
...
...
@@ -4892,13 +4973,13 @@
"_name": "BtnFlower_P",
"_objFlags": 0,
"_parent": {
"__id__":
99
"__id__":
101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
3
"__id__": 10
5
}
],
"_prefab": null,
...
...
@@ -4954,7 +5035,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
2
"__id__": 10
4
},
"_enabled": true,
"_materials": [
...
...
@@ -4986,7 +5067,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
99
"__id__":
101
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -5054,7 +5135,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
5
"__id__": 9
7
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -5116,5 +5197,99 @@
"_N$disabledSprite": null,
"_N$target": null,
"_id": "6bGoSnOXZForE7p1gJsgMX"
},
{
"__type__": "cc.Node",
"_name": "SplashNode",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 109
}
],
"_prefab": null,
"_opacity": 150,
"_color": {
"__type__": "cc.Color",
"r": 102,
"g": 204,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-1006.141,
-764.766,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "1f6W+zkdJDf4sI5L696VNu"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "2ffSPJBYlCxrpKIbpCSYKy"
}
]
\ No newline at end of file
play/assets/tmpGame/scene/FT_06.js
View file @
29107ec2
...
...
@@ -61,7 +61,9 @@ cc.Class({
// this._audioResList.push(this.data.tittleImg);
},
addPreloadAudio
()
{
},
addPreloadAudio
()
{
this
.
_audioResList
.
push
({
url
:
this
.
data
.
tittleAudio
});
},
preload
()
{
const
preloadArr
=
this
.
_imageResList
.
concat
(
this
.
_audioResList
);
...
...
@@ -226,6 +228,7 @@ cc.Class({
onOptionWrong
(
optionNode
)
{
const
animeNode
=
cc
.
find
(
'
OptionDragonBoneBaseNode/animeNode
'
,
optionNode
);
animeNode
.
color
=
cc
.
color
(
150
,
150
,
150
,
255
);
playEffect
(
'
wrong
'
);
},
onOptionRight
(
optionNode
,
idx
)
{
...
...
@@ -247,6 +250,7 @@ cc.Class({
const
labelBgNode
=
cc
.
find
(
'
Canvas/QuestionLabelBg
'
);
await
asyncTweenTo
(
labelBgNode
,
1
,
{
y
:
263
});
await
asyncDelay
(
1
);
},
async
questionBoardUp
()
{
...
...
play/assets/tmpGame/script/MusicNode.js
0 → 100644
View file @
29107ec2
cc
.
Class
({
extends
:
cc
.
Component
,
properties
:
{
wrong
:
{
default
:
null
,
type
:
cc
.
AudioClip
},
},
start
()
{
},
playEffect
(
name
,
loop
=
false
,
volume
=
1
)
{
if
(
!
this
[
name
])
{
return
;
}
cc
.
audioEngine
.
play
(
this
[
name
],
loop
,
volume
);
}
});
play/assets/tmpGame/script/MusicNode.js.meta
0 → 100644
View file @
29107ec2
{
"ver": "1.0.8",
"uuid": "5e1aca5d-b950-44ff-a10d-3031e5d606e5",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
play/assets/tmpGame/script/defaultData.js
View file @
29107ec2
This diff is collapsed.
Click to expand it.
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