Commit 52de0a2b authored by Friends233's avatar Friends233

随机生成游戏舞台

parent 03f5a902
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"__id__": 2 "__id__": 2
} }
], ],
"_active": true, "_active": false,
"_components": [], "_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
...@@ -90,34 +90,34 @@ ...@@ -90,34 +90,34 @@
"__id__": 22 "__id__": 22
}, },
{ {
"__id__": 54 "__id__": 48
}, },
{ {
"__id__": 78 "__id__": 72
}, },
{ {
"__id__": 80 "__id__": 74
}, },
{ {
"__id__": 82 "__id__": 76
}, },
{ {
"__id__": 86 "__id__": 80
}, },
{ {
"__id__": 90 "__id__": 84
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 93 "__id__": 87
}, },
{ {
"__id__": 94 "__id__": 88
}, },
{ {
"__id__": 95 "__id__": 89
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -578,7 +578,7 @@ ...@@ -578,7 +578,7 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "33xWjqm+pPdaKs+GmXWKrt" "_id": "46+FYCWLBDH67yjSbsmTPC"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -608,7 +608,7 @@ ...@@ -608,7 +608,7 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "feasAL3o5NHLwks0bUw916" "_id": "1fxEwbW15H2rKu0GO4i76s"
}, },
{ {
"__type__": "7c5ffhlHDpBpoDQ8wfKN7pu", "__type__": "7c5ffhlHDpBpoDQ8wfKN7pu",
...@@ -1043,23 +1043,45 @@ ...@@ -1043,23 +1043,45 @@
"__id__": 23 "__id__": 23
}, },
{ {
"__id__": 28 "__id__": 25
},
{
"__id__": 27
},
{
"__id__": 29
},
{
"__id__": 31
}, },
{ {
"__id__": 33 "__id__": 33
}, },
{ {
"__id__": 38 "__id__": 35
},
{
"__id__": 37
},
{
"__id__": 39
},
{
"__id__": 41
}, },
{ {
"__id__": 43 "__id__": 43
}, },
{ {
"__id__": 49 "__id__": 45
} }
], ],
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 47
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1071,8 +1093,8 @@ ...@@ -1071,8 +1093,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 750, "width": 846,
"height": 430 "height": 530
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1110,26 +1132,16 @@ ...@@ -1110,26 +1132,16 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "tool", "_name": "propWrp",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 22 "__id__": 22
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [],
{
"__id__": 24
},
{
"__id__": 25
},
{
"__id__": 26
}
],
"_prefab": { "_prefab": {
"__id__": 27 "__id__": 24
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1141,8 +1153,8 @@ ...@@ -1141,8 +1153,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 116, "width": 294,
"height": 139 "height": 173
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1153,8 +1165,8 @@ ...@@ -1153,8 +1165,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-10.36, -276,
134.681, 178.5,
0, 0,
0, 0,
0, 0,
...@@ -1176,70 +1188,7 @@ ...@@ -1176,70 +1188,7 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "e68POgZ+dGYYYL/9inwJtC" "_id": "7fVtKl32dGBZ7quZwkZJzn"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "de045763-871e-4d1a-8b91-ab61a2bf4477"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "0a4jwFpRxG56aQr41iaOC8"
},
{
"__type__": "cc.BoxCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"tag": 2,
"_offset": {
"__type__": "cc.Vec2",
"x": 0.8,
"y": -26.8
},
"_size": {
"__type__": "cc.Size",
"width": 93.4,
"height": 67.1
},
"_id": "d9qZp7ihREsKY5H7pWKNYV"
},
{
"__type__": "a4cebApRXhOpYXmhf5gIeC3",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_id": "f5kJwpN+1OO4CumodtSAgS"
}, },
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
...@@ -1247,33 +1196,23 @@ ...@@ -1247,33 +1196,23 @@
"__id__": 23 "__id__": 23
}, },
"asset": { "asset": {
"__uuid__": "4a763498-db53-4a9f-9f07-4e93c757e18f" "__uuid__": "5ac08756-721e-492f-893d-0bfa92750f89"
}, },
"fileId": "", "fileId": "",
"sync": false "sync": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "vehicle", "_name": "propWrp",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 22 "__id__": 22
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [],
{
"__id__": 29
},
{
"__id__": 30
},
{
"__id__": 31
}
],
"_prefab": { "_prefab": {
"__id__": 32 "__id__": 26
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1285,8 +1224,8 @@ ...@@ -1285,8 +1224,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 194, "width": 92.5,
"height": 128 "height": 173
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1297,8 +1236,8 @@ ...@@ -1297,8 +1236,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
248.696, -59.75,
-138.446, 178.5,
0, 0,
0, 0,
0, 0,
...@@ -1320,121 +1259,102 @@ ...@@ -1320,121 +1259,102 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "f0zVXooMxB0qrLXhnc/4TX" "_id": "a9JEDo8XtIlaERz6dwKwuL"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
}, },
"_enabled": true,
"_materials": [
{ {
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__type__": "cc.PrefabInfo",
} "root": {
], "__id__": 25
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "175283c1-0a28-41dd-9ca6-d0aa0aea1c1d"
}, },
"_type": 0, "asset": {
"_sizeMode": 1, "__uuid__": "5ac08756-721e-492f-893d-0bfa92750f89"
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
}, },
"_fillStart": 0, "fileId": "",
"_fillRange": 0, "sync": false
"_isTrimmedMode": true,
"_atlas": null,
"_id": "21ZpN1nB5OaqZuUxEYaOWS"
}, },
{ {
"__type__": "cc.PolygonCollider", "__type__": "cc.Node",
"_name": "", "_name": "propWrp",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 28 "__id__": 22
}, },
"_enabled": true, "_children": [],
"tag": 0, "_active": true,
"_offset": { "_components": [],
"__type__": "cc.Vec2", "_prefab": {
"x": 0, "__id__": 28
"y": 0
}, },
"points": [ "_opacity": 255,
{ "_color": {
"__type__": "cc.Vec2", "__type__": "cc.Color",
"x": -66.5, "r": 255,
"y": -45.9 "g": 255,
"b": 255,
"a": 255
}, },
{ "_contentSize": {
"__type__": "cc.Vec2", "__type__": "cc.Size",
"x": 90, "width": 92.5,
"y": -44.7 "height": 173
}, },
{ "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 55.3, "x": 0.5,
"y": 47.2 "y": 0.5
}, },
{ "_trs": {
"__type__": "cc.Vec2", "__type__": "TypedArray",
"x": -83.5, "ctor": "Float64Array",
"y": 7.2 "array": [
} 55.75,
], 178.5,
"_id": "b67snplX9Iq45Nod1lkbmP" 0,
0,
0,
0,
1,
1,
1,
1
]
}, },
{ "_eulerAngles": {
"__type__": "a4cebApRXhOpYXmhf5gIeC3", "__type__": "cc.Vec3",
"_name": "", "x": 0,
"_objFlags": 0, "y": 0,
"node": { "z": 0
"__id__": 28
}, },
"_enabled": true, "_skewX": 0,
"_id": "f4UMZtFAZOZYZan+93Zfr3" "_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "83/gFsuXtDdpz0KtEPIu66"
}, },
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 28 "__id__": 27
}, },
"asset": { "asset": {
"__uuid__": "15581c31-7919-47ec-b7ca-075be4dc7af7" "__uuid__": "5ac08756-721e-492f-893d-0bfa92750f89"
}, },
"fileId": "", "fileId": "",
"sync": false "sync": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "wheatEar", "_name": "propWrp",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 22 "__id__": 22
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [],
{
"__id__": 34
},
{
"__id__": 35
},
{
"__id__": 36
}
],
"_prefab": { "_prefab": {
"__id__": 37 "__id__": 30
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1446,7 +1366,7 @@ ...@@ -1446,7 +1366,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 157, "width": 194,
"height": 173 "height": 173
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -1458,8 +1378,8 @@ ...@@ -1458,8 +1378,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-19.134, 222,
-92.25, 178.5,
0, 0,
0, 0,
0, 0,
...@@ -1481,121 +1401,102 @@ ...@@ -1481,121 +1401,102 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "a6AaBFgMRAgqVyHQYgwZZJ" "_id": "d4gg3bleNGhantPHqVMbNL"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.PrefabInfo",
"_name": "", "root": {
"_objFlags": 0, "__id__": 29
"node": {
"__id__": 33
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "316000b6-d447-469b-89bd-d2df2c92a600"
}, },
"_type": 0, "asset": {
"_sizeMode": 1, "__uuid__": "5ac08756-721e-492f-893d-0bfa92750f89"
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
}, },
"_fillStart": 0, "fileId": "",
"_fillRange": 0, "sync": false
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bd4VI8R/ZIy4OxOEgV8vAx"
}, },
{ {
"__type__": "cc.PolygonCollider", "__type__": "cc.Node",
"_name": "", "_name": "propWrp",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 33 "__id__": 22
}, },
"_enabled": true, "_children": [],
"tag": 0, "_active": true,
"_offset": { "_components": [],
"__type__": "cc.Vec2", "_prefab": {
"x": 0, "__id__": 32
"y": 0
}, },
"points": [ "_opacity": 255,
{ "_color": {
"__type__": "cc.Vec2", "__type__": "cc.Color",
"x": -36.2, "r": 255,
"y": 74.9 "g": 255,
"b": 255,
"a": 255
}, },
{ "_contentSize": {
"__type__": "cc.Vec2", "__type__": "cc.Size",
"x": -51.5, "width": 194,
"y": -30.5 "height": 173
}, },
{ "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": -3.5, "x": 0.5,
"y": -74.7 "y": 0.5
}, },
{ "_trs": {
"__type__": "cc.Vec2", "__type__": "TypedArray",
"x": 35.4, "ctor": "Float64Array",
"y": -75 "array": [
} -326,
], 0.5,
"_id": "6dFRsr9+dMCaNzMmuzS+PV" 0,
0,
0,
0,
1,
1,
1,
1
]
}, },
{ "_eulerAngles": {
"__type__": "a4cebApRXhOpYXmhf5gIeC3", "__type__": "cc.Vec3",
"_name": "", "x": 0,
"_objFlags": 0, "y": 0,
"node": { "z": 0
"__id__": 33
}, },
"_enabled": true, "_skewX": 0,
"_id": "18hfPSrzxMaZwNNG5wTqAH" "_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "7c/qYY5dlEZYvac8cYPphq"
}, },
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 33 "__id__": 31
}, },
"asset": { "asset": {
"__uuid__": "31af85ff-d839-49b0-b337-f1f8adfbd454" "__uuid__": "5ac08756-721e-492f-893d-0bfa92750f89"
}, },
"fileId": "", "fileId": "",
"sync": false "sync": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "computer", "_name": "propWrp",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 22 "__id__": 22
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [],
{
"__id__": 39
},
{
"__id__": 40
},
{
"__id__": 41
}
],
"_prefab": { "_prefab": {
"__id__": 42 "__id__": 34
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1607,8 +1508,8 @@ ...@@ -1607,8 +1508,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 160, "width": 194,
"height": 144 "height": 173
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1619,8 +1520,8 @@ ...@@ -1619,8 +1520,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-254.344, -109,
-121.5, 0.5,
0, 0,
0, 0,
0, 0,
...@@ -1642,124 +1543,173 @@ ...@@ -1642,124 +1543,173 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "47EskioZJNgaXxiLVu39pL" "_id": "e9U+jie2VDwpz44BsKQnPW"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
}, },
"_enabled": true,
"_materials": [
{ {
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__type__": "cc.PrefabInfo",
} "root": {
], "__id__": 33
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "bf4b837c-7380-4ccf-bcb4-7dd5f6798612"
}, },
"_type": 0, "asset": {
"_sizeMode": 1, "__uuid__": "5ac08756-721e-492f-893d-0bfa92750f89"
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
}, },
"_fillStart": 0, "fileId": "",
"_fillRange": 0, "sync": false
"_isTrimmedMode": true,
"_atlas": null,
"_id": "8fU+xECY9LLrCeCiANS2kd"
}, },
{ {
"__type__": "cc.PolygonCollider", "__type__": "cc.Node",
"_name": "", "_name": "propWrp",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 38 "__id__": 22
}, },
"_enabled": true, "_children": [],
"tag": 0, "_active": true,
"_offset": { "_components": [],
"__type__": "cc.Vec2", "_prefab": {
"x": 0, "__id__": 36
"y": 0
}, },
"points": [ "_opacity": 255,
{ "_color": {
"__type__": "cc.Vec2", "__type__": "cc.Color",
"x": -14.8, "r": 255,
"y": -61.3 "g": 255,
"b": 255,
"a": 255
}, },
{ "_contentSize": {
"__type__": "cc.Vec2", "__type__": "cc.Size",
"x": 74.7, "width": 194,
"y": 7 "height": 173
}, },
{ "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 27.8, "x": 0.5,
"y": 68.6 "y": 0.5
}, },
{ "_trs": {
"__type__": "cc.Vec2", "__type__": "TypedArray",
"x": -50.8, "ctor": "Float64Array",
"y": 16.9 "array": [
} 108,
], 0.5,
"_id": "e0gN8vhHZPMbP6YEBd6vhh" 0,
0,
0,
0,
1,
1,
1,
1
]
}, },
{ "_eulerAngles": {
"__type__": "a4cebApRXhOpYXmhf5gIeC3", "__type__": "cc.Vec3",
"_name": "", "x": 0,
"_objFlags": 0, "y": 0,
"node": { "z": 0
"__id__": 38
}, },
"_enabled": true, "_skewX": 0,
"_id": "8bvyct3B5C4bTNHu6lmKep" "_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "76VtxWBaxAAZvM6yDddUtu"
}, },
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 38 "__id__": 35
}, },
"asset": { "asset": {
"__uuid__": "8c072823-2f64-4529-b9b5-facd14b6ab3d" "__uuid__": "5ac08756-721e-492f-893d-0bfa92750f89"
}, },
"fileId": "", "fileId": "",
"sync": false "sync": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "star", "_name": "propWrp",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 22 "__id__": 22
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [],
{ "_prefab": {
"__id__": 44 "__id__": 38
}, },
{ "_opacity": 255,
"__id__": 45 "_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 194,
"height": 173
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
325,
0.5,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "f0DRo3VmlJ35fXrd9wD97g"
}, },
{ {
"__id__": 46 "__type__": "cc.PrefabInfo",
"root": {
"__id__": 37
},
"asset": {
"__uuid__": "5ac08756-721e-492f-893d-0bfa92750f89"
},
"fileId": "",
"sync": false
}, },
{ {
"__id__": 47 "__type__": "cc.Node",
} "_name": "propWrp",
], "_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": { "_prefab": {
"__id__": 48 "__id__": 40
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1771,8 +1721,8 @@ ...@@ -1771,8 +1721,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 127, "width": 194,
"height": 136 "height": 173
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1783,8 +1733,8 @@ ...@@ -1783,8 +1733,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-243.227, -326,
138.001, -177.5,
0, 0,
0, 0,
0, 0,
...@@ -1806,116 +1756,149 @@ ...@@ -1806,116 +1756,149 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "1bgszQz7xGM7044CZJzPv1" "_id": "75ZdjjWrtBArtKzttrokWq"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.PrefabInfo",
"_name": "", "root": {
"_objFlags": 0, "__id__": 39
"node": {
"__id__": 43
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "b976b366-f7ae-47f1-9e5a-7128cd07872e"
}, },
"_type": 0, "asset": {
"_sizeMode": 1, "__uuid__": "5ac08756-721e-492f-893d-0bfa92750f89"
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
}, },
"_fillStart": 0, "fileId": "",
"_fillRange": 0, "sync": false
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bbSgOs3uVLnYXV44EaWtBQ"
}, },
{ {
"__type__": "cc.PolygonCollider", "__type__": "cc.Node",
"_name": "", "_name": "propWrp",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 43 "__id__": 22
}, },
"_enabled": true, "_children": [],
"tag": 1, "_active": true,
"_offset": { "_components": [],
"__type__": "cc.Vec2", "_prefab": {
"x": 0, "__id__": 42
"y": 0
}, },
"points": [ "_opacity": 255,
{ "_color": {
"__type__": "cc.Vec2", "__type__": "cc.Color",
"x": -36, "r": 255,
"y": 27.3 "g": 255,
"b": 255,
"a": 255
}, },
{ "_contentSize": {
"__type__": "cc.Vec2", "__type__": "cc.Size",
"x": -23.5, "width": 194,
"y": -14.7 "height": 173
}, },
{ "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 21.2, "x": 0.5,
"y": -15 "y": 0.5
}, },
{ "_trs": {
"__type__": "cc.Vec2", "__type__": "TypedArray",
"x": 25.5, "ctor": "Float64Array",
"y": 6.6 "array": [
-109,
-177.5,
0,
0,
0,
0,
1,
1,
1,
1
]
}, },
{ "_eulerAngles": {
"__type__": "cc.Vec2", "__type__": "cc.Vec3",
"x": 32.5, "x": 0,
"y": 25.6 "y": 0,
"z": 0
}, },
{ "_skewX": 0,
"__type__": "cc.Vec2", "_skewY": 0,
"x": -0.2, "_is3DNode": false,
"y": 50.3 "_groupIndex": 0,
} "groupIndex": 0,
], "_id": "0f85ofqKVH5qYbCtsbRJEF"
"_id": "34mWEBv4xPc4oe8DGw7Jx8"
}, },
{ {
"__type__": "a4cebApRXhOpYXmhf5gIeC3", "__type__": "cc.PrefabInfo",
"_name": "", "root": {
"_objFlags": 0, "__id__": 41
"node": {
"__id__": 43
}, },
"_enabled": true, "asset": {
"_id": "25f0ZecidJd6BgvsqsqTR9" "__uuid__": "5ac08756-721e-492f-893d-0bfa92750f89"
},
"fileId": "",
"sync": false
}, },
{ {
"__type__": "cc.Animation", "__type__": "cc.Node",
"_name": "", "_name": "propWrp",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 43 "__id__": 22
}, },
"_enabled": true, "_children": [],
"_defaultClip": { "_active": true,
"__uuid__": "e413b4d3-1bf8-4e31-9309-b9e191883421" "_components": [],
"_prefab": {
"__id__": 44
}, },
"_clips": [ "_opacity": 255,
{ "_color": {
"__uuid__": "e413b4d3-1bf8-4e31-9309-b9e191883421" "__type__": "cc.Color",
} "r": 255,
], "g": 255,
"playOnLoad": false, "b": 255,
"_id": "8aq3UFdQpPbb8aAYFE+LXG" "a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 194,
"height": 173
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
108,
-177.5,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "74CQdG2IBABLgMulrye7pb"
}, },
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
...@@ -1923,33 +1906,23 @@ ...@@ -1923,33 +1906,23 @@
"__id__": 43 "__id__": 43
}, },
"asset": { "asset": {
"__uuid__": "f3c5277f-1310-41cc-9979-2912bb5d8546" "__uuid__": "5ac08756-721e-492f-893d-0bfa92750f89"
}, },
"fileId": "", "fileId": "",
"sync": false "sync": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "safetyHat", "_name": "propWrp",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 22 "__id__": 22
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [],
{
"__id__": 50
},
{
"__id__": 51
},
{
"__id__": 52
}
],
"_prefab": { "_prefab": {
"__id__": 53 "__id__": 46
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1961,8 +1934,8 @@ ...@@ -1961,8 +1934,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 117, "width": 194,
"height": 102 "height": 173
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1973,8 +1946,8 @@ ...@@ -1973,8 +1946,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
219.967, 325,
119.302, -177.5,
0, 0,
0, 0,
0, 0,
...@@ -1996,98 +1969,50 @@ ...@@ -1996,98 +1969,50 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "61kE2nOgRInoXtrfniPLEH" "_id": "26L4g8OW1JkYSy07ss1zCc"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6bce924b-68c5-427a-bff2-1341e4393d26"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "efvEK1fDBLSaYiRNWhYZOS"
},
{
"__type__": "cc.PolygonCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true,
"tag": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
}, },
"points": [
{ {
"__type__": "cc.Vec2", "__type__": "cc.PrefabInfo",
"x": 45.4, "root": {
"y": -42.7 "__id__": 45
},
{
"__type__": "cc.Vec2",
"x": 48.4,
"y": 18.3
}, },
{ "asset": {
"__type__": "cc.Vec2", "__uuid__": "5ac08756-721e-492f-893d-0bfa92750f89"
"x": 0.3,
"y": 50
}, },
{ "fileId": "",
"__type__": "cc.Vec2", "sync": false
"x": -53.8,
"y": 23.3
}
],
"_id": "08FLwqf2xF15vowIMYSNkb"
}, },
{ {
"__type__": "a4cebApRXhOpYXmhf5gIeC3", "__type__": "cc.Layout",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 49 "__id__": 22
}, },
"_enabled": true, "_enabled": true,
"_id": "2fsuE7PQFPuofSZQOfjiZD" "_layoutSize": {
}, "__type__": "cc.Size",
{ "width": 846,
"__type__": "cc.PrefabInfo", "height": 530
"root": {
"__id__": 49
}, },
"asset": { "_resize": 0,
"__uuid__": "a3f6c718-8c5a-4f33-ac29-e3c9ea001edf" "_N$layoutType": 3,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
}, },
"fileId": "", "_N$startAxis": 0,
"sync": false "_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 23,
"_N$spacingY": 5,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "e84fzlFTxGt6LJlYayjot/"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -2098,13 +2023,13 @@ ...@@ -2098,13 +2023,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 55 "__id__": 49
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 77 "__id__": 71
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2160,20 +2085,20 @@ ...@@ -2160,20 +2085,20 @@
"_name": "clipWrp", "_name": "clipWrp",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 54 "__id__": 48
}, },
"_children": [ "_children": [
{ {
"__id__": 56 "__id__": 50
}, },
{ {
"__id__": 67 "__id__": 61
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 76 "__id__": 70
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2229,17 +2154,17 @@ ...@@ -2229,17 +2154,17 @@
"_name": "default", "_name": "default",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 55 "__id__": 49
}, },
"_children": [ "_children": [
{ {
"__id__": 57 "__id__": 51
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 66 "__id__": 60
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2295,20 +2220,20 @@ ...@@ -2295,20 +2220,20 @@
"_name": "aniNode", "_name": "aniNode",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 56 "__id__": 50
}, },
"_children": [ "_children": [
{ {
"__id__": 58 "__id__": 52
}, },
{ {
"__id__": 60 "__id__": 54
}, },
{ {
"__id__": 62 "__id__": 56
}, },
{ {
"__id__": 64 "__id__": 58
} }
], ],
"_active": true, "_active": true,
...@@ -2366,13 +2291,13 @@ ...@@ -2366,13 +2291,13 @@
"_name": "psd_186", "_name": "psd_186",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 57 "__id__": 51
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 59 "__id__": 53
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2421,14 +2346,14 @@ ...@@ -2421,14 +2346,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "04lTlHCydBnrLKOAMo+cRN" "_id": "3eJR6hVPpPcLNz859SOTME"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 58 "__id__": 52
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2451,20 +2376,20 @@ ...@@ -2451,20 +2376,20 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "9eu0vrMP5JppzRzNxr4Flv" "_id": "95F1WiOu5PsJoh2JWm5bcX"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "psd_188", "_name": "psd_188",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 57 "__id__": 51
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 61 "__id__": 55
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2513,14 +2438,14 @@ ...@@ -2513,14 +2438,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "fdk5z4sRdAWJ//GBA05F/M" "_id": "7eHihDk+dKWqS5uDiN5JUJ"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 60 "__id__": 54
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2543,20 +2468,20 @@ ...@@ -2543,20 +2468,20 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "9eZr2uMthIxIOHOaWCMAKh" "_id": "d2REWnsf9LHbic+HJfl1OK"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "psd_190", "_name": "psd_190",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 57 "__id__": 51
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 63 "__id__": 57
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2605,14 +2530,14 @@ ...@@ -2605,14 +2530,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "78z/zfcRFNX4Rs4j2BJZVU" "_id": "95k3k+oFVMYa4WHiH+mhSw"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 62 "__id__": 56
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2635,20 +2560,20 @@ ...@@ -2635,20 +2560,20 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "37RGQzxD5NHYUyRbJFyyf/" "_id": "71whya1IRAOaTFK4TiGzQT"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "psd_192", "_name": "psd_192",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 57 "__id__": 51
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 65 "__id__": 59
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2697,14 +2622,14 @@ ...@@ -2697,14 +2622,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "bbWDX09pFDebZgW6TrwuDC" "_id": "d4L4O2OuRGXJP/lyvg3zhB"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 64 "__id__": 58
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2727,14 +2652,14 @@ ...@@ -2727,14 +2652,14 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "bc97r7cvFKgoSt35xxNrAN" "_id": "9eeeNqEe1KJYu5TGSKOeMz"
}, },
{ {
"__type__": "7c5ffhlHDpBpoDQ8wfKN7pu", "__type__": "7c5ffhlHDpBpoDQ8wfKN7pu",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 56 "__id__": 50
}, },
"_enabled": true, "_enabled": true,
"_svga": { "_svga": {
...@@ -2750,29 +2675,29 @@ ...@@ -2750,29 +2675,29 @@
"_name": "clip", "_name": "clip",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 55 "__id__": 49
}, },
"_children": [ "_children": [
{ {
"__id__": 68 "__id__": 62
}, },
{ {
"__id__": 70 "__id__": 64
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 72 "__id__": 66
}, },
{ {
"__id__": 73 "__id__": 67
}, },
{ {
"__id__": 74 "__id__": 68
}, },
{ {
"__id__": 75 "__id__": 69
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2828,13 +2753,13 @@ ...@@ -2828,13 +2753,13 @@
"_name": "con", "_name": "con",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 67 "__id__": 61
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 69 "__id__": 63
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2890,7 +2815,7 @@ ...@@ -2890,7 +2815,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 68 "__id__": 62
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2920,13 +2845,13 @@ ...@@ -2920,13 +2845,13 @@
"_name": "line", "_name": "line",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 67 "__id__": 61
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 71 "__id__": 65
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2982,7 +2907,7 @@ ...@@ -2982,7 +2907,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 70 "__id__": 64
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3014,7 +2939,7 @@ ...@@ -3014,7 +2939,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 67 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3044,12 +2969,10 @@ ...@@ -3044,12 +2969,10 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 67 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"_defaultClip": { "_defaultClip": null,
"__uuid__": "728720a9-5341-458b-8a29-451eb2e596ea"
},
"_clips": [ "_clips": [
{ {
"__uuid__": "4ab0d7a5-4856-4174-95a8-440505fb37c0" "__uuid__": "4ab0d7a5-4856-4174-95a8-440505fb37c0"
...@@ -3057,9 +2980,7 @@ ...@@ -3057,9 +2980,7 @@
{ {
"__uuid__": "7d156361-594e-49a9-b5f6-5982f013494b" "__uuid__": "7d156361-594e-49a9-b5f6-5982f013494b"
}, },
{ null
"__uuid__": "728720a9-5341-458b-8a29-451eb2e596ea"
}
], ],
"playOnLoad": true, "playOnLoad": true,
"_id": "986x+TFPNNRqDrqEiUJudn" "_id": "986x+TFPNNRqDrqEiUJudn"
...@@ -3069,7 +2990,7 @@ ...@@ -3069,7 +2990,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 67 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"_id": "55zJK3GdxMLrdN54aJ+Bmr" "_id": "55zJK3GdxMLrdN54aJ+Bmr"
...@@ -3079,7 +3000,7 @@ ...@@ -3079,7 +3000,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 67 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"tag": 0, "tag": 0,
...@@ -3100,7 +3021,7 @@ ...@@ -3100,7 +3021,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 55 "__id__": 49
}, },
"_enabled": true, "_enabled": true,
"_defaultClip": { "_defaultClip": {
...@@ -3119,7 +3040,7 @@ ...@@ -3119,7 +3040,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 54 "__id__": 48
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3145,7 +3066,7 @@ ...@@ -3145,7 +3066,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 79 "__id__": 73
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3201,7 +3122,7 @@ ...@@ -3201,7 +3122,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 78 "__id__": 72
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3239,7 +3160,7 @@ ...@@ -3239,7 +3160,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 81 "__id__": 75
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3295,7 +3216,7 @@ ...@@ -3295,7 +3216,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 80 "__id__": 74
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3332,13 +3253,13 @@ ...@@ -3332,13 +3253,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 83 "__id__": 77
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 85 "__id__": 79
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3394,13 +3315,13 @@ ...@@ -3394,13 +3315,13 @@
"_name": "cd", "_name": "cd",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 82 "__id__": 76
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 84 "__id__": 78
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3456,7 +3377,7 @@ ...@@ -3456,7 +3377,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 83 "__id__": 77
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3489,7 +3410,7 @@ ...@@ -3489,7 +3410,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 82 "__id__": 76
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3525,13 +3446,13 @@ ...@@ -3525,13 +3446,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 87 "__id__": 81
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 89 "__id__": 83
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3587,13 +3508,13 @@ ...@@ -3587,13 +3508,13 @@
"_name": "starProc", "_name": "starProc",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 86 "__id__": 80
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 88 "__id__": 82
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3649,7 +3570,7 @@ ...@@ -3649,7 +3570,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 87 "__id__": 81
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3682,7 +3603,7 @@ ...@@ -3682,7 +3603,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 86 "__id__": 80
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3720,10 +3641,10 @@ ...@@ -3720,10 +3641,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 91 "__id__": 85
}, },
{ {
"__id__": 92 "__id__": 86
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3779,7 +3700,7 @@ ...@@ -3779,7 +3700,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 90 "__id__": 84
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3811,7 +3732,7 @@ ...@@ -3811,7 +3732,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 90 "__id__": 84
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -3929,6 +3850,26 @@ ...@@ -3929,6 +3850,26 @@
"procItem": { "procItem": {
"__uuid__": "579f375a-1df7-440f-aded-3c14d59e021d" "__uuid__": "579f375a-1df7-440f-aded-3c14d59e021d"
}, },
"propItem": [
{
"__uuid__": "4a763498-db53-4a9f-9f07-4e93c757e18f"
},
{
"__uuid__": "15581c31-7919-47ec-b7ca-075be4dc7af7"
},
{
"__uuid__": "a3f6c718-8c5a-4f33-ac29-e3c9ea001edf"
},
{
"__uuid__": "8c072823-2f64-4529-b9b5-facd14b6ab3d"
},
{
"__uuid__": "31af85ff-d839-49b0-b337-f1f8adfbd454"
}
],
"bsetPropItem": {
"__uuid__": "f3c5277f-1310-41cc-9979-2912bb5d8546"
},
"_id": "5dAJmx6TZDLaYAfe+sHVw2" "_id": "5dAJmx6TZDLaYAfe+sHVw2"
} }
] ]
\ No newline at end of file
...@@ -14,7 +14,7 @@ export const CUSTOM_EVENT = { ...@@ -14,7 +14,7 @@ export const CUSTOM_EVENT = {
export const Config = { export const Config = {
/** 爪子能伸出去的长度 */ /** 爪子能伸出去的长度 */
maxLong: 544, maxLong: 644,
/** 摇晃速度 */ /** 摇晃速度 */
rotationSpeed: 1, rotationSpeed: 1,
...@@ -24,4 +24,24 @@ export const Config = { ...@@ -24,4 +24,24 @@ export const Config = {
/** 高级道具移动速度 */ /** 高级道具移动速度 */
bestPropSpeed: 500, bestPropSpeed: 500,
/** 每轮生成加分道具数量 */
bestPropsNum: 3,
/** 普通道具每种最多生成数量 */
propsNum: 2,
/** 道具分布图 4*3 */
propsMap: [
[
1, 0, 0, 1,
1, 1, 1, 0,
1, 1, 1, 1
],
[
1, 0, 0, 1,
1, 1, 1, 1,
1, 0, 1, 1
]
]
} }
\ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html // - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
import { CUSTOM_EVENT, Config, LevelInfo } from "./Config/GameConfig"; import { CUSTOM_EVENT, Config, LevelInfo } from "./Config/GameConfig";
import { loadGameResources, numToChinese, set16ToRgb } from "./utils"; import { getProbability, getRandomArrayElements, loadGameResources, numToChinese, randomNum, set16ToRgb } from "./utils";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
// 爪子状态 // 爪子状态
...@@ -25,6 +25,14 @@ export default class GameScene extends cc.Component { ...@@ -25,6 +25,14 @@ export default class GameScene extends cc.Component {
@property(cc.Prefab) @property(cc.Prefab)
procItem: cc.Prefab = null procItem: cc.Prefab = null
/** 舞台道具 */
@property([cc.Prefab])
propItem: cc.Prefab[] = []
/** 加分道具 */
@property(cc.Prefab)
bsetPropItem: cc.Prefab = null
/** 当前关卡 0、1、2... */ /** 当前关卡 0、1、2... */
actLevel = 0, actLevel = 0,
...@@ -57,8 +65,11 @@ export default class GameScene extends cc.Component { ...@@ -57,8 +65,11 @@ export default class GameScene extends cc.Component {
/** 抓取的目标 */ /** 抓取的目标 */
clipTarget: cc.Node = null clipTarget: cc.Node = null
/** 场面上剩余加分道具数量 */
surplusStar = Config.bestPropsNum
protected onLoad(): void { protected onLoad(): void {
loadGameResources() // loadGameResources()
/** 开启碰撞检测 */ /** 开启碰撞检测 */
const cm = cc.director.getCollisionManager() const cm = cc.director.getCollisionManager()
cm.enabled = true cm.enabled = true
...@@ -70,12 +81,14 @@ export default class GameScene extends cc.Component { ...@@ -70,12 +81,14 @@ export default class GameScene extends cc.Component {
this.resetConfig() this.resetConfig()
this.refreshLevelInfo() this.refreshLevelInfo()
this.refreshStageProps()
this.addNodeEvent() this.addNodeEvent()
} }
/** 重置游戏设置 */ /** 重置游戏设置 */
resetConfig() { resetConfig() {
this.clipSpeed = Config.normalPropSpeed this.clipSpeed = Config.normalPropSpeed
this.surplusStar = Config.bestPropsNum
this.clip.getChildByName('line').height = Config.maxLong this.clip.getChildByName('line').height = Config.maxLong
const rotationAni = cc.find('clipMask/clipWrp', this.node) const rotationAni = cc.find('clipMask/clipWrp', this.node)
.getComponent(cc.Animation) .getComponent(cc.Animation)
...@@ -115,7 +128,7 @@ export default class GameScene extends cc.Component { ...@@ -115,7 +128,7 @@ export default class GameScene extends cc.Component {
this.clipState = state this.clipState = state
switch (state) { switch (state) {
case CLIP_STATE.DEFAULT: case CLIP_STATE.DEFAULT:
// 复旋转 // 复旋转
ani.resume() ani.resume()
// 显示默认动效 // 显示默认动效
def.active = true def.active = true
...@@ -127,6 +140,10 @@ export default class GameScene extends cc.Component { ...@@ -127,6 +140,10 @@ export default class GameScene extends cc.Component {
this.clipTarget = null this.clipTarget = null
}) })
} }
// 场面上没有剩余加分道具,刷新道具舞台
if (this.surplusStar == 0) {
this.refreshStageProps()
}
break; break;
case CLIP_STATE.PLAY: case CLIP_STATE.PLAY:
case CLIP_STATE.STOP: case CLIP_STATE.STOP:
...@@ -199,6 +216,7 @@ export default class GameScene extends cc.Component { ...@@ -199,6 +216,7 @@ export default class GameScene extends cc.Component {
setStarProc() { setStarProc() {
const proc = cc.find('procBg/proc', this.node) const proc = cc.find('procBg/proc', this.node)
const key = this.starNum const key = this.starNum
this.surplusStar--
if (key >= this.levelObjectives) return if (key >= this.levelObjectives) return
const node = cc.instantiate(this.procItem) const node = cc.instantiate(this.procItem)
...@@ -235,7 +253,65 @@ export default class GameScene extends cc.Component { ...@@ -235,7 +253,65 @@ export default class GameScene extends cc.Component {
procBg.x = -(procBg.width / 2) procBg.x = -(procBg.width / 2)
} }
/** 刷新舞台道具 */
refreshStageProps() {
this.surplusStar = Config.bestPropsNum
const gameStage = cc.find('gameStage', this.node)
const stageProps: cc.Node[] = gameStage.children
const mapIdx = Math.floor(randomNum(0, Config.propsMap.length))
const stageMap: number[] = [...Config.propsMap[mapIdx]]
// 生成加分道具
for (let i = 0; i < Config.bestPropsNum; i++) {
// 随机取
let idx = Math.floor(randomNum(0, stageMap.length))
// 找到第一个非空的位置
while (stageMap[idx % stageMap.length] !== 1) idx++
// 放入加分道具
stageMap[idx % stageMap.length] = 2
}
// 随机道具池
let propsRandom = []
for (let i = 0; i < Config.propsNum; i++) {
propsRandom.push(...this.propItem)
}
// 剩余格子数量
const emptyNum = stageMap.filter(_ => _ == 1).length
propsRandom = getRandomArrayElements(propsRandom, emptyNum)
for (let i = 0; i < stageProps.length; i++) {
const node = stageProps[i]
const k = stageMap[i]
// 随机旋转角度
const angle = randomNum(0, 90).toFixed(2)
let propNode: cc.Node = null
node.removeAllChildren()
if (k == 1) {
const pre = cc.instantiate(propsRandom.pop())
propNode = cc.instantiate(pre)
} else if (k == 2) { // 加分道具
propNode = cc.instantiate(this.bsetPropItem)
} else {
continue;
}
if (propNode) {
propNode.angle = angle > 45 ? angle - 90 : angle
propNode.setParent(node)
}
}
/** 随机翻转地图 */
const layout = gameStage.getComponent(cc.Layout)
layout.horizontalDirection = getProbability(50) ?
cc.Layout.HorizontalDirection.LEFT_TO_RIGHT : cc.Layout.HorizontalDirection.RIGHT_TO_LEFT
}
update(dt: number): void { update(dt: number): void {
if (this.isGameOver) return
// 锚点跟爪子之间的大致距离 // 锚点跟爪子之间的大致距离
const offset = 41 const offset = 41
const maxLong = Config.maxLong - offset const maxLong = Config.maxLong - offset
......
...@@ -37,9 +37,51 @@ export const numToChinese = (num) => { ...@@ -37,9 +37,51 @@ export const numToChinese = (num) => {
export const loadGameResources = async () => { export const loadGameResources = async () => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
cc.resources.preloadDir('images', cc.SpriteFrame, (err, res) => { cc.resources.preloadDir('images', cc.SpriteFrame, (err, res) => {
console.log('111',res) console.log('111', res)
resolve(res,err) resolve(res, err)
}) })
}) })
} }
/**
* 获取区间随机数 [min,max)
* @export
* @param {*} min
* @param {*} max
* @return {*}
*/
export function randomNum(min, max):number {
return Math.floor(Math.random() * (max - min)) + min
}
/**
* 从数组里随机取元素
* @param arr
* @param count
*/
export function getRandomArrayElements(arr, count) {
if (arr.length <= count) return arr;
let shuffled = arr.slice(0), i = arr.length, min = i - count, temp, index;
while (i-- > min) {
index = (i + 1) * Math.random() >> 0;
temp = shuffled[index];
shuffled[index] = shuffled[i];
shuffled[i] = temp;
}
return shuffled.slice(min);
}
/**
* 获取概率
* @param pro 1-100
*/
export function getProbability(pro) {
const randomAry = [
...Array(100-pro).fill(false),
...Array(pro).fill(true)
]
const num = Math.floor(randomNum(0,99))
return randomAry[num]
}
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
}, },
{ {
"frame": 1, "frame": 1,
"value": 40 "value": 50
}, },
{ {
"frame": 3, "frame": 3,
"value": -40 "value": -50
}, },
{ {
"frame": 3.966666666666667, "frame": 3.966666666666667,
......
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-254.344, 0,
-121.5, 0,
0, 0,
0, 0,
0, 0,
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
1, 1,
1, 1,
1, 1,
1 1.2125
] ]
}, },
"_eulerAngles": { "_eulerAngles": {
......
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "propWrp",
"_objFlags": 0,
"_parent": null,
"_children": [],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 2
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 194,
"height": 173
},
"_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": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.3.2",
"uuid": "5ac08756-721e-492f-893d-0bfa92750f89",
"importer": "prefab",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
219.967, 0,
119.302, 0,
0, 0,
0, 0,
0, 0,
......
...@@ -57,8 +57,8 @@ ...@@ -57,8 +57,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-243.227, 0,
138.001, 0,
0, 0,
0, 0,
0, 0,
......
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-10.36, 0,
134.681, 0,
0, 0,
0, 0,
0, 0,
......
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
248.696, 0,
-138.446, 0,
0, 0,
0, 0,
0, 0,
......
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-19.134, 0,
-92.25, 0,
0, 0,
0, 0,
0, 0,
......
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