Commit 8ce7dc3b authored by 张子元's avatar 张子元

feat:添加气泡内数据

parent 5396b7b4
......@@ -84,28 +84,28 @@
"__id__": 71
},
{
"__id__": 82
"__id__": 86
},
{
"__id__": 103
"__id__": 107
},
{
"__id__": 143
"__id__": 147
},
{
"__id__": 188
"__id__": 192
}
],
"_active": true,
"_components": [
{
"__id__": 198
"__id__": 202
},
{
"__id__": 199
"__id__": 203
},
{
"__id__": 200
"__id__": 204
}
],
"_prefab": null,
......@@ -3224,13 +3224,13 @@
"__id__": 75
},
{
"__id__": 80
"__id__": 84
}
],
"_active": true,
"_components": [
{
"__id__": 81
"__id__": 85
}
],
"_prefab": null,
......@@ -3388,6 +3388,12 @@
},
{
"__id__": 78
},
{
"__id__": 80
},
{
"__id__": 82
}
],
"_active": false,
......@@ -3628,6 +3634,195 @@
"_atlas": null,
"_id": "59VZnhWc1KPZ6Cb0LtuHLx"
},
{
"__type__": "cc.Node",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 75
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 81
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "66oMgtlA9LR55toWGd4Ae4"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 80
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "26syoaPC9DiZaenc3mDFGI"
},
{
"__type__": "cc.Node",
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 75
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 83
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 68.51,
"height": 37.8
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "54bNiQNLNOmarb6V8WL+O8"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 28,
"_lineHeight": 30,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "5dd0wHF9RFJZh6KdVsSS3o"
},
{
"__type__": "cc.Node",
"_name": "layer_paopao",
......@@ -3727,23 +3922,23 @@
},
"_children": [
{
"__id__": 83
"__id__": 87
},
{
"__id__": 88
"__id__": 92
}
],
"_active": false,
"_components": [
{
"__id__": 100
"__id__": 104
},
{
"__id__": 101
"__id__": 105
}
],
"_prefab": {
"__id__": 102
"__id__": 106
},
"_opacity": 255,
"_color": {
......@@ -3797,23 +3992,23 @@
"_name": "btn_back",
"_objFlags": 0,
"_parent": {
"__id__": 82
"__id__": 86
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 84
"__id__": 88
},
{
"__id__": 85
"__id__": 89
},
{
"__id__": 86
"__id__": 90
}
],
"_prefab": {
"__id__": 87
"__id__": 91
},
"_opacity": 255,
"_color": {
......@@ -3867,7 +4062,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
"__id__": 87
},
"_enabled": true,
"_materials": [
......@@ -3899,7 +4094,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
"__id__": 87
},
"_enabled": true,
"_normalMaterial": null,
......@@ -3967,7 +4162,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
"__id__": 87
},
"_enabled": true,
"alignMode": 1,
......@@ -3992,7 +4187,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 82
"__id__": 86
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4005,27 +4200,27 @@
"_name": "img_npc_voice",
"_objFlags": 0,
"_parent": {
"__id__": 82
"__id__": 86
},
"_children": [
{
"__id__": 89
"__id__": 93
},
{
"__id__": 92
"__id__": 96
},
{
"__id__": 95
"__id__": 99
}
],
"_active": true,
"_components": [
{
"__id__": 98
"__id__": 102
}
],
"_prefab": {
"__id__": 99
"__id__": 103
},
"_opacity": 255,
"_color": {
......@@ -4079,17 +4274,17 @@
"_name": "p1",
"_objFlags": 0,
"_parent": {
"__id__": 88
"__id__": 92
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 90
"__id__": 94
}
],
"_prefab": {
"__id__": 91
"__id__": 95
},
"_opacity": 255,
"_color": {
......@@ -4143,7 +4338,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 89
"__id__": 93
},
"_enabled": true,
"_materials": [
......@@ -4173,7 +4368,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 82
"__id__": 86
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4186,17 +4381,17 @@
"_name": "p2",
"_objFlags": 0,
"_parent": {
"__id__": 88
"__id__": 92
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 93
"__id__": 97
}
],
"_prefab": {
"__id__": 94
"__id__": 98
},
"_opacity": 255,
"_color": {
......@@ -4250,7 +4445,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 92
"__id__": 96
},
"_enabled": true,
"_materials": [
......@@ -4280,7 +4475,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 82
"__id__": 86
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4293,17 +4488,17 @@
"_name": "p3",
"_objFlags": 0,
"_parent": {
"__id__": 88
"__id__": 92
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 96
"__id__": 100
}
],
"_prefab": {
"__id__": 97
"__id__": 101
},
"_opacity": 255,
"_color": {
......@@ -4357,7 +4552,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 95
"__id__": 99
},
"_enabled": true,
"_materials": [
......@@ -4387,7 +4582,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 82
"__id__": 86
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4400,7 +4595,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 88
"__id__": 92
},
"_enabled": true,
"alignMode": 1,
......@@ -4425,7 +4620,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 82
"__id__": 86
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4438,7 +4633,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
"__id__": 86
},
"_enabled": true,
"alignMode": 1,
......@@ -4465,7 +4660,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
"__id__": 86
},
"_enabled": true,
"_id": "4bOu5J5BNMRbgcr/N6dJzl"
......@@ -4473,7 +4668,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 82
"__id__": 86
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4490,20 +4685,20 @@
},
"_children": [
{
"__id__": 104
"__id__": 108
}
],
"_active": false,
"_components": [
{
"__id__": 140
"__id__": 144
},
{
"__id__": 141
"__id__": 145
}
],
"_prefab": {
"__id__": 142
"__id__": 146
},
"_opacity": 255,
"_color": {
......@@ -4557,39 +4752,39 @@
"_name": "layout_record",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 107
},
"_children": [
{
"__id__": 105
"__id__": 109
},
{
"__id__": 108
"__id__": 112
},
{
"__id__": 111
"__id__": 115
},
{
"__id__": 114
"__id__": 118
},
{
"__id__": 117
"__id__": 121
},
{
"__id__": 120
"__id__": 124
},
{
"__id__": 123
"__id__": 127
}
],
"_active": true,
"_components": [
{
"__id__": 138
"__id__": 142
}
],
"_prefab": {
"__id__": 139
"__id__": 143
},
"_opacity": 255,
"_color": {
......@@ -4643,17 +4838,17 @@
"_name": "voice_white",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 108
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 106
"__id__": 110
}
],
"_prefab": {
"__id__": 107
"__id__": 111
},
"_opacity": 255,
"_color": {
......@@ -4707,7 +4902,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 105
"__id__": 109
},
"_enabled": true,
"_materials": [
......@@ -4737,7 +4932,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 107
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -4750,17 +4945,17 @@
"_name": "record_bg",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 108
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 109
"__id__": 113
}
],
"_prefab": {
"__id__": 110
"__id__": 114
},
"_opacity": 255,
"_color": {
......@@ -4814,7 +5009,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
"__id__": 112
},
"_enabled": true,
"_materials": [
......@@ -4844,7 +5039,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 107
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -4857,17 +5052,17 @@
"_name": "record_icon",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 108
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 112
"__id__": 116
}
],
"_prefab": {
"__id__": 113
"__id__": 117
},
"_opacity": 255,
"_color": {
......@@ -4921,7 +5116,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
"__id__": 115
},
"_enabled": true,
"_materials": [
......@@ -4951,7 +5146,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 107
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -4964,17 +5159,17 @@
"_name": "record_time",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 108
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 115
"__id__": 119
}
],
"_prefab": {
"__id__": 116
"__id__": 120
},
"_opacity": 255,
"_color": {
......@@ -5028,7 +5223,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 114
"__id__": 118
},
"_enabled": true,
"_materials": [
......@@ -5058,7 +5253,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 107
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5071,17 +5266,17 @@
"_name": "AniNode",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 108
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 118
"__id__": 122
}
],
"_prefab": {
"__id__": 119
"__id__": 123
},
"_opacity": 255,
"_color": {
......@@ -5135,7 +5330,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 117
"__id__": 121
},
"_enabled": true,
"_materials": [
......@@ -5173,7 +5368,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 107
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5186,17 +5381,17 @@
"_name": "btn_record",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 108
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 121
"__id__": 125
}
],
"_prefab": {
"__id__": 122
"__id__": 126
},
"_opacity": 255,
"_color": {
......@@ -5250,7 +5445,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 120
"__id__": 124
},
"_enabled": true,
"_normalMaterial": null,
......@@ -5316,7 +5511,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 107
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5329,30 +5524,30 @@
"_name": "btn_play",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 108
},
"_children": [
{
"__id__": 124
"__id__": 128
},
{
"__id__": 127
"__id__": 131
},
{
"__id__": 130
"__id__": 134
},
{
"__id__": 133
"__id__": 137
}
],
"_active": false,
"_components": [
{
"__id__": 136
"__id__": 140
}
],
"_prefab": {
"__id__": 137
"__id__": 141
},
"_opacity": 255,
"_color": {
......@@ -5406,17 +5601,17 @@
"_name": "p1",
"_objFlags": 0,
"_parent": {
"__id__": 123
"__id__": 127
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 125
"__id__": 129
}
],
"_prefab": {
"__id__": 126
"__id__": 130
},
"_opacity": 255,
"_color": {
......@@ -5470,7 +5665,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
"__id__": 128
},
"_enabled": true,
"_materials": [
......@@ -5500,7 +5695,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 107
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5513,17 +5708,17 @@
"_name": "p0",
"_objFlags": 0,
"_parent": {
"__id__": 123
"__id__": 127
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 128
"__id__": 132
}
],
"_prefab": {
"__id__": 129
"__id__": 133
},
"_opacity": 255,
"_color": {
......@@ -5577,7 +5772,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 127
"__id__": 131
},
"_enabled": true,
"_materials": [
......@@ -5607,7 +5802,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 107
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5620,17 +5815,17 @@
"_name": "p2",
"_objFlags": 0,
"_parent": {
"__id__": 123
"__id__": 127
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 131
"__id__": 135
}
],
"_prefab": {
"__id__": 132
"__id__": 136
},
"_opacity": 255,
"_color": {
......@@ -5684,7 +5879,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 130
"__id__": 134
},
"_enabled": true,
"_materials": [
......@@ -5714,7 +5909,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 107
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5727,17 +5922,17 @@
"_name": "p3",
"_objFlags": 0,
"_parent": {
"__id__": 123
"__id__": 127
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 134
"__id__": 138
}
],
"_prefab": {
"__id__": 135
"__id__": 139
},
"_opacity": 255,
"_color": {
......@@ -5791,7 +5986,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 133
"__id__": 137
},
"_enabled": true,
"_materials": [
......@@ -5821,7 +6016,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 107
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5834,7 +6029,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 123
"__id__": 127
},
"_enabled": true,
"alignMode": 1,
......@@ -5859,7 +6054,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 107
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5872,7 +6067,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
"__id__": 108
},
"_enabled": true,
"alignMode": 1,
......@@ -5897,7 +6092,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 107
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5910,7 +6105,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 103
"__id__": 107
},
"_enabled": true,
"alignMode": 1,
......@@ -5937,7 +6132,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 103
"__id__": 107
},
"_enabled": true,
"_id": "28SYbspDNAfqMNbpyAm+q/"
......@@ -5945,7 +6140,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 107
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5962,29 +6157,29 @@
},
"_children": [
{
"__id__": 144
"__id__": 148
},
{
"__id__": 158
"__id__": 162
},
{
"__id__": 167
"__id__": 171
},
{
"__id__": 176
"__id__": 180
}
],
"_active": false,
"_components": [
{
"__id__": 185
"__id__": 189
},
{
"__id__": 186
"__id__": 190
}
],
"_prefab": {
"__id__": 187
"__id__": 191
},
"_opacity": 255,
"_color": {
......@@ -6038,26 +6233,26 @@
"_name": "voice",
"_objFlags": 0,
"_parent": {
"__id__": 143
"__id__": 147
},
"_children": [
{
"__id__": 145
"__id__": 149
},
{
"__id__": 148
"__id__": 152
},
{
"__id__": 151
"__id__": 155
},
{
"__id__": 154
"__id__": 158
}
],
"_active": false,
"_components": [],
"_prefab": {
"__id__": 157
"__id__": 161
},
"_opacity": 255,
"_color": {
......@@ -6111,17 +6306,17 @@
"_name": "excellent",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 148
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 146
"__id__": 150
}
],
"_prefab": {
"__id__": 147
"__id__": 151
},
"_opacity": 255,
"_color": {
......@@ -6175,7 +6370,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 145
"__id__": 149
},
"_enabled": true,
"_clip": {
......@@ -6192,7 +6387,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6205,17 +6400,17 @@
"_name": "good",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 148
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 149
"__id__": 153
}
],
"_prefab": {
"__id__": 150
"__id__": 154
},
"_opacity": 255,
"_color": {
......@@ -6269,7 +6464,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 148
"__id__": 152
},
"_enabled": true,
"_clip": {
......@@ -6286,7 +6481,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6299,17 +6494,17 @@
"_name": "tryagain",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 148
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 152
"__id__": 156
}
],
"_prefab": {
"__id__": 153
"__id__": 157
},
"_opacity": 255,
"_color": {
......@@ -6363,7 +6558,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 151
"__id__": 155
},
"_enabled": true,
"_clip": {
......@@ -6380,7 +6575,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6393,17 +6588,17 @@
"_name": "ani",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 148
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 155
"__id__": 159
}
],
"_prefab": {
"__id__": 156
"__id__": 160
},
"_opacity": 255,
"_color": {
......@@ -6457,7 +6652,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 154
"__id__": 158
},
"_enabled": true,
"_clip": {
......@@ -6474,7 +6669,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6485,7 +6680,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6498,24 +6693,24 @@
"_name": "layout_excellent",
"_objFlags": 0,
"_parent": {
"__id__": 143
"__id__": 147
},
"_children": [
{
"__id__": 159
"__id__": 163
},
{
"__id__": 162
"__id__": 166
}
],
"_active": false,
"_components": [
{
"__id__": 165
"__id__": 169
}
],
"_prefab": {
"__id__": 166
"__id__": 170
},
"_opacity": 255,
"_color": {
......@@ -6569,17 +6764,17 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 158
"__id__": 162
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 160
"__id__": 164
}
],
"_prefab": {
"__id__": 161
"__id__": 165
},
"_opacity": 150,
"_color": {
......@@ -6633,7 +6828,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 159
"__id__": 163
},
"_enabled": true,
"_materials": [
......@@ -6663,7 +6858,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6676,17 +6871,17 @@
"_name": "AniNode",
"_objFlags": 0,
"_parent": {
"__id__": 158
"__id__": 162
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 163
"__id__": 167
}
],
"_prefab": {
"__id__": 164
"__id__": 168
},
"_opacity": 255,
"_color": {
......@@ -6740,7 +6935,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 162
"__id__": 166
},
"_enabled": true,
"_materials": [
......@@ -6778,7 +6973,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6791,7 +6986,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 158
"__id__": 162
},
"_enabled": true,
"alignMode": 1,
......@@ -6816,7 +7011,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6829,24 +7024,24 @@
"_name": "layout_good",
"_objFlags": 0,
"_parent": {
"__id__": 143
"__id__": 147
},
"_children": [
{
"__id__": 168
"__id__": 172
},
{
"__id__": 171
"__id__": 175
}
],
"_active": false,
"_components": [
{
"__id__": 174
"__id__": 178
}
],
"_prefab": {
"__id__": 175
"__id__": 179
},
"_opacity": 255,
"_color": {
......@@ -6900,17 +7095,17 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 167
"__id__": 171
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 169
"__id__": 173
}
],
"_prefab": {
"__id__": 170
"__id__": 174
},
"_opacity": 150,
"_color": {
......@@ -6964,7 +7159,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 168
"__id__": 172
},
"_enabled": true,
"_materials": [
......@@ -6994,7 +7189,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7007,17 +7202,17 @@
"_name": "AniNode",
"_objFlags": 0,
"_parent": {
"__id__": 167
"__id__": 171
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 172
"__id__": 176
}
],
"_prefab": {
"__id__": 173
"__id__": 177
},
"_opacity": 255,
"_color": {
......@@ -7071,7 +7266,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 171
"__id__": 175
},
"_enabled": true,
"_materials": [
......@@ -7109,7 +7304,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7122,7 +7317,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 167
"__id__": 171
},
"_enabled": true,
"alignMode": 1,
......@@ -7147,7 +7342,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7160,24 +7355,24 @@
"_name": "layout_tryagain",
"_objFlags": 0,
"_parent": {
"__id__": 143
"__id__": 147
},
"_children": [
{
"__id__": 177
"__id__": 181
},
{
"__id__": 180
"__id__": 184
}
],
"_active": false,
"_components": [
{
"__id__": 183
"__id__": 187
}
],
"_prefab": {
"__id__": 184
"__id__": 188
},
"_opacity": 255,
"_color": {
......@@ -7231,17 +7426,17 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 176
"__id__": 180
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 178
"__id__": 182
}
],
"_prefab": {
"__id__": 179
"__id__": 183
},
"_opacity": 150,
"_color": {
......@@ -7295,7 +7490,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 177
"__id__": 181
},
"_enabled": true,
"_materials": [
......@@ -7325,7 +7520,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7338,17 +7533,17 @@
"_name": "AniNode",
"_objFlags": 0,
"_parent": {
"__id__": 176
"__id__": 180
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 181
"__id__": 185
}
],
"_prefab": {
"__id__": 182
"__id__": 186
},
"_opacity": 255,
"_color": {
......@@ -7402,7 +7597,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 180
"__id__": 184
},
"_enabled": true,
"_materials": [
......@@ -7440,7 +7635,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7453,7 +7648,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 176
"__id__": 180
},
"_enabled": true,
"alignMode": 1,
......@@ -7478,7 +7673,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7491,7 +7686,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 143
"__id__": 147
},
"_enabled": true,
"alignMode": 1,
......@@ -7518,7 +7713,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 143
"__id__": 147
},
"_enabled": true,
"_id": "f8RLolwXVG8YWO7i32J+zq"
......@@ -7526,7 +7721,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 147
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7543,13 +7738,13 @@
},
"_children": [
{
"__id__": 189
"__id__": 193
},
{
"__id__": 192
"__id__": 196
},
{
"__id__": 195
"__id__": 199
}
],
"_active": false,
......@@ -7607,11 +7802,11 @@
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 188
"__id__": 192
},
"_children": [
{
"__id__": 190
"__id__": 194
}
],
"_active": true,
......@@ -7669,13 +7864,13 @@
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 189
"__id__": 193
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 191
"__id__": 195
}
],
"_prefab": null,
......@@ -7731,7 +7926,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 190
"__id__": 194
},
"_enabled": true,
"_materials": [],
......@@ -7762,11 +7957,11 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 188
"__id__": 192
},
"_children": [
{
"__id__": 193
"__id__": 197
}
],
"_active": true,
......@@ -7824,13 +8019,13 @@
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 192
"__id__": 196
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 194
"__id__": 198
}
],
"_prefab": null,
......@@ -7886,7 +8081,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 193
"__id__": 197
},
"_enabled": true,
"_materials": [],
......@@ -7914,11 +8109,11 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 188
"__id__": 192
},
"_children": [
{
"__id__": 196
"__id__": 200
}
],
"_active": true,
......@@ -7976,13 +8171,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 195
"__id__": 199
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 197
"__id__": 201
}
],
"_prefab": null,
......@@ -8038,7 +8233,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 196
"__id__": 200
},
"_enabled": true,
"_clip": {
......
......@@ -23,6 +23,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private speed: number;
private isCorrect: boolean;
private targetPosition: number;
private touchNumber: number = 1;
async onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
......@@ -33,6 +34,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
initData() {
this.speed = 30
console.log(this.data)
}
initView() { }
initEvent() {
......@@ -54,13 +56,29 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
// 制造气泡
create_bubbles() {
if(this.touchNumber > this.data.questions[0].options.length) {
console.log('此题结束')
} else {
let bottom_megaphone = pg.view.find(this, 'layer_game/bg/bottom_megaphone')
let layer_paopao = pg.view.find(this, 'layer_game/bg/layer_paopao')
let paoaoParent = pg.view.find(this, 'layer_game/bg/paopao')
let newPaoPao = cc.instantiate(paoaoParent)
// 点击泡泡
pg.view.touchOn(newPaoPao, this.touchPaoPao, this)
let paopao = newPaoPao.getChildByName("bubble")
let broken = newPaoPao.getChildByName("bubble_broken")
let img = newPaoPao.getChildByName("img")
let text = newPaoPao.getChildByName("text")
// 判断是显示图片还是文字
if(this.data.questions[0].options[this.touchNumber - 1].type === 'img') {
pg.view.visible(img, true)
pg.view.visible(text, false)
pg.view.setNetImg(img, this.data.questions[0].options[this.touchNumber - 1].image, { w:60, h:60 })
} else {
pg.view.visible(img, false)
pg.view.visible(text, true)
pg.view.setString(text, this.data.questions[0].options[this.touchNumber - 1].text)
}
let btn = cc.tween(bottom_megaphone)
layer_paopao.addChild(newPaoPao)
btn.to(0.1, { x: -5 }).to(0.1, { x: 0 }).to(0.1, { x: 5 }).to(0.1, { x: 0 })
......@@ -73,7 +91,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
newPaoPao.opacity = 0
pg.view.visible(newPaoPao, true)
pg.view.visible(broken, false)
// 点击泡泡
cc.tween(newPaoPao).to(0.8, { opacity: 255 }).call(() => {
let positionY = Math.floor(Math.random() * 300)
let positionX = this.getPositionX()
......@@ -89,6 +106,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
})
btn.start()
}
this.touchNumber++;
}
getPositionX() {
if (Math.random() < 0.5) {
......
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