Commit 3a9d89ca authored by 李维's avatar 李维

修复在某些情况下结束动画重叠的问题

parent 3e92e786
...@@ -326,19 +326,19 @@ ...@@ -326,19 +326,19 @@
"__id__": 62 "__id__": 62
}, },
{ {
"__id__": 68 "__id__": 74
}, },
{ {
"__id__": 75 "__id__": 81
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 99 "__id__": 98
}, },
{ {
"__id__": 100 "__id__": 99
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2628,15 +2628,24 @@ ...@@ -2628,15 +2628,24 @@
"_children": [ "_children": [
{ {
"__id__": 63 "__id__": 63
},
{
"__id__": 66
},
{
"__id__": 68
},
{
"__id__": 70
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 66 "__id__": 72
}, },
{ {
"__id__": 67 "__id__": 73
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2811,59 +2820,18 @@ ...@@ -2811,59 +2820,18 @@
"_originalHeight": 0, "_originalHeight": 0,
"_id": "74Bk+o5D9A5LMSt0xR2+Mj" "_id": "74Bk+o5D9A5LMSt0xR2+Mj"
}, },
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "01nR8fepxG6ZcOHWqf1F6F"
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"_id": "99TmKuadlDrpqTImwqqu6G"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "tipsLayer", "_name": "finish1_ske",
"_objFlags": 512, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 8 "__id__": 62
}, },
"_children": [ "_children": [],
{
"__id__": 69
}
],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 74 "__id__": 67
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2877,8 +2845,8 @@ ...@@ -2877,8 +2845,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1920, "width": 1114.9327472823945,
"height": 1080 "height": 627.6706941126714
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2912,27 +2880,60 @@ ...@@ -2912,27 +2880,60 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "b2+0QRHqhONpO/79w7iCil" "_id": "dd4QDG6OZAoqNifQRok5KN"
}, },
{ {
"__type__": "cc.Node", "__type__": "dragonBones.ArmatureDisplay",
"_name": "tips", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "node": {
"__id__": 68 "__id__": 66
}, },
"_children": [ "_enabled": true,
"_materials": [
{ {
"__id__": 70 "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
} }
], ],
"_active": true, "_armatureName": "Armature",
"_components": [ "_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "5770fca7-e0ef-4d61-a35a-5f0e28da42ce#3d0e2b79-bfe1-4968-b87d-ef7ee52ea7f5",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "5770fca7-e0ef-4d61-a35a-5f0e28da42ce"
},
"_N$dragonAtlasAsset": {
"__uuid__": "3d0e2b79-bfe1-4968-b87d-ef7ee52ea7f5"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "594h2Ssr9FEYkaYBhar87D"
},
{ {
"__id__": 72 "__type__": "cc.Node",
"_name": "finish2_ske",
"_objFlags": 0,
"_parent": {
"__id__": 62
}, },
"_children": [],
"_active": false,
"_components": [
{ {
"__id__": 73 "__id__": 69
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2946,8 +2947,8 @@ ...@@ -2946,8 +2947,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 398, "width": 1959,
"height": 110 "height": 958
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2959,7 +2960,7 @@ ...@@ -2959,7 +2960,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-354, 0,
0, 0,
0, 0,
0, 0,
...@@ -2981,17 +2982,57 @@ ...@@ -2981,17 +2982,57 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "35zPmaqRFKO61TT6ctCm23" "_id": "ffKuQC0VREEpO1n0zEFO3w"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "5aa327b7-4621-44df-9af7-8eee48a90ef9#285a0950-285a-4f1d-a533-2b8e716aa44a",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "5aa327b7-4621-44df-9af7-8eee48a90ef9"
},
"_N$dragonAtlasAsset": {
"__uuid__": "285a0950-285a-4f1d-a533-2b8e716aa44a"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "56PQFlcwVLwb3SSz2tioNJ"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "label", "_name": "allfinish_ske",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 69 "__id__": 62
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 71 "__id__": 71
...@@ -3008,8 +3049,8 @@ ...@@ -3008,8 +3049,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 60, "width": 1959,
"height": 30 "height": 862
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3043,10 +3084,10 @@ ...@@ -3043,10 +3084,10 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "efCSXIBTtIpZ+/yHqkyCTO" "_id": "15udo4xMdLi4NOlMJYd4Ei"
}, },
{ {
"__type__": "cc.Label", "__type__": "dragonBones.ArmatureDisplay",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
...@@ -3058,135 +3099,88 @@ ...@@ -3058,135 +3099,88 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
} }
], ],
"_srcBlendFactor": 770, "_armatureName": "Armature",
"_dstBlendFactor": 771, "_animationName": "",
"_string": "提示", "_preCacheMode": 0,
"_N$string": "提示", "_cacheMode": 0,
"_fontSize": 30, "playTimes": -1,
"_lineHeight": 30, "premultipliedAlpha": false,
"_enableWrapText": true, "_armatureKey": "443eb374-6e3c-4ec8-b56c-e59841eeeb70#98283a7a-e66d-4289-b60c-e32e8821ebc8",
"_N$file": null, "_accTime": 0,
"_isSystemFontUsed": true, "_playCount": 0,
"_spacingX": 0, "_frameCache": null,
"_batchAsBitmap": false, "_curFrame": null,
"_styleFlags": 0, "_playing": false,
"_underlineHeight": 0, "_armatureCache": null,
"_N$horizontalAlign": 1, "_N$dragonAsset": {
"_N$verticalAlign": 1, "__uuid__": "443eb374-6e3c-4ec8-b56c-e59841eeeb70"
"_N$fontFamily": "Arial", },
"_N$overflow": 0, "_N$dragonAtlasAsset": {
"_N$cacheMode": 2, "__uuid__": "98283a7a-e66d-4289-b60c-e32e8821ebc8"
"_id": "76HU69UkBKs6v/jB9TBarh" },
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "7cPq6p/qFLGY39wXIEL4V9"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Widget",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 69 "__id__": 62
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "01nR8fepxG6ZcOHWqf1F6F"
},
{ {
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__type__": "cc.BlockInputEvents",
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "297c6c6f-c675-4606-bb8a-11e4fea0eba0"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "fc587VKDtGr7lP2VK6jKGH"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 69
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 4,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 131,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "afIfyPcpZDZbB+4yhAojNv"
},
{
"__type__": "cc.Widget",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 68 "__id__": 62
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "_id": "99TmKuadlDrpqTImwqqu6G"
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "7b2+UPIapMc4GikO2k1Ue7"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "res", "_name": "tipsLayer",
"_objFlags": 0, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 8 "__id__": 8
}, },
"_children": [ "_children": [
{ {
"__id__": 76 "__id__": 75
}, }
],
"_active": false,
"_components": [
{ {
"__id__": 80 "__id__": 80
},
{
"__id__": 87
},
{
"__id__": 96
} }
], ],
"_active": false,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -3198,8 +3192,8 @@ ...@@ -3198,8 +3192,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 1920,
"height": 0 "height": 1080
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3233,19 +3227,22 @@ ...@@ -3233,19 +3227,22 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "1e8fAXeZJHgoHIuDmU7yoR" "_id": "b2+0QRHqhONpO/79w7iCil"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "img", "_name": "tips",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 75 "__id__": 74
}, },
"_children": [ "_children": [
{ {
"__id__": 77 "__id__": 76
}, }
],
"_active": true,
"_components": [
{ {
"__id__": 78 "__id__": 78
}, },
...@@ -3253,8 +3250,6 @@ ...@@ -3253,8 +3250,6 @@
"__id__": 79 "__id__": 79
} }
], ],
"_active": true,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -3266,8 +3261,8 @@ ...@@ -3266,8 +3261,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 398,
"height": 0 "height": 110
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3279,7 +3274,7 @@ ...@@ -3279,7 +3274,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, -354,
0, 0,
0, 0,
0, 0,
...@@ -3301,18 +3296,22 @@ ...@@ -3301,18 +3296,22 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "19wcZ+i5NA5JfL7tSgmnfH" "_id": "35zPmaqRFKO61TT6ctCm23"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn_next", "_name": "label",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 76 "__id__": 75
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 77
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -3324,8 +3323,8 @@ ...@@ -3324,8 +3323,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 400, "width": 60,
"height": 150 "height": 30
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3336,8 +3335,8 @@ ...@@ -3336,8 +3335,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
218.975, 0,
-334.738, 0,
0, 0,
0, 0,
0, 0,
...@@ -3359,75 +3358,146 @@ ...@@ -3359,75 +3358,146 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "fbfR1JkFBLJY2Uibu9pvEN" "_id": "efCSXIBTtIpZ+/yHqkyCTO"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Label",
"_name": "btn_replay", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "node": {
"__id__": 76 "__id__": 76
}, },
"_children": [], "_enabled": true,
"_active": true, "_materials": [
"_components": [], {
"_prefab": null, "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"_opacity": 255, }
"_color": { ],
"__type__": "cc.Color", "_srcBlendFactor": 770,
"r": 255, "_dstBlendFactor": 771,
"g": 255, "_string": "提示",
"b": 255, "_N$string": "提示",
"a": 255 "_fontSize": 30,
"_lineHeight": 30,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 2,
"_id": "76HU69UkBKs6v/jB9TBarh"
}, },
"_contentSize": { {
"__type__": "cc.Size", "__type__": "cc.Sprite",
"width": 400, "_name": "",
"height": 150 "_objFlags": 0,
"node": {
"__id__": 75
}, },
"_anchorPoint": { "_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "297c6c6f-c675-4606-bb8a-11e4fea0eba0"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0,
"y": 0.5 "y": 0
}, },
"_trs": { "_fillStart": 0,
"__type__": "TypedArray", "_fillRange": 0,
"ctor": "Float64Array", "_isTrimmedMode": true,
"array": [ "_atlas": null,
-218.975, "_id": "fc587VKDtGr7lP2VK6jKGH"
-329.16,
0,
0,
0,
0,
1,
1,
1,
1
]
}, },
"_eulerAngles": { {
"__type__": "cc.Vec3", "__type__": "cc.Widget",
"x": 0, "_name": "",
"y": 0, "_objFlags": 0,
"z": 0 "node": {
"__id__": 75
}, },
"_skewX": 0, "_enabled": true,
"_skewY": 0, "alignMode": 1,
"_is3DNode": false, "_target": null,
"_groupIndex": 0, "_alignFlags": 4,
"groupIndex": 0, "_left": 0,
"_id": "10XYGCsupKlKwfSlZ4Kty5" "_right": 0,
"_top": 0,
"_bottom": 131,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "afIfyPcpZDZbB+4yhAojNv"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 74
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "7b2+UPIapMc4GikO2k1Ue7"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn_x", "_name": "res",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 76 "__id__": 8
}, },
"_children": [], "_children": [
"_active": true, {
"__id__": 82
},
{
"__id__": 86
},
{
"__id__": 95
}
],
"_active": false,
"_components": [], "_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
...@@ -3440,8 +3510,8 @@ ...@@ -3440,8 +3510,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 400, "width": 0,
"height": 150 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3452,8 +3522,8 @@ ...@@ -3452,8 +3522,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-2.789, 0,
-330.554, 0,
0, 0,
0, 0,
0, 0,
...@@ -3475,21 +3545,21 @@ ...@@ -3475,21 +3545,21 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "77Y5hZ/shJ/6ASlwEs5oek" "_id": "1e8fAXeZJHgoHIuDmU7yoR"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "anim", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 75 "__id__": 81
}, },
"_children": [ "_children": [
{ {
"__id__": 81 "__id__": 83
}, },
{ {
"__id__": 83 "__id__": 84
}, },
{ {
"__id__": 85 "__id__": 85
...@@ -3543,22 +3613,18 @@ ...@@ -3543,22 +3613,18 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "15q0U36aJLa4shIgeUpNNt" "_id": "19wcZ+i5NA5JfL7tSgmnfH"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "finish1_ske", "_name": "btn_next",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 80 "__id__": 82
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [],
{
"__id__": 82
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -3570,8 +3636,8 @@ ...@@ -3570,8 +3636,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1114.9327472823945, "width": 400,
"height": 627.6706941126714 "height": 150
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3582,8 +3648,8 @@ ...@@ -3582,8 +3648,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 218.975,
0, -334.738,
0, 0,
0, 0,
0, 0,
...@@ -3605,62 +3671,18 @@ ...@@ -3605,62 +3671,18 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "2eQOg8SnJFqYlw0X6YNAS4" "_id": "fbfR1JkFBLJY2Uibu9pvEN"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 81
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "5770fca7-e0ef-4d61-a35a-5f0e28da42ce#3d0e2b79-bfe1-4968-b87d-ef7ee52ea7f5",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "5770fca7-e0ef-4d61-a35a-5f0e28da42ce"
},
"_N$dragonAtlasAsset": {
"__uuid__": "3d0e2b79-bfe1-4968-b87d-ef7ee52ea7f5"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "c3Gn7tqb9AxoEQhsFd+aqf"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "finish2_ske", "_name": "btn_replay",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 80 "__id__": 82
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [],
{
"__id__": 84
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -3672,8 +3694,8 @@ ...@@ -3672,8 +3694,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1959, "width": 400,
"height": 958 "height": 150
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3684,8 +3706,8 @@ ...@@ -3684,8 +3706,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, -218.975,
0, -329.16,
0, 0,
0, 0,
0, 0,
...@@ -3707,62 +3729,18 @@ ...@@ -3707,62 +3729,18 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "dfMmjjEqlNRIrUdR5wW4/f" "_id": "10XYGCsupKlKwfSlZ4Kty5"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "5aa327b7-4621-44df-9af7-8eee48a90ef9#285a0950-285a-4f1d-a533-2b8e716aa44a",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "5aa327b7-4621-44df-9af7-8eee48a90ef9"
},
"_N$dragonAtlasAsset": {
"__uuid__": "285a0950-285a-4f1d-a533-2b8e716aa44a"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "af7IyQllVG6pBTzqmyECBC"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "allfinish_ske", "_name": "btn_x",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 80 "__id__": 82
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [],
{
"__id__": 86
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -3774,8 +3752,8 @@ ...@@ -3774,8 +3752,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1959, "width": 400,
"height": 862 "height": 150
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3786,8 +3764,8 @@ ...@@ -3786,8 +3764,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, -2.789,
0, -330.554,
0, 0,
0, 0,
0, 0,
...@@ -3809,67 +3787,27 @@ ...@@ -3809,67 +3787,27 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "2aDvmCwOZHTYLaCRXrR03f" "_id": "77Y5hZ/shJ/6ASlwEs5oek"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 85
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "443eb374-6e3c-4ec8-b56c-e59841eeeb70#98283a7a-e66d-4289-b60c-e32e8821ebc8",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "443eb374-6e3c-4ec8-b56c-e59841eeeb70"
},
"_N$dragonAtlasAsset": {
"__uuid__": "98283a7a-e66d-4289-b60c-e32e8821ebc8"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "83pKRLLAhMA6UaKfDClOHS"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "audio", "_name": "audio",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 75 "__id__": 81
}, },
"_children": [ "_children": [
{ {
"__id__": 88 "__id__": 87
}, },
{ {
"__id__": 90 "__id__": 89
}, },
{ {
"__id__": 92 "__id__": 91
}, },
{ {
"__id__": 94 "__id__": 93
} }
], ],
"_active": true, "_active": true,
...@@ -3927,13 +3865,13 @@ ...@@ -3927,13 +3865,13 @@
"_name": "btn", "_name": "btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 87 "__id__": 86
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 89 "__id__": 88
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3989,7 +3927,7 @@ ...@@ -3989,7 +3927,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 88 "__id__": 87
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4008,13 +3946,13 @@ ...@@ -4008,13 +3946,13 @@
"_name": "finish1", "_name": "finish1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 87 "__id__": 86
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 91 "__id__": 90
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4070,7 +4008,7 @@ ...@@ -4070,7 +4008,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 90 "__id__": 89
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4089,13 +4027,13 @@ ...@@ -4089,13 +4027,13 @@
"_name": "finish2", "_name": "finish2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 87 "__id__": 86
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 93 "__id__": 92
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4151,7 +4089,7 @@ ...@@ -4151,7 +4089,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 92 "__id__": 91
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4170,13 +4108,13 @@ ...@@ -4170,13 +4108,13 @@
"_name": "allfinish", "_name": "allfinish",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 87 "__id__": 86
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 95 "__id__": 94
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4232,7 +4170,7 @@ ...@@ -4232,7 +4170,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 94 "__id__": 93
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4251,11 +4189,11 @@ ...@@ -4251,11 +4189,11 @@
"_name": "font", "_name": "font",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 75 "__id__": 81
}, },
"_children": [ "_children": [
{ {
"__id__": 97 "__id__": 96
} }
], ],
"_active": true, "_active": true,
...@@ -4313,13 +4251,13 @@ ...@@ -4313,13 +4251,13 @@
"_name": "ms_bold", "_name": "ms_bold",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 96 "__id__": 95
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 98 "__id__": 97
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4375,7 +4313,7 @@ ...@@ -4375,7 +4313,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 97 "__id__": 96
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
......
...@@ -376,51 +376,61 @@ export default class MiddleLayerClass extends middleLayerBase { ...@@ -376,51 +376,61 @@ export default class MiddleLayerClass extends middleLayerBase {
async showGold(cb) { async showGold(cb) {
console.log("显示Animation: Well Done!") console.log("显示Animation: Well Done!")
const goldAnim = cc.instantiate(cc.find('middleLayer/res/anim/finish1_ske'));
// 隐藏掉之前的动画 - 二次隐藏
this.hideAllFinishAni();
// 显示结束层并显示对应的动画
const finishLayer = cc.find("middleLayer/finishLayer"); const finishLayer = cc.find("middleLayer/finishLayer");
goldAnim.active = true; const goldAnim = cc.find('middleLayer/finishLayer/finish1_ske');
goldAnim.parent = finishLayer;
finishLayer.active = true; finishLayer.active = true;
goldAnim.active = true;
appearAnim(finishLayer, 0.3); appearAnim(finishLayer, 0.3);
playLocalAudio("finish1") playLocalAudio("finish1")
await asyncPlayDragonBoneAnimation(goldAnim, 'newAnimation', 1, null); await asyncPlayDragonBoneAnimation(goldAnim, 'newAnimation', 1, null);
goldAnim.active = false;
finishLayer.active = false; finishLayer.active = false;
goldAnim.active = false;
cb && cb(); cb && cb();
} }
async showFinish() { async showFinish() {
console.log("显示Animation: Good job!") console.log("显示Animation: Good job!")
const finishAnim = cc.instantiate(cc.find('middleLayer/res/anim/finish2_ske'));
finishAnim.active = true;
// 隐藏掉之前的动画 - 二次隐藏
this.hideAllFinishAni();
// 显示结束层并显示对应的动画
const finishLayer = cc.find("middleLayer/finishLayer") const finishLayer = cc.find("middleLayer/finishLayer")
finishLayer.addChild(finishAnim, 2); const finishAnim = cc.find('middleLayer/finishLayer/finish2_ske');
finishLayer.active = true; finishLayer.active = true;
finishAnim.active = true;
playLocalAudio("finish2") playLocalAudio("finish2")
await asyncPlayDragonBoneAnimation(finishAnim, 'newAnimation', 1, null); await asyncPlayDragonBoneAnimation(finishAnim, 'newAnimation', 1, null);
const replayBtn = cc.find('middleLayer/res/img/btn_replay'); const replayBtn = cc.find('middleLayer/res/img/btn_replay');
replayBtn.parent = finishLayer replayBtn.parent = finishLayer
const nextBtn = cc.find('middleLayer/res/img/btn_next'); const nextBtn = cc.find('middleLayer/res/img/btn_next');
nextBtn.parent = finishLayer nextBtn.parent = finishLayer
const hideFinish = () => { const hideFinish = () => {
nextBtn.parent = cc.find("middleLayer/res/img") nextBtn.parent = cc.find("middleLayer/res/img")
replayBtn.parent = cc.find("middleLayer/res/img") replayBtn.parent = cc.find("middleLayer/res/img")
finishLayer.removeChild(finishAnim); finishAnim.active = false;
finishLayer.active = false; finishLayer.active = false;
} }
replayBtn.off("touchstart");
replayBtn.on('touchstart', () => { replayBtn.on('touchstart', () => {
console.log("点击”再来一次") console.log("点击”再来一次")
hideFinish(); hideFinish();
this.loadOnlineCourseWare(this.courseItem.course_id, null, null); this.loadOnlineCourseWare(this.courseItem.course_id, null, null);
}) })
nextBtn.off("touchstart");
nextBtn.on("touchstart", () => { nextBtn.on("touchstart", () => {
console.log("点击”下一关") console.log("点击”下一关")
hideFinish(); hideFinish();
...@@ -437,12 +447,16 @@ export default class MiddleLayerClass extends middleLayerBase { ...@@ -437,12 +447,16 @@ export default class MiddleLayerClass extends middleLayerBase {
async showAllFinish() { async showAllFinish() {
console.log("显示Animation: 全部完成!") console.log("显示Animation: 全部完成!")
const finishAnim = cc.instantiate(cc.find('middleLayer/res/anim/allfinish_ske'));
// 隐藏掉之前的动画 - 二次隐藏
this.hideAllFinishAni();
const finishAnim = cc.find('middleLayer/finishLayer/allfinish_ske');
finishAnim.active = true; finishAnim.active = true;
const finishLayer = cc.find("middleLayer/finishLayer") const finishLayer = cc.find("middleLayer/finishLayer");
finishLayer.addChild(finishAnim, 2);
finishLayer.active = true; finishLayer.active = true;
playLocalAudio("allfinish") playLocalAudio("allfinish")
await asyncPlayDragonBoneAnimation(finishAnim, 'newAnimation', 1, null); await asyncPlayDragonBoneAnimation(finishAnim, 'newAnimation', 1, null);
...@@ -451,16 +465,24 @@ export default class MiddleLayerClass extends middleLayerBase { ...@@ -451,16 +465,24 @@ export default class MiddleLayerClass extends middleLayerBase {
const hideFinish = () => { const hideFinish = () => {
exitBtn.parent = cc.find("middleLayer/res/img") exitBtn.parent = cc.find("middleLayer/res/img")
finishLayer.removeChild(finishAnim); finishAnim.active = false;
finishLayer.active = false; finishLayer.active = false;
} }
exitBtn.off("touchstart");
exitBtn.on("touchstart", () => { exitBtn.on("touchstart", () => {
hideFinish(); hideFinish();
this.exitGame() this.exitGame()
}) })
} }
// 隐藏三个动画
hideAllFinishAni() {
cc.find('middleLayer/finishLayer/finish1_ske').active = false;
cc.find('middleLayer/finishLayer/finish2_ske').active = false;
cc.find('middleLayer/finishLayer/allfinish_ske').active = false;
}
saveRecordResult(recordResult) { saveRecordResult(recordResult) {
const result = JSON.parse(recordResult); const result = JSON.parse(recordResult);
const data = { const data = {
......
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