Commit 8024cbe2 authored by Nguyễn Quang Sáng's avatar Nguyễn Quang Sáng

first commit

parent 0b7ce095
Pipeline #1656 failed with stages
...@@ -133,13 +133,13 @@ ...@@ -133,13 +133,13 @@
"tag": 0, "tag": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": -0.5,
"y": 0.6 "y": 0
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 156.6, "width": 151.7,
"height": 76.5 "height": 75.7
}, },
"_id": "" "_id": ""
}, },
......
...@@ -133,13 +133,13 @@ ...@@ -133,13 +133,13 @@
"tag": 0, "tag": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.3, "x": -0.3,
"y": 0.2 "y": 0.2
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 75.3, "width": 75.3,
"height": 233.6 "height": 233.5
}, },
"_id": "" "_id": ""
}, },
......
...@@ -133,13 +133,13 @@ ...@@ -133,13 +133,13 @@
"tag": 0, "tag": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": -0.1, "x": 0.2,
"y": 0.1 "y": 0.1
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 156.4, "width": 153.5,
"height": 77.3 "height": 74.2
}, },
"_id": "" "_id": ""
}, },
......
...@@ -133,13 +133,13 @@ ...@@ -133,13 +133,13 @@
"tag": 0, "tag": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.3, "x": 0,
"y": 0.1 "y": 0.9
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 75.5, "width": 75.4,
"height": 155.8 "height": 155
}, },
"_id": "" "_id": ""
}, },
......
...@@ -133,12 +133,12 @@ ...@@ -133,12 +133,12 @@
"tag": 0, "tag": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.2, "x": 0.1,
"y": 0.1 "y": 0.1
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 234.9, "width": 232.8,
"height": 75.1 "height": 75.1
}, },
"_id": "" "_id": ""
......
...@@ -78,22 +78,19 @@ ...@@ -78,22 +78,19 @@
"__id__": 16 "__id__": 16
}, },
{ {
"__id__": 63 "__id__": 60
},
{
"__id__": 59
}, },
{ {
"__id__": 87 "__id__": 90
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 89 "__id__": 92
}, },
{ {
"__id__": 90 "__id__": 93
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -389,12 +386,12 @@ ...@@ -389,12 +386,12 @@
"tag": 0, "tag": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": -50,
"y": 0 "y": 0
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 10, "width": 110,
"height": 50 "height": 50
}, },
"_id": "61GV2otctOUL3smk3Q8Kny" "_id": "61GV2otctOUL3smk3Q8Kny"
...@@ -437,7 +434,7 @@ ...@@ -437,7 +434,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
254.659, 254.659,
487.531, 505.241,
0, 0,
0, 0,
0, 0,
...@@ -472,13 +469,13 @@ ...@@ -472,13 +469,13 @@
"tag": 0, "tag": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 50,
"y": 0 "y": 0
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 10, "width": 110,
"height": 50 "height": 100
}, },
"_id": "cbDWolCbpMLbl8Q7AftJko" "_id": "cbDWolCbpMLbl8Q7AftJko"
}, },
...@@ -520,7 +517,7 @@ ...@@ -520,7 +517,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
246.374, 246.374,
-9.899, -22.686,
0, 0,
0, 0,
0, 0,
...@@ -555,13 +552,13 @@ ...@@ -555,13 +552,13 @@
"tag": 0, "tag": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": -50,
"y": 0 "y": 0
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 10, "width": 110,
"height": 50 "height": 70
}, },
"_id": "dcvU9m0GlMOK021cN3//S3" "_id": "dcvU9m0GlMOK021cN3//S3"
}, },
...@@ -638,12 +635,12 @@ ...@@ -638,12 +635,12 @@
"tag": 0, "tag": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 50,
"y": 0 "y": 0
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 10, "width": 110,
"height": 50 "height": 50
}, },
"_id": "1aB5OKQttKqbIBDwID+RnA" "_id": "1aB5OKQttKqbIBDwID+RnA"
...@@ -721,12 +718,12 @@ ...@@ -721,12 +718,12 @@
"tag": 0, "tag": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 50,
"y": 0 "y": 0
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 10, "width": 110,
"height": 50 "height": 50
}, },
"_id": "96Rl2yUEBP9Zwrk1ini51T" "_id": "96Rl2yUEBP9Zwrk1ini51T"
...@@ -755,7 +752,7 @@ ...@@ -755,7 +752,7 @@
"__id__": 58 "__id__": 58
}, },
{ {
"__id__": 86 "__id__": 89
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3249,12 +3246,12 @@ ...@@ -3249,12 +3246,12 @@
"blockContainer": { "blockContainer": {
"__id__": 17 "__id__": 17
}, },
"touchSpace": {
"__id__": 59
},
"slots": { "slots": {
"__id__": 18 "__id__": 18
}, },
"replayButton": {
"__id__": 59
},
"completeEffect": { "completeEffect": {
"__uuid__": "3baee33d-6796-4280-8864-4a5ae4291f32" "__uuid__": "3baee33d-6796-4280-8864-4a5ae4291f32"
}, },
...@@ -3276,13 +3273,13 @@ ...@@ -3276,13 +3273,13 @@
} }
], ],
"numberNode": { "numberNode": {
"__id__": 61 "__id__": 77
}, },
"soundBlockFall": { "soundBlockFall": {
"__uuid__": "e7166e01-8d89-4126-98bb-bd77fbb5ee89" "__uuid__": "e7166e01-8d89-4126-98bb-bd77fbb5ee89"
}, },
"soundBlockMove": { "soundBlockMove": {
"__uuid__": "a932074e-47a4-4d01-9a33-a6be2312b409" "__uuid__": "b81fe0e8-a88a-4b65-804b-e32fa08f13a1"
}, },
"soundKeyOnHole": { "soundKeyOnHole": {
"__uuid__": "73a07431-a4c9-4b58-934f-e54589d86227" "__uuid__": "73a07431-a4c9-4b58-934f-e54589d86227"
...@@ -3297,169 +3294,19 @@ ...@@ -3297,169 +3294,19 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Touch", "_name": "replayBtn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 60 "__id__": 60
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 642,
"height": 1140
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-321,
-570,
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": "6eaz0MEHRAuaMut5A4r6Va"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
},
"_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": "5daBzPZBpGu6GgUg8HIr+8"
},
{
"__type__": "baf11mFGj1JjqKrfXZn71yp",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"numberSprites": [
{
"__uuid__": "ff528f6e-c3d6-497a-a9ce-197efa89a367"
},
{
"__uuid__": "4ef4b426-d9a4-4855-9c44-2378361925a0"
},
{
"__uuid__": "5c20e031-ae9b-4cdd-a3ae-930a4bd3a6b3"
}, },
{ "_children": [],
"__uuid__": "2b645720-28ad-4c2a-a145-f56a2682b111"
},
{
"__uuid__": "eadc461f-1a28-4b79-aa47-6f9a094112e5"
},
{
"__uuid__": "418152a0-77d1-4e77-899e-c5b6e77feb59"
},
{
"__uuid__": "43426e9f-960c-4911-ab07-51af8321b9c1"
},
{
"__uuid__": "4cd69b13-c88c-4263-b4ed-d1db93c3d54d"
},
{
"__uuid__": "205c9013-c462-4b34-b55e-934abd8a1cdb"
},
{
"__uuid__": "5ee24003-7bb9-4e49-ae38-e500fca43971"
}
],
"count9": {
"__id__": 80
},
"count99": {
"__id__": 82
},
"count999": {
"__id__": 84
},
"_id": "bajx2FiY5L2pHciKK9LuMu"
},
{
"__type__": "cc.Node",
"_name": "MoveCount",
"_objFlags": 0,
"_parent": {
"__id__": 63
},
"_children": [
{
"__id__": 79
},
{
"__id__": 81
},
{
"__id__": 83
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 61 "__id__": 86
}, },
{ {
"__id__": 85 "__id__": 88
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3473,28 +3320,28 @@ ...@@ -3473,28 +3320,28 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 170, "width": 184,
"height": 100 "height": 189
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.51,
"y": 0.5 "y": 0.534
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
323.459, 484.476,
211.571, 211.091,
0, 0,
0, 0,
0, 0,
0, 0,
1, 1,
0.762, 0.996,
0.939, 0.996,
0.762 0
] ]
}, },
"_eulerAngles": { "_eulerAngles": {
...@@ -3508,7 +3355,7 @@ ...@@ -3508,7 +3355,7 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "96KDSNV9JONKnztO8osAjq" "_id": "e4pf7+eO5AXIPKpl8PADHx"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -3519,25 +3366,28 @@ ...@@ -3519,25 +3366,28 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 64 "__id__": 61
}, },
{ {
"__id__": 68 "__id__": 65
}, },
{ {
"__id__": 73 "__id__": 59
}, },
{ {
"__id__": 62 "__id__": 70
},
{
"__id__": 79
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 77 "__id__": 84
}, },
{ {
"__id__": 78 "__id__": 85
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3593,16 +3443,16 @@ ...@@ -3593,16 +3443,16 @@
"_name": "homeBtn", "_name": "homeBtn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 63 "__id__": 60
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 65 "__id__": 62
}, },
{ {
"__id__": 67 "__id__": 64
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3658,7 +3508,7 @@ ...@@ -3658,7 +3508,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 64 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -3667,7 +3517,7 @@ ...@@ -3667,7 +3517,7 @@
"zoomScale": 0.95, "zoomScale": 0.95,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 66 "__id__": 63
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -3733,14 +3583,14 @@ ...@@ -3733,14 +3583,14 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
}, },
"_N$target": { "_N$target": {
"__id__": 64 "__id__": 61
}, },
"_id": "c38ghi9T1M74L2RNVG77k2" "_id": "c38ghi9T1M74L2RNVG77k2"
}, },
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
"target": { "target": {
"__id__": 63 "__id__": 60
}, },
"component": "", "component": "",
"_componentId": "4bc11amZLhJF7l5YKzcrMTW", "_componentId": "4bc11amZLhJF7l5YKzcrMTW",
...@@ -3752,7 +3602,7 @@ ...@@ -3752,7 +3602,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 64 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3784,19 +3634,19 @@ ...@@ -3784,19 +3634,19 @@
"_name": "soundBtn", "_name": "soundBtn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 63 "__id__": 60
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 69 "__id__": 66
}, },
{ {
"__id__": 71 "__id__": 68
}, },
{ {
"__id__": 72 "__id__": 69
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3815,14 +3665,14 @@ ...@@ -3815,14 +3665,14 @@
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0,
"y": 0.5 "y": 0.5
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
453.31225, 357.766,
923, 923,
0, 0,
0, 0,
...@@ -3852,7 +3702,7 @@ ...@@ -3852,7 +3702,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 68 "__id__": 65
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -3861,7 +3711,7 @@ ...@@ -3861,7 +3711,7 @@
"zoomScale": 0.95, "zoomScale": 0.95,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 70 "__id__": 67
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -3932,7 +3782,7 @@ ...@@ -3932,7 +3782,7 @@
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
"target": { "target": {
"__id__": 68 "__id__": 65
}, },
"component": "", "component": "",
"_componentId": "4bc11amZLhJF7l5YKzcrMTW", "_componentId": "4bc11amZLhJF7l5YKzcrMTW",
...@@ -3944,7 +3794,7 @@ ...@@ -3944,7 +3794,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 68 "__id__": 65
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3976,7 +3826,7 @@ ...@@ -3976,7 +3826,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 68 "__id__": 65
}, },
"_enabled": true, "_enabled": true,
"volumeOnSprite": { "volumeOnSprite": {
...@@ -3989,19 +3839,29 @@ ...@@ -3989,19 +3839,29 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "replayBtn", "_name": "MoveCount",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 63 "__id__": 60
}, },
"_children": [], "_children": [
{
"__id__": 71
},
{
"__id__": 73
},
{
"__id__": 75
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 74 "__id__": 77
}, },
{ {
"__id__": 76 "__id__": 78
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4015,8 +3875,8 @@ ...@@ -4015,8 +3875,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 184, "width": 170,
"height": 189 "height": 100
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -4027,16 +3887,16 @@ ...@@ -4027,16 +3887,16 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
481.962, 323.459,
204.805, 211.571,
0, 0,
0, 0,
0, 0,
0, 0,
1, 1,
0.996, 0.762,
0.996, 0.939,
0 0.762
] ]
}, },
"_eulerAngles": { "_eulerAngles": {
...@@ -4050,190 +3910,20 @@ ...@@ -4050,190 +3910,20 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "e4pf7+eO5AXIPKpl8PADHx" "_id": "96KDSNV9JONKnztO8osAjq"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 73
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 0.95,
"clickEvents": [
{
"__id__": 75
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"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": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": null,
"_id": "85rQMeaZxCPZ+Ef2Be1TUa"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 63
},
"component": "",
"_componentId": "4bc11amZLhJF7l5YKzcrMTW",
"handler": "LoadCurrentScene",
"customEventData": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 73
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f4964f55-1f13-42af-98a7-7885f867ed0a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a2+n/w9CNBJ7GP20NgWj1k"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "7bb5cfec-d8f2-47af-893c-2aba0e11139f"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "6723A9UdRP+KXJlbTUCysT"
},
{
"__type__": "4bc11amZLhJF7l5YKzcrMTW",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
},
"_enabled": true,
"volumeOnSprite": null,
"volumeOffSprite": null,
"_id": "fcQbHLUBxKU6GIzn0Rx1zR"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "9", "_name": "9",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 62 "__id__": 70
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 80 "__id__": 72
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4289,7 +3979,7 @@ ...@@ -4289,7 +3979,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 79 "__id__": 71
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4321,13 +4011,13 @@ ...@@ -4321,13 +4011,13 @@
"_name": "99", "_name": "99",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 62 "__id__": 70
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 82 "__id__": 74
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4383,7 +4073,7 @@ ...@@ -4383,7 +4073,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 81 "__id__": 73
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4415,13 +4105,13 @@ ...@@ -4415,13 +4105,13 @@
"_name": "999", "_name": "999",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 62 "__id__": 70
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 84 "__id__": 76
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4477,7 +4167,7 @@ ...@@ -4477,7 +4167,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 83 "__id__": 75
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4505,46 +4195,477 @@ ...@@ -4505,46 +4195,477 @@
"_id": "26iVoKR2VLd7gXNX+nvIBN" "_id": "26iVoKR2VLd7gXNX+nvIBN"
}, },
{ {
"__type__": "cc.Layout", "__type__": "baf11mFGj1JjqKrfXZn71yp",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 62 "__id__": 70
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "numberSprites": [
"__type__": "cc.Size", {
"width": 170, "__uuid__": "ff528f6e-c3d6-497a-a9ce-197efa89a367"
"height": 100
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
}, },
"_N$startAxis": 0, {
"_N$paddingLeft": 0, "__uuid__": "4ef4b426-d9a4-4855-9c44-2378361925a0"
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": -15,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "e6nxVGg9FEUoB2JxJH1U34"
}, },
{ {
"__type__": "cc.Sprite", "__uuid__": "5c20e031-ae9b-4cdd-a3ae-930a4bd3a6b3"
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
}, },
"_enabled": true, {
"_materials": [ "__uuid__": "2b645720-28ad-4c2a-a145-f56a2682b111"
},
{
"__uuid__": "eadc461f-1a28-4b79-aa47-6f9a094112e5"
},
{
"__uuid__": "418152a0-77d1-4e77-899e-c5b6e77feb59"
},
{
"__uuid__": "43426e9f-960c-4911-ab07-51af8321b9c1"
},
{
"__uuid__": "4cd69b13-c88c-4263-b4ed-d1db93c3d54d"
},
{
"__uuid__": "205c9013-c462-4b34-b55e-934abd8a1cdb"
},
{
"__uuid__": "5ee24003-7bb9-4e49-ae38-e500fca43971"
}
],
"count9": {
"__id__": 72
},
"count99": {
"__id__": 74
},
"count999": {
"__id__": 76
},
"_id": "bajx2FiY5L2pHciKK9LuMu"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 170,
"height": 100
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": -15,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "e6nxVGg9FEUoB2JxJH1U34"
},
{
"__type__": "cc.Node",
"_name": "outbg",
"_objFlags": 0,
"_parent": {
"__id__": 60
},
"_children": [
{
"__id__": 80
}
],
"_active": true,
"_components": [
{
"__id__": 82
},
{
"__id__": 83
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 642,
"height": 1142.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
321,
571.25,
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": "e4TXSTDtZDwJyC8aSQ4BUJ"
},
{
"__type__": "cc.Node",
"_name": "wallpaper",
"_objFlags": 0,
"_parent": {
"__id__": 79
},
"_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": 642,
"height": 1138
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-1.25,
0,
0,
0,
0,
1,
1.384,
1.384,
1.384
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "9fkNyOtjdDIIrjJWofgeu1"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 80
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "498a0d42-52b2-4f56-bc4a-50cee19c5899"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "delj6vFUhGg5V5AY4B/t1l"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 79
},
"_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": "51qX4x+xpLDJ1qqrS7edXk"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 79
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 0.1,
"_N$inverted": true,
"_id": "abMJ0wHcpJFKgG1g/RqGKp"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 60
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "7bb5cfec-d8f2-47af-893c-2aba0e11139f"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "6723A9UdRP+KXJlbTUCysT"
},
{
"__type__": "4bc11amZLhJF7l5YKzcrMTW",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 60
},
"_enabled": true,
"volumeOnSprite": null,
"volumeOffSprite": null,
"_id": "fcQbHLUBxKU6GIzn0Rx1zR"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 0.95,
"clickEvents": [
{
"__id__": 87
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"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": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": null,
"_id": "85rQMeaZxCPZ+Ef2Be1TUa"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 60
},
"component": "",
"_componentId": "4bc11amZLhJF7l5YKzcrMTW",
"handler": "LoadCurrentScene",
"customEventData": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f4964f55-1f13-42af-98a7-7885f867ed0a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a2+n/w9CNBJ7GP20NgWj1k"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_materials": [
{ {
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
} }
...@@ -4579,7 +4700,7 @@ ...@@ -4579,7 +4700,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 88 "__id__": 91
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4635,7 +4756,7 @@ ...@@ -4635,7 +4756,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 87 "__id__": 90
}, },
"_enabled": true, "_enabled": true,
"main": null, "main": null,
...@@ -4661,8 +4782,8 @@ ...@@ -4661,8 +4782,8 @@
"width": 642, "width": 642,
"height": 1140 "height": 1140
}, },
"_fitWidth": false, "_fitWidth": true,
"_fitHeight": true, "_fitHeight": false,
"_id": "59Cd0ovbdF4byw5sbjJDx7" "_id": "59Cd0ovbdF4byw5sbjJDx7"
}, },
{ {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -75,19 +75,22 @@ ...@@ -75,19 +75,22 @@
"__id__": 5 "__id__": 5
}, },
{ {
"__id__": 8 "__id__": 7
}, },
{ {
"__id__": 11 "__id__": 10
},
{
"__id__": 13
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 15 "__id__": 17
}, },
{ {
"__id__": 16 "__id__": 18
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -140,7 +143,7 @@ ...@@ -140,7 +143,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Main Camera", "_name": "wallpaper",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
...@@ -161,6 +164,100 @@ ...@@ -161,6 +164,100 @@
"b": 255, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": {
"__type__": "cc.Size",
"width": 642,
"height": 1138
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1.384,
1.384,
1.384
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "fb35JsPjBPYZPuBI9wEWK0"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "498a0d42-52b2-4f56-bc4a-50cee19c5899"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e7gTQ1XrdNqoWZ9V6VnnUk"
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 0,
...@@ -205,7 +302,7 @@ ...@@ -205,7 +302,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 3 "__id__": 5
}, },
"_enabled": true, "_enabled": true,
"_cullingMask": 4294967295, "_cullingMask": 4294967295,
...@@ -247,10 +344,10 @@ ...@@ -247,10 +344,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 6 "__id__": 8
}, },
{ {
"__id__": 7 "__id__": 9
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -306,7 +403,7 @@ ...@@ -306,7 +403,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 5 "__id__": 7
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -338,7 +435,7 @@ ...@@ -338,7 +435,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 5 "__id__": 7
}, },
"_enabled": true, "_enabled": true,
"introSound": { "introSound": {
...@@ -357,10 +454,10 @@ ...@@ -357,10 +454,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 9 "__id__": 11
}, },
{ {
"__id__": 10 "__id__": 12
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -416,7 +513,7 @@ ...@@ -416,7 +513,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 8 "__id__": 10
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -448,7 +545,7 @@ ...@@ -448,7 +545,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 8 "__id__": 10
}, },
"_enabled": true, "_enabled": true,
"_defaultClip": { "_defaultClip": {
...@@ -473,10 +570,10 @@ ...@@ -473,10 +570,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 12 "__id__": 14
}, },
{ {
"__id__": 14 "__id__": 16
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -532,7 +629,7 @@ ...@@ -532,7 +629,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 13
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -541,7 +638,7 @@ ...@@ -541,7 +638,7 @@
"zoomScale": 1.2, "zoomScale": 1.2,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 13 "__id__": 15
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -614,7 +711,7 @@ ...@@ -614,7 +711,7 @@
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
"target": { "target": {
"__id__": 11 "__id__": 13
}, },
"component": "", "component": "",
"_componentId": "4bc11amZLhJF7l5YKzcrMTW", "_componentId": "4bc11amZLhJF7l5YKzcrMTW",
...@@ -626,7 +723,7 @@ ...@@ -626,7 +723,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 13
}, },
"_enabled": true, "_enabled": true,
"volumeOnSprite": null, "volumeOnSprite": null,
...@@ -646,8 +743,8 @@ ...@@ -646,8 +743,8 @@
"width": 644, "width": 644,
"height": 1140 "height": 1140
}, },
"_fitWidth": false, "_fitWidth": true,
"_fitHeight": true, "_fitHeight": false,
"_id": "6cDBduULJLYZ9zQ79J1blC" "_id": "6cDBduULJLYZ9zQ79J1blC"
}, },
{ {
......
...@@ -10,8 +10,8 @@ const { ccclass, property } = cc._decorator; ...@@ -10,8 +10,8 @@ const { ccclass, property } = cc._decorator;
@ccclass @ccclass
export default class GamePlay extends cc.Component { export default class GamePlay extends cc.Component {
@property(cc.Node) blockContainer: cc.Node = null; @property(cc.Node) blockContainer: cc.Node = null;
@property(cc.Node) touchSpace: cc.Node = null;
@property(cc.Node) slots: cc.Node = null; @property(cc.Node) slots: cc.Node = null;
@property(cc.Node) replayButton: cc.Node = null;
@property(cc.Prefab) completeEffect: cc.Prefab = null; @property(cc.Prefab) completeEffect: cc.Prefab = null;
@property(Array(cc.Prefab)) blockTypes: Array<cc.Prefab> = @property(Array(cc.Prefab)) blockTypes: Array<cc.Prefab> =
new Array<cc.Prefab>(); new Array<cc.Prefab>();
...@@ -39,6 +39,7 @@ export default class GamePlay extends cc.Component { ...@@ -39,6 +39,7 @@ export default class GamePlay extends cc.Component {
currentLevel: number; currentLevel: number;
highestLevel: number; highestLevel: number;
isDown: boolean = false; isDown: boolean = false;
soundOnStartMove: boolean = false;
protected onLoad(): void { protected onLoad(): void {
cc.audioEngine.playEffect(this.soundBlockFall, false); cc.audioEngine.playEffect(this.soundBlockFall, false);
...@@ -96,7 +97,7 @@ export default class GamePlay extends cc.Component { ...@@ -96,7 +97,7 @@ export default class GamePlay extends cc.Component {
if (this.currentTouchLoc.y < block.lockUpY) { if (this.currentTouchLoc.y < block.lockUpY) {
block.node.position = cc.v3(block.node.position.x, pos.y); block.node.position = cc.v3(block.node.position.x, pos.y);
} }
} else if (!block.lockDown && pos.y > block.node.y) } else if (!block.lockUp && pos.y > block.node.y)
block.node.position = cc.v3(block.node.position.x, pos.y); block.node.position = cc.v3(block.node.position.x, pos.y);
} }
} }
...@@ -118,6 +119,10 @@ export default class GamePlay extends cc.Component { ...@@ -118,6 +119,10 @@ export default class GamePlay extends cc.Component {
} }
onTouchMove(event: cc.Event.EventTouch) { onTouchMove(event: cc.Event.EventTouch) {
if (!this.soundOnStartMove) {
this.soundOnStartMove = true;
cc.audioEngine.playEffect(this.soundBlockMove, false);
}
if (this.currentHoldingBlock == null) { if (this.currentHoldingBlock == null) {
this.isHolding = false; this.isHolding = false;
return; return;
...@@ -141,7 +146,7 @@ export default class GamePlay extends cc.Component { ...@@ -141,7 +146,7 @@ export default class GamePlay extends cc.Component {
block.lockLeftX = null; block.lockLeftX = null;
block.lockRightX = null; block.lockRightX = null;
} }
this.soundOnStartMove = false;
this.currentTouchLoc == null; this.currentTouchLoc == null;
this.isHolding = false; this.isHolding = false;
this.fitSlot(); this.fitSlot();
...@@ -156,6 +161,7 @@ export default class GamePlay extends cc.Component { ...@@ -156,6 +161,7 @@ export default class GamePlay extends cc.Component {
) { ) {
cc.audioEngine.playEffect(this.soundBlockMove, false); cc.audioEngine.playEffect(this.soundBlockMove, false);
this.numberNode.moveCount(); this.numberNode.moveCount();
this.isDown = false; this.isDown = false;
} }
} }
...@@ -261,8 +267,16 @@ export default class GamePlay extends cc.Component { ...@@ -261,8 +267,16 @@ export default class GamePlay extends cc.Component {
this.node.parent.convertToWorldSpaceAR(cc.Vec3.ZERO) this.node.parent.convertToWorldSpaceAR(cc.Vec3.ZERO)
); );
cc.tween(this.blockContainer).to(1, { opacity: 0 }).start(); cc.tween(this.blockContainer).to(1, { opacity: 0 }).start();
if (LocalStorage.getMinMoveAtLevel(this.currentLevel) == 0) {
LocalStorage.setMinMoveAtLevel(
this.currentLevel,
this.numberNode.currentNumber
);
}
if ( if (
LocalStorage.getMinMoveAtLevel(this.currentLevel) < LocalStorage.getMinMoveAtLevel(this.currentLevel) >
this.numberNode.currentNumber this.numberNode.currentNumber
) { ) {
LocalStorage.setMinMoveAtLevel( LocalStorage.setMinMoveAtLevel(
...@@ -279,8 +293,10 @@ export default class GamePlay extends cc.Component { ...@@ -279,8 +293,10 @@ export default class GamePlay extends cc.Component {
}) })
.delay(1.5) .delay(1.5)
.call(() => { .call(() => {
LocalStorage.setCurrentLevel((this.currentLevel += 1)); if (this.currentLevel + 1 == this.highestLevel) {
LocalStorage.setHighestLevel((this.highestLevel += 1)); LocalStorage.setHighestLevel((this.highestLevel += 1));
}
LocalStorage.setCurrentLevel((this.currentLevel += 1));
this.currentLevel = LocalStorage.getCurrentLevel(); this.currentLevel = LocalStorage.getCurrentLevel();
if (this.currentLevel > 39) { if (this.currentLevel > 39) {
cc.director.loadScene("start"); cc.director.loadScene("start");
...@@ -297,6 +313,7 @@ export default class GamePlay extends cc.Component { ...@@ -297,6 +313,7 @@ export default class GamePlay extends cc.Component {
effect.position = this.node.convertToNodeSpaceAR( effect.position = this.node.convertToNodeSpaceAR(
this.node.parent.convertToWorldSpaceAR(cc.Vec3.ZERO) this.node.parent.convertToWorldSpaceAR(cc.Vec3.ZERO)
); );
cc.tween(this.replayButton).to(1, { angle: 360 }).start();
cc.tween(this.blockContainer).to(1, { opacity: 0 }).start(); cc.tween(this.blockContainer).to(1, { opacity: 0 }).start();
cc.tween(this) cc.tween(this)
.delay(1) .delay(1)
...@@ -315,7 +332,6 @@ export default class GamePlay extends cc.Component { ...@@ -315,7 +332,6 @@ export default class GamePlay extends cc.Component {
let slots = this.slots.children; let slots = this.slots.children;
let closestSlot = null; let closestSlot = null;
let closestDis = 0; let closestDis = 0;
cc.audioEngine.playEffect(this.soundFitSlot, false);
if (this.currentHoldingBlock == null) return; if (this.currentHoldingBlock == null) return;
if ( if (
...@@ -399,6 +415,7 @@ export default class GamePlay extends cc.Component { ...@@ -399,6 +415,7 @@ export default class GamePlay extends cc.Component {
let blocks = this.blockContainer.children; let blocks = this.blockContainer.children;
let closestSlot = null; let closestSlot = null;
let closestDis = 0; let closestDis = 0;
cc.audioEngine.playEffect(this.soundFitSlot, false);
blocks.forEach((block) => { blocks.forEach((block) => {
if (block.name == "block_2" || block.name == "block_7") { if (block.name == "block_2" || block.name == "block_7") {
......
{ {
"ver": "2.0.3", "ver": "2.0.3",
"uuid": "a932074e-47a4-4d01-9a33-a6be2312b409", "uuid": "b81fe0e8-a88a-4b65-804b-e32fa08f13a1",
"importer": "audio-clip", "importer": "audio-clip",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.783673, "duration": 0.809796,
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
...@@ -6,8 +6,9 @@ body { ...@@ -6,8 +6,9 @@ body {
text-align: center; text-align: center;
background-color: black; background-color: black;
background-repeat: no-repeat;
background-image: url("./background.jpg"); background-size: cover;
background-image: url("./background.png");
font-family: Helvetica, Verdana, Arial, sans-serif; font-family: Helvetica, Verdana, Arial, sans-serif;
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
"mainCompressionType": "default", "mainCompressionType": "default",
"mainIsRemote": false, "mainIsRemote": false,
"optimizeHotUpdate": false, "optimizeHotUpdate": false,
"md5Cache": true, "md5Cache": false,
"nativeMd5Cache": true, "nativeMd5Cache": true,
"encryptJs": true, "encryptJs": true,
"xxteaKey": "801d017f-45fe-4a", "xxteaKey": "801d017f-45fe-4a",
......
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