Commit ebca1c4b authored by Tt's avatar Tt

1

parent e4707ca5
......@@ -84,37 +84,37 @@
"__id__": 34
},
{
"__id__": 61
"__id__": 79
},
{
"__id__": 64
"__id__": 82
},
{
"__id__": 67
"__id__": 85
},
{
"__id__": 83
"__id__": 101
},
{
"__id__": 120
"__id__": 138
},
{
"__id__": 133
"__id__": 151
},
{
"__id__": 145
"__id__": 163
}
],
"_active": true,
"_components": [
{
"__id__": 166
"__id__": 184
},
{
"__id__": 167
"__id__": 185
},
{
"__id__": 168
"__id__": 186
}
],
"_prefab": null,
......@@ -1619,40 +1619,19 @@
"__id__": 35
},
{
"__id__": 37
},
{
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
},
{
"__id__": 45
},
{
"__id__": 47
},
{
"__id__": 49
},
{
"__id__": 51
"__id__": 53
},
{
"__id__": 53
"__id__": 71
},
{
"__id__": 58
"__id__": 76
}
],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 78
}
],
"_prefab": null,
......@@ -1705,16 +1684,41 @@
},
{
"__type__": "cc.Node",
"_name": "bg_grass",
"_name": "build_1",
"_objFlags": 0,
"_parent": {
"__id__": 34
},
"_children": [],
"_children": [
{
"__id__": 36
},
{
"__id__": 38
},
{
"__id__": 40
},
{
"__id__": 42
},
{
"__id__": 44
},
{
"__id__": 46
},
{
"__id__": 48
},
{
"__id__": 50
}
],
"_active": true,
"_components": [
{
"__id__": 36
"__id__": 52
}
],
"_prefab": null,
......@@ -1765,50 +1769,18 @@
"groupIndex": 0,
"_id": "c6oRATCSJH/Ib7wM9tz23J"
},
{
"__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": "bg_build",
"_objFlags": 0,
"_parent": {
"__id__": 34
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 38
"__id__": 37
}
],
"_prefab": null,
......@@ -1835,7 +1807,7 @@
"ctor": "Float64Array",
"array": [
407.949,
20.109,
430.109,
0,
0,
0,
......@@ -1864,7 +1836,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
"__id__": 36
},
"_enabled": true,
"_materials": [
......@@ -1896,13 +1868,13 @@
"_name": "bg_line",
"_objFlags": 0,
"_parent": {
"__id__": 34
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 40
"__id__": 39
}
],
"_prefab": null,
......@@ -1929,7 +1901,7 @@
"ctor": "Float64Array",
"array": [
0,
-505.37,
-95.37,
0,
0,
0,
......@@ -1958,7 +1930,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
"__id__": 38
},
"_enabled": true,
"_materials": [
......@@ -1990,13 +1962,13 @@
"_name": "fire_0",
"_objFlags": 0,
"_parent": {
"__id__": 34
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 42
"__id__": 41
}
],
"_prefab": null,
......@@ -2023,7 +1995,7 @@
"ctor": "Float64Array",
"array": [
226.751,
-272.809,
137.191,
0,
0,
0,
......@@ -2052,7 +2024,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 40
},
"_enabled": true,
"_materials": [
......@@ -2061,7 +2033,7 @@
}
],
"_armatureName": "armatureName",
"_animationName": "",
"_animationName": "燃烧",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
......@@ -2080,7 +2052,7 @@
"__uuid__": "8357ac13-87df-4cc1-9564-c8037fb215aa"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
......@@ -2092,13 +2064,13 @@
"_name": "fire_1",
"_objFlags": 0,
"_parent": {
"__id__": 34
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 44
"__id__": 43
}
],
"_prefab": null,
......@@ -2125,7 +2097,7 @@
"ctor": "Float64Array",
"array": [
226.751,
-85.031,
324.969,
0,
0,
0,
......@@ -2154,7 +2126,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
"__id__": 42
},
"_enabled": true,
"_materials": [
......@@ -2163,7 +2135,7 @@
}
],
"_armatureName": "armatureName",
"_animationName": "",
"_animationName": "燃烧",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
......@@ -2182,7 +2154,7 @@
"__uuid__": "8357ac13-87df-4cc1-9564-c8037fb215aa"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
......@@ -2194,13 +2166,13 @@
"_name": "fire_2",
"_objFlags": 0,
"_parent": {
"__id__": 34
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 46
"__id__": 45
}
],
"_prefab": null,
......@@ -2227,7 +2199,7 @@
"ctor": "Float64Array",
"array": [
226.751,
99.624,
509.624,
0,
0,
0,
......@@ -2256,7 +2228,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
"__id__": 44
},
"_enabled": true,
"_materials": [
......@@ -2265,7 +2237,7 @@
}
],
"_armatureName": "armatureName",
"_animationName": "",
"_animationName": "燃烧",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
......@@ -2284,7 +2256,7 @@
"__uuid__": "8357ac13-87df-4cc1-9564-c8037fb215aa"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
......@@ -2296,13 +2268,13 @@
"_name": "fire_3",
"_objFlags": 0,
"_parent": {
"__id__": 34
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 48
"__id__": 47
}
],
"_prefab": null,
......@@ -2329,7 +2301,7 @@
"ctor": "Float64Array",
"array": [
441.094,
-272.086,
137.914,
0,
0,
0,
......@@ -2358,7 +2330,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
"__id__": 46
},
"_enabled": true,
"_materials": [
......@@ -2367,7 +2339,7 @@
}
],
"_armatureName": "armatureName",
"_animationName": "",
"_animationName": "燃烧",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
......@@ -2386,7 +2358,7 @@
"__uuid__": "8357ac13-87df-4cc1-9564-c8037fb215aa"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
......@@ -2398,13 +2370,13 @@
"_name": "fire_4",
"_objFlags": 0,
"_parent": {
"__id__": 34
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 50
"__id__": 49
}
],
"_prefab": null,
......@@ -2431,7 +2403,7 @@
"ctor": "Float64Array",
"array": [
441.094,
-85.19,
324.81,
0,
0,
0,
......@@ -2460,7 +2432,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
"__id__": 48
},
"_enabled": true,
"_materials": [
......@@ -2469,7 +2441,7 @@
}
],
"_armatureName": "armatureName",
"_animationName": "",
"_animationName": "燃烧",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
......@@ -2488,7 +2460,7 @@
"__uuid__": "8357ac13-87df-4cc1-9564-c8037fb215aa"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
......@@ -2500,13 +2472,13 @@
"_name": "fire_5",
"_objFlags": 0,
"_parent": {
"__id__": 34
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
"__id__": 51
}
],
"_prefab": null,
......@@ -2533,7 +2505,7 @@
"ctor": "Float64Array",
"array": [
441.094,
101.81,
511.81,
0,
0,
0,
......@@ -2562,7 +2534,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 50
},
"_enabled": true,
"_materials": [
......@@ -2571,7 +2543,7 @@
}
],
"_armatureName": "armatureName",
"_animationName": "",
"_animationName": "燃烧",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
......@@ -2590,16 +2562,48 @@
"__uuid__": "8357ac13-87df-4cc1-9564-c8037fb215aa"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_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": "car",
"_name": "build_2",
"_objFlags": 0,
"_parent": {
"__id__": 34
......@@ -2610,10 +2614,32 @@
},
{
"__id__": 56
},
{
"__id__": 58
},
{
"__id__": 60
},
{
"__id__": 62
},
{
"__id__": 64
},
{
"__id__": 66
},
{
"__id__": 68
}
],
"_active": true,
"_components": [],
"_components": [
{
"__id__": 70
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -2625,8 +2651,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 640,
"height": 419
"width": 1920,
"height": 136
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2637,8 +2663,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-427.052,
-527.638,
1920,
-410,
0,
0,
0,
......@@ -2660,11 +2686,11 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "8c+W0QjZNHK571Wzusnnwm"
"_id": "0c19oqfzpAHqRhqOMlnevj"
},
{
"__type__": "cc.Node",
"_name": "firewater",
"_name": "bg_build",
"_objFlags": 0,
"_parent": {
"__id__": 53
......@@ -2687,8 +2713,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 811.95,
"height": 419
"width": 638,
"height": 872
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2699,8 +2725,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-62.842,
367.075,
407.949,
430.109,
0,
0,
0,
......@@ -2722,10 +2748,10 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "0f/IXgIqRKkLUpzNpN5YWy"
"_id": "c2udCD6d1B0JnI5W761w6T"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -2737,26 +2763,923 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "armatureName",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "30f5b598-636e-4f0c-9243-99634e1942f9#55266042-161e-4eb9-9407-810b499f0f05",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "30f5b598-636e-4f0c-9243-99634e1942f9"
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "64d8abe1-5325-4517-b84d-439b054b9a8c"
},
"_N$dragonAtlasAsset": {
"__uuid__": "55266042-161e-4eb9-9407-810b499f0f05"
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_N$_defaultArmatureIndex": 0,
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b89+GlDKNLF5Xi1ZI5GCRT"
},
{
"__type__": "cc.Node",
"_name": "bg_line",
"_objFlags": 0,
"_parent": {
"__id__": 53
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 57
}
],
"_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__": 56
},
"_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__": 53
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 59
}
],
"_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__": 58
},
"_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__": 53
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 61
}
],
"_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,
324.969,
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": "36oVEjhKRIVJlpbTtvv27q"
},
{
"__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": "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": "8fV3b+eVBIXI1boq+wzt6F"
},
{
"__type__": "cc.Node",
"_name": "fire_2",
"_objFlags": 0,
"_parent": {
"__id__": 53
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 63
}
],
"_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,
509.624,
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": "c8w0lm1c1CKryuCuGx0QCX"
},
{
"__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": "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": "ccup/2jAZHjJPfs3gU1WiC"
},
{
"__type__": "cc.Node",
"_name": "fire_3",
"_objFlags": 0,
"_parent": {
"__id__": 53
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 65
}
],
"_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": [
441.094,
137.914,
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": "45hll/Q6VG0ob97KJ2ZvTP"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 64
},
"_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": "20YGyBXR1PJ52DDPTfWfGb"
},
{
"__type__": "cc.Node",
"_name": "fire_4",
"_objFlags": 0,
"_parent": {
"__id__": 53
},
"_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": 133,
"height": 140
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
441.094,
324.81,
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": "fef18e9x9M+qcgcNEejqVk"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 66
},
"_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": "88kRuZeTZEvL97sOanxJJD"
},
{
"__type__": "cc.Node",
"_name": "fire_5",
"_objFlags": 0,
"_parent": {
"__id__": 53
},
"_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": 133,
"height": 140
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
441.094,
511.81,
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": "471pyzjBRMZJ2ut+AWgnt6"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
},
"_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": "8ao/w7AdBPDaxYyu5cNUHW"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
},
"_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": "345uqibDRH1o7/nxNdEppt"
},
{
"__type__": "cc.Node",
"_name": "car",
"_objFlags": 0,
"_parent": {
"__id__": 34
},
"_children": [
{
"__id__": 72
},
{
"__id__": 74
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 640,
"height": 419
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-418.51,
-527.638,
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": "8c+W0QjZNHK571Wzusnnwm"
},
{
"__type__": "cc.Node",
"_name": "firewater",
"_objFlags": 0,
"_parent": {
"__id__": 71
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 73
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 811.95,
"height": 419
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-62.842,
367.075,
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": "0f/IXgIqRKkLUpzNpN5YWy"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "armatureName",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "30f5b598-636e-4f0c-9243-99634e1942f9#55266042-161e-4eb9-9407-810b499f0f05",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "30f5b598-636e-4f0c-9243-99634e1942f9"
},
"_N$dragonAtlasAsset": {
"__uuid__": "55266042-161e-4eb9-9407-810b499f0f05"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
......@@ -2769,13 +3692,13 @@
"_name": "car",
"_objFlags": 0,
"_parent": {
"__id__": 53
"__id__": 71
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 57
"__id__": 75
}
],
"_prefab": null,
......@@ -2831,7 +3754,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
"__id__": 74
},
"_enabled": true,
"_materials": [
......@@ -2877,7 +3800,7 @@
"_active": true,
"_components": [
{
"__id__": 59
"__id__": 77
}
],
"_prefab": null,
......@@ -2933,7 +3856,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
"__id__": 76
},
"_enabled": true,
"_materials": [
......@@ -2998,10 +3921,10 @@
"_active": false,
"_components": [
{
"__id__": 62
"__id__": 80
},
{
"__id__": 63
"__id__": 81
}
],
"_prefab": null,
......@@ -3057,7 +3980,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 61
"__id__": 79
},
"_enabled": true,
"_materials": [
......@@ -3089,7 +4012,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 61
"__id__": 79
},
"_enabled": true,
"alignMode": 1,
......@@ -3122,10 +4045,10 @@
"_active": false,
"_components": [
{
"__id__": 65
"__id__": 83
},
{
"__id__": 66
"__id__": 84
}
],
"_prefab": null,
......@@ -3181,7 +4104,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 64
"__id__": 82
},
"_enabled": true,
"_materials": [
......@@ -3213,7 +4136,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 64
"__id__": 82
},
"_enabled": true,
"alignMode": 1,
......@@ -3244,22 +4167,22 @@
},
"_children": [
{
"__id__": 68
"__id__": 86
},
{
"__id__": 71
"__id__": 89
},
{
"__id__": 75
"__id__": 93
},
{
"__id__": 79
"__id__": 97
}
],
"_active": false,
"_components": [
{
"__id__": 82
"__id__": 100
}
],
"_prefab": null,
......@@ -3315,16 +4238,16 @@
"_name": "New Node",
"_objFlags": 0,
"_parent": {
"__id__": 67
"__id__": 85
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 69
"__id__": 87
},
{
"__id__": 70
"__id__": 88
}
],
"_prefab": null,
......@@ -3380,7 +4303,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 86
},
"_enabled": true,
"alignMode": 1,
......@@ -3407,7 +4330,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 86
},
"_enabled": true,
"_normalMaterial": null,
......@@ -3475,17 +4398,17 @@
"_name": "layout_img",
"_objFlags": 0,
"_parent": {
"__id__": 67
"__id__": 85
},
"_children": [
{
"__id__": 72
"__id__": 90
}
],
"_active": true,
"_components": [
{
"__id__": 74
"__id__": 92
}
],
"_prefab": null,
......@@ -3541,13 +4464,13 @@
"_name": "pic",
"_objFlags": 0,
"_parent": {
"__id__": 71
"__id__": 89
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 73
"__id__": 91
}
],
"_prefab": null,
......@@ -3603,7 +4526,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
"__id__": 90
},
"_enabled": true,
"_materials": [
......@@ -3635,7 +4558,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 71
"__id__": 89
},
"_enabled": true,
"_materials": [
......@@ -3667,17 +4590,17 @@
"_name": "layout_txt",
"_objFlags": 0,
"_parent": {
"__id__": 67
"__id__": 85
},
"_children": [
{
"__id__": 76
"__id__": 94
}
],
"_active": true,
"_components": [
{
"__id__": 78
"__id__": 96
}
],
"_prefab": null,
......@@ -3733,13 +4656,13 @@
"_name": "word",
"_objFlags": 0,
"_parent": {
"__id__": 75
"__id__": 93
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 77
"__id__": 95
}
],
"_prefab": null,
......@@ -3795,7 +4718,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 76
"__id__": 94
},
"_enabled": true,
"_materials": [
......@@ -3830,7 +4753,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 75
"__id__": 93
},
"_enabled": true,
"_materials": [
......@@ -3862,16 +4785,16 @@
"_name": "touch",
"_objFlags": 0,
"_parent": {
"__id__": 67
"__id__": 85
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 80
"__id__": 98
},
{
"__id__": 81
"__id__": 99
}
],
"_prefab": null,
......@@ -3927,7 +4850,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 79
"__id__": 97
},
"_enabled": true,
"alignMode": 1,
......@@ -3954,7 +4877,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 79
"__id__": 97
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4022,7 +4945,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
"__id__": 85
},
"_enabled": true,
"alignMode": 1,
......@@ -4053,46 +4976,46 @@
},
"_children": [
{
"__id__": 84
"__id__": 102
},
{
"__id__": 87
"__id__": 105
},
{
"__id__": 89
"__id__": 107
},
{
"__id__": 99
"__id__": 117
},
{
"__id__": 102
"__id__": 120
},
{
"__id__": 105
"__id__": 123
},
{
"__id__": 107
"__id__": 125
},
{
"__id__": 109
"__id__": 127
},
{
"__id__": 111
"__id__": 129
},
{
"__id__": 113
"__id__": 131
},
{
"__id__": 115
"__id__": 133
},
{
"__id__": 117
"__id__": 135
}
],
"_active": false,
"_components": [
{
"__id__": 119
"__id__": 137
}
],
"_prefab": null,
......@@ -4148,16 +5071,16 @@
"_name": "gray",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 85
"__id__": 103
},
{
"__id__": 86
"__id__": 104
}
],
"_prefab": null,
......@@ -4213,7 +5136,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
"__id__": 102
},
"_enabled": true,
"_materials": [
......@@ -4245,7 +5168,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
"__id__": 102
},
"_enabled": true,
"alignMode": 1,
......@@ -4272,13 +5195,13 @@
"_name": "btn_close",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 88
"__id__": 106
}
],
"_prefab": null,
......@@ -4334,7 +5257,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 87
"__id__": 105
},
"_enabled": true,
"_materials": [
......@@ -4366,26 +5289,26 @@
"_name": "bg_card",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 101
},
"_children": [
{
"__id__": 90
"__id__": 108
},
{
"__id__": 92
"__id__": 110
},
{
"__id__": 94
"__id__": 112
},
{
"__id__": 96
"__id__": 114
}
],
"_active": true,
"_components": [
{
"__id__": 98
"__id__": 116
}
],
"_prefab": null,
......@@ -4441,13 +5364,13 @@
"_name": "bg_title",
"_objFlags": 0,
"_parent": {
"__id__": 89
"__id__": 107
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 91
"__id__": 109
}
],
"_prefab": null,
......@@ -4503,7 +5426,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 90
"__id__": 108
},
"_enabled": true,
"_materials": [
......@@ -4535,13 +5458,13 @@
"_name": "btn_voice",
"_objFlags": 0,
"_parent": {
"__id__": 89
"__id__": 107
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 93
"__id__": 111
}
],
"_prefab": null,
......@@ -4597,7 +5520,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 92
"__id__": 110
},
"_enabled": true,
"_materials": [
......@@ -4629,13 +5552,13 @@
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 89
"__id__": 107
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 95
"__id__": 113
}
],
"_prefab": null,
......@@ -4691,7 +5614,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 94
"__id__": 112
},
"_enabled": true,
"_materials": [
......@@ -4723,13 +5646,13 @@
"_name": "word",
"_objFlags": 0,
"_parent": {
"__id__": 89
"__id__": 107
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 97
"__id__": 115
}
],
"_prefab": null,
......@@ -4785,7 +5708,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 96
"__id__": 114
},
"_enabled": true,
"_materials": [
......@@ -4818,7 +5741,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 89
"__id__": 107
},
"_enabled": true,
"_materials": [
......@@ -4850,16 +5773,16 @@
"_name": "btn_start",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 100
"__id__": 118
},
{
"__id__": 101
"__id__": 119
}
],
"_prefab": null,
......@@ -4915,7 +5838,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 99
"__id__": 117
},
"_enabled": true,
"_materials": [
......@@ -4947,7 +5870,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 99
"__id__": 117
},
"_enabled": true,
"_normalMaterial": null,
......@@ -5015,16 +5938,16 @@
"_name": "btn_stop",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 103
"__id__": 121
},
{
"__id__": 104
"__id__": 122
}
],
"_prefab": null,
......@@ -5080,7 +6003,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 102
"__id__": 120
},
"_enabled": true,
"_materials": [
......@@ -5112,7 +6035,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 102
"__id__": 120
},
"_enabled": true,
"_normalMaterial": null,
......@@ -5180,13 +6103,13 @@
"_name": "btn_record",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 106
"__id__": 124
}
],
"_prefab": null,
......@@ -5242,7 +6165,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 105
"__id__": 123
},
"_enabled": true,
"_materials": [
......@@ -5274,13 +6197,13 @@
"_name": "btn_record_reset",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 108
"__id__": 126
}
],
"_prefab": null,
......@@ -5336,7 +6259,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 107
"__id__": 125
},
"_enabled": true,
"_materials": [
......@@ -5368,13 +6291,13 @@
"_name": "btn_stop",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 110
"__id__": 128
}
],
"_prefab": null,
......@@ -5430,7 +6353,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 109
"__id__": 127
},
"_enabled": true,
"_materials": [
......@@ -5462,13 +6385,13 @@
"_name": "btn_record_replay",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 112
"__id__": 130
}
],
"_prefab": null,
......@@ -5524,7 +6447,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
"__id__": 129
},
"_enabled": true,
"_materials": [
......@@ -5556,13 +6479,13 @@
"_name": "btn_record_0",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 114
"__id__": 132
}
],
"_prefab": null,
......@@ -5618,7 +6541,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 113
"__id__": 131
},
"_enabled": true,
"_materials": [
......@@ -5650,13 +6573,13 @@
"_name": "btn_record_1",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 116
"__id__": 134
}
],
"_prefab": null,
......@@ -5712,7 +6635,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 115
"__id__": 133
},
"_enabled": true,
"_materials": [
......@@ -5744,13 +6667,13 @@
"_name": "btn_record_2",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 101
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 118
"__id__": 136
}
],
"_prefab": null,
......@@ -5806,7 +6729,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 117
"__id__": 135
},
"_enabled": true,
"_materials": [
......@@ -5838,7 +6761,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
"__id__": 101
},
"_enabled": true,
"alignMode": 1,
......@@ -5869,25 +6792,25 @@
},
"_children": [
{
"__id__": 121
"__id__": 139
},
{
"__id__": 124
"__id__": 142
},
{
"__id__": 126
"__id__": 144
},
{
"__id__": 128
"__id__": 146
},
{
"__id__": 130
"__id__": 148
}
],
"_active": false,
"_components": [
{
"__id__": 132
"__id__": 150
}
],
"_prefab": null,
......@@ -5943,16 +6866,16 @@
"_name": "gray",
"_objFlags": 0,
"_parent": {
"__id__": 120
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 122
"__id__": 140
},
{
"__id__": 123
"__id__": 141
}
],
"_prefab": null,
......@@ -6008,7 +6931,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 121
"__id__": 139
},
"_enabled": true,
"_materials": [
......@@ -6040,7 +6963,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 121
"__id__": 139
},
"_enabled": true,
"alignMode": 1,
......@@ -6067,13 +6990,13 @@
"_name": "Comeon",
"_objFlags": 0,
"_parent": {
"__id__": 120
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 125
"__id__": 143
}
],
"_prefab": null,
......@@ -6129,7 +7052,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
"__id__": 142
},
"_enabled": true,
"_materials": [
......@@ -6169,13 +7092,13 @@
"_name": "Excellent",
"_objFlags": 0,
"_parent": {
"__id__": 120
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 127
"__id__": 145
}
],
"_prefab": null,
......@@ -6231,7 +7154,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 126
"__id__": 144
},
"_enabled": true,
"_materials": [
......@@ -6271,13 +7194,13 @@
"_name": "Nice",
"_objFlags": 0,
"_parent": {
"__id__": 120
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 129
"__id__": 147
}
],
"_prefab": null,
......@@ -6333,7 +7256,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 128
"__id__": 146
},
"_enabled": true,
"_materials": [
......@@ -6373,13 +7296,13 @@
"_name": "Tryagain",
"_objFlags": 0,
"_parent": {
"__id__": 120
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 131
"__id__": 149
}
],
"_prefab": null,
......@@ -6435,7 +7358,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 130
"__id__": 148
},
"_enabled": true,
"_materials": [
......@@ -6475,7 +7398,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 120
"__id__": 138
},
"_enabled": true,
"alignMode": 1,
......@@ -6506,19 +7429,19 @@
},
"_children": [
{
"__id__": 134
"__id__": 152
},
{
"__id__": 136
"__id__": 154
},
{
"__id__": 138
"__id__": 156
},
{
"__id__": 140
"__id__": 158
},
{
"__id__": 143
"__id__": 161
}
],
"_active": false,
......@@ -6576,13 +7499,13 @@
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 133
"__id__": 151
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 135
"__id__": 153
}
],
"_prefab": null,
......@@ -6638,7 +7561,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 134
"__id__": 152
},
"_enabled": true,
"_materials": [
......@@ -6670,13 +7593,13 @@
"_name": "bg_instructions",
"_objFlags": 0,
"_parent": {
"__id__": 133
"__id__": 151
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 137
"__id__": 155
}
],
"_prefab": null,
......@@ -6732,7 +7655,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
"__id__": 154
},
"_enabled": true,
"_materials": [
......@@ -6764,13 +7687,13 @@
"_name": "desc",
"_objFlags": 0,
"_parent": {
"__id__": 133
"__id__": 151
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 139
"__id__": 157
}
],
"_prefab": null,
......@@ -6826,7 +7749,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 138
"__id__": 156
},
"_enabled": true,
"_materials": [
......@@ -6861,16 +7784,16 @@
"_name": "btn_start",
"_objFlags": 0,
"_parent": {
"__id__": 133
"__id__": 151
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 141
"__id__": 159
},
{
"__id__": 142
"__id__": 160
}
],
"_prefab": null,
......@@ -6926,7 +7849,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 140
"__id__": 158
},
"_enabled": true,
"_materials": [
......@@ -6958,7 +7881,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 140
"__id__": 158
},
"_enabled": true,
"_normalMaterial": null,
......@@ -7019,7 +7942,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 140
"__id__": 158
},
"_id": "7095HuemhJQ40wHbz5jlAy"
},
......@@ -7028,13 +7951,13 @@
"_name": "touch",
"_objFlags": 0,
"_parent": {
"__id__": 133
"__id__": 151
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 144
"__id__": 162
}
],
"_prefab": null,
......@@ -7090,7 +8013,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 143
"__id__": 161
},
"_enabled": true,
"_normalMaterial": null,
......@@ -7162,19 +8085,19 @@
},
"_children": [
{
"__id__": 146
"__id__": 164
},
{
"__id__": 150
"__id__": 168
},
{
"__id__": 154
"__id__": 172
},
{
"__id__": 158
"__id__": 176
},
{
"__id__": 162
"__id__": 180
}
],
"_active": false,
......@@ -7232,11 +8155,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 145
"__id__": 163
},
"_children": [
{
"__id__": 147
"__id__": 165
}
],
"_active": true,
......@@ -7294,11 +8217,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 146
"__id__": 164
},
"_children": [
{
"__id__": 148
"__id__": 166
}
],
"_active": true,
......@@ -7356,13 +8279,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 147
"__id__": 165
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 149
"__id__": 167
}
],
"_prefab": null,
......@@ -7418,7 +8341,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 148
"__id__": 166
},
"_enabled": true,
"_materials": [
......@@ -7448,11 +8371,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 145
"__id__": 163
},
"_children": [
{
"__id__": 151
"__id__": 169
}
],
"_active": true,
......@@ -7510,11 +8433,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 150
"__id__": 168
},
"_children": [
{
"__id__": 152
"__id__": 170
}
],
"_active": true,
......@@ -7572,13 +8495,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 151
"__id__": 169
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 153
"__id__": 171
}
],
"_prefab": null,
......@@ -7634,7 +8557,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 152
"__id__": 170
},
"_enabled": true,
"_materials": [
......@@ -7664,11 +8587,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 145
"__id__": 163
},
"_children": [
{
"__id__": 155
"__id__": 173
}
],
"_active": true,
......@@ -7726,11 +8649,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 154
"__id__": 172
},
"_children": [
{
"__id__": 156
"__id__": 174
}
],
"_active": true,
......@@ -7788,13 +8711,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 155
"__id__": 173
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 157
"__id__": 175
}
],
"_prefab": null,
......@@ -7850,7 +8773,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 156
"__id__": 174
},
"_enabled": true,
"_materials": [
......@@ -7880,11 +8803,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 145
"__id__": 163
},
"_children": [
{
"__id__": 159
"__id__": 177
}
],
"_active": true,
......@@ -7942,11 +8865,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 158
"__id__": 176
},
"_children": [
{
"__id__": 160
"__id__": 178
}
],
"_active": true,
......@@ -8004,13 +8927,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 159
"__id__": 177
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 161
"__id__": 179
}
],
"_prefab": null,
......@@ -8066,7 +8989,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 160
"__id__": 178
},
"_enabled": true,
"_materials": [
......@@ -8096,11 +9019,11 @@
"_name": "quadBase",
"_objFlags": 0,
"_parent": {
"__id__": 145
"__id__": 163
},
"_children": [
{
"__id__": 163
"__id__": 181
}
],
"_active": true,
......@@ -8158,11 +9081,11 @@
"_name": "quad",
"_objFlags": 0,
"_parent": {
"__id__": 162
"__id__": 180
},
"_children": [
{
"__id__": 164
"__id__": 182
}
],
"_active": true,
......@@ -8220,13 +9143,13 @@
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 163
"__id__": 181
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 165
"__id__": 183
}
],
"_prefab": null,
......@@ -8282,7 +9205,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 164
"__id__": 182
},
"_enabled": true,
"_materials": [
......@@ -8363,20 +9286,32 @@
"__id__": 34
},
"layout_tip": {
"__id__": 120
"__id__": 138
},
"layout_speak": {
"__id__": 83
"__id__": 101
},
"btn_audio_off": {
"__id__": 61
"__id__": 79
},
"btn_audio_on": {
"__id__": 64
"__id__": 82
},
"bg_countdown": null,
"layout_card": {
"__id__": 67
"__id__": 85
},
"node_firetruck": {
"__id__": 71
},
"node_firetruck_anim": {
"__id__": 74
},
"node_firetruck_flush": {
"__id__": 72
},
"btn_finger": {
"__id__": 76
},
"_id": "db3L+4L+FH/5MIRcKcfiq+"
}
......
......@@ -42,24 +42,6 @@ let win: any = window;
// 获取课件对象
let courseware = win.courseware;
/**
* 枪的状态枚举
*/
enum GUN_STATE {
WAIT = 1, // 等待状态
SHUT_MIDDLE, // 中间射击
SHUT_LEFT, // 左侧射击
SHUT_RIGHT // 右侧射击
}
/**
* 鱼的状态枚举
*/
enum FISH_STATE {
NORMAL = 1, // 正常状态
BREAK, // 破碎状态
FALL, // 掉落状态
}
/**
* 提示状态枚举
......@@ -119,6 +101,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initData(); // 初始化数据
this.initView(); // 初始化视图
this.initEvent(); // 初始化事件
this.initGame();
}
/**
* 组件销毁时的回调
......@@ -151,6 +134,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
@property(cc.Node)
layout_card: cc.Node = null;
@property({ displayName: "消防车", type: cc.Node }) node_firetruck: cc.Node = null;
@property({ displayName: "消防车动画节点", type: cc.Node }) node_firetruck_anim: cc.Node = null;
@property({ displayName: "消防车冲水动画节点", type: cc.Node }) node_firetruck_flush: cc.Node = null;
@property({ displayName: "提示手指节点", type: cc.Node }) btn_finger: cc.Node = null;
// 游戏数据相关变量
/** 当前触摸的选项数据 */
private touchData: Option;
......@@ -164,7 +153,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private startCount = 15;
/** 是否播放背景音乐 */
private isPlayBgAudio: boolean;
/**
* 初始化游戏数据
* 设置游戏状态和变量的初始值
......@@ -178,8 +167,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.touchData = null;
this.isPlayBgAudio = true;
}
/** 开始界面布局节点 */
private layout_start: cc.Node;
/** 音频播放ID */
private audioId: any;
......@@ -190,169 +177,102 @@ export default class SceneComponent extends MyCocosSceneComponent {
async initView() {
// 停止所有音效
cc.audioEngine.stopAllEffects();
// 获取开始界面节点
this.layout_start = pg.view.find(this, "layout_start");
let touch = pg.view.find(this, "layout_start/touch");
// 显示开始界面
this.layout_start.active = true;
// 设置问题描述文本
let desc = this.layout_start.getChildByName("desc");
desc.getComponent(cc.Label).string = Game.getIns().questionText;
// 播放问题音频
this.audioId = await pg.audio.playAudioByUrl(Game.getIns().question.audio, () => { }, (audioId) => {
if (audioId > -1 && Game.getIns().state == GAME_STATE.RUNNING) pg.audio.stopAudio(audioId);
});
// 如果游戏已经开始,停止音频播放
if (this.audioId > -1 && Game.getIns().state == GAME_STATE.RUNNING) {
cc.audioEngine.stopAllEffects();
pg.audio.stopAudio(this.audioId);
}
// 添加触摸事件,点击重新播放问题音频
touch.on(cc.Node.EventType.TOUCH_END, () => {
cc.audioEngine.stopAllEffects();
pg.audio.stopAudio(this.audioId);
pg.audio.playAudioByUrl(Game.getIns().question.audio);
})
// 设置标题文本
if (Game.getIns().title) {
cc.find("layout_info/bg_title/title", this.node).getComponent(cc.Label).string = Game.getIns().title;
}
// 如果有背景音乐,显示音乐开启按钮
if (Game.getIns().bgAudio || Game.getIns().bgAudio != "") {
this.btn_audio_on.active = true;
}
}
/**
* 初始化事件监听
* 为UI元素添加事件处理函数
*/
initEvent() {
// 开始按钮点击事件
pg.view.touchOn(pg.view.find(this.layout_start, 'btn_start'), this.onTouchStart, this);
// 音频控制按钮事件
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);
// 监听游戏开始事件
pg.event.on("game_start", () => {
this.gameStart();
});
}
/**
* 音频开启按钮点击处理
* 关闭背景音乐
*/
private onAudioOn() {
this.btn_audio_off.active = true;
this.btn_audio_on.active = false;
this.isPlayBgAudio = false;
this.stopBgAudio();
}
/**
* 音频关闭按钮点击处理
* 开启背景音乐
*/
private onAudioOff() {
this.btn_audio_on.active = true;
this.btn_audio_off.active = false;
this.isPlayBgAudio = true;
this.playBgAudio();
}
/**
* 播放背景音乐
*/
private playBgAudio() {
if (!this.isPlayBgAudio) return;
cc.audioEngine.resumeMusic();
}
/**
* 停止背景音乐
*/
private stopBgAudio() {
cc.audioEngine.pauseMusic();
}
/**
* 开始按钮点击处理
* 播放按钮音效并触发游戏开始事件
*/
onTouchStart() {
pg.audio.playLocalAudio(cc.find(`Canvas/res/audio/btn`));
pg.event.emit("game_start");
}
/**
* 游戏结束处理
* 计算得分并提交结果
*/
private gameOver() {
// 设置游戏状态为结束
Game.getIns().state = GAME_STATE.OVER;
// 准备提交的数据
let data: any = {};
data.total = Game.getIns().total; // 总题目数
data.right = Game.getIns().player.right; // 正确题目数
data.scores = Game.getIns().player.voices; // 语音记录
data.stone = Math.floor(10 * data.right / data.total); // 计算得分
// 记录日志
this.log("total: " + data.total + " right: " + data.right + " stone: " + data.stone);
// 提交作业完成数据
onHomeworkFinish(data)
}
/**
* 游戏开始处理
* 隐藏开始界面,显示问题,播放背景音乐
*/
gameStart() {
initGame() {
// 设置游戏状态为运行中
Game.getIns().state = GAME_STATE.RUNNING;
// 隐藏开始界面
this.layout_start.active = false;
// 停止问题音频
if (this.audioId > -1 && Game.getIns().state != GAME_STATE.WAIT) {
cc.audioEngine.stopAllEffects();
pg.audio.stopAudio(this.audioId);
}
// 播放背景音乐
pg.audio.playBgAudioByUrl(Game.getIns().bgAudio);
// 显示问题
this.showQuestions();
this.aniCarEnter();
}
/**
* 消防车入场动画
* 从左侧(-1500,-527)移动到右侧(-400,-527)并播放龙骨动画
*/
aniCarEnter() {
// 确保消防车节点存在
if (!this.node_firetruck || !this.node_firetruck_anim || !this.node_firetruck_flush) {
return pg.logger.w("消防车节点不存在");
}
// 设置初始位置
this.node_firetruck.setPosition(cc.v2(-1500, -527));
// 隐藏冲水动画节点
this.node_firetruck_flush.active = false;
this.btn_finger.active = false;
// 播放龙骨动画
pg.view.playDBAnimation(this.node_firetruck_anim, '移动', -1);
let dragonDisplay = this.node_firetruck_anim.getComponent(dragonBones.ArmatureDisplay);
if (dragonDisplay) {
dragonDisplay.timeScale = 1.2; // 将动画速度设为0,相当于暂停
}
// 使用cc.tween实现移动效果
cc.tween(this.node_firetruck)
.to(2.0, { x: -400 })
.call(() => {
// 播放龙骨动画
pg.view.playDBAnimation(this.node_firetruck_anim, '待机', -1);
// // 移动完成后停止动画
})
.start();
}
/**
* 显示问题选项
* 创建并显示蛋壳,添加点击事件
*/
private showQuestions() {
return;
// 获取当前页的数据
const pageData = Game.getIns().getPageData();
// 获取问题数量
let len = Game.getIns().len;
let len = pageData.length;
// 最多显示4个选项
let count = len >= 4 ? 4 : len;
// 创建每个蛋壳
for (let i = 0; i < count; i++) {
// 获取问题数据
let eggData = Game.getIns().getCardInfo();
let eggData = pageData[i];
// 获取蛋壳节点
let egg = cc.find("layout_egg/egg" + i, this.layout_game);
// 设置数据和显示状态
egg.data = eggData;
egg.active = true;
// 添加点击事件
egg.on(cc.Node.EventType.TOUCH_END, () => {
// 停止箭头动画
......@@ -363,34 +283,34 @@ export default class SceneComponent extends MyCocosSceneComponent {
let di = cc.find("di", egg);
let intact = cc.find("intact", egg);
let broken = cc.find("broken", egg);
// 显示底部,隐藏完整蛋壳
di.active = true;
intact.active = false;
// 保存当前选中的数据
this.touchData = egg.data;
this.touchData.parent = egg;
// 延迟显示卡片
await pg.time.delay(0.7);
this.playCard(this.touchData);
this.updateLayoutSpeak();
// 显示破碎的蛋壳,隐藏底部
broken.active = true;
di.active = false;
})
});
// 添加箭头动画
this.eggArrowAction(egg);
}
// 调整布局
let layout_egg = cc.find("layout_egg", this.layout_game);
layout_egg.getComponent(cc.Layout).updateLayout();
// 根据选项数量调整间距
if (count == 2) {
layout_egg.getComponent(cc.Layout).spacingX = 200;
......@@ -399,7 +319,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
} else {
layout_egg.getComponent(cc.Layout).spacingX = 40;
}
// 更新并禁用自动布局
layout_egg.getComponent(cc.Layout).updateLayout();
layout_egg.getComponent(cc.Layout).enabled = false;
......@@ -414,12 +334,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (Game.getIns().state != GAME_STATE.RUNNING) return;
// 倒计时不显示时不更新
if (!this.bg_countdown || !this.bg_countdown.active) return;
// 获取时间显示节点
let time = cc.find("time", this.bg_countdown);
let time2 = cc.find("time2", this.bg_countdown);
if (!time || !time2) return;
// 倒计时结束处理
if (this.countDown <= 0) {
this.onTouchRecordEnd();
......@@ -427,17 +347,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc.Tween.stopAllByTarget(time2)
return;
}
// 更新倒计时时间
this.countDown = this.countDown - dt;
// 倒计时小于6秒时的特殊显示
if (this.countDown < 6) {
let count = Math.floor(this.countDown);
time.active = false;
time2.active = true;
time2.getComponent(cc.Label).string = "" + parseInt("" + this.countDown);
// 当秒数变化时播放缩放动画
if (count != this.timeCount) {
this.timeCount = count;
......@@ -468,14 +388,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
let ske = pg.view.find(this.layout_speak, 'speak_ske');
let btn_start = pg.view.find(this.layout_speak, 'btn_start');
let btn_stop = pg.view.find(this.layout_speak, 'btn_stop');
// 更新按钮状态
btn_start.active = false;
btn_stop.active = true;
// 设置动画速度
ske.getComponent(dragonBones.ArmatureDisplay).timeScale = 1;
// 显示倒计时并设置时间
this.bg_countdown.active = true;
this.countDown = this.startCount;
......@@ -493,15 +413,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
let ske = pg.view.find(this.layout_speak, 'speak_ske');
let btn_start = pg.view.find(this.layout_speak, 'btn_start');
let btn_stop = pg.view.find(this.layout_speak, 'btn_stop');
// 播放动画并设置极快的速度(实际上是为了立即结束动画)
pg.view.playDBAnimation(ske, 'newAnimation', 1);
ske.getComponent(dragonBones.ArmatureDisplay).timeScale = 10000;
// 隐藏所有按钮
btn_stop.active = false;
btn_start.active = false;
// 隐藏倒计时并设置一个很大的值防止倒计时继续
this.bg_countdown.active = false;
this.countDown = 999999;
......@@ -586,7 +506,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private tryAgain: boolean = false;
/** 是否正在触摸/操作中 */
private touching: boolean = false;
/**
* 处理录音结束后的逻辑
* 根据录音评分结果决定是否通过,显示相应提示
......@@ -596,13 +516,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.log("recrodEnd!!!!!")
// 保存录音数据
Game.getIns().player.addVoice(data);
// 获取评分和检查单词正确性
let score = data.result.overall;
this.log("score: " + score);
let isSuccess = this.checkWords(data);
this.log("data: " + JSON.stringify(data));
// 评分达标且单词正确
if (score >= 70 && isSuccess) {
this.touching = false;
......@@ -611,7 +531,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 增加正确计数
Game.getIns().player.addRight();
this.tryAgain = false;
// 延迟后隐藏卡片和提示,进入下一题
await pg.time.delay(3);
this.playCard(null);
......@@ -624,7 +544,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (this.tryData.some(td => td.id == this.touchData.id)) {
// 已经尝试过的题目,显示完成提示
this.updateTips(TIPS_STATE.COM);
if (this.tryAgain) {
// 第二次尝试后,无论结果如何都进入下一题
this.tryAgain = false;
......@@ -643,11 +563,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.tryAgain = true;
}
}
// 延迟后隐藏提示
await pg.time.delay(3);
this.updateTips(null);
// 根据是否需要再次尝试决定显示卡片或进入下一题
if (this.tryAgain) {
// 需要再次尝试,显示卡片和录音界面
......@@ -669,20 +589,20 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (!hide) {
// 显示录音界面
this.layout_speak.active = true;
// 获取UI元素
let ske = pg.view.find(this.layout_speak, 'speak_ske');
let btn_start = pg.view.find(this.layout_speak, 'btn_start');
let btn_stop = pg.view.find(this.layout_speak, 'btn_stop');
// 绑定按钮事件
pg.view.touchOn(btn_start, this.onTouchRecord, this);
pg.view.touchOn(btn_stop, this.onTouchRecordEnd, this);
// 设置动画初始状态(几乎静止)
pg.view.playDBAnimation(ske, 'newAnimation', 0);
ske.getComponent(dragonBones.ArmatureDisplay).timeScale = 0.00001;
// 显示开始按钮,隐藏停止按钮
btn_start.active = true;
btn_stop.active = false;
......@@ -703,20 +623,20 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.layout_tip.active = false;
return;
}
// 显示提示布局
this.layout_tip.active = true;
// 获取所有提示图标
let img_co = pg.view.find(this.layout_tip, 'img_co'); // 完成提示
let img_gj = pg.view.find(this.layout_tip, 'img_gj'); // 很棒提示
let img_ta = pg.view.find(this.layout_tip, 'img_ta'); // 再试一次提示
// 先隐藏所有图标
img_co.active = false;
img_gj.active = false;
img_ta.active = false;
// 根据状态选择要显示的图标和光效
let img = null;
let img_light = null;
......@@ -737,18 +657,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
img_light = cc.find("bg_light", img_ta);
break;
}
// 设置初始缩放为0并显示
img.scale = 0;
img.active = true;
// 停止之前的动画并激活光效
cc.Tween.stopAllByTarget(img_light)
img_light.active = true;
// 创建光效旋转动画
cc.tween(img_light).repeatForever(cc.tween().by(5, { angle: 360 })).start();
// 创建图标缩放动画,延迟后自动隐藏
cc.tween(img).to(0.5, { scale: 1 }).delay(2).call(() => {
cc.Tween.stopAllByTarget(img_light)
......@@ -769,23 +689,23 @@ export default class SceneComponent extends MyCocosSceneComponent {
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") {
// 设置文本内容
......@@ -795,10 +715,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
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, () => {
......@@ -810,12 +730,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
})
});
// 显示内容布局并设置初始状态
layout.active = true;
layout.opacity = 255;
layout.scale = 0.1;
// 创建缩放动画
cc.tween(layout)
.to(0.5, { scale: 1.1 }) // 先放大超过目标大小
......@@ -841,28 +761,28 @@ export default class SceneComponent extends MyCocosSceneComponent {
let di = cc.find("di", egg);
let intact = cc.find("intact", egg);
let broken = cc.find("broken", egg);
// 恢复蛋壳完整状态
di.active = false;
broken.active = false;
intact.active = true;
// 设置新的问题数据
egg.data = eggInfo;
} else {
// 没有问题了,隐藏当前蛋壳
this.touchData.parent.active = false;
// 检查是否所有蛋壳都已处理完毕
if (this.checkIsOver()) {
this.gameOver();
}
}
// 恢复背景音乐
this.playBgAudio();
}
/**
* 为蛋壳添加箭头上下移动动画
* @param target 目标蛋壳节点
......@@ -871,21 +791,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 获取箭头节点
let icon_arrow = cc.find("icon_arrow", target);
if (!icon_arrow) return;
// 显示箭头并创建上下移动的循环动画
icon_arrow.active = true;
cc.tween(icon_arrow).repeatForever(
cc.tween().to(0.5, { y: 180 }).to(0.5, { y: 220 })
).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);
......@@ -905,12 +825,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 计数活动的蛋壳数量
let count = 0;
let layout_egg = cc.find("layout_egg", this.layout_game);
// 遍历所有蛋壳,统计显示中的数量
layout_egg.children.forEach((ch) => {
if (ch.active) count++;
})
// 如果没有显示的蛋壳,游戏结束
return count == 0;
}
......@@ -934,9 +854,32 @@ export default class SceneComponent extends MyCocosSceneComponent {
return true;
}
/**
* 游戏结束处理
* 计算得分并提交结果
*/
private gameOver() {
// 设置游戏状态为结束
Game.getIns().state = GAME_STATE.OVER;
// 准备提交的数据
let data: any = {};
data.total = Game.getIns().getTotal; // 总题目数
data.right = Game.getIns().player.right; // 正确题目数
data.scores = Game.getIns().player.voices; // 语音记录
data.stone = Math.floor(10 * data.right / data.total); // 计算得分
// 记录日志
this.log("total: " + data.total + " right: " + data.right + " stone: " + data.stone);
// 提交作业完成数据
onHomeworkFinish(data)
}
/** 锤子可能的位置坐标 */
private hammerPos = [{ x: -345, y: 30 }, { x: 24, y: 30 }, { x: 305, y: 30 }, { x: 545, y: 30 }]
/**
* 播放锤子敲击动画
* @param pos 目标位置
......@@ -948,7 +891,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
hammer.active = true;
hammer.x = pos.x + 95;
hammer.y = pos.y + 30;
// 创建锤子敲击动画
return new Promise((resolve, reject) => {
cc.tween(hammer)
......@@ -965,6 +908,44 @@ export default class SceneComponent extends MyCocosSceneComponent {
.start();
})
}
/**
* 音频开启按钮点击处理
* 关闭背景音乐
*/
private onAudioOn() {
this.btn_audio_off.active = true;
this.btn_audio_on.active = false;
this.isPlayBgAudio = false;
this.stopBgAudio();
}
/**
* 音频关闭按钮点击处理
* 开启背景音乐
*/
private onAudioOff() {
this.btn_audio_on.active = true;
this.btn_audio_off.active = false;
this.isPlayBgAudio = true;
this.playBgAudio();
}
/**
* 播放背景音乐
*/
private playBgAudio() {
if (!this.isPlayBgAudio) return;
cc.audioEngine.resumeMusic();
}
/**
* 停止背景音乐
*/
private stopBgAudio() {
cc.audioEngine.pauseMusic();
}
/**
* 播放本地音频
* @param audioName 音频资源名称
......@@ -973,7 +954,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
playLocalAudio(audioName) {
// 获取音频组件
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
// 播放音效并返回Promise
return new Promise((resolve, reject) => {
const id = cc.audioEngine.playEffect(audio.clip, false);
......
......@@ -135,35 +135,35 @@ export default class Game {
if (!Game.ins) Game.ins = new Game();
return Game.ins;
}
/** 游戏数据 */
private data: any;
/** 选项列表 */
private lists: Array<Option>
/** 游戏数据源数组 */
private data: Array<any>;
/** 玩家实例 */
public player: Player;
/** 游戏状态 */
public state: GAME_STATE;
/** 问题总数 */
/** 数据总数 */
public total: number;
/** 每页数据数量 */
public pageSize: number;
/**
* 构造函数,初始化游戏基本属性
*/
constructor() {
this.start = false;
this.lists = [];
this.data = [];
this.page = 0;
this.pageSize = 6;
this.player = new Player();
this.state = GAME_STATE.WAIT;
}
/**
* 获取当前选项列表长度
* @returns 选项列表长度
* 获取当前数据源长度
* @returns 数据源长度
*/
get len() {
return this.lists.length;
return this.data ? this.data.length : 0;
}
/** 是否为单人游戏模式 */
public singleGame: boolean;
/** 问题信息,包含文本和音频 */
public question: { text, audio };
/** 游戏标题 */
......@@ -177,14 +177,15 @@ export default class Game {
* @param data 游戏配置数据
*/
public init(data) {
this.singleGame = !data.onlineFlg;
this.pageSize = 6; // 每页最多6个数据
this.question = { text: data.questionText, audio: data.questionTextAudio };
this.title = data.title;
this.bgAudio = data.bgAudio || "";
this.questionText = data.questionText;
this.start = false;
this.lists = [];
this.page = 0; // 页码从0开始
this.data = data.questions;
this.total = this.data.length;
}
/** 游戏是否已开始 */
public start: boolean;
......@@ -192,68 +193,91 @@ export default class Game {
public page: number;
/**
* 重置游戏状态
* 重置玩家数据,初始化问题列表,准备开始新游戏
* 重置玩家数据,初始化游戏状态,准备开始新游戏
*/
reset() {
this.player.reset();
this.page = 1;
this.page = 0; // 页码从0开始
this.start = true;
this.lists = [];
for (let i = 0; i < this.data.length; i++) {
let data = this.data[i];
this.lists.push(new Option(data, i));
}
this.state = GAME_STATE.WAIT;
this.total = this.lists.length;
this.total = this.data.length;
}
/**
* 获取随机卡片信息
* 从列表中随机抽取一个选项并从列表中移除
* @returns 随机选项,如果列表为空则返回null
* 获取当前页的数据
* @param {number} pageIndex 页码索引,默认为当前页码(页码从0开始)
* @returns {Array<Option>} 当前页的选项数据数组
*/
public getCardInfo() {
let option: Option;
if (this.lists.length > 0) {
let random = Math.floor(Math.random() * this.lists.length);
option = this.lists.splice(random, 1)[0];
} else {
option = null;
getPageData(pageIndex?: number) {
// 如果没有指定页码索引,则使用当前页码(页码从0开始)
const index = pageIndex !== undefined ? pageIndex : this.page;
// 计算当前页的起始索引和结束索引
const startIndex = index * this.pageSize;
const endIndex = Math.min(startIndex + this.pageSize, this.data.length);
// 如果起始索引超出数据范围,返回空数组
if (startIndex >= this.data.length) {
return [];
}
// 提取当前页的数据并转换为Option对象
const pageData: Array<Option> = [];
for (let i = startIndex; i < endIndex; i++) {
pageData.push(new Option(this.data[i], i));
}
console.log(" this.cardInfo=======", option)
return option;
return pageData;
}
/**
* 获取总页数/剩余问题数
* @returns 剩余问题数量
* 获取总页数
* @returns 总页数(向上取整)
*/
getTotalPageNum() {
return this.lists.length;
return Math.ceil(this.data.length / this.pageSize);
}
/**
* 获取当前页码
* @returns 当前页码
* @returns 当前页码(从0开始)
*/
getCurrentPageNum() {
return this.page;
}
/**
* 页码加1,用于游戏进度更新
*/
addPage() {
this.page += 1;
}
/**
* 获取剩余总数
* @returns 剩余问题数量
* 获取数据总数
* @returns 数据总数
*/
get getTotla() {
return this.lists.length;
get getTotal() {
return this.data.length;
}
/**
* 获取当前页的卡片信息
* @returns 当前页的选项数据数组
*/
getCardInfo() {
const currentPageData = this.getPageData();
if (currentPageData.length === 0) {
return null;
}
return currentPageData[0]; // 返回当前页的第一个选项
}
/**
* 判断游戏是否结束
* @returns 当前页码是否超过问题总
* @returns 当前页码是否超过或等于总页
*/
get isOver() {
return this.page > this.lists.length;
return this.page >= this.getTotalPageNum();
}
}
\ No newline at end of file
......@@ -295,7 +295,6 @@
| `player` | `Player` | 玩家实例 |
| `state` | `GAME_STATE` | 游戏状态 |
| `total` | `number` | 问题总数 |
| `singleGame` | `boolean` | 是否为单人游戏模式 |
| `question` | `{text, audio}` | 问题信息 |
| `title` | `string` | 游戏标题 |
| `bgAudio` | `string` | 背景音乐URL |
......
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