Commit f5cc4bb1 authored by Tt's avatar Tt

1

parent 71f00d52
......@@ -84,37 +84,37 @@
"__id__": 34
},
{
"__id__": 79
"__id__": 91
},
{
"__id__": 82
"__id__": 94
},
{
"__id__": 85
"__id__": 97
},
{
"__id__": 101
"__id__": 113
},
{
"__id__": 138
"__id__": 150
},
{
"__id__": 151
"__id__": 163
},
{
"__id__": 163
"__id__": 175
}
],
"_active": true,
"_components": [
{
"__id__": 184
"__id__": 196
},
{
"__id__": 185
"__id__": 197
},
{
"__id__": 186
"__id__": 198
}
],
"_prefab": null,
......@@ -1619,16 +1619,16 @@
"__id__": 35
},
{
"__id__": 53
"__id__": 65
},
{
"__id__": 71
"__id__": 83
}
],
"_active": true,
"_components": [
{
"__id__": 78
"__id__": 90
}
],
"_prefab": null,
......@@ -1710,12 +1710,30 @@
},
{
"__id__": 50
},
{
"__id__": 52
},
{
"__id__": 54
},
{
"__id__": 56
},
{
"__id__": 58
},
{
"__id__": 60
},
{
"__id__": 62
}
],
"_active": true,
"_components": [
{
"__id__": 52
"__id__": 64
}
],
"_prefab": null,
......@@ -2566,75 +2584,18 @@
"_N$enableBatch": false,
"_id": "9cLMJk6kVFVrz/3wy0yqLc"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "dd1f4e00-0c23-4234-a3aa-02b0c037220f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "15KHfHnVNDbITilk2XHw4m"
},
{
"__type__": "cc.Node",
"_name": "build_2",
"_name": "water_0",
"_objFlags": 0,
"_parent": {
"__id__": 34
"__id__": 35
},
"_children": [
{
"__id__": 54
},
{
"__id__": 56
},
{
"__id__": 58
},
{
"__id__": 60
},
{
"__id__": 62
},
{
"__id__": 64
},
{
"__id__": 66
},
{
"__id__": 68
}
],
"_active": true,
"_children": [],
"_active": false,
"_components": [
{
"__id__": 70
"__id__": 53
}
],
"_prefab": null,
......@@ -2648,8 +2609,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 136
"width": 60,
"height": 65
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2660,8 +2621,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
1920,
-410,
270.265,
72.634,
0,
0,
0,
......@@ -2683,17 +2644,57 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "0c19oqfzpAHqRhqOMlnevj"
"_id": "14IBu8j9dJc5+RkEGiK7yw"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 52
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "armatureName",
"_animationName": "流水",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "8ddb17c3-bac2-4fe0-8eeb-77ca84e61b40#d28f5379-1415-4082-895c-45474006c97d",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "8ddb17c3-bac2-4fe0-8eeb-77ca84e61b40"
},
"_N$dragonAtlasAsset": {
"__uuid__": "d28f5379-1415-4082-895c-45474006c97d"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "3eHh/iaABLhrGcSooxTfnK"
},
{
"__type__": "cc.Node",
"_name": "bg_build",
"_name": "water_1",
"_objFlags": 0,
"_parent": {
"__id__": 53
"__id__": 35
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 55
......@@ -2710,8 +2711,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 638,
"height": 872
"width": 60,
"height": 65
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2722,8 +2723,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
407.949,
430.109,
269.363,
261.985,
0,
0,
0,
......@@ -2745,10 +2746,10 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "c2udCD6d1B0JnI5W761w6T"
"_id": "48H8tVAIFGa5gS5vOEtKE6"
},
{
"__type__": "cc.Sprite",
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -2760,34 +2761,42 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "64d8abe1-5325-4517-b84d-439b054b9a8c"
"_armatureName": "armatureName",
"_animationName": "流水",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "8ddb17c3-bac2-4fe0-8eeb-77ca84e61b40#d28f5379-1415-4082-895c-45474006c97d",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "8ddb17c3-bac2-4fe0-8eeb-77ca84e61b40"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
"_N$dragonAtlasAsset": {
"__uuid__": "d28f5379-1415-4082-895c-45474006c97d"
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b89+GlDKNLF5Xi1ZI5GCRT"
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "f00PM54zBNm6e4gQYZZWji"
},
{
"__type__": "cc.Node",
"_name": "bg_line",
"_name": "water_2",
"_objFlags": 0,
"_parent": {
"__id__": 53
"__id__": 35
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 57
......@@ -2804,8 +2813,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 69
"width": 60,
"height": 65
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2816,8 +2825,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-95.37,
269.363,
449.196,
0,
0,
0,
......@@ -2839,10 +2848,10 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "7cfWxQKEFJdYYq/KPVA41H"
"_id": "f82S7SeK5MiKOqJg8isHf2"
},
{
"__type__": "cc.Sprite",
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -2854,34 +2863,42 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1444b8d8-f715-445d-b84d-1d97b7da8d62"
"_armatureName": "armatureName",
"_animationName": "流水",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "8ddb17c3-bac2-4fe0-8eeb-77ca84e61b40#d28f5379-1415-4082-895c-45474006c97d",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "8ddb17c3-bac2-4fe0-8eeb-77ca84e61b40"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
"_N$dragonAtlasAsset": {
"__uuid__": "d28f5379-1415-4082-895c-45474006c97d"
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "193jvdMJRJKYQIu/U+qItk"
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "b72yMj7/NPuIwdkhFdCSDr"
},
{
"__type__": "cc.Node",
"_name": "fire_0",
"_name": "water_3",
"_objFlags": 0,
"_parent": {
"__id__": 53
"__id__": 35
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 59
......@@ -2898,8 +2915,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 133,
"height": 140
"width": 60,
"height": 65
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2910,8 +2927,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
226.751,
137.191,
477.463,
72.99,
0,
0,
0,
......@@ -2933,7 +2950,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "90QtBsv3hNM74eNk09qi3U"
"_id": "9dhLN+kiJCmbzxUPVSt9pF"
},
{
"__type__": "dragonBones.ArmatureDisplay",
......@@ -2949,12 +2966,12 @@
}
],
"_armatureName": "armatureName",
"_animationName": "燃烧",
"_animationName": "流水",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "e226f3f0-4696-4c2b-9e33-a7764ed6fe55#8357ac13-87df-4cc1-9564-c8037fb215aa",
"_armatureKey": "8ddb17c3-bac2-4fe0-8eeb-77ca84e61b40#d28f5379-1415-4082-895c-45474006c97d",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
......@@ -2962,10 +2979,10 @@
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "e226f3f0-4696-4c2b-9e33-a7764ed6fe55"
"__uuid__": "8ddb17c3-bac2-4fe0-8eeb-77ca84e61b40"
},
"_N$dragonAtlasAsset": {
"__uuid__": "8357ac13-87df-4cc1-9564-c8037fb215aa"
"__uuid__": "d28f5379-1415-4082-895c-45474006c97d"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
......@@ -2973,20 +2990,633 @@
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "24yyjsh69I1b8Qig/qBY4d"
"_id": "e9z9pi/zhI4oPNl5r2LDH0"
},
{
"__type__": "cc.Node",
"_name": "fire_1",
"_name": "water_4",
"_objFlags": 0,
"_parent": {
"__id__": 53
"__id__": 35
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 61
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 65
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
477.463,
261.201,
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": "d5eB3wiZRC1ZLUTabtx7Pu"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 60
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "armatureName",
"_animationName": "流水",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "8ddb17c3-bac2-4fe0-8eeb-77ca84e61b40#d28f5379-1415-4082-895c-45474006c97d",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "8ddb17c3-bac2-4fe0-8eeb-77ca84e61b40"
},
"_N$dragonAtlasAsset": {
"__uuid__": "d28f5379-1415-4082-895c-45474006c97d"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "119CQQdINF8J2AA9arJGoH"
},
{
"__type__": "cc.Node",
"_name": "water_5",
"_objFlags": 0,
"_parent": {
"__id__": 35
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 63
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 65
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
477.463,
448.722,
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": "beI4qY6WhB5YoD1PwAR4MQ"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "armatureName",
"_animationName": "流水",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "8ddb17c3-bac2-4fe0-8eeb-77ca84e61b40#d28f5379-1415-4082-895c-45474006c97d",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "8ddb17c3-bac2-4fe0-8eeb-77ca84e61b40"
},
"_N$dragonAtlasAsset": {
"__uuid__": "d28f5379-1415-4082-895c-45474006c97d"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "88j/AGggRKNZkE8W2HPhju"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "dd1f4e00-0c23-4234-a3aa-02b0c037220f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "15KHfHnVNDbITilk2XHw4m"
},
{
"__type__": "cc.Node",
"_name": "build_2",
"_objFlags": 0,
"_parent": {
"__id__": 34
},
"_children": [
{
"__id__": 66
},
{
"__id__": 68
},
{
"__id__": 70
},
{
"__id__": 72
},
{
"__id__": 74
},
{
"__id__": 76
},
{
"__id__": 78
},
{
"__id__": 80
}
],
"_active": true,
"_components": [
{
"__id__": 82
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 136
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
1920,
-410,
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": "0c19oqfzpAHqRhqOMlnevj"
},
{
"__type__": "cc.Node",
"_name": "bg_build",
"_objFlags": 0,
"_parent": {
"__id__": 65
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 67
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 638,
"height": 872
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
407.949,
430.109,
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": "c2udCD6d1B0JnI5W761w6T"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 66
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "64d8abe1-5325-4517-b84d-439b054b9a8c"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b89+GlDKNLF5Xi1ZI5GCRT"
},
{
"__type__": "cc.Node",
"_name": "bg_line",
"_objFlags": 0,
"_parent": {
"__id__": 65
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 69
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 69
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-95.37,
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": "7cfWxQKEFJdYYq/KPVA41H"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1444b8d8-f715-445d-b84d-1d97b7da8d62"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "193jvdMJRJKYQIu/U+qItk"
},
{
"__type__": "cc.Node",
"_name": "fire_0",
"_objFlags": 0,
"_parent": {
"__id__": 65
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 61
"__id__": 71
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 133,
"height": 140
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
226.751,
137.191,
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": "90QtBsv3hNM74eNk09qi3U"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "armatureName",
"_animationName": "燃烧",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "e226f3f0-4696-4c2b-9e33-a7764ed6fe55#8357ac13-87df-4cc1-9564-c8037fb215aa",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "e226f3f0-4696-4c2b-9e33-a7764ed6fe55"
},
"_N$dragonAtlasAsset": {
"__uuid__": "8357ac13-87df-4cc1-9564-c8037fb215aa"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "24yyjsh69I1b8Qig/qBY4d"
},
{
"__type__": "cc.Node",
"_name": "fire_1",
"_objFlags": 0,
"_parent": {
"__id__": 65
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 73
}
],
"_prefab": null,
......@@ -3042,7 +3672,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 60
"__id__": 72
},
"_enabled": true,
"_materials": [
......@@ -3082,13 +3712,13 @@
"_name": "fire_2",
"_objFlags": 0,
"_parent": {
"__id__": 53
"__id__": 65
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 63
"__id__": 75
}
],
"_prefab": null,
......@@ -3144,7 +3774,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
"__id__": 74
},
"_enabled": true,
"_materials": [
......@@ -3184,13 +3814,13 @@
"_name": "fire_3",
"_objFlags": 0,
"_parent": {
"__id__": 53
"__id__": 65
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 65
"__id__": 77
}
],
"_prefab": null,
......@@ -3246,7 +3876,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 64
"__id__": 76
},
"_enabled": true,
"_materials": [
......@@ -3286,13 +3916,13 @@
"_name": "fire_4",
"_objFlags": 0,
"_parent": {
"__id__": 53
"__id__": 65
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 67
"__id__": 79
}
],
"_prefab": null,
......@@ -3348,7 +3978,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 66
"__id__": 78
},
"_enabled": true,
"_materials": [
......@@ -3388,13 +4018,13 @@
"_name": "fire_5",
"_objFlags": 0,
"_parent": {
"__id__": 53
"__id__": 65
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 69
"__id__": 81
}
],
"_prefab": null,
......@@ -3450,7 +4080,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 80
},
"_enabled": true,
"_materials": [
......@@ -3490,7 +4120,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
"__id__": 65
},
"_enabled": true,
"_materials": [
......@@ -3526,13 +4156,13 @@
},
"_children": [
{
"__id__": 72
"__id__": 84
},
{
"__id__": 74
"__id__": 86
},
{
"__id__": 76
"__id__": 88
}
],
"_active": true,
......@@ -3560,8 +4190,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-418.51,
-527.638,
-400,
-330.257,
0,
0,
0,
......@@ -3590,13 +4220,13 @@
"_name": "firewater",
"_objFlags": 0,
"_parent": {
"__id__": 71
"__id__": 83
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 73
"__id__": 85
}
],
"_prefab": null,
......@@ -3622,13 +4252,13 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-62.842,
367.075,
-75.216,
176.541,
0,
0,
0,
0,
1,
-0.13052619222005157,
0.9914448613738104,
1,
1,
1
......@@ -3638,7 +4268,7 @@
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
"z": -15
},
"_skewX": 0,
"_skewY": 0,
......@@ -3652,7 +4282,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
"__id__": 84
},
"_enabled": true,
"_materials": [
......@@ -3661,7 +4291,7 @@
}
],
"_armatureName": "armatureName",
"_animationName": "",
"_animationName": "喷水",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
......@@ -3680,7 +4310,7 @@
"__uuid__": "55266042-161e-4eb9-9407-810b499f0f05"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
......@@ -3692,13 +4322,13 @@
"_name": "car",
"_objFlags": 0,
"_parent": {
"__id__": 71
"__id__": 83
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 75
"__id__": 87
}
],
"_prefab": null,
......@@ -3725,7 +4355,7 @@
"ctor": "Float64Array",
"array": [
0,
0,
-194.817,
0,
0,
0,
......@@ -3754,7 +4384,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 74
"__id__": 86
},
"_enabled": true,
"_materials": [
......@@ -3794,13 +4424,13 @@
"_name": "btn_finger",
"_objFlags": 0,
"_parent": {
"__id__": 71
"__id__": 83
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 77
"__id__": 89
}
],
"_prefab": null,
......@@ -3827,7 +4457,7 @@
"ctor": "Float64Array",
"array": [
-57.526,
315.152,
120.335,
0,
0,
0,
......@@ -3856,7 +4486,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 76
"__id__": 88
},
"_enabled": true,
"_materials": [
......@@ -3921,10 +4551,10 @@
"_active": false,
"_components": [
{
"__id__": 80
"__id__": 92
},
{
"__id__": 81
"__id__": 93
}
],
"_prefab": null,
......@@ -3980,7 +4610,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 79
"__id__": 91
},
"_enabled": true,
"_materials": [
......@@ -4012,7 +4642,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 79
"__id__": 91
},
"_enabled": true,
"alignMode": 1,
......@@ -4045,10 +4675,10 @@
"_active": false,
"_components": [
{
"__id__": 83
"__id__": 95
},
{
"__id__": 84
"__id__": 96
}
],
"_prefab": null,
......@@ -4104,7 +4734,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
"__id__": 94
},
"_enabled": true,
"_materials": [
......@@ -4136,7 +4766,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
"__id__": 94
},
"_enabled": true,
"alignMode": 1,
......@@ -4167,22 +4797,22 @@
},
"_children": [
{
"__id__": 86
"__id__": 98
},
{
"__id__": 89
"__id__": 101
},
{
"__id__": 93
"__id__": 105
},
{
"__id__": 97
"__id__": 109
}
],
"_active": false,
"_components": [
{
"__id__": 100
"__id__": 112
}
],
"_prefab": null,
......@@ -4238,16 +4868,16 @@
"_name": "New Node",
"_objFlags": 0,
"_parent": {
"__id__": 85
"__id__": 97
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 87
"__id__": 99
},
{
"__id__": 88
"__id__": 100
}
],
"_prefab": null,
......@@ -4303,7 +4933,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 86
"__id__": 98
},
"_enabled": true,
"alignMode": 1,
......@@ -4330,7 +4960,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 86
"__id__": 98
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4398,17 +5028,17 @@
"_name": "layout_img",
"_objFlags": 0,
"_parent": {
"__id__": 85
"__id__": 97
},
"_children": [
{
"__id__": 90
"__id__": 102
}
],
"_active": true,
"_components": [
{
"__id__": 92
"__id__": 104
}
],
"_prefab": null,
......@@ -4464,13 +5094,13 @@
"_name": "pic",
"_objFlags": 0,
"_parent": {
"__id__": 89
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 91
"__id__": 103
}
],
"_prefab": null,
......@@ -4526,7 +5156,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 90
"__id__": 102
},
"_enabled": true,
"_materials": [
......@@ -4558,7 +5188,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 89
"__id__": 101
},
"_enabled": true,
"_materials": [
......@@ -4590,17 +5220,17 @@
"_name": "layout_txt",
"_objFlags": 0,
"_parent": {
"__id__": 85
"__id__": 97
},
"_children": [
{
"__id__": 94
"__id__": 106
}
],
"_active": true,
"_components": [
{
"__id__": 96
"__id__": 108
}
],
"_prefab": null,
......@@ -4656,13 +5286,13 @@
"_name": "word",
"_objFlags": 0,
"_parent": {
"__id__": 93
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 95
"__id__": 107
}
],
"_prefab": null,
......@@ -4718,7 +5348,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 94
"__id__": 106
},
"_enabled": true,
"_materials": [
......@@ -4753,7 +5383,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 93
"__id__": 105
},
"_enabled": true,
"_materials": [
......@@ -4785,16 +5415,16 @@
"_name": "touch",
"_objFlags": 0,
"_parent": {
"__id__": 85
"__id__": 97
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 98
"__id__": 110
},
{
"__id__": 99
"__id__": 111
}
],
"_prefab": null,
......@@ -4850,7 +5480,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
"__id__": 109
},
"_enabled": true,
"alignMode": 1,
......@@ -4877,7 +5507,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
"__id__": 109
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4945,7 +5575,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 85
"__id__": 97
},
"_enabled": true,
"alignMode": 1,
......@@ -4976,46 +5606,46 @@
},
"_children": [
{
"__id__": 102
"__id__": 114
},
{
"__id__": 105
"__id__": 117
},
{
"__id__": 107
"__id__": 119
},
{
"__id__": 117
"__id__": 129
},
{
"__id__": 120
"__id__": 132
},
{
"__id__": 123
"__id__": 135
},
{
"__id__": 125
"__id__": 137
},
{
"__id__": 127
"__id__": 139
},
{
"__id__": 129
"__id__": 141
},
{
"__id__": 131
"__id__": 143
},
{
"__id__": 133
"__id__": 145
},
{
"__id__": 135
"__id__": 147
}
],
"_active": false,
"_components": [
{
"__id__": 137
"__id__": 149
}
],
"_prefab": null,
......@@ -5071,16 +5701,16 @@
"_name": "gray",
"_objFlags": 0,
"_parent": {
"__id__": 101
"__id__": 113
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 103
"__id__": 115
},
{
"__id__": 104
"__id__": 116
}
],
"_prefab": null,
......@@ -5136,7 +5766,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 102
"__id__": 114
},
"_enabled": true,
"_materials": [
......@@ -5168,7 +5798,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 102
"__id__": 114
},
"_enabled": true,
"alignMode": 1,
......@@ -5195,13 +5825,13 @@
"_name": "btn_close",
"_objFlags": 0,
"_parent": {
"__id__": 101
"__id__": 113
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 106
"__id__": 118
}
],
"_prefab": null,
......@@ -5257,7 +5887,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 105
"__id__": 117
},
"_enabled": true,
"_materials": [
......@@ -5289,26 +5919,26 @@
"_name": "bg_card",
"_objFlags": 0,
"_parent": {
"__id__": 101
"__id__": 113
},
"_children": [
{
"__id__": 108
"__id__": 120
},
{
"__id__": 110
"__id__": 122
},
{
"__id__": 112
"__id__": 124
},
{
"__id__": 114
"__id__": 126
}
],
"_active": true,
"_components": [
{
"__id__": 116
"__id__": 128
}
],
"_prefab": null,
......@@ -5364,13 +5994,13 @@
"_name": "bg_title",
"_objFlags": 0,
"_parent": {
"__id__": 107
"__id__": 119
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 109
"__id__": 121
}
],
"_prefab": null,
......@@ -5426,7 +6056,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
"__id__": 120
},
"_enabled": true,
"_materials": [
......@@ -5458,13 +6088,13 @@
"_name": "btn_voice",
"_objFlags": 0,
"_parent": {
"__id__": 107
"__id__": 119
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 111
"__id__": 123
}
],
"_prefab": null,
......@@ -5520,7 +6150,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
"__id__": 122
},
"_enabled": true,
"_materials": [
......@@ -5552,13 +6182,13 @@
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 107
"__id__": 119
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 113
"__id__": 125
}
],
"_prefab": null,
......@@ -5614,7 +6244,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 112
"__id__": 124
},
"_enabled": true,
"_materials": [
......@@ -5646,13 +6276,13 @@
"_name": "word",
"_objFlags": 0,
"_parent": {
"__id__": 107
"__id__": 119
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 115
"__id__": 127
}
],
"_prefab": null,
......@@ -5708,7 +6338,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 114
"__id__": 126
},
"_enabled": true,
"_materials": [
......@@ -5741,7 +6371,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 107
"__id__": 119
},
"_enabled": true,
"_materials": [
......@@ -5773,16 +6403,16 @@
"_name": "btn_start",
"_objFlags": 0,
"_parent": {
"__id__": 101
"__id__": 113
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 118
"__id__": 130
},
{
"__id__": 119
"__id__": 131
}
],
"_prefab": null,
......@@ -5838,7 +6468,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 117
"__id__": 129
},
"_enabled": true,
"_materials": [
......@@ -5870,7 +6500,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 117
"__id__": 129
},
"_enabled": true,
"_normalMaterial": null,
......@@ -5938,16 +6568,16 @@
"_name": "btn_stop",
"_objFlags": 0,
"_parent": {
"__id__": 101
"__id__": 113
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 121
"__id__": 133
},
{
"__id__": 122
"__id__": 134
}
],
"_prefab": null,
......@@ -6003,7 +6633,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 120
"__id__": 132
},
"_enabled": true,
"_materials": [
......@@ -6035,7 +6665,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 120
"__id__": 132
},
"_enabled": true,
"_normalMaterial": null,
......@@ -6103,13 +6733,13 @@
"_name": "btn_record",
"_objFlags": 0,
"_parent": {
"__id__": 101
"__id__": 113
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 124
"__id__": 136
}
],
"_prefab": null,
......@@ -6165,7 +6795,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 123
"__id__": 135
},
"_enabled": true,
"_materials": [
......@@ -6197,13 +6827,13 @@
"_name": "btn_record_reset",
"_objFlags": 0,
"_parent": {
"__id__": 101
"__id__": 113
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 126
"__id__": 138
}
],
"_prefab": null,
......@@ -6259,7 +6889,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 125
"__id__": 137
},
"_enabled": true,
"_materials": [
......@@ -6291,13 +6921,13 @@
"_name": "btn_stop",
"_objFlags": 0,
"_parent": {
"__id__": 101
"__id__": 113
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 128
"__id__": 140
}
],
"_prefab": null,
......@@ -6353,7 +6983,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 127
"__id__": 139
},
"_enabled": true,
"_materials": [
......@@ -6385,13 +7015,13 @@
"_name": "btn_record_replay",
"_objFlags": 0,
"_parent": {
"__id__": 101
"__id__": 113
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 130
"__id__": 142
}
],
"_prefab": null,
......@@ -6447,7 +7077,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 129
"__id__": 141
},
"_enabled": true,
"_materials": [
......@@ -6479,13 +7109,13 @@
"_name": "btn_record_0",
"_objFlags": 0,
"_parent": {
"__id__": 101
"__id__": 113
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 132
"__id__": 144
}
],
"_prefab": null,
......@@ -6541,7 +7171,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 131
"__id__": 143
},
"_enabled": true,
"_materials": [
......@@ -6573,13 +7203,13 @@
"_name": "btn_record_1",
"_objFlags": 0,
"_parent": {
"__id__": 101
"__id__": 113
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 134
"__id__": 146
}
],
"_prefab": null,
......@@ -6635,7 +7265,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 133
"__id__": 145
},
"_enabled": true,
"_materials": [
......@@ -6667,13 +7297,13 @@
"_name": "btn_record_2",
"_objFlags": 0,
"_parent": {
"__id__": 101
"__id__": 113
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 136
"__id__": 148
}
],
"_prefab": null,
......@@ -6729,7 +7359,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 135
"__id__": 147
},
"_enabled": true,
"_materials": [
......@@ -6761,7 +7391,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 101
"__id__": 113
},
"_enabled": true,
"alignMode": 1,
......@@ -6792,25 +7422,25 @@
},
"_children": [
{
"__id__": 139
"__id__": 151
},
{
"__id__": 142
"__id__": 154
},
{
"__id__": 144
"__id__": 156
},
{
"__id__": 146
"__id__": 158
},
{
"__id__": 148
"__id__": 160
}
],
"_active": false,
"_components": [
{
"__id__": 150
"__id__": 162
}
],
"_prefab": null,
......@@ -6866,16 +7496,16 @@
"_name": "gray",
"_objFlags": 0,
"_parent": {
"__id__": 138
"__id__": 150
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 140
"__id__": 152
},
{
"__id__": 141
"__id__": 153
}
],
"_prefab": null,
......@@ -6931,7 +7561,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
"__id__": 151
},
"_enabled": true,
"_materials": [
......@@ -6963,7 +7593,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
"__id__": 151
},
"_enabled": true,
"alignMode": 1,
......@@ -6990,13 +7620,13 @@
"_name": "Comeon",
"_objFlags": 0,
"_parent": {
"__id__": 138
"__id__": 150
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 143
"__id__": 155
}
],
"_prefab": null,
......@@ -7052,7 +7682,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 142
"__id__": 154
},
"_enabled": true,
"_materials": [
......@@ -7092,13 +7722,13 @@
"_name": "Excellent",
"_objFlags": 0,
"_parent": {
"__id__": 138
"__id__": 150
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 145
"__id__": 157
}
],
"_prefab": null,
......@@ -7154,7 +7784,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 144
"__id__": 156
},
"_enabled": true,
"_materials": [
......@@ -7194,13 +7824,13 @@
"_name": "Nice",
"_objFlags": 0,
"_parent": {
"__id__": 138
"__id__": 150
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 147
"__id__": 159
}
],
"_prefab": null,
......@@ -7256,7 +7886,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 146
"__id__": 158
},
"_enabled": true,
"_materials": [
......@@ -7296,13 +7926,13 @@
"_name": "Tryagain",
"_objFlags": 0,
"_parent": {
"__id__": 138
"__id__": 150
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 149
"__id__": 161
}
],
"_prefab": null,
......@@ -7358,7 +7988,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 148
"__id__": 160
},
"_enabled": true,
"_materials": [
......@@ -7398,7 +8028,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 138
"__id__": 150
},
"_enabled": true,
"alignMode": 1,
......@@ -7429,19 +8059,19 @@
},
"_children": [
{
"__id__": 152
"__id__": 164
},
{
"__id__": 154
"__id__": 166
},
{
"__id__": 156
"__id__": 168
},
{
"__id__": 158
"__id__": 170
},
{
"__id__": 161
"__id__": 173
}
],
"_active": false,
......@@ -7499,13 +8129,13 @@
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 151
"__id__": 163
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 153
"__id__": 165
}
],
"_prefab": null,
......@@ -7561,7 +8191,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 152
"__id__": 164
},
"_enabled": true,
"_materials": [
......@@ -7593,13 +8223,13 @@
"_name": "bg_instructions",
"_objFlags": 0,
"_parent": {
"__id__": 151
"__id__": 163
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 155
"__id__": 167
}
],
"_prefab": null,
......@@ -7655,7 +8285,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 154
"__id__": 166
},
"_enabled": true,
"_materials": [
......@@ -7687,13 +8317,13 @@
"_name": "desc",
"_objFlags": 0,
"_parent": {
"__id__": 151
"__id__": 163
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 157
"__id__": 169
}
],
"_prefab": null,
......@@ -7749,7 +8379,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 156
"__id__": 168
},
"_enabled": true,
"_materials": [
......@@ -7784,16 +8414,16 @@
"_name": "btn_start",
"_objFlags": 0,
"_parent": {
"__id__": 151
"__id__": 163
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 159
"__id__": 171
},
{
"__id__": 160
"__id__": 172
}
],
"_prefab": null,
......@@ -7849,7 +8479,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 158
"__id__": 170
},
"_enabled": true,
"_materials": [
......@@ -7881,7 +8511,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 158
"__id__": 170
},
"_enabled": true,
"_normalMaterial": null,
......@@ -7942,7 +8572,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 158
"__id__": 170
},
"_id": "7095HuemhJQ40wHbz5jlAy"
},
......@@ -7951,13 +8581,13 @@
"_name": "touch",
"_objFlags": 0,
"_parent": {
"__id__": 151
"__id__": 163
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 162
"__id__": 174
}
],
"_prefab": null,
......@@ -8013,7 +8643,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 161
"__id__": 173
},
"_enabled": true,
"_normalMaterial": null,
......@@ -8085,19 +8715,19 @@
},
"_children": [
{
"__id__": 164
"__id__": 176
},
{
"__id__": 168
"__id__": 180
},
{
"__id__": 172
"__id__": 184
},
{
"__id__": 176
"__id__": 188
},
{
"__id__": 180
"__id__": 192
}
],
"_active": false,
......@@ -8155,11 +8785,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 163
"__id__": 175
},
"_children": [
{
"__id__": 165
"__id__": 177
}
],
"_active": true,
......@@ -8217,11 +8847,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 164
"__id__": 176
},
"_children": [
{
"__id__": 166
"__id__": 178
}
],
"_active": true,
......@@ -8279,13 +8909,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 165
"__id__": 177
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 167
"__id__": 179
}
],
"_prefab": null,
......@@ -8341,7 +8971,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 166
"__id__": 178
},
"_enabled": true,
"_materials": [
......@@ -8371,11 +9001,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 163
"__id__": 175
},
"_children": [
{
"__id__": 169
"__id__": 181
}
],
"_active": true,
......@@ -8433,11 +9063,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 168
"__id__": 180
},
"_children": [
{
"__id__": 170
"__id__": 182
}
],
"_active": true,
......@@ -8495,13 +9125,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 169
"__id__": 181
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 171
"__id__": 183
}
],
"_prefab": null,
......@@ -8557,7 +9187,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 170
"__id__": 182
},
"_enabled": true,
"_materials": [
......@@ -8587,11 +9217,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 163
"__id__": 175
},
"_children": [
{
"__id__": 173
"__id__": 185
}
],
"_active": true,
......@@ -8649,11 +9279,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 172
"__id__": 184
},
"_children": [
{
"__id__": 174
"__id__": 186
}
],
"_active": true,
......@@ -8711,13 +9341,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 173
"__id__": 185
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 175
"__id__": 187
}
],
"_prefab": null,
......@@ -8773,7 +9403,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 174
"__id__": 186
},
"_enabled": true,
"_materials": [
......@@ -8803,11 +9433,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 163
"__id__": 175
},
"_children": [
{
"__id__": 177
"__id__": 189
}
],
"_active": true,
......@@ -8865,11 +9495,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 176
"__id__": 188
},
"_children": [
{
"__id__": 178
"__id__": 190
}
],
"_active": true,
......@@ -8927,13 +9557,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 177
"__id__": 189
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 179
"__id__": 191
}
],
"_prefab": null,
......@@ -8989,7 +9619,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 178
"__id__": 190
},
"_enabled": true,
"_materials": [
......@@ -9019,11 +9649,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 163
"__id__": 175
},
"_children": [
{
"__id__": 181
"__id__": 193
}
],
"_active": true,
......@@ -9081,11 +9711,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 180
"__id__": 192
},
"_children": [
{
"__id__": 182
"__id__": 194
}
],
"_active": true,
......@@ -9143,13 +9773,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 181
"__id__": 193
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 183
"__id__": 195
}
],
"_prefab": null,
......@@ -9205,7 +9835,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 182
"__id__": 194
},
"_enabled": true,
"_materials": [
......@@ -9286,38 +9916,38 @@
"__id__": 34
},
"layout_tip": {
"__id__": 138
"__id__": 150
},
"layout_speak": {
"__id__": 101
"__id__": 113
},
"btn_audio_off": {
"__id__": 79
"__id__": 91
},
"btn_audio_on": {
"__id__": 82
"__id__": 94
},
"bg_countdown": null,
"layout_card": {
"__id__": 85
"__id__": 97
},
"node_firetruck": {
"__id__": 71
"__id__": 83
},
"node_firetruck_anim": {
"__id__": 74
"__id__": 86
},
"node_firetruck_flush": {
"__id__": 72
"__id__": 84
},
"btn_finger": {
"__id__": 76
"__id__": 88
},
"page_a": {
"__id__": 35
},
"page_b": {
"__id__": 53
"__id__": 65
},
"_id": "db3L+4L+FH/5MIRcKcfiq+"
}
......
......@@ -155,6 +155,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
private startCount = 15;
/** 是否播放背景音乐 */
private isPlayBgAudio: boolean;
/** 当前页面上存在的火苗节点数组 */
private activeFireNodes: cc.Node[] = [];
/** 是否正在触摸中 */
private touching: boolean = false;
/**
* 初始化游戏数据
......@@ -168,6 +172,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.tryData = [];
this.touchData = null;
this.isPlayBgAudio = true;
// 初始化活跃火苗节点数组
this.activeFireNodes = [];
// 初始化触摸状态
this.touching = false;
}
/** 音频播放ID */
private audioId: any;
......@@ -194,6 +202,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 音频控制按钮事件
this.btn_audio_off.on(cc.Node.EventType.TOUCH_END, this.onAudioOff, this);
this.btn_audio_on.on(cc.Node.EventType.TOUCH_END, this.onAudioOn, this);
// 添加消防车点击事件
if (this.node_firetruck) {
pg.view.touchOn(this.node_firetruck, this.onTouchFiretruck, this);
}
}
initGame() {
......@@ -226,7 +239,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
// 设置初始位置
this.node_firetruck.setPosition(cc.v2(-1500, -527));
this.node_firetruck.setPosition(cc.v2(-1500, -330));
// 隐藏冲水动画节点
this.node_firetruck_flush.active = false;
......@@ -259,19 +272,22 @@ export default class SceneComponent extends MyCocosSceneComponent {
showPage() {
// 获取当前页码
const currentPage = Game.getIns().getCurrentPageNum();
// 根据页码的奇偶性决定使用哪个页面
// 偶数页使用page_a,奇数页使用page_b
const currentPageNode = currentPage % 2 === 0 ? this.page_a : this.page_b;
const otherPageNode = currentPage % 2 === 0 ? this.page_b : this.page_a;
// 显示当前页面,隐藏另一个页面
currentPageNode.active = true;
otherPageNode.active = false;
// 获取当前页的数据
const pageData = Game.getIns().getPageData();
// 清空活跃火苗节点数组
this.activeFireNodes = [];
// 遍历fire_0到fire_5这6个交互点
for (let i = 0; i < 6; i++) {
// 查找当前页面下的fire节点
......@@ -280,50 +296,156 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.log(`找不到节点: fire_${i}`);
continue;
}
// 设置节点可见性
if (i < pageData.length) {
// 有数据,显示节点
fireNode.active = true;
// 保存题目数据到节点
fireNode.data = pageData[i];
// 查找并设置完整蛋壳可见,破碎蛋壳不可见
const intact = cc.find("intact", fireNode);
const broken = cc.find("broken", fireNode);
const di = cc.find("di", fireNode);
if (intact) intact.active = true;
if (broken) broken.active = false;
if (di) di.active = false;
// 添加触摸事件
fireNode.off(cc.Node.EventType.TOUCH_END);
fireNode.on(cc.Node.EventType.TOUCH_END, () => {
// 如果正在触摸中,不响应新的触摸
if (this.touching) return;
this.touching = true;
// 保存触摸数据
this.touchData = fireNode.data;
this.touchData.parent = fireNode;
// 显示卡片
this.playCard(this.touchData);
// 更新录音界面
this.updateLayoutSpeak();
// 播放锤子动画
this.hammerAction(fireNode);
});
// 将活跃的火苗节点添加到数组中
this.activeFireNodes.push(fireNode);
} else {
// 没有数据,隐藏节点
fireNode.active = false;
}
}
}
/**
* 消防车点击事件处理
* 随机选择一个存在的火苗并触发相应的事件
* 根据选择的火苗编号调整消防车位置和喷水角度
*/
onTouchFiretruck() {
// 如果正在触摸中,不响应新的触摸
if (this.touching) return;
// 检查是否有活跃的火苗节点
if (this.activeFireNodes.length === 0) {
this.log("没有可用的火苗节点");
// 如果当前页面没有活跃火苗,检查是否需要进入下一页
if (this.checkIsOver()) {
this.gameOver();
}
return;
}
// 如果正在触摸中,不响应新的触摸
if (this.touching) return;
this.touching = true;
// 随机选择一个火苗节点
const randomIndex = Math.floor(Math.random() * this.activeFireNodes.length);
const selectedFireNode = this.activeFireNodes[randomIndex];
// 获取火苗节点的编号
const nodeName = selectedFireNode.name; // 例如 "fire_0", "fire_1" 等
const fireIndex = parseInt(nodeName.split('_')[1]);
// 根据火苗编号调整消防车位置
// fire_0~fire_2 消防车位置 x=-400,fire_3~fire_5 消防车位置 x=-185
const targetX = (fireIndex <= 2) ? -400 : -185;
// 移动消防车到指定位置
cc.tween(this.node_firetruck)
.to(0.5, { x: targetX })
.call(() => {
// 根据火苗编号设置喷水角度
// fire_0: -30度, fire_1: -15度, fire_2: 0度
// fire_3: -30度, fire_4: -15度, fire_5: 0度
let rotationAngle = 0;
if (fireIndex === 0 || fireIndex === 3) {
rotationAngle = -30;
} else if (fireIndex === 1 || fireIndex === 4) {
rotationAngle = -15;
} else if (fireIndex === 2 || fireIndex === 5) {
rotationAngle = 0;
}
// 设置喷水节点的旋转角度
this.node_firetruck_flush.angle = rotationAngle;
// 调用火苗点击处理方法
this.onTouchFireNode({ target: selectedFireNode });
})
.start();
}
/**
* 火苗点击事件处理
* 保存触摸数据并播放喷水动画
* @param e 事件对象或包含target属性的模拟事件对象
*/
private currentFireNode;
onTouchFireNode(e) {
const fireNode = e.target;
// 保存触摸数据
this.touchData = fireNode.data;
this.touchData.parent = fireNode;
this.currentFireNode = fireNode;
// 1. 播放node_firetruck_flush动画(喷水)
this.node_firetruck_flush.active = true;
pg.view.addDBAnimationCallback(this.node_firetruck_flush, () => {
// 切换到持续喷水动画
pg.view.addDBAnimationCallback(this.node_firetruck_flush, null)
pg.view.playDBAnimation(this.node_firetruck_flush, '持续喷水', 1);
this.scheduleOnce(() => {
pg.view.addDBAnimationCallback(this.node_firetruck_flush, () => {
pg.view.addDBAnimationCallback(this.node_firetruck_flush, null)
this.node_firetruck_flush.active = false;
})
pg.view.playDBAnimation(this.node_firetruck_flush, '收水', 1);
this.onFireSuccess();
this.touching = false;
}, 1)
})
pg.view.playDBAnimation(this.node_firetruck_flush, '喷水', 1);
}
onFireSuccess() {
const fireNode = this.currentFireNode;
// 从活跃火苗列表中移除当前火苗 --- 答题后操作
const index = this.activeFireNodes.indexOf(fireNode);
if (index !== -1) {
this.activeFireNodes.splice(index, 1);
}
// 获取火苗节点的编号
const nodeName = fireNode.name;
const fireIndex = parseInt(nodeName.split('_')[1]);
// 隐藏对应的fire节点
fireNode.active = false;
// 获取当前页面节点
const currentPage = Game.getIns().getCurrentPageNum();
const currentPageNode = currentPage % 2 === 0 ? this.page_a : this.page_b;
// 查找并显示对应的water节点
const waterNode = cc.find(`water_${fireIndex}`, currentPageNode);
if (waterNode) {
waterNode.active = true;
} else {
this.log(`找不到节点: water_${fireIndex}`);
}
}
onFireFail() {
const fireNode = this.currentFireNode;
// 将火苗节点重新添加到活跃列表中,以便再次尝试
if (fireNode && !this.activeFireNodes.includes(fireNode)) {
this.activeFireNodes.push(fireNode);
}
// 确保火苗节点保持显示状态
if (fireNode) {
fireNode.active = true;
}
}
/**
......@@ -428,6 +550,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.bg_countdown.active = false;
this.countDown = 999999;
// 停止喷水动画
if (this.node_firetruck_flush && this.node_firetruck_flush.active) {
// 停止持续喷水动画,切换回待机状态
pg.view.playDBAnimation(this.node_firetruck_flush, '喷水', 1);
let flushDisplay = this.node_firetruck_flush.getComponent(dragonBones.ArmatureDisplay);
if (flushDisplay) {
flushDisplay.timeScale = 10; // 快速播放完成动画
flushDisplay.addEventListener(dragonBones.EventObject.COMPLETE, () => {
this.node_firetruck_flush.active = false;
// 恢复消防车待机动画
pg.view.playDBAnimation(this.node_firetruck_anim, '待机', -1);
}, this);
}
}
let testData = {
"audioUrl": "https://staging-teach.cdn.ireadabc.com/a8ea7bb153a46941e6f28b7d0dda49f4.mp3",
"eof": 1,
......@@ -507,7 +644,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
/** 是否需要再次尝试 */
private tryAgain: boolean = false;
/** 是否正在触摸/操作中 */
private touching: boolean = false;
private recordTouching: boolean = false;
/**
* 处理录音结束后的逻辑
......@@ -527,16 +664,20 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 评分达标且单词正确
if (score >= 70 && isSuccess) {
this.touching = false;
this.recordTouching = false;
// 显示成功提示
this.updateTips(TIPS_STATE.GOOD);
// 增加正确计数
Game.getIns().player.addRight();
this.tryAgain = false;
// 如果有父节点(火苗节点),隐藏它
if (this.touchData && this.touchData.parent) {
this.touchData.parent.active = false;
}
// 延迟后隐藏卡片和提示,进入下一题
await pg.time.delay(3);
this.playCard(null);
this.updateLayoutSpeak(true);
this.updateTips(null);
this.nextEgg();
......@@ -550,11 +691,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (this.tryAgain) {
// 第二次尝试后,无论结果如何都进入下一题
this.tryAgain = false;
// 如果有父节点(火苗节点),隐藏它
if (this.touchData && this.touchData.parent) {
this.touchData.parent.active = false;
}
await pg.time.delay(3);
this.playCard(null);
this.updateLayoutSpeak(true);
this.updateTips(null);
this.touching = false;
this.recordTouching = false;
this.nextEgg();
return;
}
......@@ -563,6 +709,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.updateTips(TIPS_STATE.TRY);
this.tryData.push(this.touchData);
this.tryAgain = true;
// 将火苗节点重新添加到活跃列表中,以便再次尝试
if (this.touchData && this.touchData.parent && !this.activeFireNodes.includes(this.touchData.parent)) {
this.activeFireNodes.push(this.touchData.parent);
}
}
}
......@@ -573,13 +724,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 根据是否需要再次尝试决定显示卡片或进入下一题
if (this.tryAgain) {
// 需要再次尝试,显示卡片和录音界面
this.playCard(this.touchData);
this.updateLayoutSpeak()
} else {
// 不需要再次尝试,隐藏卡片和录音界面
this.playCard(null);
this.updateLayoutSpeak(true)
this.touching = false;
this.recordTouching = false;
}
}
......@@ -678,76 +827,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
}).start();
}
/**
* 显示或隐藏卡片
* 根据数据类型显示文本或图片卡片,并播放相应音频
* @param data 卡片数据,为空则隐藏卡片
* @returns Promise 动画完成后解析
*/
private playCard(data?: Option) {
return new Promise((resolve, reject) => {
// 如果数据为空,隐藏卡片并返回
if (!data) {
this.layout_card.active = false;
return;
}
// 显示卡片布局
this.layout_card.active = true;
// 获取UI元素
let layout_txt = pg.view.find(this.layout_card, "layout_txt"); // 文本布局
let layout_img = pg.view.find(this.layout_card, "layout_img"); // 图片布局
let touch = pg.view.find(this.layout_card, 'touch'); // 触摸区域
// 初始隐藏所有内容布局
layout_txt.active = false;
layout_img.active = false;
touch.active = true;
// 默认使用文本布局
let layout = layout_txt;
// 根据数据类型设置内容
if (data.type == "txt") {
// 设置文本内容
pg.view.setString(pg.view.find(layout_txt, 'word'), data.txt)
} else {
// 使用图片布局并设置图片
layout = layout_img;
pg.view.setNetImg(pg.view.find(layout_img, 'pic'), data.picUrl, { w: 504, h: 360 })
}
// 移除之前的触摸事件
touch.off(cc.Node.EventType.TOUCH_END);
// 停止背景音乐并播放卡片音频
this.stopBgAudio();
pg.audio.playAudioByUrl(this.touchData.audioUrl, () => {
// 音频播放完成后,添加触摸事件用于重播音频
touch.on(cc.Node.EventType.TOUCH_END, () => {
this.stopBgAudio();
pg.audio.playAudioByUrl(this.touchData.audioUrl, () => {
this.playBgAudio();
});
})
});
// 显示内容布局并设置初始状态
layout.active = true;
layout.opacity = 255;
layout.scale = 0.1;
// 创建缩放动画
cc.tween(layout)
.to(0.5, { scale: 1.1 }) // 先放大超过目标大小
.to(0.06, { scale: 1 }) // 然后缩小到正常大小
.call(() => {
resolve(''); // 动画完成后解析Promise
})
.start();
});
}
/**
* 处理下一个蛋壳的显示
......@@ -771,6 +850,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 设置新的问题数据
egg.data = eggInfo;
// 将重置的火苗节点添加回活跃列表
if (!this.activeFireNodes.includes(egg)) {
this.activeFireNodes.push(egg);
}
} else {
// 没有问题了,隐藏当前蛋壳
this.touchData.parent.active = false;
......@@ -801,22 +885,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
).start();
}
/**
* 停止所有蛋壳上的箭头动画
*/
private stopArrowAction() {
// 获取所有蛋壳
let layout_egg = cc.find("layout_egg", this.layout_game);
// 遍历每个蛋壳,停止其箭头动画
layout_egg.children.forEach((ch) => {
let icon_arrow = cc.find("icon_arrow", ch);
if (icon_arrow) {
icon_arrow.active = false;
cc.Tween.stopAllByTarget(icon_arrow);
}
})
}
/**
* 检查游戏是否结束
......@@ -839,7 +907,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (count == 0) {
// 增加页码
Game.getIns().addPage();
// 检查是否所有页面都完成
if (Game.getIns().isOver) {
// 所有页面都完成,游戏结束
......@@ -850,7 +918,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
return false;
}
}
// 当前页面还有蛋壳,游戏未结束
return false;
}
......@@ -897,39 +965,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
onHomeworkFinish(data)
}
/** 锤子可能的位置坐标 */
private hammerPos = [{ x: -345, y: 30 }, { x: 24, y: 30 }, { x: 305, y: 30 }, { x: 545, y: 30 }]
/**
* 播放锤子敲击动画
* @param pos 目标位置
* @returns Promise 动画完成后解析
*/
private hammerAction(pos) {
// 获取锤子节点并设置位置
let hammer = cc.find("hammer", this.layout_game);
hammer.active = true;
hammer.x = pos.x + 95;
hammer.y = pos.y + 30;
// 创建锤子敲击动画
return new Promise((resolve, reject) => {
cc.tween(hammer)
.to(0.2, { angle: -15 }) // 锤子向上抬起
.delay(0.1)
.to(0.1, { angle: 20 }) // 锤子向下敲击
.call(() => { this.playLocalAudio("broken") }) // 播放敲击音效
.delay(0.2)
.call(() => {
// 隐藏锤子并完成Promise
hammer.active = false;
resolve("");
})
.start();
})
}
/**
* 音频开启按钮点击处理
* 关闭背景音乐
......
......@@ -591,6 +591,55 @@ let pg = {
return skl;
},
/**
* 为DragonBones动画添加每轮动画完成后的回调事件
* @param {cc.Node|cc.Component} item - 包含DragonBones组件的节点或组件
* @returns {dragonBones.ArmatureDisplay} DragonBones骨骼组件
*/
addDBAnimationCallback(item, callback) {
if (!item || !cc.isValid(item)) return pg.logger.w("添加动画回调失败,传入了错误的item");
let node = item.node ? item.node : item;
if (!cc.isValid(node)) return pg.logger.w("节点已销毁");
let skl: dragonBones.ArmatureDisplay = node.getComponent(dragonBones.ArmatureDisplay);
if (!skl) return pg.logger.w("节点上没有DragonBones组件");
if (!callback) {
skl.removeEventListener(dragonBones.EventObject.COMPLETE);
return skl;
}
// 移除之前可能存在的监听器,避免重复添加
skl.removeEventListener(dragonBones.EventObject.COMPLETE, callback);
// 添加动画完成事件监听
skl.addEventListener(dragonBones.EventObject.COMPLETE, callback);
return skl;
},
/**
* 设置DragonBones动画的播放速度
* @param {cc.Node|cc.Component} item - 包含DragonBones组件的节点或组件
* @param {number} timeScale - 动画播放速度倍率,1为正常速度,大于1加速,小于1减速,0暂停
* @returns {dragonBones.ArmatureDisplay} DragonBones骨骼组件
*/
timeScaleDBAnimation(item, timeScale = 1) {
if (!item || !cc.isValid(item)) return pg.logger.w("设置动画速度失败,传入了错误的item");
let node = item.node ? item.node : item;
if (!cc.isValid(node)) return pg.logger.w("节点已销毁");
let skl: dragonBones.ArmatureDisplay = node.getComponent(dragonBones.ArmatureDisplay);
if (!skl) return pg.logger.w("节点上没有DragonBones组件");
// 设置动画播放速度
skl.timeScale = timeScale;
return skl;
},
/**
* 克隆节点
* @param {cc.Node} node - 要克隆的节点
......
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