Commit 32821f8b authored by Friends233's avatar Friends233

基本玩法实现

parent 44d16abf
......@@ -108,19 +108,25 @@
"__id__": 35
},
{
"__id__": 49
"__id__": 48
},
{
"__id__": 61
},
{
"__id__": 83
}
],
"_active": true,
"_components": [
{
"__id__": 86
"__id__": 120
},
{
"__id__": 87
"__id__": 121
},
{
"__id__": 88
"__id__": 122
}
],
"_prefab": null,
......@@ -1557,45 +1563,1354 @@
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "281x9V2Z1JIo2LvjjLK2l1"
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "281x9V2Z1JIo2LvjjLK2l1"
},
{
"__type__": "cc.Node",
"_name": "preImg",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 34
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 390,
"height": 109
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-630,
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": "4c07I+qvdKZq6/ZqdNPR0+"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "caba812c-2f03-48bd-81a2-1af696f3d038"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "33Ulw7JAdHw7MK3+N8drTm"
},
{
"__type__": "cc.Node",
"_name": "miniBlock",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 36
},
{
"__id__": 39
},
{
"__id__": 42
},
{
"__id__": 45
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 180
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-235,
-519,
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": "c77uiZke9AdI9/Y+bEi8+o"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
},
{
"__id__": 38
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 88,
"g": 217,
"b": 179,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 33.5,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-73.25,
70.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": "9fGJ3klytOX5bY5ocbziLE"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "490UXZAcVFBolH9bTdJw6r"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
},
"_enabled": true,
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "a4SYzpDRhLKbA1M1ndEoSa"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 40
},
{
"__id__": 41
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 88,
"g": 217,
"b": 179,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 33.5,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-38.25,
70.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": "36mLL756hCJqqDNwV9w+Hx"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e8X+I+Kf9MMKUii9R4Og6A"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "63a0+R6PtPZJEYz5VGpUZF"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 43
},
{
"__id__": 44
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 88,
"g": 217,
"b": 179,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 33.5,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-3.25,
70.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": "fer+aCFxRKwYdaDkI1rASj"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b5W6ztml5OUpbHXPnGIfOX"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
},
"_enabled": true,
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "4ecYOoNDZMP5mT5LqBUEhP"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 46
},
{
"__id__": 47
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 88,
"g": 217,
"b": 179,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 33.5,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
31.75,
70.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": "aftefayNFOAbIxQX3uji4/"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "17l0+bYu9HRY1HFZdGmn3O"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
},
"_enabled": true,
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "015qvGmjFBvZ4YMP/Y7Qz3"
},
{
"__type__": "cc.Node",
"_name": "miniBlock",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 49
},
{
"__id__": 52
},
{
"__id__": 55
},
{
"__id__": 58
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 180
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-519,
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": "ddnIXMBlxDw5OqWCvAGmh7"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 48
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 50
},
{
"__id__": 51
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 88,
"g": 217,
"b": 179,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 33.5,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-73.25,
73.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": "a3NGPseM1B55mhFR+13RA0"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "9eUSkm1N9B6qvCzniva7dv"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true,
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "556GrO+W1H8YYEQV7QGsk5"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 48
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 53
},
{
"__id__": 54
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 88,
"g": 217,
"b": 179,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 33.5,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-37.75,
73.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": "d4flY6xbdKZot2P/uJRu/Q"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 52
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "be/Uf7dBVElr/UMNGi9aYm"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 52
},
"_enabled": true,
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "b8wTK3GPxGEq+uBhKKHcW0"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 48
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 56
},
{
"__id__": 57
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 88,
"g": 217,
"b": 179,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 33.5,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-73.25,
37.75,
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": "5ah8XfVztMqZDNQY7vf2Rq"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 55
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "f2i9N9rMJNDZh5K9MfX9kj"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 55
},
"_enabled": true,
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "44nVEu4KdAZbhN8lg/Bj/x"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 48
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 59
},
{
"__id__": 60
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 88,
"g": 217,
"b": 179,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 33.5,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-37.75,
37.75,
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": "64FPjiJapKJbMcO9yy4Nfp"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d4+0FcJlJFF6Pmx6bDk2fr"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
},
"_enabled": true,
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "16X7cje5tBA76QQ2Il9Sct"
},
{
"__type__": "cc.Node",
"_name": "miniBlock",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 62
},
{
"__id__": 65
},
{
"__id__": 68
},
{
"__id__": 71
},
{
"__id__": 74
},
{
"__id__": 77
},
{
"__id__": 80
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 180
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
235,
-519,
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": "fadPG9vF1D0px7kXC2cdDK"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 63
},
{
"__id__": 64
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 88,
"g": 217,
"b": 179,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 33.5,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-71.25,
71.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": "6ficXBcBRGKK04eSTyMOsd"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "daWgs+F+dE1aI4MMuoOiwd"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "acsf/4chZMjLOWABPzxBJo"
},
{
"__type__": "cc.Node",
"_name": "pre_img",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 34
"__id__": 66
},
{
"__id__": 67
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 88,
"g": 217,
"b": 179,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 390,
"height": 109
"width": 33.5,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1606,8 +2921,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-630,
-35.75,
71.25,
0,
0,
0,
......@@ -1629,14 +2944,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "4c07I+qvdKZq6/ZqdNPR0+"
"_id": "5fPwDTBNxEtpRs2lcFnOZx"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
"__id__": 65
},
"_enabled": true,
"_materials": [
......@@ -1647,10 +2962,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "caba812c-2f03-48bd-81a2-1af696f3d038"
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -1661,48 +2976,51 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "33Ulw7JAdHw7MK3+N8drTm"
"_id": "07J9WiloZDsLXPAQB+E6co"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
},
"_enabled": true,
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "bfSpewuepEdqj7Qx3X6Sm5"
},
{
"__type__": "cc.Node",
"_name": "miniBlockLeft",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 61
},
"_children": [
{
"__id__": 36
},
{
"__id__": 39
},
{
"__id__": 42
},
{
"__id__": 45
}
],
"_children": [],
"_active": true,
"_components": [
{
"__id__": 48
"__id__": 69
},
{
"__id__": 70
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 88,
"g": 217,
"b": 179,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 180
"width": 33.5,
"height": 33.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1713,8 +3031,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-235,
-519,
-0.25,
71.25,
0,
0,
0,
......@@ -1736,23 +3054,68 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "c77uiZke9AdI9/Y+bEi8+o"
"_id": "b7ENWs5BZIDbo24XMyN1mI"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c4GZE7pVVF575SfWYOdKcB"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
},
"_enabled": true,
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "13WZLolmZCCrQ8UG8NaB38"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 35
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
"__id__": 72
},
{
"__id__": 38
"__id__": 73
}
],
"_prefab": null,
......@@ -1778,8 +3141,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-73.25,
70.25,
35.25,
71.25,
0,
0,
0,
......@@ -1801,14 +3164,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "9fGJ3klytOX5bY5ocbziLE"
"_id": "f5sKi/wbdKpZDC1yEv60ey"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
"__id__": 71
},
"_enabled": true,
"_materials": [
......@@ -1833,36 +3196,36 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "490UXZAcVFBolH9bTdJw6r"
"_id": "84atnQxyFL5LQ5xoClQv/V"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
"__id__": 71
},
"_enabled": true,
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "a4SYzpDRhLKbA1M1ndEoSa"
"_id": "ae1twQMO1PnqI0UsbVpWg0"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 35
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 40
"__id__": 75
},
{
"__id__": 41
"__id__": 76
}
],
"_prefab": null,
......@@ -1888,8 +3251,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-38.25,
70.25,
-71.25,
35.75,
0,
0,
0,
......@@ -1911,14 +3274,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "36mLL756hCJqqDNwV9w+Hx"
"_id": "baYPQtB4REgqZETl/IjjrL"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
"__id__": 74
},
"_enabled": true,
"_materials": [
......@@ -1943,34 +3306,36 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e8X+I+Kf9MMKUii9R4Og6A"
"_id": "5c5xHUP6NOYJrAJgsl2FNg"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
"__id__": 74
},
"_enabled": true,
"defaultBlock": null,
"_id": "63a0+R6PtPZJEYz5VGpUZF"
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "4br+RNEgFJSaRiKMWK40MR"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 35
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 43
"__id__": 78
},
{
"__id__": 44
"__id__": 79
}
],
"_prefab": null,
......@@ -1996,8 +3361,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-3.25,
70.25,
-71.25,
0.25,
0,
0,
0,
......@@ -2019,14 +3384,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "fer+aCFxRKwYdaDkI1rASj"
"_id": "5cMMCFrQhEAo6BkEWkkQ7N"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
"__id__": 77
},
"_enabled": true,
"_materials": [
......@@ -2051,34 +3416,36 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b5W6ztml5OUpbHXPnGIfOX"
"_id": "8fyC8KKHVKdIcWzF6ObRT4"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
"__id__": 77
},
"_enabled": true,
"defaultBlock": null,
"_id": "4ecYOoNDZMP5mT5LqBUEhP"
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_id": "65v2ha0B9MmYEPyVWheW46"
},
{
"__type__": "cc.Node",
"_name": "mb",
"_objFlags": 0,
"_parent": {
"__id__": 35
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 46
"__id__": 81
},
{
"__id__": 47
"__id__": 82
}
],
"_prefab": null,
......@@ -2104,8 +3471,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
31.75,
70.25,
-71.25,
-35.25,
0,
0,
0,
......@@ -2127,14 +3494,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "aftefayNFOAbIxQX3uji4/"
"_id": "48LBBoMyhL5rvclzo5Q7UT"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
"__id__": 80
},
"_enabled": true,
"_materials": [
......@@ -2159,28 +3526,20 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "17l0+bYu9HRY1HFZdGmn3O"
"_id": "dfdcngTHlD0qP9FRNMCp9I"
},
{
"__type__": "b1207cbMWhNVLKTFVfAq/t2",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
"__id__": 80
},
"_enabled": true,
"defaultBlock": null,
"_id": "015qvGmjFBvZ4YMP/Y7Qz3"
},
{
"__type__": "005cbl0Ta1Fzqy4+w8dpg0o",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
"defaultBlock": {
"__uuid__": "00d2b9dc-0261-4f19-854e-b24e4a40a5a6"
},
"_enabled": true,
"_id": "18XPOtkBhPbKEkV3cw686N"
"_id": "417egUOk9LtJ+/GAtqcJbS"
},
{
"__type__": "cc.Node",
......@@ -2191,25 +3550,25 @@
},
"_children": [
{
"__id__": 50
"__id__": 84
},
{
"__id__": 57
"__id__": 91
},
{
"__id__": 64
"__id__": 98
},
{
"__id__": 71
"__id__": 105
},
{
"__id__": 78
"__id__": 112
}
],
"_active": true,
"_components": [
{
"__id__": 85
"__id__": 119
}
],
"_prefab": null,
......@@ -2265,17 +3624,17 @@
"_name": "next",
"_objFlags": 0,
"_parent": {
"__id__": 49
"__id__": 83
},
"_children": [
{
"__id__": 51
"__id__": 85
}
],
"_active": true,
"_components": [
{
"__id__": 56
"__id__": 90
}
],
"_prefab": null,
......@@ -2331,20 +3690,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 50
"__id__": 84
},
"_children": [
{
"__id__": 52
"__id__": 86
}
],
"_active": true,
"_components": [
{
"__id__": 54
"__id__": 88
},
{
"__id__": 55
"__id__": 89
}
],
"_prefab": null,
......@@ -2400,13 +3759,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 51
"__id__": 85
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 53
"__id__": 87
}
],
"_prefab": null,
......@@ -2462,7 +3821,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 52
"__id__": 86
},
"_enabled": true,
"_materials": [
......@@ -2495,7 +3854,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 85
},
"_enabled": true,
"_materials": [
......@@ -2527,7 +3886,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 85
},
"_enabled": true,
"alignMode": 0,
......@@ -2554,7 +3913,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 84
},
"_enabled": true,
"_normalMaterial": null,
......@@ -2627,7 +3986,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 51
"__id__": 85
},
"_id": "dfguRopclGIqZktevHrnhT"
},
......@@ -2636,17 +3995,17 @@
"_name": "refreshProp",
"_objFlags": 0,
"_parent": {
"__id__": 49
"__id__": 83
},
"_children": [
{
"__id__": 58
"__id__": 92
}
],
"_active": true,
"_components": [
{
"__id__": 63
"__id__": 97
}
],
"_prefab": null,
......@@ -2702,20 +4061,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 57
"__id__": 91
},
"_children": [
{
"__id__": 59
"__id__": 93
}
],
"_active": true,
"_components": [
{
"__id__": 61
"__id__": 95
},
{
"__id__": 62
"__id__": 96
}
],
"_prefab": null,
......@@ -2771,13 +4130,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 58
"__id__": 92
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 94
}
],
"_prefab": null,
......@@ -2833,7 +4192,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
"__id__": 93
},
"_enabled": true,
"_materials": [
......@@ -2866,7 +4225,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
"__id__": 92
},
"_enabled": true,
"_materials": [
......@@ -2898,7 +4257,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
"__id__": 92
},
"_enabled": true,
"alignMode": 0,
......@@ -2925,7 +4284,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
"__id__": 91
},
"_enabled": true,
"_normalMaterial": null,
......@@ -2998,7 +4357,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 58
"__id__": 92
},
"_id": "06Xai9BG1CKLT3kEY+FESD"
},
......@@ -3007,17 +4366,17 @@
"_name": "addSpeed",
"_objFlags": 0,
"_parent": {
"__id__": 49
"__id__": 83
},
"_children": [
{
"__id__": 65
"__id__": 99
}
],
"_active": true,
"_components": [
{
"__id__": 70
"__id__": 104
}
],
"_prefab": null,
......@@ -3073,20 +4432,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 64
"__id__": 98
},
"_children": [
{
"__id__": 66
"__id__": 100
}
],
"_active": true,
"_components": [
{
"__id__": 68
"__id__": 102
},
{
"__id__": 69
"__id__": 103
}
],
"_prefab": null,
......@@ -3142,13 +4501,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 65
"__id__": 99
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 67
"__id__": 101
}
],
"_prefab": null,
......@@ -3204,7 +4563,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 66
"__id__": 100
},
"_enabled": true,
"_materials": [
......@@ -3237,7 +4596,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
"__id__": 99
},
"_enabled": true,
"_materials": [
......@@ -3269,7 +4628,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
"__id__": 99
},
"_enabled": true,
"alignMode": 0,
......@@ -3296,7 +4655,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 64
"__id__": 98
},
"_enabled": true,
"_normalMaterial": null,
......@@ -3369,7 +4728,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 65
"__id__": 99
},
"_id": "17ggxhM1pE6Lku10v0bXyS"
},
......@@ -3378,17 +4737,17 @@
"_name": "init",
"_objFlags": 0,
"_parent": {
"__id__": 49
"__id__": 83
},
"_children": [
{
"__id__": 72
"__id__": 106
}
],
"_active": true,
"_components": [
{
"__id__": 77
"__id__": 111
}
],
"_prefab": null,
......@@ -3444,20 +4803,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 71
"__id__": 105
},
"_children": [
{
"__id__": 73
"__id__": 107
}
],
"_active": true,
"_components": [
{
"__id__": 75
"__id__": 109
},
{
"__id__": 76
"__id__": 110
}
],
"_prefab": null,
......@@ -3513,13 +4872,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 72
"__id__": 106
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 74
"__id__": 108
}
],
"_prefab": null,
......@@ -3575,7 +4934,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 73
"__id__": 107
},
"_enabled": true,
"_materials": [
......@@ -3608,7 +4967,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
"__id__": 106
},
"_enabled": true,
"_materials": [
......@@ -3640,7 +4999,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
"__id__": 106
},
"_enabled": true,
"alignMode": 0,
......@@ -3667,7 +5026,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 71
"__id__": 105
},
"_enabled": true,
"_normalMaterial": null,
......@@ -3740,7 +5099,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 72
"__id__": 106
},
"_id": "57bHTVH8ZOjZpjTzCUb0mD"
},
......@@ -3749,17 +5108,17 @@
"_name": "start",
"_objFlags": 0,
"_parent": {
"__id__": 49
"__id__": 83
},
"_children": [
{
"__id__": 79
"__id__": 113
}
],
"_active": true,
"_components": [
{
"__id__": 84
"__id__": 118
}
],
"_prefab": null,
......@@ -3815,20 +5174,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 78
"__id__": 112
},
"_children": [
{
"__id__": 80
"__id__": 114
}
],
"_active": true,
"_components": [
{
"__id__": 82
"__id__": 116
},
{
"__id__": 83
"__id__": 117
}
],
"_prefab": null,
......@@ -3884,13 +5243,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 79
"__id__": 113
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 81
"__id__": 115
}
],
"_prefab": null,
......@@ -3946,7 +5305,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 80
"__id__": 114
},
"_enabled": true,
"_materials": [
......@@ -3979,7 +5338,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 79
"__id__": 113
},
"_enabled": true,
"_materials": [
......@@ -4011,7 +5370,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 79
"__id__": 113
},
"_enabled": true,
"alignMode": 0,
......@@ -4038,7 +5397,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 78
"__id__": 112
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4111,7 +5470,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 79
"__id__": 113
},
"_id": "6cOXQVh5BCV4WKrcZc4zUt"
},
......@@ -4120,7 +5479,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
"__id__": 83
},
"_enabled": true,
"_layoutSize": {
......
......@@ -19,5 +19,15 @@ export const Config = {
/** 块矩阵最大列 */
maxCol: 10,
/** 填入方块颜色,小方块颜色 */
miniBlockColor:'#58D9B3'
miniBlockColor:'#58D9B3',
/** 默认方块颜色,空白方块颜色 */
defaultColor:'#8FBABA',
}
/** 方块状态 */
export enum BLOCK_STATE {
/** 空的 */
EMPTY,
/** 非空 */
NON_EMPTY
}
\ No newline at end of file
import Svga from "./Components/Svga/Svga";
import { SvgaEvent } from "./Components/Svga/SvgaEvent";
import { CUSTOM_EVENT, Config, GameColors } from "./Config/GameConfig";
import { BLOCK_STATE, CUSTOM_EVENT, Config, GameColors } from "./Config/GameConfig";
import exportEvent from "./exportEvent";
import propPool from "./propPool";
import { getProbability, getRandomArrayElements, loadGameResources, numToChinese, randomNum, getUrlParam } from "./utils";
const { ccclass, property } = cc._decorator;
@ccclass
export default class GameScene extends cc.Component {
......@@ -20,19 +19,18 @@ export default class GameScene extends cc.Component {
/** 方块矩阵 */
blockMatrix: cc.Node = null
protected onLoad(): void {
// loadGameResources()
/** 开启碰撞检测 */
const cm = cc.director.getCollisionManager()
cm.enabled = true
// cm.enabledDebugDraw = true;
}
start() {
this.blockMatrix = cc.find('blockMatrix', this.node)
cc.propPool = propPool
this.setDefaultBlock()
this.addNodeEvent()
}
......@@ -41,9 +39,20 @@ export default class GameScene extends cc.Component {
setDefaultBlock() {
const { maxRow, maxCol } = this.gameConfig
const parent = this.blockMatrix
const setDefaultBlock = []
for(let i = 0;i<maxCol-1;i++){
setDefaultBlock.push(...Array(6).fill('').map((_,j) => j+i*maxRow))
}
parent.removeAllChildren()
for (let i = 0; i < maxRow; i++) {
for (let j = 0; j < maxCol; j++) {
const block = cc.instantiate(this.defaultBlock)
block.color = cc.color(this.gameConfig.defaultColor)
if(setDefaultBlock.includes(maxRow*i+j)){
const script = block.getComponent('block')
script.changeBlockState(BLOCK_STATE.NON_EMPTY)
// block.blockState = 1
}
block.setParent(parent)
}
}
......@@ -116,11 +125,6 @@ export default class GameScene extends cc.Component {
}
}
/** 出钩 */
playGame() {
if (this.isGameOver || !this.isStartGame || this.clipAni) return
this.setClipState(CLIP_STATE.PLAY)
}
/** 游戏结束 */
gameOver() {
......
......@@ -5,89 +5,36 @@
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
import { Config } from "./Config/GameConfig";
import { BLOCK_STATE, Config } from "./Config/GameConfig";
import propPool from "./propPool";
const { ccclass, property } = cc._decorator;
@ccclass
export default class Block extends cc.Component {
/** 默认底色块 */
@property(cc.Prefab)
defaultBlock: cc.Prefab = null
isMove = false
viewWidth = 0
viewHeight = 0
/** 方块状态 0空,1有方块填入 */
blockState: BLOCK_STATE = BLOCK_STATE.EMPTY
// onLoad () {}
start() {
this.viewHeight = cc.view.getVisibleSize().height
this.viewWidth = cc.view.getVisibleSize().width
this.addNodeEvent()
// const matrix = cc.find('blockMatrix', this.node.parent)
// const node = matrix.children[0]
// const k = node.convertToWorldSpaceAR(node.getPosition(), cc.v2(375, 812))
// console.log('start', k.x, k.y)
}
/** 放置block */
setBlockMatrix() {
const targetNodeWorldPos = this.node.parent.convertToWorldSpaceAR(this.node.getPosition())
const matrix = cc.find('blockMatrix', this.node.parent.parent)
const { targetPos, targetNode } = this.posFindBlock(targetNodeWorldPos)
this.isMove = false
targetNode.color = cc.color(Config.miniBlockColor)
// const targetWorldPos = this.node.convertToNodeSpaceAR(targetPos)
// const blockPos = cc.v2(targetWorldPos.x + this.node.x, targetWorldPos.y + this.node.y)
// const blockTemp = cc.propPool.isEmpyt ? cc.instantiate(this.defaultBlock) : cc.propPool.pop()
// blockTemp.setPosition(blockPos)
/** 播放清除动画 */
playClearAni(cb) {
this.changeBlockState(BLOCK_STATE.EMPTY)
// propPool.push()
}
/**
* 根据坐标位置寻找最近的方块
* @param pos 坐标
* 修改当前方块状态
* @param type 0 清空,1 填入方块
*/
posFindBlock(pos: cc.Vec2) {
const matrix = cc.find('blockMatrix', this.node.parent.parent)
let minX = 999999, minIdx = -1
const matrixPos = matrix.children.map((node, i) => {
const nodePos = matrix.convertToWorldSpaceAR(node.getPosition())
// 两点间的距离
const offsetX = Math.sqrt(Math.pow((nodePos.x - pos.x), 2) + Math.pow((nodePos.y - pos.y), 2))
if (offsetX < minX) {
minX = offsetX
minIdx = i
}
return {
nodePos,
node
}
})
return { targetPos: matrixPos[minIdx].nodePos, targetNode: matrixPos[minIdx].node }
}
addNodeEvent() {
// this.node.on(cc.Node.EventType.TOUCH_START, () => {
// this.isMove = true
// }, this)
// this.node.on(cc.Node.EventType.TOUCH_END, this.setBlockMatrix, this)
// this.node.on(cc.Node.EventType.TOUCH_MOVE, (e: cc.Event.EventTouch) => {
// if (this.isMove) {
// const pos: cc.Vec2 = e.getPreviousLocation()
// const viewW = this.viewWidth, viewH = this.viewHeight
// this.node.setPosition(pos.x - (viewW / 2), pos.y - (812 - (1624 - viewH) / 2))
// }
// }, this)
changeBlockState(type: BLOCK_STATE) {
this.blockState = type
this.node.color = cc.color(type === BLOCK_STATE.NON_EMPTY ? Config.miniBlockColor : Config.defaultColor)
}
update(dt) {
}
// update (dt) {}
}
{
"ver": "1.1.0",
"uuid": "b120771b-3168-4d54-b293-1557c0abfb76",
"uuid": "6e215ceb-8e04-418c-af8e-93be9dcfc80c",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
......
// Learn TypeScript:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
import { BLOCK_STATE, Config } from "./Config/GameConfig";
import propPool from "./propPool";
const { ccclass, property } = cc._decorator;
@ccclass
export default class BlockManager extends cc.Component {
isMove = false
viewWidth = 0
viewHeight = 0
/** 方块矩阵外层容器 */
blockMatrix: cc.Node = null
/** 默认位置 */
defaultPos: cc.Vec2 = null
start() {
this.viewHeight = cc.view.getVisibleSize().height
this.viewWidth = cc.view.getVisibleSize().width
this.defaultPos = this.node.getPosition()
this.blockMatrix = cc.find('blockMatrix', this.node.parent)
this.addNodeEvent()
}
/** 设置所有的方块复原 */
setBlockMatrixAll() {
this.isMove = false
const allBlock = this.node.children
if (this.isSetBlockMartix()) {
allBlock.forEach((node: cc.Node) => {
const scripts = node.getComponent('miniBlock')
scripts.setBlockMatrix()
})
this.checkBlockMatrix()
}
this.node.setPosition(this.defaultPos)
this.node.scale = 1
}
/** 检查块矩阵是否能够消除 */
checkBlockMatrix() {
const blockMatrix = this.blockMatrix.children.map((node) => {
const script = node.getComponent('block')
return {
node,
script,
blockState: script.blockState
}
})
const { maxCol, maxRow } = Config
const eliminateBlocks = []
// 检查行
for (let i = 0; i < maxCol; i++) {
let temp = []
for (let j = 0; j < maxRow; j++) {
const block = blockMatrix[j + i * maxCol]
if (block.blockState !== BLOCK_STATE.NON_EMPTY) break
temp.push(block)
if (temp.length === maxRow) {
eliminateBlocks.push(...temp)
}
}
}
// 检查列
for (let i = 0; i < maxRow; i++) {
let temp = []
for (let j = 0; j < maxCol; j++) {
const block = blockMatrix[i + j * maxRow]
if (block.blockState !== BLOCK_STATE.NON_EMPTY) break
temp.push(block)
if (temp.length === maxCol) {
eliminateBlocks.push(...temp)
}
}
}
this.clearMatrixBlock(eliminateBlocks)
console.log('eliminateBlocks:', eliminateBlocks)
}
/** 清理矩阵块 */
clearMatrixBlock(eliminateBlocks: cc.Node[]) {
if (eliminateBlocks.length === 0) return
eliminateBlocks.forEach(({ node, script }) => {
script.playClearAni()
})
}
/**
* 判断是否能够放入
* @returns
*/
isSetBlockMartix() {
const allBlock = this.node.children
const filterBlock = allBlock.map((node: cc.Node) => {
const script = node.getComponent('miniBlock')
return { ...script.getTargetMatrix(), script }
})
// 该目标节点是否为空
const isEmpty = filterBlock.filter(({ targetNode, script }) => {
return script.blockState === BLOCK_STATE.NON_EMPTY
}).length === 0
if (!isEmpty) return false
const allTargetNodeId = filterBlock.map(({ targetNode }) => targetNode.getSiblingIndex())
// 索引是否重复
const isRepeat = allTargetNodeId.find((_, i) => allTargetNodeId.includes(_, i + 1))
return !isRepeat && isEmpty
}
addNodeEvent() {
this.node.on(cc.Node.EventType.TOUCH_START, () => {
this.isMove = true
this.node.scale = 1.7
}, this)
this.node.on(cc.Node.EventType.TOUCH_END, () => {
this.setBlockMatrixAll()
}, this)
this.node.on(cc.Node.EventType.TOUCH_MOVE, (e: cc.Event.EventTouch) => {
if (this.isMove) {
const pos: cc.Vec2 = e.getPreviousLocation()
const viewW = this.viewWidth, viewH = this.viewHeight
this.node.setPosition(pos.x - (viewW / 2), pos.y - (812 - (1624 - viewH) / 2))
}
}, this)
}
// update (dt) {}
}
{
"ver": "1.1.0",
"uuid": "15dc8ccb-64a6-461e-8380-5ab97c0af20e",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
......@@ -5,61 +5,70 @@
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
import { BLOCK_STATE, Config } from "./Config/GameConfig";
const { ccclass, property } = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
export default class miniBlock extends cc.Component {
isMove = false
viewWidth = 0
viewHeight = 0
/** 方块矩阵外层容器 */
blockMatrix: cc.Node = null
/** 当前砖块的对应矩阵的目标砖块 */
targetNode:cc.Node = null
/** 外层容器 */
stage: cc.Canvas = null
// onLoad () {}
start() {
this.viewHeight = cc.view.getVisibleSize().height
this.viewWidth = cc.view.getVisibleSize().width
this.blockMatrix = cc.find('blockMatrix', this.node.parent)
this.stage = this.node.parent
this.addNodeEvent()
}
setBlockMatrixAll() {
this.isMove = false
const allBlock = this.node.children
allBlock.forEach((node: cc.Node) => {
const scripts = node.getComponent('block')
scripts.setBlockMatrix()
})
/** 获取目标方块 */
getTargetMatrix(){
const targetNodeWorldPos = this.node.parent.convertToWorldSpaceAR(this.node.getPosition())
const matrix = cc.find('blockMatrix', this.node.parent.parent)
const { targetPos, targetNode } = this.posFindBlock(targetNodeWorldPos)
this.targetNode = targetNode
// console.log('当前方块',this.node)
// console.log('目标方块',targetNode)
return {
targetPos,
targetNode
}
}
addNodeEvent() {
this.node.on(cc.Node.EventType.TOUCH_START, () => {
this.isMove = true
this.node.scale = 1.7
}, this)
this.node.on(cc.Node.EventType.TOUCH_END, () => {
this.setBlockMatrixAll()
}, this)
this.node.on(cc.Node.EventType.TOUCH_MOVE, (e: cc.Event.EventTouch) => {
if (this.isMove) {
const pos: cc.Vec2 = e.getPreviousLocation()
const viewW = this.viewWidth, viewH = this.viewHeight
/** 放置block */
setBlockMatrix() {
const script = this.targetNode.getComponent('block')
console.log('s',this.targetNode)
script.changeBlockState(BLOCK_STATE.NON_EMPTY)
}
this.node.setPosition(pos.x - (viewW / 2), pos.y - (812 - (1624 - viewH) / 2))
/**
* 根据坐标位置寻找最近的方块
* @param pos 坐标
*/
posFindBlock(pos: cc.Vec2) {
const matrix = cc.find('blockMatrix', this.node.parent.parent)
let minX = 999999, minIdx = -1
const matrixPos = matrix.children.map((node, i) => {
const nodePos = matrix.convertToWorldSpaceAR(node.getPosition())
// 两点间的距离
const offsetX = Math.sqrt(Math.pow((nodePos.x - pos.x), 2) + Math.pow((nodePos.y - pos.y), 2))
if (offsetX < minX) {
minX = offsetX
minIdx = i
}
return {
nodePos,
node
}
}, this)
})
return { targetPos: matrixPos[minIdx].nodePos, targetNode: matrixPos[minIdx].node }
}
// update (dt) {}
}
{
"ver": "1.1.0",
"uuid": "005cb974-4dad-45ce-acb8-fb0f1da60d28",
"uuid": "b120771b-3168-4d54-b293-1557c0abfb76",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
......
......@@ -21,10 +21,13 @@
"_components": [
{
"__id__": 2
},
{
"__id__": 3
}
],
"_prefab": {
"__id__": 3
"__id__": 4
},
"_opacity": 255,
"_color": {
......@@ -105,6 +108,16 @@
"_atlas": null,
"_id": ""
},
{
"__type__": "6e215zrjgRBjK+Ok76dz8gM",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
......
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