Commit 3448d210 authored by yu's avatar yu

彩蛋音频

parent a2157004
{
"ver": "2.0.1",
"uuid": "113e181a-e36e-4033-88d6-1cdc4f74c44a",
"downloadMode": 0,
"duration": 8.46,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "249b332e-ed1d-48e7-87f9-e20097f2cd2c",
"downloadMode": 0,
"duration": 5.256,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "53b0f3c9-ed8d-462b-918a-c19cb27f238c",
"downloadMode": 0,
"duration": 7.416,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "2bed85bd-673b-4b4d-b8c3-b2342db6c465",
"downloadMode": 0,
"duration": 5.724,
"subMetas": {}
}
\ No newline at end of file
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"__id__": 221 "__id__": 221
}, },
{ {
"__id__": 236 "__id__": 244
} }
], ],
"_active": false, "_active": false,
...@@ -7905,7 +7905,7 @@ ...@@ -7905,7 +7905,7 @@
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 150, "_opacity": 200,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
...@@ -8055,8 +8055,8 @@ ...@@ -8055,8 +8055,8 @@
0, 0,
0, 0,
1, 1,
1, 2,
1, 2,
1 1
] ]
}, },
...@@ -8157,8 +8157,8 @@ ...@@ -8157,8 +8157,8 @@
0, 0,
0, 0,
1, 1,
1, 2,
1, 2,
1 1
] ]
}, },
...@@ -8259,8 +8259,8 @@ ...@@ -8259,8 +8259,8 @@
0, 0,
0, 0,
1, 1,
1, 2,
1, 2,
1 1
] ]
}, },
...@@ -8361,8 +8361,8 @@ ...@@ -8361,8 +8361,8 @@
0, 0,
0, 0,
1, 1,
1, 2,
1, 2,
1 1
] ]
}, },
...@@ -10496,6 +10496,18 @@ ...@@ -10496,6 +10496,18 @@
}, },
{ {
"__id__": 234 "__id__": 234
},
{
"__id__": 236
},
{
"__id__": 238
},
{
"__id__": 240
},
{
"__id__": 242
} }
], ],
"_active": true, "_active": true,
...@@ -10793,7 +10805,7 @@ ...@@ -10793,7 +10805,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "错误弹回", "_name": "bear_1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 221 "__id__": 221
...@@ -10851,7 +10863,7 @@ ...@@ -10851,7 +10863,7 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "cdxgP8It1JOYW9XOPhT5sR" "_id": "54IcAP0QhIaaWvAdPHGriH"
}, },
{ {
"__type__": "cc.AudioSource", "__type__": "cc.AudioSource",
...@@ -10861,6 +10873,330 @@ ...@@ -10861,6 +10873,330 @@
"__id__": 228 "__id__": 228
}, },
"_enabled": true, "_enabled": true,
"_clip": {
"__uuid__": "113e181a-e36e-4033-88d6-1cdc4f74c44a"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "adlE0wHoRKOL/SJ1tzm43q"
},
{
"__type__": "cc.Node",
"_name": "bear_2",
"_objFlags": 0,
"_parent": {
"__id__": 221
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 231
}
],
"_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": "791V6YjGVB341jD50VEXWi"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 230
},
"_enabled": true,
"_clip": {
"__uuid__": "249b332e-ed1d-48e7-87f9-e20097f2cd2c"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "e8HWSan2ZH4YW1C1oE0DRx"
},
{
"__type__": "cc.Node",
"_name": "bear_3",
"_objFlags": 0,
"_parent": {
"__id__": 221
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 233
}
],
"_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": "d802TIXuJP5oHpEijPMwxd"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 232
},
"_enabled": true,
"_clip": {
"__uuid__": "53b0f3c9-ed8d-462b-918a-c19cb27f238c"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "38sKx7zoJN+bmqX+5OwtxM"
},
{
"__type__": "cc.Node",
"_name": "cape",
"_objFlags": 0,
"_parent": {
"__id__": 221
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 235
}
],
"_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": "89aCO0ZqFKlqEFe+x5I8gN"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 234
},
"_enabled": true,
"_clip": {
"__uuid__": "2bed85bd-673b-4b4d-b8c3-b2342db6c465"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "a3/jiXTpNH06gNPNQ6Z8UB"
},
{
"__type__": "cc.Node",
"_name": "错误弹回",
"_objFlags": 0,
"_parent": {
"__id__": 221
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 237
}
],
"_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": "cdxgP8It1JOYW9XOPhT5sR"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 236
},
"_enabled": true,
"_clip": { "_clip": {
"__uuid__": "37df71ea-53a1-427a-b3fb-12c36d4f4b4e" "__uuid__": "37df71ea-53a1-427a-b3fb-12c36d4f4b4e"
}, },
...@@ -10883,7 +11219,7 @@ ...@@ -10883,7 +11219,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 231 "__id__": 239
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -10939,7 +11275,7 @@ ...@@ -10939,7 +11275,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 230 "__id__": 238
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -10964,7 +11300,7 @@ ...@@ -10964,7 +11300,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 233 "__id__": 241
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -11020,7 +11356,7 @@ ...@@ -11020,7 +11356,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 232 "__id__": 240
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -11045,7 +11381,7 @@ ...@@ -11045,7 +11381,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 235 "__id__": 243
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -11101,7 +11437,7 @@ ...@@ -11101,7 +11437,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 234 "__id__": 242
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -11124,10 +11460,10 @@ ...@@ -11124,10 +11460,10 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 237 "__id__": 245
}, },
{ {
"__id__": 239 "__id__": 247
} }
], ],
"_active": true, "_active": true,
...@@ -11185,13 +11521,13 @@ ...@@ -11185,13 +11521,13 @@
"_name": "light", "_name": "light",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 236 "__id__": 244
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 238 "__id__": 246
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -11247,7 +11583,7 @@ ...@@ -11247,7 +11583,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 237 "__id__": 245
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -11279,13 +11615,13 @@ ...@@ -11279,13 +11615,13 @@
"_name": "star", "_name": "star",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 236 "__id__": 244
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 240 "__id__": 248
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -11341,7 +11677,7 @@ ...@@ -11341,7 +11677,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 239 "__id__": 247
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
......
...@@ -1340,14 +1340,19 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent ...@@ -1340,14 +1340,19 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
catBase.opacity = 1; catBase.opacity = 1;
let ani; let ani;
let audioName = "";
if (name == "BEAR1") { if (name == "BEAR1") {
ani = cc.find("Bear_1_ske", special); ani = cc.find("Bear_1_ske", special);
audioName = "bear_1";
} else if (name == "BEAR2") { } else if (name == "BEAR2") {
ani = cc.find("Bear_2_ske", special); ani = cc.find("Bear_2_ske", special);
audioName = "bear_2";
} else if (name == "BEAR3") { } else if (name == "BEAR3") {
ani = cc.find("Bear_3_ske", special); ani = cc.find("Bear_3_ske", special);
audioName = "bear_3";
} else if (name == "CAPE") { } else if (name == "CAPE") {
ani = cc.find("cape_ske", special); ani = cc.find("cape_ske", special);
audioName = "cape";
} }
ani.active = true; ani.active = true;
...@@ -1355,7 +1360,7 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent ...@@ -1355,7 +1360,7 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
setTimeout(async () => { setTimeout(async () => {
catBase.active = true; catBase.active = true;
cc.tween(catBase).to(0.5, { opacity: 255 }).start(); cc.tween(catBase).to(0.5, { opacity: 255 }).start();
await this.playLocalAudio("spe").then(() => { await this.playLocalAudio(audioName).then(() => {
ani.active = false; ani.active = false;
catBase.opacity = 1; catBase.opacity = 1;
catBase.active = false; catBase.active = false;
......
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