Commit a0fd46f2 authored by Lwd's avatar Lwd

aaaa

parent 8acdd228
......@@ -87,25 +87,25 @@
"__id__": 75
},
{
"__id__": 136
"__id__": 138
},
{
"__id__": 154
"__id__": 160
}
],
"_active": true,
"_components": [
{
"__id__": 156
"__id__": 162
},
{
"__id__": 157
"__id__": 163
},
{
"__id__": 158
"__id__": 164
},
{
"__id__": 159
"__id__": 165
}
],
"_prefab": null,
......@@ -195,7 +195,7 @@
"array": [
0,
0,
539.5252766428575,
539.5259478511258,
0,
0,
0,
......@@ -266,10 +266,7 @@
"__id__": 6
},
{
"__id__": 8
},
{
"__id__": 11
"__id__": 16
},
{
"__id__": 19
......@@ -341,108 +338,15 @@
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
"_children": [
{
"__id__": 7
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_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": "cb44vGCjBCEai3LUYggvmx"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8a5a3573-755c-4a87-81da-94878a25da48"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "cdG0DXG2FEI6RjMYVWdQGm"
},
{
"__type__": "cc.Node",
"_name": "bg_road",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
},
{
"__id__": 10
"__id__": 15
}
],
"_prefab": null,
......@@ -457,7 +361,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 563
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -469,7 +373,7 @@
"ctor": "Float64Array",
"array": [
0,
-78.5,
0,
0,
0,
0,
......@@ -491,89 +395,30 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "55hjWfJXRGVrUKU5bn44kk"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f32c4fbb-8522-43ac-b3be-846858217c39"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "0878DpcTBC5qHDetXX/XTj"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 0,
"_id": "94E5Z6sbtLibzH70XmyEpp"
"_id": "cb44vGCjBCEai3LUYggvmx"
},
{
"__type__": "cc.Node",
"_name": "bg_kate",
"_objFlags": 0,
"_parent": {
"__id__": 5
"__id__": 6
},
"_children": [
{
"__id__": 12
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 15
"__id__": 11
},
{
"__id__": 16
"__id__": 12
},
{
"__id__": 17
"__id__": 13
}
],
"_prefab": null,
......@@ -629,16 +474,16 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 11
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
"__id__": 9
},
{
"__id__": 14
"__id__": 10
}
],
"_prefab": null,
......@@ -694,7 +539,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
"__id__": 8
},
"_enabled": true,
"_materials": [
......@@ -729,7 +574,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
"__id__": 8
},
"_enabled": true,
"_color": {
......@@ -747,7 +592,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 7
},
"_enabled": true,
"_materials": [
......@@ -779,7 +624,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 7
},
"_enabled": true,
"alignMode": 1,
......@@ -806,7 +651,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 7
},
"_enabled": true,
"_normalMaterial": null,
......@@ -815,7 +660,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 18
"__id__": 14
}
],
"_N$interactable": true,
......@@ -850,38 +695,194 @@
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "6cg20v+bZMBqjVrbW/w80P"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 2
},
"component": "",
"_componentId": "8b0b7lMf15OlIK40chbxp64",
"handler": "playAudioTitle",
"customEventData": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8a5a3573-755c-4a87-81da-94878a25da48"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "cdG0DXG2FEI6RjMYVWdQGm"
},
{
"__type__": "cc.Node",
"_name": "bg_road",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
},
{
"__id__": 18
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 563
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-78.5,
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": "55hjWfJXRGVrUKU5bn44kk"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f32c4fbb-8522-43ac-b3be-846858217c39"
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "6cg20v+bZMBqjVrbW/w80P"
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "0878DpcTBC5qHDetXX/XTj"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 2
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"component": "",
"_componentId": "8b0b7lMf15OlIK40chbxp64",
"handler": "",
"customEventData": ""
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 0,
"_id": "94E5Z6sbtLibzH70XmyEpp"
},
{
"__type__": "cc.Node",
......@@ -3509,8 +3510,10 @@
"__id__": 72
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"alignMode": 2,
"_target": {
"__id__": 2
},
"_alignFlags": 44,
"_left": 0,
"_right": 0,
......@@ -3543,19 +3546,19 @@
"__id__": 79
},
{
"__id__": 91
"__id__": 93
},
{
"__id__": 99
"__id__": 101
},
{
"__id__": 103
"__id__": 105
}
],
"_active": false,
"_components": [
{
"__id__": 135
"__id__": 137
}
],
"_prefab": null,
......@@ -3780,7 +3783,7 @@
"_active": true,
"_components": [
{
"__id__": 90
"__id__": 92
}
],
"_prefab": null,
......@@ -4122,14 +4125,18 @@
"_parent": {
"__id__": 79
},
"_children": [],
"_active": true,
"_components": [
"_children": [
{
"__id__": 87
}
],
"_active": false,
"_components": [
{
"__id__": 89
},
{
"__id__": 88
"__id__": 90
}
],
"_prefab": null,
......@@ -4143,8 +4150,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 300
"width": 740,
"height": 400
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -4180,6 +4187,100 @@
"groupIndex": 0,
"_id": "49RK/Nq9dENKjdPTKv0GYm"
},
{
"__type__": "cc.Node",
"_name": "frame_dragon",
"_objFlags": 0,
"_parent": {
"__id__": 86
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 88
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 852,
"height": 516
},
"_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": "a0azumv9hEjKbJhMICDrSL"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 87
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8c658fc0-c1e4-4993-bce4-b5cce324b69b"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e0/mlj59pDz7T5XfjWCPPG"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
......@@ -4195,11 +4296,11 @@
],
"_armatureName": "",
"_animationName": "",
"_preCacheMode": -1,
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "",
"_armatureKey": "2ce7fa44-d75d-4caf-a9bf-67a07b3e995a#68a1f680-3f67-44af-a6fd-29494173dbe6",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
......@@ -4230,7 +4331,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 89
"__id__": 91
}
],
"_N$interactable": true,
......@@ -4339,13 +4440,13 @@
},
"_children": [
{
"__id__": 92
"__id__": 94
}
],
"_active": true,
"_components": [
{
"__id__": 98
"__id__": 100
}
],
"_prefab": null,
......@@ -4401,17 +4502,17 @@
"_name": "Layout",
"_objFlags": 0,
"_parent": {
"__id__": 91
"__id__": 93
},
"_children": [
{
"__id__": 93
"__id__": 95
}
],
"_active": true,
"_components": [
{
"__id__": 97
"__id__": 99
}
],
"_prefab": null,
......@@ -4467,25 +4568,25 @@
"_name": "lb_tip",
"_objFlags": 0,
"_parent": {
"__id__": 92
"__id__": 94
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 94
"__id__": 96
},
{
"__id__": 95
"__id__": 97
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 113,
"g": 7,
"b": 7,
"r": 46,
"g": 110,
"b": 238,
"a": 255
},
"_contentSize": {
......@@ -4532,7 +4633,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 93
"__id__": 95
},
"_enabled": true,
"_materials": [
......@@ -4567,7 +4668,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 93
"__id__": 95
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4576,7 +4677,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 96
"__id__": 98
}
],
"_N$interactable": true,
......@@ -4641,7 +4742,7 @@
},
"component": "",
"_componentId": "b01b30rB85Exb1aIQxobbR8",
"handler": "playAudio",
"handler": "onBtnText",
"customEventData": ""
},
{
......@@ -4649,7 +4750,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 92
"__id__": 94
},
"_enabled": true,
"_layoutSize": {
......@@ -4681,7 +4782,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
"__id__": 93
},
"_enabled": true,
"_materials": [
......@@ -4719,10 +4820,10 @@
"_active": true,
"_components": [
{
"__id__": 100
"__id__": 102
},
{
"__id__": 101
"__id__": 103
}
],
"_prefab": null,
......@@ -4778,7 +4879,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 99
"__id__": 101
},
"_enabled": true,
"_materials": [
......@@ -4810,7 +4911,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 99
"__id__": 101
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4819,7 +4920,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 102
"__id__": 104
}
],
"_N$interactable": true,
......@@ -4895,9 +4996,6 @@
"__id__": 75
},
"_children": [
{
"__id__": 104
},
{
"__id__": 106
},
......@@ -4939,12 +5037,15 @@
},
{
"__id__": 132
},
{
"__id__": 134
}
],
"_active": false,
"_components": [
{
"__id__": 134
"__id__": 136
}
],
"_prefab": null,
......@@ -5000,13 +5101,13 @@
"_name": "1",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 105
"__id__": 107
}
],
"_prefab": null,
......@@ -5062,7 +5163,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
"__id__": 106
},
"_enabled": true,
"_materials": [
......@@ -5094,13 +5195,13 @@
"_name": "2",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 107
"__id__": 109
}
],
"_prefab": null,
......@@ -5156,7 +5257,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 106
"__id__": 108
},
"_enabled": true,
"_materials": [
......@@ -5188,13 +5289,13 @@
"_name": "3",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 109
"__id__": 111
}
],
"_prefab": null,
......@@ -5250,7 +5351,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
"__id__": 110
},
"_enabled": true,
"_materials": [
......@@ -5282,13 +5383,13 @@
"_name": "4",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 111
"__id__": 113
}
],
"_prefab": null,
......@@ -5344,7 +5445,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
"__id__": 112
},
"_enabled": true,
"_materials": [
......@@ -5376,13 +5477,13 @@
"_name": "5",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 113
"__id__": 115
}
],
"_prefab": null,
......@@ -5438,7 +5539,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 112
"__id__": 114
},
"_enabled": true,
"_materials": [
......@@ -5470,13 +5571,13 @@
"_name": "6",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 115
"__id__": 117
}
],
"_prefab": null,
......@@ -5532,7 +5633,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 114
"__id__": 116
},
"_enabled": true,
"_materials": [
......@@ -5564,13 +5665,13 @@
"_name": "7",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 117
"__id__": 119
}
],
"_prefab": null,
......@@ -5626,7 +5727,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 116
"__id__": 118
},
"_enabled": true,
"_materials": [
......@@ -5658,13 +5759,13 @@
"_name": "8",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 119
"__id__": 121
}
],
"_prefab": null,
......@@ -5720,7 +5821,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
"__id__": 120
},
"_enabled": true,
"_materials": [
......@@ -5752,13 +5853,13 @@
"_name": "9",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 121
"__id__": 123
}
],
"_prefab": null,
......@@ -5814,7 +5915,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 120
"__id__": 122
},
"_enabled": true,
"_materials": [
......@@ -5846,13 +5947,13 @@
"_name": "10",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 123
"__id__": 125
}
],
"_prefab": null,
......@@ -5908,7 +6009,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 122
"__id__": 124
},
"_enabled": true,
"_materials": [
......@@ -5940,13 +6041,13 @@
"_name": "11",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 125
"__id__": 127
}
],
"_prefab": null,
......@@ -6002,7 +6103,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
"__id__": 126
},
"_enabled": true,
"_materials": [
......@@ -6034,13 +6135,13 @@
"_name": "12",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 127
"__id__": 129
}
],
"_prefab": null,
......@@ -6096,7 +6197,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 126
"__id__": 128
},
"_enabled": true,
"_materials": [
......@@ -6128,13 +6229,13 @@
"_name": "13",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 129
"__id__": 131
}
],
"_prefab": null,
......@@ -6190,7 +6291,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 128
"__id__": 130
},
"_enabled": true,
"_materials": [
......@@ -6222,13 +6323,13 @@
"_name": "14",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 131
"__id__": 133
}
],
"_prefab": null,
......@@ -6284,7 +6385,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 130
"__id__": 132
},
"_enabled": true,
"_materials": [
......@@ -6316,13 +6417,13 @@
"_name": "15",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 133
"__id__": 135
}
],
"_prefab": null,
......@@ -6378,7 +6479,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 132
"__id__": 134
},
"_enabled": true,
"_materials": [
......@@ -6410,7 +6511,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 103
"__id__": 105
},
"_enabled": true,
"_defaultClip": {
......@@ -6439,19 +6540,19 @@
"__id__": 82
},
"frame_tips": {
"__id__": 91
"__id__": 93
},
"lb_tips": {
"__id__": 94
"__id__": 96
},
"eff_sahua": {
"__id__": 134
"__id__": 136
},
"Armature": {
"__id__": 87
"__id__": 89
},
"layoutText": {
"__id__": 92
"__id__": 94
},
"_id": "aanl6eAfxD/IRkmdVyvj7C"
},
......@@ -6464,22 +6565,22 @@
},
"_children": [
{
"__id__": 137
"__id__": 139
},
{
"__id__": 141
"__id__": 144
},
{
"__id__": 145
"__id__": 149
},
{
"__id__": 149
"__id__": 154
}
],
"_active": true,
"_components": [
{
"__id__": 153
"__id__": 159
}
],
"_prefab": null,
......@@ -6535,16 +6636,19 @@
"_name": "btn_left",
"_objFlags": 0,
"_parent": {
"__id__": 136
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 138
"__id__": 140
},
{
"__id__": 139
"__id__": 141
},
{
"__id__": 143
}
],
"_prefab": null,
......@@ -6570,7 +6674,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
439.432,
437.5,
30,
0,
0,
......@@ -6600,7 +6704,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 137
"__id__": 139
},
"_enabled": true,
"_materials": [
......@@ -6632,7 +6736,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 137
"__id__": 139
},
"_enabled": true,
"_normalMaterial": null,
......@@ -6641,7 +6745,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 140
"__id__": 142
}
],
"_N$interactable": true,
......@@ -6709,21 +6813,51 @@
"handler": "onBtnLastPage",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 0,
"_right": 180,
"_top": 0,
"_bottom": 7,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "a17QEf6yRABqIQh7RWPS9y"
},
{
"__type__": "cc.Node",
"_name": "btn_start",
"_objFlags": 0,
"_parent": {
"__id__": 136
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 142
"__id__": 145
},
{
"__id__": 143
"__id__": 146
},
{
"__id__": 148
}
],
"_prefab": null,
......@@ -6749,7 +6883,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
488.5,
496.5,
36,
0,
0,
......@@ -6779,7 +6913,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 141
"__id__": 144
},
"_enabled": true,
"_materials": [
......@@ -6811,7 +6945,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 141
"__id__": 144
},
"_enabled": true,
"_normalMaterial": null,
......@@ -6820,7 +6954,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 144
"__id__": 147
}
],
"_N$interactable": true,
......@@ -6888,21 +7022,51 @@
"handler": "onBtnReStart",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 144
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 0,
"_right": 120,
"_top": 0,
"_bottom": 7.5,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "f8VMOCQlFEoYKYUJ6K7AXa"
},
{
"__type__": "cc.Node",
"_name": "btn_right",
"_objFlags": 0,
"_parent": {
"__id__": 136
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 146
"__id__": 150
},
{
"__id__": 147
"__id__": 151
},
{
"__id__": 153
}
],
"_prefab": null,
......@@ -6928,7 +7092,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
539.096,
548,
30,
0,
0,
......@@ -6958,7 +7122,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 145
"__id__": 149
},
"_enabled": true,
"_materials": [
......@@ -6990,7 +7154,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 145
"__id__": 149
},
"_enabled": true,
"_normalMaterial": null,
......@@ -6999,7 +7163,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 148
"__id__": 152
}
],
"_N$interactable": true,
......@@ -7067,21 +7231,51 @@
"handler": "onBtnNextPage",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 149
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 0,
"_right": 70,
"_top": 0,
"_bottom": 7,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "13RC471TpKibV2E11E6ayK"
},
{
"__type__": "cc.Node",
"_name": "btn_sound",
"_objFlags": 0,
"_parent": {
"__id__": 136
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 150
"__id__": 155
},
{
"__id__": 151
"__id__": 156
},
{
"__id__": 158
}
],
"_prefab": null,
......@@ -7137,7 +7331,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 149
"__id__": 154
},
"_enabled": true,
"_materials": [
......@@ -7169,7 +7363,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 149
"__id__": 154
},
"_enabled": true,
"_normalMaterial": null,
......@@ -7178,7 +7372,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 152
"__id__": 157
}
],
"_N$interactable": true,
......@@ -7251,7 +7445,34 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
"__id__": 154
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 12,
"_left": 24.5,
"_right": 0,
"_top": 0,
"_bottom": 14.5,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "291F9VBGpJyJH61D3eeYKL"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 138
},
"_enabled": true,
"alignMode": 1,
......@@ -7284,7 +7505,7 @@
"_active": true,
"_components": [
{
"__id__": 155
"__id__": 161
}
],
"_prefab": null,
......@@ -7340,7 +7561,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 154
"__id__": 160
},
"_enabled": true,
"eff_btn": {
......@@ -7434,7 +7655,7 @@
"__id__": 75
},
"title": {
"__id__": 13
"__id__": 9
},
"_id": "4eioQSfZdPna82l0qiAEEA"
},
......@@ -7449,7 +7670,7 @@
"UIMax": [],
"topUI": [],
"canvasView": {
"__id__": 156
"__id__": 162
},
"isCanvas": true,
"_id": "5eOVDDzARGnoMLcNXyk5ml"
......
......@@ -14,6 +14,7 @@ cc.Class({
default: [],
type: cc.Widget,
},
canvasView: {
default: null,
type: cc.Canvas,
......@@ -34,6 +35,7 @@ cc.Class({
var w = (canvaSize.width) / 720;
var h = (canvaSize.height) / 1280;
this.MaxSize = w / h > 1 ? w / h : h / w;
this.setUIMax(this.MaxSize);
this.settopUI(this.MaxSize);
var scene = cc.director.getScene();
......@@ -45,7 +47,6 @@ cc.Class({
}
}, 0);
this.MaxSize = 1;
// if (window.addEventListener) {
// window.addEventListener('resize', scaleEventCallBack, false)
// } else if (window.attachEvent) {
......@@ -73,6 +74,7 @@ cc.Class({
var w = (canvaSize.width) / 750;
var h = (canvaSize.height) / 1334;
this.MaxSize = w / h > 1 ? w / h : h / w;
g.data_mgr.MaxSize = this.MaxSize;
this.setUIMax(this.MaxSize);
this.settopUI(this.MaxSize);
......@@ -83,6 +85,7 @@ cc.Class({
}
},
// //屏幕缩放事件
// scaleEventCallBack: function () {
// //setTimeout(function () {
......
......@@ -84,7 +84,6 @@ var game = cc.Class({
console.log("游戏开始:" + g.data_mgr);
//播放一个上面的音乐
this.setAudioInfo(1);
this.PlayAudio();
},
//获得随机播放的音乐并播放
......@@ -95,6 +94,7 @@ var game = cc.Class({
//设置播放信息
g.data_mgr.playId = num;
g.data_mgr.playType = type;
this.PlayAudio();
},
//重新播放音乐
......@@ -121,6 +121,8 @@ var game = cc.Class({
g.data_mgr.addPreloadAudio();
g.data_mgr.addPreloadAnima();
g.result.inst.End = true;
//初始化界面
this.UpdataUi();
......@@ -130,8 +132,6 @@ var game = cc.Class({
//游戏开始
g.game.inst.gameStart();
//清除线
this.clearLine();
},
......
/**
* result
*/
const Color_texts = ['#BE1AC1', '#24C11A', '#1A1DC1', '#9F5307'];
const Color_texts = ['#BE1AC1', '#2E6EEE', '#1A1DC1', '#770060'];
var result = cc.Class({
extends: cc.Component,
......@@ -86,7 +86,37 @@ var result = cc.Class({
// 初始化文本
initRichText(text) {
this.lb_tips.string = text;
//this.lb_tips.string = text;
// text = 'I am flying';
this.layoutText.removeAllChildren();
if (!text) {
return;
}
text = text.replace(/ /g, " |");
let arr = text.split('|');
if (arr.length <= 0) {
return;
}
this.layoutText.active = true;
this.lb_tips.string = arr[0];
this.lb_tips._forceUpdateRenderData(true)
for (let i = 0; i < arr.length; i++) {
if (arr[i + 1] == ' ') {
continue;
}
let node = cc.instantiate(this.lb_tips.node);
let label = node.getComponent(cc.Label);
label.string = arr[i];
node.parent = this.layoutText;
label._forceUpdateRenderData(true);
}
this.layoutText.getComponent(cc.Layout).updateLayout();
let width = this.layoutText.width;
if (width > 1000) {
let scale = 1000 / width;
this.layoutText.scale = scale;
}
},
//设置图片
......@@ -113,7 +143,9 @@ var result = cc.Class({
},
playAudio() {
cc.assetManager.loadRemote(this.itemInfo.group_audio_url, null, (err, clip) => {
// this.itemInfo.group_audio_url
var test = "http://staging-teach.cdn.ireadabc.com/495324991838775e49e3ca6593d432c9.mp3"
cc.assetManager.loadRemote(test, null, (err, clip) => {
this.audioID = cc.audioEngine.play(clip, false, 1);
this.audioDuration = cc.audioEngine.getDuration(this.audioID);
this.textDuration = this.audioDuration / this.layoutText.childrenCount;
......@@ -125,7 +157,7 @@ var result = cc.Class({
cc.audioEngine.stop(this.audioID);
this.unschedule(this.chengeTextColor);
this.isPlaying = false;
this.stopSpine();
// this.stopSpine();
},
chengeTextColor() {
......@@ -139,17 +171,27 @@ var result = cc.Class({
},
clearTextColor() {
for (let i = 0; i < this.layoutText.children.length; i++) {
this.layoutText.children[i].color = new cc.Color().fromHEX(Color_texts[3]);
this.layoutText.children[i].color = new cc.Color().fromHEX(Color_texts[1]);
}
},
onBtnText() {
this.clearTextColor();
this.stopAudio();
this.playAudio();
},
//点击关闭
onBtnClose: function () {
this.node.active = false;
//如果播放列表少于1则显示
if (this.End == false) {
return;
}
if (g.data_mgr.temPlayAudio.length < 1) {
//显示结算撒花
g.game.inst.showResult();
this.End = false;
} else {
//重新随机一组数据
g.game.inst.setAudioInfo(1);
......
{
"ver": "2.3.5",
"uuid": "b1526667-de09-4475-a793-de7e9b63c68d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 852,
"height": 516,
"platformSettings": {},
"subMetas": {
"frame_dragon": {
"ver": "1.0.4",
"uuid": "8c658fc0-c1e4-4993-bce4-b5cce324b69b",
"rawTextureUuid": "b1526667-de09-4475-a793-de7e9b63c68d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 852,
"height": 516,
"rawWidth": 852,
"rawHeight": 516,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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