Commit 0fa4f01c authored by Tt's avatar Tt

效果调整

parent c3b52237
......@@ -21,13 +21,13 @@ export default class LayerEnding extends cc.Component {
this.next_btn = pg.view.find(this.layer_center, "next_btn")
pg.view.touchOn(this.replay_btn, this.onTouchReplay, this)
pg.view.touchOn(this.next_btn, this.onTouchNext, this)
pg.event.on('layer_ending_show', () => {
this.showLayer();
pg.event.on('layer_ending_show', (data) => {
this.showLayer(data);
})
}
showLayer() {
showLayer(data) {
pg.view.visible(this.layer_center, true)
pg.view.setString(pg.view.find(this, 'coin_num'), 'X3');
pg.view.setString(pg.view.find(this.layer_center, 'finish_box/coin_num'), 'X' + data.coin);
let finish_cat = pg.view.find(this.layer_center, "finish_cat")
pg.view.playDBAnimation(finish_cat, "finish", 1);
......
......@@ -81,19 +81,22 @@
"__id__": 84
},
{
"__id__": 105
"__id__": 118
},
{
"__id__": 139
}
],
"_active": true,
"_components": [
{
"__id__": 121
"__id__": 155
},
{
"__id__": 122
"__id__": 156
},
{
"__id__": 123
"__id__": 157
}
],
"_prefab": null,
......@@ -3106,8 +3109,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1150,
"height": 250
"width": 1100,
"height": 220
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -3162,7 +3165,7 @@
"_N$string": "While there is life there is hope",
"_fontSize": 170,
"_lineHeight": 170,
"_enableWrapText": true,
"_enableWrapText": false,
"_N$file": {
"__uuid__": "e76aff25-445c-4315-8509-23d42bef3d57"
},
......@@ -3997,7 +4000,7 @@
},
{
"__type__": "cc.Node",
"_name": "layer_finish",
"_name": "layer_ending_hy17_hds",
"_objFlags": 0,
"_parent": {
"__id__": 2
......@@ -4005,29 +4008,17 @@
"_children": [
{
"__id__": 85
},
{
"__id__": 87
},
{
"__id__": 89
},
{
"__id__": 91
},
{
"__id__": 93
},
{
"__id__": 95
},
}
],
"_active": true,
"_components": [
{
"__id__": 97
"__id__": 116
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_prefab": {
"__id__": 117
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
......@@ -4073,23 +4064,43 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "68dYu8KqBIroGxDJ3jRt73"
"_id": "7eAmMAqa9EAZUzeHURRs2D"
},
{
"__type__": "cc.Node",
"_name": "finish_view",
"_name": "layer_center",
"_objFlags": 0,
"_parent": {
"__id__": 84
},
"_children": [],
"_active": false,
"_components": [
"_children": [
{
"__id__": 86
},
{
"__id__": 89
},
{
"__id__": 91
},
{
"__id__": 94
},
{
"__id__": 97
},
{
"__id__": 100
},
{
"__id__": 103
}
],
"_prefab": null,
"_active": false,
"_components": [],
"_prefab": {
"__id__": 115
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
......@@ -4100,8 +4111,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1080
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -4135,53 +4146,25 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "c0h4KilVhF+aJh+zbZl9Mr"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 85
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bdBQKFFgBCYK9tvJODgoK5"
"_id": "f5KC0nFvxBRprckbExAaOO"
},
{
"__type__": "cc.Node",
"_name": "gray_cover",
"_objFlags": 0,
"_parent": {
"__id__": 84
"__id__": 85
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 88
"__id__": 87
}
],
"_prefab": null,
"_prefab": {
"__id__": 88
},
"_opacity": 102,
"_color": {
"__type__": "cc.Color",
......@@ -4227,14 +4210,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "29VU/wGmpDiKTa/IsjXask"
"_id": "1dIiMS/T1CerRb2cwIHFXE"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 87
"__id__": 86
},
"_enabled": true,
"_materials": [
......@@ -4259,23 +4242,107 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "68aVGU3n5AcqKLsHaJEajA"
"_id": "68YkoP99NKjaI89TfP3Geu"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 84
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "1cfNdHF9FH3KbwZyC/Rw6p",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "bg_light",
"_name": "layer_middle",
"_objFlags": 0,
"_parent": {
"__id__": 85
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 90
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_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": "57mqIUWyRMb6W9+O9yxtNc"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 84
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "05udCU1VdI/agyYkkywj7D",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "replay_btn",
"_objFlags": 0,
"_parent": {
"__id__": 85
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 90
"__id__": 92
}
],
"_prefab": null,
"_prefab": {
"__id__": 93
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
......@@ -4286,8 +4353,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1104,
"height": 1109
"width": 153,
"height": 153
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -4298,8 +4365,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-23.467,
-16.761,
-500.013,
-340.145,
0,
0,
0,
......@@ -4321,14 +4388,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "9fmv9PiPFLa4gt+URxY6Ci"
"_id": "d8Hogu6fFIErHeJd+mHecQ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 89
"__id__": 91
},
"_enabled": true,
"_materials": [
......@@ -4339,7 +4406,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "25fb3f92-bcc7-4131-9799-223ffe697b15"
"__uuid__": "1b782eab-25d2-4314-b83a-258f7e4d7ea4"
},
"_type": 0,
"_sizeMode": 1,
......@@ -4353,23 +4420,36 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "0bE43hmTRKkoTVHDNBTi0E"
"_id": "85Rnk2+AJKU5eOFvwJrteP"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 84
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "64JkLZPOJB45Eawytu4dgS",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "replay_btn",
"_name": "bg_light",
"_objFlags": 0,
"_parent": {
"__id__": 84
"__id__": 85
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 92
"__id__": 95
}
],
"_prefab": null,
"_prefab": {
"__id__": 96
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
......@@ -4380,8 +4460,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 153,
"height": 153
"width": 1104,
"height": 1109
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -4392,8 +4472,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-500.013,
-340.145,
0,
0,
0,
0,
0,
......@@ -4415,14 +4495,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "797JaIw8RHnI1Uyn49alTD"
"_id": "d0ufcp3klBhrfmN14DlMXY"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
"__id__": 94
},
"_enabled": true,
"_materials": [
......@@ -4433,7 +4513,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1b782eab-25d2-4314-b83a-258f7e4d7ea4"
"__uuid__": "25fb3f92-bcc7-4131-9799-223ffe697b15"
},
"_type": 0,
"_sizeMode": 1,
......@@ -4447,23 +4527,36 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "9anlB4U3hMep+lkN85wb/J"
"_id": "54WZL5CPJN87MfHuvv/k2P"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 84
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "06ZiT3YYpCj6mdNSxdYMvD",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "finish_cat",
"_objFlags": 0,
"_parent": {
"__id__": 84
"__id__": 85
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 94
"__id__": 98
}
],
"_prefab": null,
"_prefab": {
"__id__": 99
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
......@@ -4509,14 +4602,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "11rRxH0PhKR6lS7UQUDp9r"
"_id": "99ORosNsZHm5L0GLAHfQEY"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 93
"__id__": 97
},
"_enabled": true,
"_materials": [
......@@ -4549,23 +4642,36 @@
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "c2/S1O7EtNv65xpW70fYEX"
"_id": "45Ny1sXjpOgLYKQcVwgc0B"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 84
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "15OJA0Q/JIlJbDN8f4ukZN",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "next_btn",
"_objFlags": 0,
"_parent": {
"__id__": 84
"__id__": 85
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 96
"__id__": 101
}
],
"_prefab": null,
"_prefab": {
"__id__": 102
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
......@@ -4611,14 +4717,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "b2SgRMNuNLwpbmEYNoG8MB"
"_id": "13fR5ihv9Cb5uGUBmoyKHU"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 95
"__id__": 100
},
"_enabled": true,
"_materials": [
......@@ -4643,33 +4749,46 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "23Cg/lkZlKiKFBQY4kDgWh"
"_id": "aeSNEGePtMeI7/sXO1KQzT"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 84
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "e68b5eJphElLrpxtQEdyxG",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "finish_box",
"_objFlags": 0,
"_parent": {
"__id__": 84
"__id__": 85
},
"_children": [
{
"__id__": 98
"__id__": 104
},
{
"__id__": 100
"__id__": 107
},
{
"__id__": 102
"__id__": 110
}
],
"_active": true,
"_components": [
{
"__id__": 104
"__id__": 113
}
],
"_prefab": null,
"_prefab": {
"__id__": 114
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
......@@ -4715,23 +4834,25 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e1eW7YcodKVqPhnVKTTnr9"
"_id": "e1L8BULfxJsqf4nrfEcuNB"
},
{
"__type__": "cc.Node",
"_name": "result_text",
"_objFlags": 0,
"_parent": {
"__id__": 97
"__id__": 103
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 99
"__id__": 105
}
],
"_prefab": null,
"_prefab": {
"__id__": 106
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
......@@ -4777,14 +4898,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "699GfsCeFNQZ6yL6i6qvHU"
"_id": "7eeFQvTYtPM6dSi/H7KjbD"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 98
"__id__": 104
},
"_enabled": true,
"_materials": [
......@@ -4812,23 +4933,682 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "71g6QjM/VFfaMT9B8kXz8m"
"_id": "7cy2T+PCBMU4K4PsRmybrP"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 84
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "eaTaVhDcBEkqwz8ACtP7x3",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "coin",
"_objFlags": 0,
"_parent": {
"__id__": 97
"__id__": 103
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 101
"__id__": 108
}
],
"_prefab": null,
"_prefab": {
"__id__": 109
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 67,
"height": 70
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
83,
10,
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": "b7WvpTH7ZHVZx8x1AlCfK9"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 107
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4c1488d1-d283-4f03-864e-742eedadf6d9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "93z0jcdBpI6Z0WUMMTZQwX"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 84
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "13IYbTThlC5rDXn6k7swYV",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "coin_num",
"_objFlags": 0,
"_parent": {
"__id__": 103
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 111
}
],
"_prefab": {
"__id__": 112
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 252,
"b": 232,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 55.04,
"height": 56.7
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
130.345,
10,
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": "02rSaZxsJP8JR65yVhaPOG"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "X5",
"_N$string": "X5",
"_fontSize": 45,
"_lineHeight": 45,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "9daHFeeMBG2YS5CCdRY6R6"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 84
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "52Z0lpksxE1JprOrhHgdow",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 103
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3180f64c-6ecd-455f-8a3d-3be96921ca7b"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "6atDmmq1RIiqpP9EadC/yu"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 84
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "911Shrt8NB/ZWFA9u7l/SL",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 84
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "7cG7U7lH9Ie5/sK83LZUCP",
"sync": false
},
{
"__type__": "8aa900+eYBD775dNwfvQqgE",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
},
"_enabled": true,
"_id": "cfHFUZnfJNHbbpeiyDx+Ym"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 84
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
},
"fileId": "",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "layer_back_hy17_hds",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 119
},
{
"__id__": 124
}
],
"_active": true,
"_components": [
{
"__id__": 136
},
{
"__id__": 137
}
],
"_prefab": {
"__id__": 138
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1080
},
"_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": "86+2LZ5yFJdYc8noxLXZZc"
},
{
"__type__": "cc.Node",
"_name": "btn_back",
"_objFlags": 0,
"_parent": {
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 120
},
{
"__id__": 121
},
{
"__id__": 122
}
],
"_prefab": {
"__id__": 123
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 189,
"height": 117
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-804.917,
439.747,
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": "21YHtxQk5BXrq6QcXidteH"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 119
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "92327074-92fd-4d4a-a8aa-32f7ed514ab1"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c3bqF0RjRILKCBZFAa/4aq"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 119
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$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": "13zYQXNMhLRJ3fftkccK4B"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 119
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 60.58299999999997,
"_right": 0,
"_top": 41.752999999999986,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "f9dcRi2RNGkLa4h3Cpoy/G"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 118
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
},
"fileId": "61ulP3c3dDLb+4SfgnWK1F",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "img_npc_voice",
"_objFlags": 0,
"_parent": {
"__id__": 118
},
"_children": [
{
"__id__": 125
},
{
"__id__": 128
},
{
"__id__": 131
}
],
"_active": true,
"_components": [
{
"__id__": 134
}
],
"_prefab": {
"__id__": 135
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-638.532,
437.61,
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": "b023TwkgNOPp47O5HFOfLa"
},
{
"__type__": "cc.Node",
"_name": "p1",
"_objFlags": 0,
"_parent": {
"__id__": 124
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 126
}
],
"_prefab": {
"__id__": 127
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
......@@ -4839,7 +5619,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 67,
"width": 68,
"height": 70
},
"_anchorPoint": {
......@@ -4851,8 +5631,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
83,
10,
-10.611,
0,
0,
0,
0,
......@@ -4874,14 +5654,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a5CO8RTElJ55D8ec5NpDk4"
"_id": "07EIp9sT9LA6Bca+SjQani"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 100
"__id__": 125
},
"_enabled": true,
"_materials": [
......@@ -4892,7 +5672,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4c1488d1-d283-4f03-864e-742eedadf6d9"
"__uuid__": "5d214bcc-ae6a-48b2-8e3e-693089d66911"
},
"_type": 0,
"_sizeMode": 1,
......@@ -4906,35 +5686,48 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "79U97xOxRHA6sRVSsAth/q"
"_id": "08LbWFKOxL/IJzbOE/fH5W"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 118
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
},
"fileId": "eeSSmA+sZKe4zFitN7jaL3",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "coin_num",
"_name": "p2",
"_objFlags": 0,
"_parent": {
"__id__": 97
"__id__": 124
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 103
"__id__": 129
}
],
"_prefab": null,
"_prefab": {
"__id__": 130
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 252,
"b": 232,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 55.04,
"height": 56.7
"width": 84,
"height": 70
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -4945,8 +5738,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
158,
10,
-2.806,
-0.005,
0,
0,
0,
......@@ -4968,14 +5761,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "513nsU905FWrGInabiHnyR"
"_id": "3faLXcUixNlbhxFfTrfWGe"
},
{
"__type__": "cc.Label",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 102
"__id__": 128
},
"_enabled": true,
"_materials": [
......@@ -4985,30 +5778,104 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "X5",
"_N$string": "X5",
"_fontSize": 45,
"_lineHeight": 45,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "8b7kF/BdREArzf3xEDKVcs"
"_spriteFrame": {
"__uuid__": "008bbd55-b1e7-4e82-bf54-f6cf40ebb738"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "31u8Fet3BIrbCdKxH+nsKA"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 118
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
},
"fileId": "29QTrf+y1JVa+D/t6K2NFr",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "p3",
"_objFlags": 0,
"_parent": {
"__id__": 124
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 132
}
],
"_prefab": {
"__id__": 133
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 95,
"height": 70
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
2.8,
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": "ef3MbGdktKO68ALiSd9EMW"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
"__id__": 131
},
"_enabled": true,
"_materials": [
......@@ -5019,7 +5886,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3180f64c-6ecd-455f-8a3d-3be96921ca7b"
"__uuid__": "603d0882-deba-4173-8432-b9da5e547d20"
},
"_type": 0,
"_sizeMode": 1,
......@@ -5033,7 +5900,104 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "694IE7RfJDXLCde/mMhSBe"
"_id": "f2kLeqp0NKwZIatWdXeEx1"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 118
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
},
"fileId": "4anvaDTjZFOb9U0HkCAMR2",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 321.46799999999996,
"_right": 0,
"_top": 102.38999999999999,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "99QYWVEEtAWqwVuuB4W5Yc"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 118
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
},
"fileId": "fft5aHS35DjoYobvKkISue",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "ebCV5coOBMRY9mzGhX5spG"
},
{
"__type__": "7ab71itR/hJz4giCFo5yFB1",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
},
"_enabled": true,
"_id": "83Pdr6PU9BUoRB9BwC31cQ"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 118
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
},
"fileId": "",
"sync": false
},
{
"__type__": "cc.Node",
......@@ -5044,13 +6008,13 @@
},
"_children": [
{
"__id__": 106
"__id__": 140
},
{
"__id__": 109
"__id__": 143
},
{
"__id__": 112
"__id__": 146
}
],
"_active": false,
......@@ -5108,11 +6072,11 @@
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 105
"__id__": 139
},
"_children": [
{
"__id__": 107
"__id__": 141
}
],
"_active": true,
......@@ -5170,13 +6134,13 @@
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 106
"__id__": 140
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 108
"__id__": 142
}
],
"_prefab": null,
......@@ -5232,7 +6196,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 107
"__id__": 141
},
"_enabled": true,
"_materials": [],
......@@ -5263,11 +6227,11 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 105
"__id__": 139
},
"_children": [
{
"__id__": 110
"__id__": 144
}
],
"_active": true,
......@@ -5325,13 +6289,13 @@
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 109
"__id__": 143
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 111
"__id__": 145
}
],
"_prefab": null,
......@@ -5387,7 +6351,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
"__id__": 144
},
"_enabled": true,
"_materials": [],
......@@ -5415,20 +6379,20 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 105
"__id__": 139
},
"_children": [
{
"__id__": 113
"__id__": 147
},
{
"__id__": 115
"__id__": 149
},
{
"__id__": 117
"__id__": 151
},
{
"__id__": 119
"__id__": 153
}
],
"_active": true,
......@@ -5486,13 +6450,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 146
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 114
"__id__": 148
}
],
"_prefab": null,
......@@ -5548,7 +6512,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 113
"__id__": 147
},
"_enabled": true,
"_clip": {
......@@ -5567,13 +6531,13 @@
"_name": "show",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 146
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 116
"__id__": 150
}
],
"_prefab": null,
......@@ -5629,7 +6593,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 115
"__id__": 149
},
"_enabled": true,
"_clip": {
......@@ -5648,13 +6612,13 @@
"_name": "coin",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 146
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 118
"__id__": 152
}
],
"_prefab": null,
......@@ -5710,7 +6674,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 117
"__id__": 151
},
"_enabled": true,
"_clip": {
......@@ -5729,13 +6693,13 @@
"_name": "over",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 146
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 120
"__id__": 154
}
],
"_prefab": null,
......@@ -5791,7 +6755,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 119
"__id__": 153
},
"_enabled": true,
"_clip": {
......
......@@ -43,6 +43,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
content: question.text
}
})
this.sentence_list.sort((A, B) => Math.random() - 0.5)
.sort((A, B) => Math.random() - 0.5)
.sort((A, B) => Math.random() - 0.5)
.sort((A, B) => Math.random() - 0.5);
}
private layer_bg: cc.Node;
......@@ -79,6 +83,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
initGame() {
this.current = -1;
this.sentence_list.sort((A, B) => Math.random() - 0.5)
.sort((A, B) => Math.random() - 0.5)
.sort((A, B) => Math.random() - 0.5)
.sort((A, B) => Math.random() - 0.5);
this.initSentence();
}
get currentQuestion() {
......@@ -312,7 +320,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
gameOver() {
pg.view.visible(this.sentence_box, false)
pg.event.emit('layer_ending_show')
pg.event.emit('layer_ending_show', {
coin: this.sentence_list.length * 3
})
}
}
......
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