Commit 85562a95 authored by 李维's avatar 李维

dev commit

parent f3911585
...@@ -22,16 +22,109 @@ ...@@ -22,16 +22,109 @@
}, },
{ {
"__id__": 5 "__id__": 5
},
{
"__id__": 8
},
{
"__id__": 11
},
{
"__id__": 14
},
{
"__id__": 17
},
{
"__id__": 20
},
{
"__id__": 23
},
{
"__id__": 26
},
{
"__id__": 29
},
{
"__id__": 32
},
{
"__id__": 35
},
{
"__id__": 38
} }
], ],
"_active": true, "_active": true,
"_components": [],
"_prefab": {
"__id__": 41
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 195,
"height": 195
},
"_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": ""
},
{
"__type__": "cc.Node",
"_name": "image",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [ "_components": [
{ {
"__id__": 8 "__id__": 3
} }
], ],
"_prefab": { "_prefab": {
"__id__": 9 "__id__": 4
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -80,6 +173,49 @@ ...@@ -80,6 +173,49 @@
"groupIndex": 0, "groupIndex": 0,
"_id": "" "_id": ""
}, },
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "82444753-9e7e-4432-89cb-8d72344d2c44"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "ff427172-05bc-4907-a9d6-859d14218f60"
},
"fileId": "40FMhndotGn6Z5VcMAwg4I",
"sync": false
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "image_container", "_name": "image_container",
...@@ -91,11 +227,11 @@ ...@@ -91,11 +227,11 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 3 "__id__": 6
} }
], ],
"_prefab": { "_prefab": {
"__id__": 4 "__id__": 7
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -149,7 +285,7 @@ ...@@ -149,7 +285,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 2 "__id__": 5
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -196,11 +332,11 @@ ...@@ -196,11 +332,11 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 6 "__id__": 9
} }
], ],
"_prefab": { "_prefab": {
"__id__": 7 "__id__": 10
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -254,7 +390,7 @@ ...@@ -254,7 +390,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 5 "__id__": 8
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -296,12 +432,76 @@ ...@@ -296,12 +432,76 @@
"fileId": "2akJJN5Z5PBojIxLlwAnDB", "fileId": "2akJJN5Z5PBojIxLlwAnDB",
"sync": false "sync": false
}, },
{
"__type__": "cc.Node",
"_name": "bubble_ani (1)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 12
}
],
"_prefab": {
"__id__": 13
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 195,
"height": 195
},
"_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": ""
},
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 1 "__id__": 11
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -312,10 +512,10 @@ ...@@ -312,10 +512,10 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "82444753-9e7e-4432-89cb-8d72344d2c44" "__uuid__": "4fa000f0-d76e-4956-80ea-3039b76442c3"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -328,6 +528,980 @@ ...@@ -328,6 +528,980 @@
"_atlas": null, "_atlas": null,
"_id": "" "_id": ""
}, },
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "ff427172-05bc-4907-a9d6-859d14218f60"
},
"fileId": "7cw5PXwC1P3YnqavDaRXWo",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bubble_ani (2)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 15
}
],
"_prefab": {
"__id__": 16
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 195,
"height": 195
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "b8c0bcdb-74e7-4b9d-ad16-5117716997a2"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "ff427172-05bc-4907-a9d6-859d14218f60"
},
"fileId": "61W+CLczNAMqbYFLiBBKXw",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bubble_ani (3)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 18
}
],
"_prefab": {
"__id__": 19
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 195,
"height": 195
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d9d9d899-c61d-486f-beb2-d50f68204a5e"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "ff427172-05bc-4907-a9d6-859d14218f60"
},
"fileId": "beMYzCWu5DcYuyodUiyawp",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bubble_ani (4)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 21
}
],
"_prefab": {
"__id__": 22
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 195,
"height": 195
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "09ddffcf-a332-412e-bfe5-7d195984e9bd"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "ff427172-05bc-4907-a9d6-859d14218f60"
},
"fileId": "3cC6OUqkpC15VmvlYyJSE4",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bubble_ani (5)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 24
}
],
"_prefab": {
"__id__": 25
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 195,
"height": 195
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f58c319b-319e-4639-a522-1010e6cfd148"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "ff427172-05bc-4907-a9d6-859d14218f60"
},
"fileId": "71q7K8/lRGsJ4bxL5FnG8Y",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bubble_ani (6)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 27
}
],
"_prefab": {
"__id__": 28
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 195,
"height": 195
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "7303a330-a4c5-435f-8b54-987b70a40a6b"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "ff427172-05bc-4907-a9d6-859d14218f60"
},
"fileId": "337TLLiw9KVK548OzZtaWF",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bubble_ani (7)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 30
}
],
"_prefab": {
"__id__": 31
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 195,
"height": 195
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4c765d84-a51f-432f-b031-89a5ef7a7080"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "ff427172-05bc-4907-a9d6-859d14218f60"
},
"fileId": "76hCHcwiJBLYvyNrEd6Fwe",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bubble_ani (9)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 33
}
],
"_prefab": {
"__id__": 34
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 195,
"height": 195
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d93cf7e1-8f50-43f9-805b-f9d9b93cd13b"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "ff427172-05bc-4907-a9d6-859d14218f60"
},
"fileId": "68tufDD+hPCKgPJ9AG7usL",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bubble_ani (8)",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 36
}
],
"_prefab": {
"__id__": 37
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 195,
"height": 195
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c13caa19-b445-463f-9afe-b84acf12d2d5"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "ff427172-05bc-4907-a9d6-859d14218f60"
},
"fileId": "f7ty00Vj9GtpTyWqdCJqTQ",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "color",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 39
}
],
"_prefab": {
"__id__": 40
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 195,
"height": 195
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "82444753-9e7e-4432-89cb-8d72344d2c44"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "ff427172-05bc-4907-a9d6-859d14218f60"
},
"fileId": "56xbq+PFBLRLuT1De1pKXT",
"sync": false
},
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
......
...@@ -81,34 +81,37 @@ ...@@ -81,34 +81,37 @@
"__id__": 11 "__id__": 11
}, },
{ {
"__id__": 21 "__id__": 23
}, },
{ {
"__id__": 24 "__id__": 26
}, },
{ {
"__id__": 27 "__id__": 29
}, },
{ {
"__id__": 28 "__id__": 30
}, },
{ {
"__id__": 29 "__id__": 31
}, },
{ {
"__id__": 30 "__id__": 32
},
{
"__id__": 45
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 52 "__id__": 67
}, },
{ {
"__id__": 53 "__id__": 68
}, },
{ {
"__id__": 54 "__id__": 69
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -198,7 +201,7 @@ ...@@ -198,7 +201,7 @@
"array": [ "array": [
0, 0,
0, 0,
349.9825163043863, 537.665603148476,
0, 0,
0, 0,
0, 0,
...@@ -551,10 +554,10 @@ ...@@ -551,10 +554,10 @@
} }
], ],
"_armatureName": "Armature", "_armatureName": "Armature",
"_animationName": "normal", "_animationName": "",
"_preCacheMode": 0, "_preCacheMode": 0,
"_cacheMode": 0, "_cacheMode": 0,
"playTimes": 1, "playTimes": -1,
"premultipliedAlpha": false, "premultipliedAlpha": false,
"_armatureKey": "e3d39ead-9ae5-45df-a908-d9fee96d1c97#8b7f8e75-240d-4acb-9738-aa9bcc9e582e", "_armatureKey": "e3d39ead-9ae5-45df-a908-d9fee96d1c97#8b7f8e75-240d-4acb-9738-aa9bcc9e582e",
"_accTime": 0, "_accTime": 0,
...@@ -570,7 +573,7 @@ ...@@ -570,7 +573,7 @@
"__uuid__": "8b7f8e75-240d-4acb-9738-aa9bcc9e582e" "__uuid__": "8b7f8e75-240d-4acb-9738-aa9bcc9e582e"
}, },
"_N$_defaultArmatureIndex": 0, "_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1, "_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0, "_N$_defaultCacheMode": 0,
"_N$timeScale": 1, "_N$timeScale": 1,
"_N$debugBones": false, "_N$debugBones": false,
...@@ -596,12 +599,15 @@ ...@@ -596,12 +599,15 @@
}, },
{ {
"__id__": 18 "__id__": 18
},
{
"__id__": 20
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 20 "__id__": 22
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -660,7 +666,7 @@ ...@@ -660,7 +666,7 @@
"__id__": 11 "__id__": 11
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 13 "__id__": 13
...@@ -1028,6 +1034,100 @@ ...@@ -1028,6 +1034,100 @@
"_atlas": null, "_atlas": null,
"_id": "63NPeL2oRKUrI+8gBawygI" "_id": "63NPeL2oRKUrI+8gBawygI"
}, },
{
"__type__": "cc.Node",
"_name": "default",
"_objFlags": 0,
"_parent": {
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 95,
"height": 101
},
"_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": "8aQpUaGfJPL41cPRJo6mOa"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4a47635c-e5dd-469d-9655-13378bc366a1"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "172qEaxxtOu6OjrEUmMRP1"
},
{ {
"__type__": "cc.Button", "__type__": "cc.Button",
"_name": "", "_name": "",
...@@ -1107,7 +1207,7 @@ ...@@ -1107,7 +1207,7 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 22 "__id__": 24
} }
], ],
"_active": true, "_active": true,
...@@ -1165,13 +1265,13 @@ ...@@ -1165,13 +1265,13 @@
"_name": "btn_restart", "_name": "btn_restart",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 21 "__id__": 23
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 23 "__id__": 25
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1227,7 +1327,7 @@ ...@@ -1227,7 +1327,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 22 "__id__": 24
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1263,7 +1363,7 @@ ...@@ -1263,7 +1363,7 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 25 "__id__": 27
} }
], ],
"_active": true, "_active": true,
...@@ -1321,13 +1421,13 @@ ...@@ -1321,13 +1421,13 @@
"_name": "btn_back", "_name": "btn_back",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 24 "__id__": 26
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 26 "__id__": 28
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1383,7 +1483,7 @@ ...@@ -1383,7 +1483,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 25 "__id__": 27
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1586,23 +1686,32 @@ ...@@ -1586,23 +1686,32 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "res", "_name": "RibbonNodeBase",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [ "_children": [
{ {
"__id__": 31 "__id__": 33
}, },
{ {
"__id__": 32 "__id__": 35
}, },
{ {
"__id__": 35 "__id__": 37
},
{
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
} }
], ],
"_active": false, "_active": true,
"_components": [], "_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
...@@ -1627,8 +1736,8 @@ ...@@ -1627,8 +1736,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, -1161.91,
0, -743.57,
0, 0,
0, 0,
0, 0,
...@@ -1650,31 +1759,35 @@ ...@@ -1650,31 +1759,35 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "0aAzbH6R1E+6AmGRrkKa5O" "_id": "ccyu+/5JVCCrcCSiC2bxgc"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "font", "_name": "bg_sahua",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 32
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 34
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 251,
"g": 255, "g": 197,
"b": 255, "b": 13,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 36,
"height": 0 "height": 24
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1686,7 +1799,7 @@ ...@@ -1686,7 +1799,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, 100,
0, 0,
0, 0,
0, 0,
...@@ -1708,35 +1821,67 @@ ...@@ -1708,35 +1821,67 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "9bLfcYeeNKrr524vzWchiM" "_id": "275666BphI7Ii5/DyIE/3T"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a3cc433a-f6df-4267-a442-c0ac476ebaae"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b0iTaTuF5Aibax6SWByeSw"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "img", "_name": "bg_sahua",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 32
}, },
"_children": [ "_children": [],
"_active": true,
"_components": [
{ {
"__id__": 33 "__id__": 36
} }
], ],
"_active": true,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
"g": 255, "g": 82,
"b": 255, "b": 82,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 36,
"height": 0 "height": 24
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1748,7 +1893,7 @@ ...@@ -1748,7 +1893,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, 59.33,
0, 0,
0, 0,
0, 0,
...@@ -1770,11 +1915,43 @@ ...@@ -1770,11 +1915,43 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "53LUHHG2pEr79fyrvazXJs" "_id": "5cyn1Q9IdMLa3Rdd7op5/F"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a3cc433a-f6df-4267-a442-c0ac476ebaae"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d8hsv8doBNqogJznvFDeVD"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "icon", "_name": "bg_sahua",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 32 "__id__": 32
...@@ -1783,22 +1960,22 @@ ...@@ -1783,22 +1960,22 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 34 "__id__": 38
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 83,
"g": 255, "g": 212,
"b": 255, "b": 244,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 138, "width": 36,
"height": 141 "height": 24
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1810,7 +1987,7 @@ ...@@ -1810,7 +1987,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, 19.413,
0, 0,
0, 0,
0, 0,
...@@ -1832,14 +2009,578 @@ ...@@ -1832,14 +2009,578 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "1blU2OArJIfoC9XfupGxJG" "_id": "aayLz++7FMOKDAsGfNq+Hv"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 33 "__id__": 37
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a3cc433a-f6df-4267-a442-c0ac476ebaae"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "24HJp8wMRK6Je6dFbBcyeU"
},
{
"__type__": "cc.Node",
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 32
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 40
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 157,
"g": 250,
"b": 36,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 36,
"height": 24
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-18.998,
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": "19jFGBul5MeK3v8fxb/ReX"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a3cc433a-f6df-4267-a442-c0ac476ebaae"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a7ATPjIw1GFak6DVsyv8mi"
},
{
"__type__": "cc.Node",
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 32
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 42
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 82,
"b": 82,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 36,
"height": 24
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-50.63,
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": "c7py2bHzRKYauGI2c9CICw"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a3cc433a-f6df-4267-a442-c0ac476ebaae"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "faSGrYOCpG04UkXP0txKaQ"
},
{
"__type__": "cc.Node",
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 32
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 44
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 83,
"g": 212,
"b": 244,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 36,
"height": 24
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-86.782,
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": "ba5x2+ECZEFbh5y0GOyem5"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a3cc433a-f6df-4267-a442-c0ac476ebaae"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "0acDv6o9tIxKMFRqOZf/Ca"
},
{
"__type__": "cc.Node",
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 46
},
{
"__id__": 47
},
{
"__id__": 50
}
],
"_active": false,
"_components": [],
"_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": "0aAzbH6R1E+6AmGRrkKa5O"
},
{
"__type__": "cc.Node",
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 45
},
"_children": [],
"_active": true,
"_components": [],
"_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": "9bLfcYeeNKrr524vzWchiM"
},
{
"__type__": "cc.Node",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 45
},
"_children": [
{
"__id__": 48
}
],
"_active": true,
"_components": [],
"_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": "53LUHHG2pEr79fyrvazXJs"
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 47
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 49
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 138,
"height": 141
},
"_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": "1blU2OArJIfoC9XfupGxJG"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 48
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
...@@ -1867,32 +2608,32 @@ ...@@ -1867,32 +2608,32 @@
"_name": "audio", "_name": "audio",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 30 "__id__": 45
}, },
"_children": [ "_children": [
{ {
"__id__": 36 "__id__": 51
}, },
{ {
"__id__": 38 "__id__": 53
}, },
{ {
"__id__": 40 "__id__": 55
}, },
{ {
"__id__": 42 "__id__": 57
}, },
{ {
"__id__": 44 "__id__": 59
}, },
{ {
"__id__": 46 "__id__": 61
}, },
{ {
"__id__": 48 "__id__": 63
}, },
{ {
"__id__": 50 "__id__": 65
} }
], ],
"_active": true, "_active": true,
...@@ -1950,13 +2691,13 @@ ...@@ -1950,13 +2691,13 @@
"_name": "btn", "_name": "btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 37 "__id__": 52
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2012,7 +2753,7 @@ ...@@ -2012,7 +2753,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 36 "__id__": 51
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2030,13 +2771,13 @@ ...@@ -2030,13 +2771,13 @@
"_name": "出现", "_name": "出现",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 39 "__id__": 54
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2092,7 +2833,7 @@ ...@@ -2092,7 +2833,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 38 "__id__": 53
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2110,13 +2851,13 @@ ...@@ -2110,13 +2851,13 @@
"_name": "正确", "_name": "正确",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 41 "__id__": 56
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2172,7 +2913,7 @@ ...@@ -2172,7 +2913,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 40 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2190,13 +2931,13 @@ ...@@ -2190,13 +2931,13 @@
"_name": "错误泡泡爆炸", "_name": "错误泡泡爆炸",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 43 "__id__": 58
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2252,7 +2993,7 @@ ...@@ -2252,7 +2993,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 42 "__id__": 57
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2270,13 +3011,13 @@ ...@@ -2270,13 +3011,13 @@
"_name": "按钮", "_name": "按钮",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 45 "__id__": 60
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2332,7 +3073,7 @@ ...@@ -2332,7 +3073,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 44 "__id__": 59
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2350,13 +3091,13 @@ ...@@ -2350,13 +3091,13 @@
"_name": "大星", "_name": "大星",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 47 "__id__": 62
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2412,7 +3153,7 @@ ...@@ -2412,7 +3153,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 46 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2430,13 +3171,13 @@ ...@@ -2430,13 +3171,13 @@
"_name": "题数", "_name": "题数",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 49 "__id__": 64
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2492,7 +3233,7 @@ ...@@ -2492,7 +3233,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 48 "__id__": 63
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2510,13 +3251,13 @@ ...@@ -2510,13 +3251,13 @@
"_name": "撒花", "_name": "撒花",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 51 "__id__": 66
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2572,7 +3313,7 @@ ...@@ -2572,7 +3313,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 50 "__id__": 65
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
......
...@@ -65,6 +65,7 @@ export default class Cartoon { ...@@ -65,6 +65,7 @@ export default class Cartoon {
this.elements[key] = {}; this.elements[key] = {};
this.elements[key].node = node; this.elements[key].node = node;
this.elements[key].node.key = key; this.elements[key].node.key = key;
return this.elements[key]
} }
getSpritNode(nodeName, nameSpace = "") { getSpritNode(nodeName, nameSpace = "") {
...@@ -585,8 +586,6 @@ class DragonBones { ...@@ -585,8 +586,6 @@ class DragonBones {
}) })
} }
let sx = parentNode.width / animaNode.width; let sx = parentNode.width / animaNode.width;
let sy = parentNode.height / animaNode.height; let sy = parentNode.height / animaNode.height;
animaNode.setScale(Math.min(sx, sy)); animaNode.setScale(Math.min(sx, sy));
......
import Cartoon from "./Cartoon" import Cartoon from "./Cartoon"
import defaultData from "./defaultData" import defaultData from "./defaultData"
import { jelly, randomSortByArr, onHomeworkFinish } from "./utils" import { jelly, randomSortByArr, showFireworks, RandomInt } from "./utils"
import { onHomeworkFinish } from "./util"
export default class GameLogic { export default class GameLogic {
g_cartoon = null; g_cartoon = null;
...@@ -21,6 +23,7 @@ export default class GameLogic { ...@@ -21,6 +23,7 @@ export default class GameLogic {
m_rightAns = 0; m_rightAns = 0;
m_stopMoving = false; m_stopMoving = false;
m_maxScale = 1; m_maxScale = 1;
m_isPlayingAudio = false;
constructor(formData, systemOption) { constructor(formData, systemOption) {
this.g_systemOption = systemOption; this.g_systemOption = systemOption;
...@@ -51,7 +54,9 @@ export default class GameLogic { ...@@ -51,7 +54,9 @@ export default class GameLogic {
this.addEventLinstener(); this.addEventLinstener();
if(this.nextQuestion()) { if(this.nextQuestion()) {
if(this.g_formData.dataArray.length>1) {
this.initStar() this.initStar()
}
this.g_cartoon.initDragEvent() this.g_cartoon.initDragEvent()
this.enableClick("Sysyem_init"); this.enableClick("Sysyem_init");
this.hideAir(); this.hideAir();
...@@ -125,20 +130,77 @@ export default class GameLogic { ...@@ -125,20 +130,77 @@ export default class GameLogic {
}) })
const btn_lion = this.g_cartoon.getCartoonElement("lion") const btn_lion = this.g_cartoon.getCartoonElement("lion")
this.g_cartoon.subscribeTouchEvent("lion", _=>{ btn_lion.play = () => {
if(!this.g_enableClick) {
return
}
let a = btn_lion.node.getComponent(dragonBones.ArmatureDisplay) let a = btn_lion.node.getComponent(dragonBones.ArmatureDisplay)
a.playAnimation('Armature', 1); a.playAnimation('play', 1);
}) setTimeout(() => {
a.playAnimation('normal', -1);
}, 3200);
}
// 音频播放
const btn_speaker = this.g_cartoon.getCartoonElement("audio"); const btn_speaker = this.g_cartoon.getCartoonElement("audio");
intervalId = null;
btn_speaker.startAni = () => {
const speakers = [];
for (let index = 3; index >= 0; index--) {
const node = cc.find(`Canvas/speaker/speaker_${index}`);
speakers.push(node);
}
const _node = cc.find(`Canvas/speaker/default`);
let currentIdx = 0;
let num = speakers.length;
intervalId = setInterval(() => {
_node.active = false;
speakers.forEach((node, index) => {
node.active = false;
})
currentIdx++;
speakers[currentIdx%num].active = true;
}, 200);
}
btn_speaker.stopAni = ()=>{
if(intervalId) {
clearTimeout(intervalId)
intervalId = null;
}
for (let index = 3; index >= 0; index--) {
const node = cc.find(`Canvas/speaker/speaker_${index}`);
node.active = false;
}
const node = cc.find(`Canvas/speaker/default`);
node.active = true;
}
btn_speaker.showHide = (status) => {
if(status) {
btn_speaker.node.active = true;
} else {
btn_speaker.node.active = false;
}
}
this.g_cartoon.subscribeTouchEvent("audio", _=>{ this.g_cartoon.subscribeTouchEvent("audio", _=>{
if(!this.g_enableClick) { if(!this.g_enableClick) {
return return
} }
this.startSpeakerAnime() if(this.m_isPlayingAudio) {
this.m_isPlayingAudio = false;
btn_speaker.stopAni();
this.g_cartoon.stopAllAudio()
} else {
this.m_isPlayingAudio = true;
btn_speaker.startAni()
this.g_cartoon.playAudio(this.g_formData.dataArray[this.m_currentQuestionIndex].audio_url1, ()=>{
this.m_isPlayingAudio = false;
btn_speaker.stopAni();
})
}
}) })
} }
...@@ -146,6 +208,7 @@ export default class GameLogic { ...@@ -146,6 +208,7 @@ export default class GameLogic {
const btn_restart = this.g_cartoon.getCartoonElement("restart") const btn_restart = this.g_cartoon.getCartoonElement("restart")
this.disableClick("EndGame") this.disableClick("EndGame")
this.g_cartoon.playAudio("撒花") this.g_cartoon.playAudio("撒花")
this.fireworks();
this.g_cartoon.tweenChange(btn_restart.node, {scale: 1}, 0.3, _=>{ this.g_cartoon.tweenChange(btn_restart.node, {scale: 1}, 0.3, _=>{
this.enableClick("EndGame"); this.enableClick("EndGame");
onHomeworkFinish(); onHomeworkFinish();
...@@ -157,9 +220,11 @@ export default class GameLogic { ...@@ -157,9 +220,11 @@ export default class GameLogic {
this.m_currentQuestionIndex = -1; this.m_currentQuestionIndex = -1;
this.m_rightAns = 0; this.m_rightAns = 0;
this.m_stopMoving = false; this.m_stopMoving = false;
if(this.g_formData.dataArray.length>1) {
this.cleanScore(); this.cleanScore();
this.nextQuestion()
this.initStar(); this.initStar();
}
this.nextQuestion()
this.releaseBubbles(); this.releaseBubbles();
} }
...@@ -254,6 +319,13 @@ export default class GameLogic { ...@@ -254,6 +319,13 @@ export default class GameLogic {
} }
addStar(callback) { addStar(callback) {
if(this.g_formData.dataArray.length<=1) {
if(callback) {
callback()
}
return;
}
const star = this.g_cartoon.getCartoonElement(`star_${this.m_currentQuestionIndex}`); const star = this.g_cartoon.getCartoonElement(`star_${this.m_currentQuestionIndex}`);
const score = this.g_cartoon.getCartoonElement(`score_${this.m_currentQuestionIndex}`); const score = this.g_cartoon.getCartoonElement(`score_${this.m_currentQuestionIndex}`);
const score_b = score.node.getChildByName("b") const score_b = score.node.getChildByName("b")
...@@ -287,9 +359,22 @@ export default class GameLogic { ...@@ -287,9 +359,22 @@ export default class GameLogic {
nextQuestion() { nextQuestion() {
this.m_currentQuestionIndex++; this.m_currentQuestionIndex++;
// 检查全局音乐
const btn_speaker = this.g_cartoon.getCartoonElement("audio");
if(this.g_formData.dataArray[this.m_currentQuestionIndex] && this.g_formData.dataArray[this.m_currentQuestionIndex].audio_url1) {
btn_speaker.showHide(true);
} else {
btn_speaker.showHide(false);
}
if(this.m_currentQuestionIndex >= this.g_formData.dataArray.length) { if(this.m_currentQuestionIndex >= this.g_formData.dataArray.length) {
btn_speaker.showHide(false);
return false; return false;
} }
const btn_lion = this.g_cartoon.getCartoonElement("lion")
btn_lion.play();
const rightNum = this.g_formData.dataArray[this.m_currentQuestionIndex].correct.length; const rightNum = this.g_formData.dataArray[this.m_currentQuestionIndex].correct.length;
const wrongNum = this.g_formData.dataArray[this.m_currentQuestionIndex].incorrect.length; const wrongNum = this.g_formData.dataArray[this.m_currentQuestionIndex].incorrect.length;
const bubbleNum = rightNum + wrongNum; const bubbleNum = rightNum + wrongNum;
...@@ -298,7 +383,42 @@ export default class GameLogic { ...@@ -298,7 +383,42 @@ export default class GameLogic {
for(let i=0; i<bubbleNum; i++) { for(let i=0; i<bubbleNum; i++) {
const bubble = cc.instantiate(this.g_systemOption.prefabs.bubble); const bubble = cc.instantiate(this.g_systemOption.prefabs.bubble);
bubble.parent = bubbleParent; bubble.parent = bubbleParent;
this.g_cartoon.setCartoonElement(`bubble_${i}`, bubble) let bubb = this.g_cartoon.setCartoonElement(`bubble_${i}`, bubble)
bubb.boom = () => {
let _p = []
bubb.node.getChildByName("image_container").active = false;
bubb.node.getChildByName("text_container").active = false;
bubb.node.getChildByName("image").active = false;
for(let i=0; i<8; i++) {
_p.push(new Promise((resolve,reject) => {
setTimeout(() => {
if(i>1) {
bubb.node.getChildByName(`bubble_ani (${i})`).active = false;
}
bubb.node.getChildByName(`bubble_ani (${i+1})`).active = true;
resolve()
}, 30 * i);
}))
}
return Promise.all(_p)
}
bubb.shake = (callback) => {
let _x = bubb.node.x;
bubb.node.getChildByName("color").active = true;
this.g_cartoon.tweenChange(bubb.node, {x: _x-5}, 0.05, _=>{
this.g_cartoon.tweenChange(bubb.node, {x: _x+5}, 0.1, _=>{
this.g_cartoon.tweenChange(bubb.node, {x: _x-5}, 0.1, _=>{
this.g_cartoon.tweenChange(bubb.node, {x: _x}, 0.05, _=>{
bubb.node.getChildByName("color").active = false;
if(callback) {
callback()
}
})
})
})
})
}
} }
for(let i=0; i<bubbleNum; i++) { for(let i=0; i<bubbleNum; i++) {
...@@ -331,9 +451,15 @@ export default class GameLogic { ...@@ -331,9 +451,15 @@ export default class GameLogic {
return return
} }
this.disableClick(`bubble_${i}`) this.disableClick(`bubble_${i}`)
let clickBubble = this.g_cartoon.getCartoonElement(`bubble_${i}`)
const btn_speaker = this.g_cartoon.getCartoonElement("audio");
this.g_cartoon.stopAllAudio();
btn_speaker.stopAni();
if(bubble.isRight) { if(bubble.isRight) {
bubble.node.active = false;
this.g_cartoon.playAudio("正确"); this.g_cartoon.playAudio("正确");
clickBubble.boom().then(_=>{
bubble.node.active = false;
this.m_rightAns++; this.m_rightAns++;
if(this.m_rightAns>=rightNum) { if(this.m_rightAns>=rightNum) {
this.m_stopMoving = true; this.m_stopMoving = true;
...@@ -349,12 +475,13 @@ export default class GameLogic { ...@@ -349,12 +475,13 @@ export default class GameLogic {
} else { } else {
this.enableClick("Destroy") this.enableClick("Destroy")
} }
})
} else { } else {
this.m_stopMoving = true; this.m_stopMoving = true;
setTimeout(() => { clickBubble.shake(_=>{
this.m_stopMoving = false; this.m_stopMoving = false;
this.enableClick(`bubble_${i}`) this.enableClick(`bubble_${i}`)
}, 1500); })
this.g_cartoon.playAudio("错误泡泡爆炸"); this.g_cartoon.playAudio("错误泡泡爆炸");
} }
}, true) }, true)
...@@ -422,6 +549,7 @@ export default class GameLogic { ...@@ -422,6 +549,7 @@ export default class GameLogic {
} }
}) })
Promise.all(pAll).then(_=>{ Promise.all(pAll).then(_=>{
this.m_stopMoving = false;
this.m_bubblesAll.forEach(bubble=>{ this.m_bubblesAll.forEach(bubble=>{
if(!bubble.move.fix) { if(!bubble.move.fix) {
bubble.move.enable = true; bubble.move.enable = true;
...@@ -436,53 +564,109 @@ export default class GameLogic { ...@@ -436,53 +564,109 @@ export default class GameLogic {
for(let i=0; i<this.g_formData.dataArray.length; i++) { for(let i=0; i<this.g_formData.dataArray.length; i++) {
const _score = this.g_cartoon.getCartoonElement(`score_${i}`) const _score = this.g_cartoon.getCartoonElement(`score_${i}`)
_score.node.destroy(); _score.node.destroy();
console.log(_score) }
// const score = cc.instantiate(this.g_systemOption.prefabs.score);
// score.parent = scoreGroup;
// this.g_cartoon.setCartoonElement(`score_${i}`, score)
// scoreAll.push(score)
} }
// let startY = (scoreAll.length * 66 + (scoreAll.length-1) * 10) / 2; fireworks() {
// scoreAll.forEach((score, index)=>{ this.showFireworks(
// score.y = startY cc.find('Canvas/background/background'),
// startY -= 66 + 10 cc.find('Canvas/RibbonNodeBase').children,
// }) cc.v2(0, -cc.winSize.height/2), cc.v2(0, cc.winSize.height * 0.85), 200, 200, 4
);
this.showFireworks(
cc.find('Canvas/background/background'),
cc.find('Canvas/RibbonNodeBase').children,
cc.v2(-600, -cc.winSize.height/2), cc.v2(200, cc.winSize.height * 0.85), 200, 200, 4
);
this.showFireworks(
cc.find('Canvas/background/background'),
cc.find('Canvas/RibbonNodeBase').children,
cc.v2(600, -cc.winSize.height/2), cc.v2(-200, cc.winSize.height * 0.85), 200, 200, 4
);
} }
startSpeakerAnime(speakerBase) { asyncTweenBy(node, duration, obj, ease = undefined) {
const speakers = []; return new Promise((resolve, reject) => {
for (let index = 1; index < 4; index++) { cc.tween(node)
const node = cc.find(`Canvas/speaker/speaker_${index}`); .by(duration, obj, ease)
speakers.push(node); .call(() => {
resolve();
})
.start();
});
} }
const node0 = cc.find(`Canvas/speaker/speaker_0`);
node0.active = false;
let currentIdx = 0; rabbonFall(node) {
cc.tween(speakerBase) const time = 1 + Math.random();
.call(() => { const offsetX = RandomInt(-200, 200) * time;
speakers.forEach(node => node.active = false); this.asyncTweenBy(node, time, { x: offsetX, angle: offsetX * 60 / 200 }).then(_ => {
speakers[currentIdx % speakers.length].active = true; this.rabbonFall(node);
currentIdx++; })
}
asyncDelay(time) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve();
}, time * 1000);
}) })
.delay(0.2) }
showFireworks(baseNode, nodeList, pos = cc.v2(0, 0), side = cc.v2(0, 100), range = 50, number = 100) {
new Array(number).fill(' ').forEach((_, i) => {
let rabbonNode = new cc.Node();
rabbonNode.parent = baseNode;
rabbonNode.x = pos.x;
rabbonNode.y = pos.y;
rabbonNode.angle = 60 * Math.random() - 30;
let node = cc.instantiate(nodeList[RandomInt(nodeList.length)]);
node.parent = rabbonNode;
node.active = true;
node.x = 0;
node.y = 0;
node.angle = 0;
const rate = Math.random();
const angle = Math.PI * (Math.random() * 2 - 1);
this.asyncTweenBy(rabbonNode, 0.3, {
x: side.x * rate + Math.cos(angle) * range * rate,
y: side.y * rate + Math.sin(angle) * range * rate
}, {
easing: 'quadIn'
}).then(_ => {
cc.tween(rabbonNode)
.by(8, { y: -2000 })
.start();
this.rabbonFall(rabbonNode);
this.asyncDelay(Math.random()).then(_ => {
cc.tween(node)
.by(0.15, { x: -10, angle: -10 })
.by(0.3, { x: 20, angle: 20 })
.by(0.15, { x: -10, angle: -10 })
.union() .union()
.repeatForever() .repeatForever()
.start(); .start();
}
stopSpeakerAnime() { cc.tween(rabbonNode)
for (let index = 1; index < 4; index++) { .delay(5)
const node = cc.find(`Canvas/speaker/speaker_${index}`); .to(0.3, { opacity: 0 })
.call(() => {
node.stopAllActions();
node.active = false; node.active = false;
} node.parent = null;
const node0 = cc.find(`Canvas/speaker/speaker_0`); node = null;
node0.active = true; })
} .start();
})
})
});
}
...@@ -603,13 +787,13 @@ stopSpeakerAnime() { ...@@ -603,13 +787,13 @@ stopSpeakerAnime() {
disableClick(eventName) { disableClick(eventName) {
this.g_enableClick = false; this.g_enableClick = false;
this.g_disableClickEventName = eventName this.g_disableClickEventName = eventName
console.log(`Click disabled! [${eventName}]`) // console.log(`Click disabled! [${eventName}]`)
} }
enableClick(eventName) { enableClick(eventName) {
this.g_enableClick = true; this.g_enableClick = true;
this.g_disableClickEventName = "" this.g_disableClickEventName = ""
console.log(`Click enabled! [${eventName}]`) // console.log(`Click enabled! [${eventName}]`)
} }
} }
...@@ -111,7 +111,6 @@ export async function asyncPlayDragonBoneAnimation(node, animationName, time = 1 ...@@ -111,7 +111,6 @@ export async function asyncPlayDragonBoneAnimation(node, animationName, time = 1
export async function asyncPlayEffectByUrl(url, loop = false) { export async function asyncPlayEffectByUrl(url, loop = false) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
cc.assetManager.loadRemote(url, (err, clip) => { cc.assetManager.loadRemote(url, (err, clip) => {
console.log(clip);
cc.audioEngine.playEffect(clip, loop); cc.audioEngine.playEffect(clip, loop);
resolve(); resolve();
}); });
......
{
"ver": "1.1.2",
"uuid": "df377864-1f81-4768-8887-e49c3016c1ff",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "11e45dd8-3ece-46fb-96f3-19c979b5f1e0",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 500,
"height": 500,
"platformSettings": {},
"subMetas": {
"bubble_ani (1)": {
"ver": "1.0.4",
"uuid": "4fa000f0-d76e-4956-80ea-3039b76442c3",
"rawTextureUuid": "11e45dd8-3ece-46fb-96f3-19c979b5f1e0",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -3.5,
"offsetY": 11.5,
"trimX": 174,
"trimY": 163,
"width": 145,
"height": 151,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "dae4eef6-c4de-49d3-8b82-bad78035553f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 500,
"height": 500,
"platformSettings": {},
"subMetas": {
"bubble_ani (2)": {
"ver": "1.0.4",
"uuid": "b8c0bcdb-74e7-4b9d-ad16-5117716997a2",
"rawTextureUuid": "dae4eef6-c4de-49d3-8b82-bad78035553f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 9,
"trimX": 148,
"trimY": 146,
"width": 204,
"height": 190,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5d16a674-b231-4414-a440-3c42db4876a5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 500,
"height": 500,
"platformSettings": {},
"subMetas": {
"bubble_ani (3)": {
"ver": "1.0.4",
"uuid": "d9d9d899-c61d-486f-beb2-d50f68204a5e",
"rawTextureUuid": "5d16a674-b231-4414-a440-3c42db4876a5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 9,
"trimX": 137,
"trimY": 136,
"width": 226,
"height": 210,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "fa4375a1-631c-4c99-adfe-2d771bbbe7c3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 500,
"height": 500,
"platformSettings": {},
"subMetas": {
"bubble_ani (4)": {
"ver": "1.0.4",
"uuid": "09ddffcf-a332-412e-bfe5-7d195984e9bd",
"rawTextureUuid": "fa4375a1-631c-4c99-adfe-2d771bbbe7c3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 8,
"trimX": 137,
"trimY": 136,
"width": 225,
"height": 212,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "1f371c5a-055f-4b4d-8f34-5f53bd4b22ff",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 500,
"height": 500,
"platformSettings": {},
"subMetas": {
"bubble_ani (5)": {
"ver": "1.0.4",
"uuid": "f58c319b-319e-4639-a522-1010e6cfd148",
"rawTextureUuid": "1f371c5a-055f-4b4d-8f34-5f53bd4b22ff",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 8,
"trimX": 121,
"trimY": 121,
"width": 257,
"height": 242,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "eb5b0c88-eff1-40de-b826-e8d226a63fc5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 500,
"height": 500,
"platformSettings": {},
"subMetas": {
"bubble_ani (6)": {
"ver": "1.0.4",
"uuid": "7303a330-a4c5-435f-8b54-987b70a40a6b",
"rawTextureUuid": "eb5b0c88-eff1-40de-b826-e8d226a63fc5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 7.5,
"trimX": 120,
"trimY": 121,
"width": 259,
"height": 243,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b21ffe26-9138-4cb7-b145-4f46a551f659",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 500,
"height": 500,
"platformSettings": {},
"subMetas": {
"bubble_ani (7)": {
"ver": "1.0.4",
"uuid": "4c765d84-a51f-432f-b031-89a5ef7a7080",
"rawTextureUuid": "b21ffe26-9138-4cb7-b145-4f46a551f659",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": 7.5,
"trimX": 112,
"trimY": 118,
"width": 277,
"height": 249,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b61f1332-53b3-40f7-9536-1e660d679521",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 500,
"height": 500,
"platformSettings": {},
"subMetas": {
"bubble_ani (8)": {
"ver": "1.0.4",
"uuid": "c13caa19-b445-463f-9afe-b84acf12d2d5",
"rawTextureUuid": "b61f1332-53b3-40f7-9536-1e660d679521",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -13,
"offsetY": 5,
"trimX": 112,
"trimY": 118,
"width": 250,
"height": 254,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "36cfb9cd-7b92-4efd-a322-30cda9f176b6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 500,
"height": 500,
"platformSettings": {},
"subMetas": {
"bubble_ani (9)": {
"ver": "1.0.4",
"uuid": "d93cf7e1-8f50-43f9-805b-f9d9b93cd13b",
"rawTextureUuid": "36cfb9cd-7b92-4efd-a322-30cda9f176b6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -7.5,
"offsetY": -1,
"trimX": 115,
"trimY": 121,
"width": 255,
"height": 260,
"rawWidth": 500,
"rawHeight": 500,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9f2c46fb-7499-456b-8e6c-689cb86a8bdf",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 36,
"height": 24,
"platformSettings": {},
"subMetas": {
"bg_sahua": {
"ver": "1.0.4",
"uuid": "a3cc433a-f6df-4267-a442-c0ac476ebaae",
"rawTextureUuid": "9f2c46fb-7499-456b-8e6c-689cb86a8bdf",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 36,
"height": 24,
"rawWidth": 36,
"rawHeight": 24,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 262, "width": 195,
"height": 261, "height": 195,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"bubble": { "bubble": {
......
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