Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_kyxq
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
middleLayer_for_kyxq
Commits
3a9d89ca
Commit
3a9d89ca
authored
Dec 11, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复在某些情况下结束动画重叠的问题
parent
3e92e786
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
398 additions
and
438 deletions
+398
-438
middleLayer_for_kyxq.fire
assets/middleLayer_for_kyxq/scene/middleLayer_for_kyxq.fire
+363
-425
middleLayer.ts
assets/middleLayer_for_kyxq/script/middleLayer.ts
+35
-13
No files found.
assets/middleLayer_for_kyxq/scene/middleLayer_for_kyxq.fire
View file @
3a9d89ca
...
...
@@ -326,19 +326,19 @@
"__id__": 62
},
{
"__id__":
68
"__id__":
74
},
{
"__id__":
75
"__id__":
81
}
],
"_active": true,
"_components": [
{
"__id__": 9
9
"__id__": 9
8
},
{
"__id__":
100
"__id__":
99
}
],
"_prefab": null,
...
...
@@ -2628,15 +2628,24 @@
"_children": [
{
"__id__": 63
},
{
"__id__": 66
},
{
"__id__": 68
},
{
"__id__": 70
}
],
"_active": false,
"_components": [
{
"__id__":
66
"__id__":
72
},
{
"__id__":
67
"__id__":
73
}
],
"_prefab": null,
...
...
@@ -2811,59 +2820,18 @@
"_originalHeight": 0,
"_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",
"_name": "
tipsLayer
",
"_objFlags":
512
,
"_name": "
finish1_ske
",
"_objFlags":
0
,
"_parent": {
"__id__":
8
"__id__":
62
},
"_children": [
{
"__id__": 69
}
],
"_children": [],
"_active": false,
"_components": [
{
"__id__":
74
"__id__":
67
}
],
"_prefab": null,
...
...
@@ -2877,8 +2845,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
920
,
"height":
1080
"width": 1
114.9327472823945
,
"height":
627.6706941126714
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -2912,27 +2880,60 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
b2+0QRHqhONpO/79w7iCil
"
"_id": "
dd4QDG6OZAoqNifQRok5KN
"
},
{
"__type__": "
cc.Node
",
"_name": "
tips
",
"__type__": "
dragonBones.ArmatureDisplay
",
"_name": "",
"_objFlags": 0,
"
_parent
": {
"__id__": 6
8
"
node
": {
"__id__": 6
6
},
"_children": [
"_enabled": true,
"_materials": [
{
"__
id__": 70
"__
uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_active": true,
"_components": [
"_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": "594h2Ssr9FEYkaYBhar87D"
},
{
"__id__": 72
"__type__": "cc.Node",
"_name": "finish2_ske",
"_objFlags": 0,
"_parent": {
"__id__": 62
},
"_children": [],
"_active": false,
"_components": [
{
"__id__":
73
"__id__":
69
}
],
"_prefab": null,
...
...
@@ -2946,8 +2947,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
398
,
"height":
110
"width":
1959
,
"height":
958
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -2959,7 +2960,7 @@
"ctor": "Float64Array",
"array": [
0,
-354
,
0
,
0,
0,
0,
...
...
@@ -2981,17 +2982,57 @@
"_is3DNode": false,
"_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",
"_name": "
label
",
"_name": "
allfinish_ske
",
"_objFlags": 0,
"_parent": {
"__id__": 6
9
"__id__": 6
2
},
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
{
"__id__": 71
...
...
@@ -3008,8 +3049,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
60
,
"height":
30
"width":
1959
,
"height":
862
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3043,10 +3084,10 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
efCSXIBTtIpZ+/yHqkyCTO
"
"_id": "
15udo4xMdLi4NOlMJYd4Ei
"
},
{
"__type__": "
cc.Label
",
"__type__": "
dragonBones.ArmatureDisplay
",
"_name": "",
"_objFlags": 0,
"node": {
...
...
@@ -3058,135 +3099,88 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "提示",
"_N$string": "提示",
"_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"
"_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": "7cPq6p/qFLGY39wXIEL4V9"
},
{
"__type__": "cc.
Sprite
",
"__type__": "cc.
Widget
",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
9
"__id__": 6
2
},
"_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"
}
],
"_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",
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
8
"__id__": 6
2
},
"_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"
"_id": "99TmKuadlDrpqTImwqqu6G"
},
{
"__type__": "cc.Node",
"_name": "
res
",
"_objFlags":
0
,
"_name": "
tipsLayer
",
"_objFlags":
512
,
"_parent": {
"__id__": 8
},
"_children": [
{
"__id__": 76
},
"__id__": 75
}
],
"_active": false,
"_components": [
{
"__id__": 80
},
{
"__id__": 87
},
{
"__id__": 96
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
...
...
@@ -3198,8 +3192,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width":
192
0,
"height":
108
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3233,19 +3227,22 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
1e8fAXeZJHgoHIuDmU7yoR
"
"_id": "
b2+0QRHqhONpO/79w7iCil
"
},
{
"__type__": "cc.Node",
"_name": "
img
",
"_name": "
tips
",
"_objFlags": 0,
"_parent": {
"__id__": 7
5
"__id__": 7
4
},
"_children": [
{
"__id__": 77
},
"__id__": 76
}
],
"_active": true,
"_components": [
{
"__id__": 78
},
...
...
@@ -3253,8 +3250,6 @@
"__id__": 79
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
...
...
@@ -3266,8 +3261,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
0
,
"height": 0
"width":
398
,
"height":
11
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3279,7 +3274,7 @@
"ctor": "Float64Array",
"array": [
0,
0
,
-354
,
0,
0,
0,
...
...
@@ -3301,18 +3296,22 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
19wcZ+i5NA5JfL7tSgmnfH
"
"_id": "
35zPmaqRFKO61TT6ctCm23
"
},
{
"__type__": "cc.Node",
"_name": "
btn_next
",
"_name": "
label
",
"_objFlags": 0,
"_parent": {
"__id__": 7
6
"__id__": 7
5
},
"_children": [],
"_active": true,
"_components": [],
"_components": [
{
"__id__": 77
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
...
...
@@ -3324,8 +3323,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
40
0,
"height":
15
0
"width":
6
0,
"height":
3
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3336,8 +3335,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
218.975
,
-334.738
,
0
,
0
,
0,
0,
0,
...
...
@@ -3359,75 +3358,146 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
fbfR1JkFBLJY2Uibu9pvEN
"
"_id": "
efCSXIBTtIpZ+/yHqkyCTO
"
},
{
"__type__": "cc.
Node
",
"_name": "
btn_replay
",
"__type__": "cc.
Label
",
"_name": "",
"_objFlags": 0,
"
_parent
": {
"
node
": {
"__id__": 76
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "提示",
"_N$string": "提示",
"_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",
"width": 400,
"height": 150
{
"__type__": "cc.Sprite",
"_name": "",
"_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",
"x": 0
.5
,
"y": 0
.5
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-218.975,
-329.16,
0,
0,
0,
0,
1,
1,
1,
1
]
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "fc587VKDtGr7lP2VK6jKGH"
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 75
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "10XYGCsupKlKwfSlZ4Kty5"
"_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": "",
"_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",
"_name": "
btn_x
",
"_name": "
res
",
"_objFlags": 0,
"_parent": {
"__id__":
76
"__id__":
8
},
"_children": [],
"_active": true,
"_children": [
{
"__id__": 82
},
{
"__id__": 86
},
{
"__id__": 95
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
...
...
@@ -3440,8 +3510,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
40
0,
"height":
15
0
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3452,8 +3522,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-2.789
,
-330.554
,
0
,
0
,
0,
0,
0,
...
...
@@ -3475,21 +3545,21 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
77Y5hZ/shJ/6ASlwEs5oek
"
"_id": "
1e8fAXeZJHgoHIuDmU7yoR
"
},
{
"__type__": "cc.Node",
"_name": "
anim
",
"_name": "
img
",
"_objFlags": 0,
"_parent": {
"__id__":
75
"__id__":
81
},
"_children": [
{
"__id__": 8
1
"__id__": 8
3
},
{
"__id__": 8
3
"__id__": 8
4
},
{
"__id__": 85
...
...
@@ -3543,22 +3613,18 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "1
5q0U36aJLa4shIgeUpNNt
"
"_id": "1
9wcZ+i5NA5JfL7tSgmnfH
"
},
{
"__type__": "cc.Node",
"_name": "
finish1_ske
",
"_name": "
btn_next
",
"_objFlags": 0,
"_parent": {
"__id__": 8
0
"__id__": 8
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 82
}
],
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
...
...
@@ -3570,8 +3636,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
1114.9327472823945
,
"height":
627.6706941126714
"width":
400
,
"height":
150
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3582,8 +3648,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0
,
0
,
218.975
,
-334.738
,
0,
0,
0,
...
...
@@ -3605,62 +3671,18 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "2eQOg8SnJFqYlw0X6YNAS4"
},
{
"__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"
"_id": "fbfR1JkFBLJY2Uibu9pvEN"
},
{
"__type__": "cc.Node",
"_name": "
finish2_ske
",
"_name": "
btn_replay
",
"_objFlags": 0,
"_parent": {
"__id__": 8
0
"__id__": 8
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 84
}
],
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
...
...
@@ -3672,8 +3694,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
1959
,
"height":
958
"width":
400
,
"height":
150
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3684,8 +3706,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0
,
0
,
-218.975
,
-329.16
,
0,
0,
0,
...
...
@@ -3707,62 +3729,18 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "dfMmjjEqlNRIrUdR5wW4/f"
},
{
"__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"
"_id": "10XYGCsupKlKwfSlZ4Kty5"
},
{
"__type__": "cc.Node",
"_name": "
allfinish_ske
",
"_name": "
btn_x
",
"_objFlags": 0,
"_parent": {
"__id__": 8
0
"__id__": 8
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 86
}
],
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
...
...
@@ -3774,8 +3752,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
1959
,
"height":
862
"width":
400
,
"height":
150
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3786,8 +3764,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0
,
0
,
-2.789
,
-330.554
,
0,
0,
0,
...
...
@@ -3809,67 +3787,27 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "2aDvmCwOZHTYLaCRXrR03f"
},
{
"__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"
"_id": "77Y5hZ/shJ/6ASlwEs5oek"
},
{
"__type__": "cc.Node",
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__":
75
"__id__":
81
},
"_children": [
{
"__id__": 8
8
"__id__": 8
7
},
{
"__id__":
90
"__id__":
89
},
{
"__id__": 9
2
"__id__": 9
1
},
{
"__id__": 9
4
"__id__": 9
3
}
],
"_active": true,
...
...
@@ -3927,13 +3865,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 8
7
"__id__": 8
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
9
"__id__": 8
8
}
],
"_prefab": null,
...
...
@@ -3989,7 +3927,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
8
"__id__": 8
7
},
"_enabled": true,
"_clip": {
...
...
@@ -4008,13 +3946,13 @@
"_name": "finish1",
"_objFlags": 0,
"_parent": {
"__id__": 8
7
"__id__": 8
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
1
"__id__": 9
0
}
],
"_prefab": null,
...
...
@@ -4070,7 +4008,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
90
"__id__":
89
},
"_enabled": true,
"_clip": {
...
...
@@ -4089,13 +4027,13 @@
"_name": "finish2",
"_objFlags": 0,
"_parent": {
"__id__": 8
7
"__id__": 8
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
3
"__id__": 9
2
}
],
"_prefab": null,
...
...
@@ -4151,7 +4089,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
2
"__id__": 9
1
},
"_enabled": true,
"_clip": {
...
...
@@ -4170,13 +4108,13 @@
"_name": "allfinish",
"_objFlags": 0,
"_parent": {
"__id__": 8
7
"__id__": 8
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
5
"__id__": 9
4
}
],
"_prefab": null,
...
...
@@ -4232,7 +4170,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
4
"__id__": 9
3
},
"_enabled": true,
"_clip": {
...
...
@@ -4251,11 +4189,11 @@
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__":
75
"__id__":
81
},
"_children": [
{
"__id__": 9
7
"__id__": 9
6
}
],
"_active": true,
...
...
@@ -4313,13 +4251,13 @@
"_name": "ms_bold",
"_objFlags": 0,
"_parent": {
"__id__": 9
6
"__id__": 9
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
8
"__id__": 9
7
}
],
"_prefab": null,
...
...
@@ -4375,7 +4313,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
7
"__id__": 9
6
},
"_enabled": true,
"_materials": [],
...
...
assets/middleLayer_for_kyxq/script/middleLayer.ts
View file @
3a9d89ca
...
...
@@ -376,51 +376,61 @@ export default class MiddleLayerClass extends middleLayerBase {
async
showGold
(
cb
)
{
console
.
log
(
"
显示Animation: Well Done!
"
)
const
goldAnim
=
cc
.
instantiate
(
cc
.
find
(
'
middleLayer/res/anim/finish1_ske
'
));
// 隐藏掉之前的动画 - 二次隐藏
this
.
hideAllFinishAni
();
// 显示结束层并显示对应的动画
const
finishLayer
=
cc
.
find
(
"
middleLayer/finishLayer
"
);
goldAnim
.
active
=
true
;
goldAnim
.
parent
=
finishLayer
;
const
goldAnim
=
cc
.
find
(
'
middleLayer/finishLayer/finish1_ske
'
);
finishLayer
.
active
=
true
;
goldAnim
.
active
=
true
;
appearAnim
(
finishLayer
,
0.3
);
playLocalAudio
(
"
finish1
"
)
await
asyncPlayDragonBoneAnimation
(
goldAnim
,
'
newAnimation
'
,
1
,
null
);
goldAnim
.
active
=
false
;
finishLayer
.
active
=
false
;
goldAnim
.
active
=
false
;
cb
&&
cb
();
}
async
showFinish
()
{
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
"
)
finishLayer
.
addChild
(
finishAnim
,
2
);
const
finishAnim
=
cc
.
find
(
'
middleLayer/finishLayer/finish2_ske
'
);
finishLayer
.
active
=
true
;
finishAnim
.
active
=
true
;
playLocalAudio
(
"
finish2
"
)
await
asyncPlayDragonBoneAnimation
(
finishAnim
,
'
newAnimation
'
,
1
,
null
);
const
replayBtn
=
cc
.
find
(
'
middleLayer/res/img/btn_replay
'
);
replayBtn
.
parent
=
finishLayer
const
nextBtn
=
cc
.
find
(
'
middleLayer/res/img/btn_next
'
);
nextBtn
.
parent
=
finishLayer
const
hideFinish
=
()
=>
{
nextBtn
.
parent
=
cc
.
find
(
"
middleLayer/res/img
"
)
replayBtn
.
parent
=
cc
.
find
(
"
middleLayer/res/img
"
)
finish
Layer
.
removeChild
(
finishAnim
)
;
finish
Anim
.
active
=
false
;
finishLayer
.
active
=
false
;
}
replayBtn
.
off
(
"
touchstart
"
);
replayBtn
.
on
(
'
touchstart
'
,
()
=>
{
console
.
log
(
"
点击”再来一次
"
)
hideFinish
();
this
.
loadOnlineCourseWare
(
this
.
courseItem
.
course_id
,
null
,
null
);
})
nextBtn
.
off
(
"
touchstart
"
);
nextBtn
.
on
(
"
touchstart
"
,
()
=>
{
console
.
log
(
"
点击”下一关
"
)
hideFinish
();
...
...
@@ -437,12 +447,16 @@ export default class MiddleLayerClass extends middleLayerBase {
async
showAllFinish
()
{
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
;
const
finishLayer
=
cc
.
find
(
"
middleLayer/finishLayer
"
)
finishLayer
.
addChild
(
finishAnim
,
2
);
const
finishLayer
=
cc
.
find
(
"
middleLayer/finishLayer
"
);
finishLayer
.
active
=
true
;
playLocalAudio
(
"
allfinish
"
)
await
asyncPlayDragonBoneAnimation
(
finishAnim
,
'
newAnimation
'
,
1
,
null
);
...
...
@@ -451,16 +465,24 @@ export default class MiddleLayerClass extends middleLayerBase {
const
hideFinish
=
()
=>
{
exitBtn
.
parent
=
cc
.
find
(
"
middleLayer/res/img
"
)
finish
Layer
.
removeChild
(
finishAnim
)
;
finish
Anim
.
active
=
false
;
finishLayer
.
active
=
false
;
}
exitBtn
.
off
(
"
touchstart
"
);
exitBtn
.
on
(
"
touchstart
"
,
()
=>
{
hideFinish
();
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
)
{
const
result
=
JSON
.
parse
(
recordResult
);
const
data
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment