Commit 5d8be12b authored by Tt's avatar Tt

添加正确错误音效

parent a4336c82
{
"ver": "2.0.1",
"uuid": "a3f6fefb-abb7-418b-9726-ebea06068962",
"downloadMode": 0,
"duration": 1.776327,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "f0680ae0-c079-45ef-abd7-9e63d90b982b",
"downloadMode": 0,
"duration": 0.130612,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "88e389ad-cdd7-4d2b-8900-19bbb61c340a",
"downloadMode": 0,
"duration": 0.173333,
"subMetas": {}
}
\ No newline at end of file
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "665e544c-fe92-4f24-bdcc-9475a763ff0c", "uuid": "665e544c-fe92-4f24-bdcc-9475a763ff0c",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.264, "duration": 0.556563,
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "342d6b41-d606-43d5-9676-7b67f03d236f", "uuid": "342d6b41-d606-43d5-9676-7b67f03d236f",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.653061, "duration": 0.938688,
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "16a0bc5d-fd4e-443e-aeb0-80139b29574d", "uuid": "16a0bc5d-fd4e-443e-aeb0-80139b29574d",
"downloadMode": 0, "downloadMode": 0,
"duration": 4.04898, "duration": 3.787755,
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "e3803979-40c9-4b6c-9f51-39781cec1d1b",
"downloadMode": 0,
"duration": 2.115917,
"subMetas": {}
}
\ No newline at end of file
...@@ -121,30 +121,18 @@ ...@@ -121,30 +121,18 @@
}, },
{ {
"__id__": 157 "__id__": 157
},
{
"__id__": 159
},
{
"__id__": 161
},
{
"__id__": 163
},
{
"__id__": 165
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 167 "__id__": 159
}, },
{ {
"__id__": 168 "__id__": 160
}, },
{ {
"__id__": 169 "__id__": 161
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -7679,249 +7667,6 @@ ...@@ -7679,249 +7667,6 @@
"preload": false, "preload": false,
"_id": "afm7ZF5ftIkrEouzD71LCM" "_id": "afm7ZF5ftIkrEouzD71LCM"
}, },
{
"__type__": "cc.Node",
"_name": "audio_bigStar",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 156
}
],
"_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": [
-640,
-360,
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": "5f1KAX/A9L+Z8K+JnCuIqo"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 155
},
"_enabled": true,
"_clip": {
"__uuid__": "a3f6fefb-abb7-418b-9726-ebea06068962"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "37gOE8YVlCGKbWeE1S3Bo0"
},
{
"__type__": "cc.Node",
"_name": "audio_btn",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 158
}
],
"_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": [
-640,
-360,
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": "89rYX7EglC+Kabra9cCS6V"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 157
},
"_enabled": true,
"_clip": {
"__uuid__": "f0680ae0-c079-45ef-abd7-9e63d90b982b"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "11R1xh1E5ORp0maU353nQi"
},
{
"__type__": "cc.Node",
"_name": "audio_choice",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 160
}
],
"_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": [
-640,
-360,
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": "a0SL0b0xlHzoG3VMjlh6de"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 159
},
"_enabled": true,
"_clip": {
"__uuid__": "88e389ad-cdd7-4d2b-8900-19bbb61c340a"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "9dpxg+SnxL6L7KsYEW4GbB"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "audio_error", "_name": "audio_error",
...@@ -7933,7 +7678,7 @@ ...@@ -7933,7 +7678,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 162 "__id__": 156
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -7989,7 +7734,7 @@ ...@@ -7989,7 +7734,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 161 "__id__": 155
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -8014,7 +7759,7 @@ ...@@ -8014,7 +7759,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 164 "__id__": 158
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -8070,7 +7815,7 @@ ...@@ -8070,7 +7815,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 163 "__id__": 157
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -8084,87 +7829,6 @@ ...@@ -8084,87 +7829,6 @@
"preload": false, "preload": false,
"_id": "82oUh6W0VHw6rGLaMd5mFF" "_id": "82oUh6W0VHw6rGLaMd5mFF"
}, },
{
"__type__": "cc.Node",
"_name": "audio_tishu",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 166
}
],
"_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": [
-640,
-360,
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": "1c83PcFaVNb6s174FhuFAs"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 165
},
"_enabled": true,
"_clip": {
"__uuid__": "e3803979-40c9-4b6c-9f51-39781cec1d1b"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "d5kSalW1hFrZFC/n4/ImJJ"
},
{ {
"__type__": "cc.Canvas", "__type__": "cc.Canvas",
"_name": "", "_name": "",
......
...@@ -427,17 +427,18 @@ cc.Class({ ...@@ -427,17 +427,18 @@ cc.Class({
let successed = box.data.child.some(dt => dt.cardId == item.data.cardId); let successed = box.data.child.some(dt => dt.cardId == item.data.cardId);
if (successed) { if (successed) {
this.createRightAni(cc.v2(item.x, item.y)); this.createRightAni(cc.v2(item.x, item.y));
setTimeout(() => { this.playSFX("audio_right").then(() => {
//检测是否全部完成 //检测是否全部完成
item.moveState = 2; item.moveState = 2;
this.updateItem(item); this.updateItem(item);
box.data.success.push(item); box.data.success.push(item);
this.setSuccessItemPos(box, item); this.setSuccessItemPos(box, item);
}, 300); })
} else { } else {
item.moveState = 3; item.moveState = 3;
this.updateItem(item); this.updateItem(item);
//碰撞失败退回原位置 //碰撞失败退回原位置
this.playSFX("audio_error");
setTimeout(() => { setTimeout(() => {
this.backItem(item, this._startPos); this.backItem(item, this._startPos);
}, 300); }, 300);
......
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