Commit 29107ec2 authored by 范雪寒's avatar 范雪寒

fix: 开始音频与题目音频重合问题

parent 0034f321
{
"ver": "2.0.1",
"uuid": "cbec1a32-0bc0-4ac8-bfff-b72f9faf24b7",
"downloadMode": 0,
"duration": 1.07102,
"subMetas": {}
}
\ No newline at end of file
......@@ -17,10 +17,13 @@
"__id__": 2
},
{
"__id__": 84
"__id__": 86
},
{
"__id__": 95
"__id__": 97
},
{
"__id__": 108
}
],
"_active": true,
......@@ -91,18 +94,21 @@
},
{
"__id__": 52
},
{
"__id__": 81
}
],
"_active": true,
"_components": [
{
"__id__": 81
"__id__": 83
},
{
"__id__": 82
"__id__": 84
},
{
"__id__": 83
"__id__": 85
}
],
"_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__": 85
"__id__": 87
},
{
"__id__": 87
"__id__": 89
},
{
"__id__": 88
"__id__": 90
}
],
"_active": true,
"_components": [
{
"__id__": 94
"__id__": 96
}
],
"_prefab": null,
......@@ -3960,13 +4041,13 @@
"_name": "OptionBg",
"_objFlags": 0,
"_parent": {
"__id__": 84
"__id__": 86
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 86
"__id__": 88
}
],
"_prefab": null,
......@@ -4022,7 +4103,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 85
"__id__": 87
},
"_enabled": true,
"_materials": [
......@@ -4054,7 +4135,7 @@
"_name": "OptionDragonBoneBaseNode",
"_objFlags": 0,
"_parent": {
"__id__": 84
"__id__": 86
},
"_children": [],
"_active": true,
......@@ -4112,20 +4193,20 @@
"_name": "OptionSpeakerBtn",
"_objFlags": 0,
"_parent": {
"__id__": 84
"__id__": 86
},
"_children": [
{
"__id__": 89
"__id__": 91
},
{
"__id__": 91
"__id__": 93
}
],
"_active": true,
"_components": [
{
"__id__": 93
"__id__": 95
}
],
"_prefab": null,
......@@ -4181,13 +4262,13 @@
"_name": "BtnFlower",
"_objFlags": 0,
"_parent": {
"__id__": 88
"__id__": 90
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 90
"__id__": 92
}
],
"_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__": 92
"__id__": 94
}
],
"_prefab": null,
......@@ -4337,7 +4418,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
"__id__": 93
},
"_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__": 84
"__id__": 86
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4509,19 +4590,19 @@
},
"_children": [
{
"__id__": 96
"__id__": 98
},
{
"__id__": 98
"__id__": 100
},
{
"__id__": 99
"__id__": 101
}
],
"_active": true,
"_components": [
{
"__id__": 105
"__id__": 107
}
],
"_prefab": null,
......@@ -4577,13 +4658,13 @@
"_name": "OptionBg",
"_objFlags": 0,
"_parent": {
"__id__": 95
"__id__": 97
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 97
"__id__": 99
}
],
"_prefab": null,
......@@ -4639,7 +4720,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 96
"__id__": 98
},
"_enabled": true,
"_materials": [
......@@ -4671,7 +4752,7 @@
"_name": "OptionDragonBoneBaseNode",
"_objFlags": 0,
"_parent": {
"__id__": 95
"__id__": 97
},
"_children": [],
"_active": true,
......@@ -4729,20 +4810,20 @@
"_name": "OptionSpeakerBtn",
"_objFlags": 0,
"_parent": {
"__id__": 95
"__id__": 97
},
"_children": [
{
"__id__": 100
"__id__": 102
},
{
"__id__": 102
"__id__": 104
}
],
"_active": true,
"_components": [
{
"__id__": 104
"__id__": 106
}
],
"_prefab": null,
......@@ -4798,13 +4879,13 @@
"_name": "BtnFlower",
"_objFlags": 0,
"_parent": {
"__id__": 99
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 101
"__id__": 103
}
],
"_prefab": null,
......@@ -4860,7 +4941,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 100
"__id__": 102
},
"_enabled": true,
"_materials": [
......@@ -4892,13 +4973,13 @@
"_name": "BtnFlower_P",
"_objFlags": 0,
"_parent": {
"__id__": 99
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 103
"__id__": 105
}
],
"_prefab": null,
......@@ -4954,7 +5035,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 102
"__id__": 104
},
"_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__": 95
"__id__": 97
},
"_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
......@@ -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() {
......
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);
}
});
{
"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
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment