Commit 9a7d3dd2 authored by Friends233's avatar Friends233

重写抓取动画,增加抓取道具判定

parent efba9419
......@@ -90,34 +90,34 @@
"__id__": 22
},
{
"__id__": 30
"__id__": 38
},
{
"__id__": 32
"__id__": 62
},
{
"__id__": 34
"__id__": 64
},
{
"__id__": 38
"__id__": 66
},
{
"__id__": 42
"__id__": 70
},
{
"__id__": 43
"__id__": 74
}
],
"_active": true,
"_components": [
{
"__id__": 46
"__id__": 77
},
{
"__id__": 47
"__id__": 78
},
{
"__id__": 48
"__id__": 79
}
],
"_prefab": null,
......@@ -578,7 +578,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "21MygTcZBCU53f2c48Pdy2"
"_id": "fb+ErnvOJDv6viSBfQulvc"
},
{
"__type__": "cc.Sprite",
......@@ -608,7 +608,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a0jhtVHlJCQKNpMQyyuDLW"
"_id": "a8jPXdD99GCbdBw/oEnapq"
},
{
"__type__": "7c5ffhlHDpBpoDQ8wfKN7pu",
......@@ -622,7 +622,7 @@
"__uuid__": "9e5682fc-bb27-4335-bc84-0efb3aa4c0cc"
},
"autoPlay": true,
"_loop": false,
"_loop": true,
"_fps": 0,
"_id": "94PjMvBPZMdbECHFgT0wqN"
},
......@@ -1033,7 +1033,7 @@
},
{
"__type__": "cc.Node",
"_name": "clipWrp",
"_name": "gameStage",
"_objFlags": 0,
"_parent": {
"__id__": 2
......@@ -1041,86 +1041,19 @@
"_children": [
{
"__id__": 23
}
],
"_active": true,
"_components": [
{
"__id__": 29
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 108,
"height": 148
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1.3
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
1.537,
285.018,
0,
0,
0,
-0.25881904510252074,
0.9659258262890683,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": -30
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "41zSTa/ipKpZUZwwFiwKm2"
},
{
"__type__": "cc.Node",
"_name": "clip",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [
{
"__id__": 24
}
],
"_active": true,
"_components": [
{
"__id__": 26
"__id__": 27
},
{
"__id__": 27
"__id__": 31
},
{
"__id__": 28
"__id__": 35
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -1132,20 +1065,20 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 120,
"height": 154
"width": 750,
"height": 430
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-41,
-152.689,
0,
0,
0,
......@@ -1167,20 +1100,26 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "439G7IeShHkriMjY6t8+gg"
"_id": "83GmnX2UVMDKrFZWM5kuB6"
},
{
"__type__": "cc.Node",
"_name": "line",
"_name": "star",
"_objFlags": 0,
"_parent": {
"__id__": 23
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
},
{
"__id__": 25
},
{
"__id__": 26
}
],
"_prefab": null,
......@@ -1194,20 +1133,20 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 11,
"height": 44
"width": 127,
"height": 136
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0.5,
12,
-212.565,
138.787,
0,
0,
0,
......@@ -1229,14 +1168,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "f5rU6EpBNLAJEiHTx2AjXn"
"_id": "1bgszQz7xGM7044CZJzPv1"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 23
},
"_enabled": true,
"_materials": [
......@@ -1247,7 +1186,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f0d6e4a1-32f5-4e09-b07d-6f92c846a696"
"__uuid__": "b976b366-f7ae-47f1-9e5a-7128cd07872e"
},
"_type": 0,
"_sizeMode": 1,
......@@ -1261,106 +1200,74 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "35Do4Bc7NNIJBpIIvPLqvS"
"_id": "bbSgOs3uVLnYXV44EaWtBQ"
},
{
"__type__": "cc.Sprite",
"__type__": "cc.PolygonCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "b08167e4-2bc5-464c-b4b1-b8646889045f"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"tag": 1,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "08c5SZbBBHG5zZiLSD9Izf"
},
"points": [
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_defaultClip": {
"__uuid__": "728720a9-5341-458b-8a29-451eb2e596ea"
"__type__": "cc.Vec2",
"x": -58,
"y": -6
},
"_clips": [
{
"__uuid__": "728720a9-5341-458b-8a29-451eb2e596ea"
"__type__": "cc.Vec2",
"x": -10,
"y": -53
},
{
"__uuid__": "4ab0d7a5-4856-4174-95a8-440505fb37c0"
"__type__": "cc.Vec2",
"x": 50,
"y": -15
},
{
"__uuid__": "7d156361-594e-49a9-b5f6-5982f013494b"
"__type__": "cc.Vec2",
"x": 1.5,
"y": 28.3
}
],
"playOnLoad": true,
"_id": "986x+TFPNNRqDrqEiUJudn"
"_id": "34mWEBv4xPc4oe8DGw7Jx8"
},
{
"__type__": "b257deNLElEQ7owjaUlEj0T",
"__type__": "a4cebApRXhOpYXmhf5gIeC3",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_id": "55zJK3GdxMLrdN54aJ+Bmr"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_defaultClip": {
"__uuid__": "eb1b6e0b-fd11-424c-ab1d-1be80e3ae8c8"
},
"_clips": [
{
"__uuid__": "eb1b6e0b-fd11-424c-ab1d-1be80e3ae8c8"
}
],
"playOnLoad": true,
"_id": "b17E4p5+ZF9p/beD/4sycv"
"_id": "25f0ZecidJd6BgvsqsqTR9"
},
{
"__type__": "cc.Node",
"_name": "midStar",
"_name": "star copy",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
"__id__": 28
},
{
"__id__": 29
},
{
"__id__": 30
}
],
"_prefab": null,
......@@ -1374,8 +1281,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 101,
"height": 100
"width": 127,
"height": 136
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1386,8 +1293,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
1,
289.12,
-239.933,
-94.407,
0,
0,
0,
......@@ -1409,14 +1316,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "5dsFaTSM5EfJ+0iSTIWzwU"
"_id": "7cFMNuoVlLCri7I9AWBRC1"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
"__id__": 27
},
"_enabled": true,
"_materials": [
......@@ -1427,7 +1334,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3c82d5a7-1f45-4304-a86b-25a2c6071698"
"__uuid__": "b976b366-f7ae-47f1-9e5a-7128cd07872e"
},
"_type": 0,
"_sizeMode": 1,
......@@ -1441,20 +1348,74 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e3xfC3duRAo4cxc2hcl4gl"
"_id": "41xok7ErlG+6thLErKa4ng"
},
{
"__type__": "cc.PolygonCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"tag": 1,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"points": [
{
"__type__": "cc.Vec2",
"x": -58,
"y": -6
},
{
"__type__": "cc.Vec2",
"x": -10,
"y": -53
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": -15
},
{
"__type__": "cc.Vec2",
"x": 1.5,
"y": 28.3
}
],
"_id": "00lLX5viRHAqjmp28W4lhU"
},
{
"__type__": "a4cebApRXhOpYXmhf5gIeC3",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"_id": "75G2Y3Li5B24HmfTAmmWy5"
},
{
"__type__": "cc.Node",
"_name": "levelName",
"_name": "star copy",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 32
},
{
"__id__": 33
},
{
"__id__": 34
}
],
"_prefab": null,
......@@ -1468,8 +1429,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 66,
"height": 27.72
"width": 127,
"height": 136
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1480,8 +1441,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
552.5,
228.465,
86.786,
0,
0,
0,
......@@ -1503,14 +1464,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "ffu8fos3JGQ4ajLblGg6kk"
"_id": "c1vnL8CjRIiKLofCW+dA9+"
},
{
"__type__": "cc.Label",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
"__id__": 31
},
"_enabled": true,
"_materials": [
......@@ -1520,21 +1481,1417 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "第三关",
"_N$string": "第三关",
"_fontSize": 22,
"_lineHeight": 22,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_spriteFrame": {
"__uuid__": "b976b366-f7ae-47f1-9e5a-7128cd07872e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "8en/H8HKpJCImns0PPnopk"
},
{
"__type__": "cc.PolygonCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
},
"_enabled": true,
"tag": 1,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"points": [
{
"__type__": "cc.Vec2",
"x": -58,
"y": -6
},
{
"__type__": "cc.Vec2",
"x": -10,
"y": -53
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": -15
},
{
"__type__": "cc.Vec2",
"x": 1.5,
"y": 28.3
}
],
"_id": "6b0Y8bf+ZGsrskjouCC+rE"
},
{
"__type__": "a4cebApRXhOpYXmhf5gIeC3",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
},
"_enabled": true,
"_id": "74FbJeF19ExJpO9gQNTX1I"
},
{
"__type__": "cc.Node",
"_name": "tool",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
},
{
"__id__": 37
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 116,
"height": 139
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
42,
-125.311,
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": "f4bScMUYlAq58Y2wTLo+7z"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_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": "a54OQapGdGSZfvLlg7BH9l"
},
{
"__type__": "cc.BoxCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"tag": 2,
"_offset": {
"__type__": "cc.Vec2",
"x": -1,
"y": -29.7
},
"_size": {
"__type__": "cc.Size",
"width": 71.4,
"height": 44.4
},
"_id": "7e+/7SkgdMWoXJhOQXAgP/"
},
{
"__type__": "cc.Node",
"_name": "clipMask",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 39
}
],
"_active": true,
"_components": [
{
"__id__": 61
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 800
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
287,
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": "0eg/vLNd1FcYyJXkBB7UIS"
},
{
"__type__": "cc.Node",
"_name": "clipWrp",
"_objFlags": 0,
"_parent": {
"__id__": 38
},
"_children": [
{
"__id__": 40
},
{
"__id__": 51
}
],
"_active": true,
"_components": [
{
"__id__": 60
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 233,
"height": 148
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1.3
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
-0.3420201433256687,
0.9396926207859084,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": -40
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "41zSTa/ipKpZUZwwFiwKm2"
},
{
"__type__": "cc.Node",
"_name": "default",
"_objFlags": 0,
"_parent": {
"__id__": 39
},
"_children": [
{
"__id__": 41
}
],
"_active": true,
"_components": [
{
"__id__": 50
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 120,
"height": 154
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-108,
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": "40843POktPwb3f6ISu3RCP"
},
{
"__type__": "cc.Node",
"_name": "aniNode",
"_objFlags": 0,
"_parent": {
"__id__": 40
},
"_children": [
{
"__id__": 42
},
{
"__id__": 44
},
{
"__id__": 46
},
{
"__id__": 48
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-60,
77,
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": "18i6n8079A14hZjyBIhLRw"
},
{
"__type__": "cc.Node",
"_name": "psd_186",
"_objFlags": 0,
"_parent": {
"__id__": 41
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 43
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 11,
"height": 44
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 1
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
55,
10.032590866088867,
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": "f4jM4bpL9CJr1Zllc50N2d"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e2dc7VBsFICKAyab+cspuf"
},
{
"__type__": "cc.Node",
"_name": "psd_188",
"_objFlags": 0,
"_parent": {
"__id__": 41
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 45
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 38,
"height": 73
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 1
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
69.3408432006836,
82.41940307617188,
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": "97P6cF8sNNvIlWd/0/Vdgj"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "74TJmTnBFDcoEQA7JJGNr8"
},
{
"__type__": "cc.Node",
"_name": "psd_190",
"_objFlags": 0,
"_parent": {
"__id__": 41
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 47
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 38,
"height": 73
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 1
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
15.52852725982666,
65.67514038085938,
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": "f348agwZ5HQJ15jXxAzNdn"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 46
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "82CuBmex5DbpkAOeJPYA5g"
},
{
"__type__": "cc.Node",
"_name": "psd_192",
"_objFlags": 0,
"_parent": {
"__id__": 41
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 49
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 56,
"height": 69
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 1
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
32,
36.30580520629883,
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": "2bF7u4sN9BL7a5/gRvz9N4"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 48
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "cfHoaUc45BuonFLtmNZKUc"
},
{
"__type__": "7c5ffhlHDpBpoDQ8wfKN7pu",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 40
},
"_enabled": true,
"_svga": {
"__uuid__": "ae99ee69-8f8f-4af8-8db4-765ae4593fd9"
},
"autoPlay": true,
"_loop": true,
"_fps": 30,
"_id": "4fT7fyCWRPdqBmv0t781Yz"
},
{
"__type__": "cc.Node",
"_name": "clip",
"_objFlags": 0,
"_parent": {
"__id__": 39
},
"_children": [
{
"__id__": 52
},
{
"__id__": 54
}
],
"_active": true,
"_components": [
{
"__id__": 56
},
{
"__id__": 57
},
{
"__id__": 58
},
{
"__id__": 59
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 133,
"height": 154
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-41,
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": "439G7IeShHkriMjY6t8+gg"
},
{
"__type__": "cc.Node",
"_name": "con",
"_objFlags": 0,
"_parent": {
"__id__": 51
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 53
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 133,
"height": 122
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-83,
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": "05p1aj37ZI8JV9W2KCuQGY"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 52
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "32Qiio7GVMUL0tmiR5fVn8"
},
{
"__type__": "cc.Node",
"_name": "line",
"_objFlags": 0,
"_parent": {
"__id__": 51
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 55
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 11,
"height": 544
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0.5,
-23.085,
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": "f5rU6EpBNLAJEiHTx2AjXn"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f0d6e4a1-32f5-4e09-b07d-6f92c846a696"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "35Do4Bc7NNIJBpIIvPLqvS"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "08c5SZbBBHG5zZiLSD9Izf"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
},
"_enabled": true,
"_defaultClip": {
"__uuid__": "728720a9-5341-458b-8a29-451eb2e596ea"
},
"_clips": [
{
"__uuid__": "4ab0d7a5-4856-4174-95a8-440505fb37c0"
},
{
"__uuid__": "7d156361-594e-49a9-b5f6-5982f013494b"
}
],
"playOnLoad": true,
"_id": "986x+TFPNNRqDrqEiUJudn"
},
{
"__type__": "b257deNLElEQ7owjaUlEj0T",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
},
"_enabled": true,
"_id": "55zJK3GdxMLrdN54aJ+Bmr"
},
{
"__type__": "cc.BoxCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
},
"_enabled": true,
"tag": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": -1,
"y": -116.2
},
"_size": {
"__type__": "cc.Size",
"width": 28.4,
"height": 54
},
"_id": "00DUR/4UFGJZyF3VRt2QCn"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"_defaultClip": {
"__uuid__": "eb1b6e0b-fd11-424c-ab1d-1be80e3ae8c8"
},
"_clips": [
{
"__uuid__": "eb1b6e0b-fd11-424c-ab1d-1be80e3ae8c8"
}
],
"playOnLoad": true,
"_id": "b17E4p5+ZF9p/beD/4sycv"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 0,
"_N$inverted": false,
"_id": "856v17eHBDdb2aoAsi1VKI"
},
{
"__type__": "cc.Node",
"_name": "midStar",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 63
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 101,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
1,
289.12,
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": "5dsFaTSM5EfJ+0iSTIWzwU"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3c82d5a7-1f45-4304-a86b-25a2c6071698"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e3xfC3duRAo4cxc2hcl4gl"
},
{
"__type__": "cc.Node",
"_name": "levelName",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 65
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 66,
"height": 27.72
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
552.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": "ffu8fos3JGQ4ajLblGg6kk"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 64
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "第三关",
"_N$string": "第三关",
"_fontSize": 22,
"_lineHeight": 22,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "c3xasbu2pIVpK022Dt8tg7"
},
......@@ -1547,13 +2904,13 @@
},
"_children": [
{
"__id__": 35
"__id__": 67
}
],
"_active": true,
"_components": [
{
"__id__": 37
"__id__": 69
}
],
"_prefab": null,
......@@ -1609,13 +2966,13 @@
"_name": "cd",
"_objFlags": 0,
"_parent": {
"__id__": 34
"__id__": 66
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
"__id__": 68
}
],
"_prefab": null,
......@@ -1671,7 +3028,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
"__id__": 67
},
"_enabled": true,
"_materials": [
......@@ -1704,7 +3061,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
"__id__": 66
},
"_enabled": true,
"_materials": [
......@@ -1740,13 +3097,13 @@
},
"_children": [
{
"__id__": 39
"__id__": 71
}
],
"_active": true,
"_components": [
{
"__id__": 41
"__id__": 73
}
],
"_prefab": null,
......@@ -1802,13 +3159,13 @@
"_name": "starProc",
"_objFlags": 0,
"_parent": {
"__id__": 38
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 40
"__id__": 72
}
],
"_prefab": null,
......@@ -1864,7 +3221,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
"__id__": 71
},
"_enabled": true,
"_materials": [
......@@ -1897,7 +3254,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
"__id__": 70
},
"_enabled": true,
"_materials": [
......@@ -1924,64 +3281,6 @@
"_atlas": null,
"_id": "20BpY3nQtOLrsZfQG63qYM"
},
{
"__type__": "cc.Node",
"_name": "gameStage",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 530
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-102.115,
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": "83GmnX2UVMDKrFZWM5kuB6"
},
{
"__type__": "cc.Node",
"_name": "gameBtn",
......@@ -1993,10 +3292,10 @@
"_active": true,
"_components": [
{
"__id__": 44
"__id__": 75
},
{
"__id__": 45
"__id__": 76
}
],
"_prefab": null,
......@@ -2052,7 +3351,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
"__id__": 74
},
"_enabled": true,
"_materials": [
......@@ -2084,7 +3383,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
"__id__": 74
},
"_enabled": true,
"_normalMaterial": null,
......
......@@ -10,20 +10,28 @@ import { CUSTOM_EVENT } from "./Config/GameConfig";
const { ccclass, property } = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
// LIFE-CYCLE CALLBACKS:
export default class ClipAni extends cc.Component {
eventAniEnd: cc.Event.EventCustom = null
eventCollEnt:cc.Event.EventCustom = null
start() {
this.eventAniEnd = new cc.Event.EventCustom(CUSTOM_EVENT.CLIP_ANI_END, true)
this.eventCollEnt = new cc.Event.EventCustom(CUSTOM_EVENT.CLIP_COLLISION, true)
}
/** 碰撞事件 */
onCollisionEnter(other: cc.Collider, self: cc.Collider) {
this.eventCollEnt.detail = {
other
}
cc.find('Canvas').dispatchEvent(this.eventCollEnt)
}
// onLoad () {}
event:cc.Event.EventCustom = null
onAnimCompleted(state) {
this.event.detail = {
this.eventAniEnd.detail = {
state
}
cc.find('Canvas').dispatchEvent(this.event)
}
start() {
this.event = new cc.Event.EventCustom(CUSTOM_EVENT.CLIP_ANI_END, true)
cc.find('Canvas').dispatchEvent(this.eventAniEnd)
}
// update (dt) {}
}
/** 关卡信息 */
export const LevelInfo = [
{level:1,colors:['#EC5F33','#E52800','#CA1D00'],countDown:10}
{level:2,colors:['#FF9400','#FF6C00','#EC5F33','#E52800','#CA1D00'],countDown:20}
{level:3,colors:['#FFD34A','#FFC300','#FFB637','#FF9400','#FF6C00','#EC5F33','#E52800','#CA1D00'],countDown:30}
{ level: 1, countDown: 30, colors: ['#EC5F33', '#E52800', '#CA1D00'] }
{ level: 2, countDown: 30, colors: ['#FF9400', '#FF6C00', '#EC5F33', '#E52800', '#CA1D00'] }
{ level: 3, countDown: 30, colors: ['#FFD34A', '#FFC300', '#FFB637', '#FF9400', '#FF6C00', '#EC5F33', '#E52800', '#CA1D00'] }
]
export const CUSTOM_EVENT = {
/** 爪子动画结束的回调 */
CLIP_ANI_END:'CLIP_ANI_END',
CLIP_ANI_END: 'CLIP_ANI_END',
/** 爪子碰撞 */
CLIP_COLLISION: 'CLIP_COLLISION'
}
export const Config = {
/** 爪子能伸出去的长度 */
maxLong: 544,
/** 摇晃速度 */
rotationSpeed: 1,
/** 普通道具移动速度 */
normalPropSpeed: 250,
/** 高级道具移动速度 */
bestPropSpeed: 500,
}
\ No newline at end of file
......@@ -5,7 +5,7 @@
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
import { CUSTOM_EVENT, LevelInfo } from "./Config/GameConfig";
import { CUSTOM_EVENT, Config, LevelInfo } from "./Config/GameConfig";
import { numToChinese, set16ToRgb } from "./utils";
const { ccclass, property } = cc._decorator;
......@@ -20,7 +20,7 @@ const CLIP_STATE = {
}
@ccclass
export default class NewClass extends cc.Component {
export default class GameScene extends cc.Component {
/** 单格进度条 */
@property(cc.Prefab)
procItem: cc.Prefab = null
......@@ -43,16 +43,29 @@ export default class NewClass extends cc.Component {
/** 游戏是否结束 */
isGameOver = false
/** 爪子旋转动画 */
clipAni: cc.Animation = null
clip: cc.Node = null
/** 爪子状态 */
clipState = CLIP_STATE.STOP
/** 速度 */
clipSpeed = Config.normalPropSpeed
/** 是否在执行动画中 */
isAni = false
/** 抓取的目标 */
clipTarget: cc.Node = null
protected onLoad(): void {
this.loadAssets()
/** 开启碰撞检测 */
const cm = cc.director.getCollisionManager()
cm.enabled = true
cm.enabledDebugDraw = true;
}
loadAssets(){
loadAssets() {
cc.resources.loadDir('assets/images/clipsAni', cc.SpriteFrame, (_, all) => {
all.forEach((sp: cc.SpriteFrame) => {
sp.insetBottom = 124
......@@ -62,55 +75,71 @@ export default class NewClass extends cc.Component {
}
start() {
this.clip = cc.find('clipMask/clipWrp/clip', this.node)
this.resetConfig()
this.refreshLevelInfo()
this.clipAni = cc.find('clipWrp/clip', this.node).getComponent(cc.Animation)
this.addNodeEvent()
const sp: cc.AnimationClip = this.clipAni.getClips()[0]
this.node.on(CUSTOM_EVENT.CLIP_ANI_END, this.onAnimCompleted, this)
}
/** 爪子事件 */
onAnimCompleted({ detail }) {
console.log(detail.state)
if (detail.state === CLIP_STATE.PLAY) {
this.setClipState(CLIP_STATE.STOP)
return
/** 重置游戏设置 */
resetConfig() {
this.clipSpeed = Config.normalPropSpeed
this.clip.getChildByName('line').height = Config.maxLong
const rotationAni = cc.find('clipMask/clipWrp', this.node)
.getComponent(cc.Animation)
.getAnimationState('clipRation')
rotationAni.speed = Config.rotationSpeed
}
if (detail.state === CLIP_STATE.STOP) {
this.setClipState(CLIP_STATE.DEFAULT)
return
/** 爪子碰撞事件 */
onCollEnter({ detail }) {
const other: cc.Collider = detail.other
// 抓到加分道具
if (other.tag == 1) {
this.setStarProc()
}
this.clipTarget = other.node
this.clipSpeed = other.tag == 1 ? Config.bestPropSpeed : Config.normalPropSpeed
other.tag = 0
this.setClipState(CLIP_STATE.STOP)
}
/** 添加节点的事件 */
addNodeEvent() {
const gameBtn = cc.find('gameBtn', this.node)
gameBtn.on(cc.Node.EventType.TOUCH_END, this.playGame, this)
this.node.on(CUSTOM_EVENT.CLIP_ANI_END, this.onAnimCompleted, this)
this.node.on(CUSTOM_EVENT.CLIP_COLLISION, this.onCollEnter, this)
}
/** 设置爪子状态 */
setClipState(state) {
const ani = cc.find('clipWrp', this.node).getComponent(cc.Animation)
const node = cc.find('clipWrp/clip', this.node)
const clip = node.getComponent(cc.Animation), spf = node.getComponent(cc.Sprite).spriteFrame
// spf.insetBottom = 125
// spf.insetTop = 10
const ani = cc.find('clipMask/clipWrp', this.node).getComponent(cc.Animation)
const node = cc.find('clipMask/clipWrp/clip', this.node)
const clip = node.getComponent(cc.Animation)
const def = cc.find('clipMask/clipWrp/default', this.node)
this.clipState = state
switch (state) {
case CLIP_STATE.DEFAULT:
// 回复旋转
ani.resume()
clip.play(state)
// 显示默认动效
def.active = true
// 隐藏爪子动效
this.clip.active = false
// 有道具销毁道具
this.clipTarget?.destroy?.()
this.clipTarget = null
break;
case CLIP_STATE.PLAY:
clip.pause(CLIP_STATE.DEFAULT)
ani.pause()
clip.play(state)
break;
case CLIP_STATE.STOP:
clip.pause(CLIP_STATE.DEFAULT)
ani.pause()
this.clip.active = true
def.active = false
// 播放爪子动效
clip.play(state)
break;
}
......@@ -120,19 +149,6 @@ export default class NewClass extends cc.Component {
playGame() {
if (this.isGameOver) return
this.setClipState(CLIP_STATE.PLAY)
this.setStarProc()
if (this.starNum >= this.levelObjectives) {
const nextLevel = this.actLevel + 1
if (nextLevel >= LevelInfo.length) { // 已通关
this.gameOver()
return
}
console.log(`过关`)
this.refreshLevelInfo(nextLevel)
return
}
}
/** 游戏结束 */
......@@ -198,6 +214,21 @@ export default class NewClass extends cc.Component {
this.starNum++
this.setLable('starIcon/starProc', `${this.starNum}/${this.levelObjectives}`)
// 达到目标
if (this.starNum >= this.levelObjectives) {
this.nextLevel()
}
}
/** 下一关 */
nextLevel() {
const nextLevel = this.actLevel + 1
this.unschedule(this.startCd)
if (nextLevel >= LevelInfo.length) { // 已通关
this.gameOver()
return
}
this.refreshLevelInfo(nextLevel)
}
/** 更新游戏进度条信息 */
......@@ -210,6 +241,36 @@ export default class NewClass extends cc.Component {
procBg.x = -(procBg.width / 2)
}
update(dt) {
update(dt: number): void {
// 锚点跟爪子之间的大致距离
const offset = 41
const maxLong = Config.maxLong - offset
// 爪子出手
if (this.clipState == CLIP_STATE.PLAY) {
if (this.clip.y <= -maxLong) {
this.setClipState(CLIP_STATE.STOP)
return
}
this.clip.y -= dt * this.clipSpeed
}
// 爪子回收
if (this.clipState == CLIP_STATE.STOP) {
if (this.clip.y >= -offset) {
// 恢复初始速度
this.clipSpeed = Config.normalPropSpeed
this.setClipState(CLIP_STATE.DEFAULT)
return
}
this.clip.y += dt * this.clipSpeed
// 抓到物品,道具的移动
if (this.clipTarget) {
const pos = this.clip.convertToWorldSpaceAR(cc.v2(0, -133))
const p = this.clipTarget.parent.convertToWorldSpaceAR(cc.v2(0, 0))
this.clipTarget.setPosition(pos.x - p.x, pos.y - p.y)
}
}
}
}
const {ccclass, property} = cc._decorator;
@ccclass
export default class propMove extends cc.Component {
}
{
"ver": "1.1.0",
"uuid": "a4ceb029-4578-4ea5-85e6-85fe6021e0b7",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
......@@ -3,377 +3,10 @@
"_name": "clipAni",
"_objFlags": 0,
"_native": "",
"_duration": 1,
"_duration": 0,
"sample": 60,
"speed": 1,
"wrapMode": 2,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "73e552a8-0c92-4930-9293-df6344040156"
}
},
{
"frame": 0.016666666666666666,
"value": {
"__uuid__": "ac1333a2-01f0-4aff-ad79-139433b3b101"
}
},
{
"frame": 0.03333333333333333,
"value": {
"__uuid__": "8f3c3fa6-c8a9-4432-8f7e-f0e8d9d5807c"
}
},
{
"frame": 0.05,
"value": {
"__uuid__": "777b198b-b57d-4e53-8da1-ff08cfe9b54e"
}
},
{
"frame": 0.06666666666666667,
"value": {
"__uuid__": "55656326-dbf7-4075-b3b7-f0d03b3c2919"
}
},
{
"frame": 0.08333333333333333,
"value": {
"__uuid__": "1523f600-ef25-4b54-863a-6b06dd515b2b"
}
},
{
"frame": 0.1,
"value": {
"__uuid__": "39b180d5-846c-4a82-99fb-d091834ac84d"
}
},
{
"frame": 0.11666666666666667,
"value": {
"__uuid__": "27dea4ba-bd84-41cb-8aad-46384aa8ce27"
}
},
{
"frame": 0.13333333333333333,
"value": {
"__uuid__": "daa5349e-7468-48a9-8e8b-b081364397c8"
}
},
{
"frame": 0.15,
"value": {
"__uuid__": "c261bf96-7a62-4341-8842-0b5ea9787d97"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "1d3d79ae-5808-49e4-910d-514bd772fce6"
}
},
{
"frame": 0.18333333333333332,
"value": {
"__uuid__": "39322d31-d1f5-4d19-929e-aa21d06c9334"
}
},
{
"frame": 0.2,
"value": {
"__uuid__": "425444fc-9b07-46a5-88d3-e062d9ceed45"
}
},
{
"frame": 0.21666666666666667,
"value": {
"__uuid__": "9517e469-546f-4bd1-991f-2dfa0ba99236"
}
},
{
"frame": 0.23333333333333334,
"value": {
"__uuid__": "f0b6e396-eb40-4d2a-86ba-d8924646172a"
}
},
{
"frame": 0.25,
"value": {
"__uuid__": "50d4fef8-ce6c-4360-bba7-a52c61b4dea2"
}
},
{
"frame": 0.26666666666666666,
"value": {
"__uuid__": "3076ea9e-d164-4602-90ea-8ba35b5875f4"
}
},
{
"frame": 0.2833333333333333,
"value": {
"__uuid__": "efe5d7c7-accb-4b1a-a9dd-c41a5c294e79"
}
},
{
"frame": 0.3,
"value": {
"__uuid__": "514991db-07e6-4f83-9039-c8383ff6108e"
}
},
{
"frame": 0.31666666666666665,
"value": {
"__uuid__": "71f0f750-b024-4d15-b135-7d9ff1bdc0a3"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "1b0666a6-c0c3-463e-b2f7-24b84c80ea29"
}
},
{
"frame": 0.35,
"value": {
"__uuid__": "db99844e-0d37-405a-9b20-6cb617137f46"
}
},
{
"frame": 0.36666666666666664,
"value": {
"__uuid__": "2721cdfd-223f-44fd-9752-994bde5b2a6c"
}
},
{
"frame": 0.38333333333333336,
"value": {
"__uuid__": "50729527-98ab-4478-bf2f-27f5c0bd0836"
}
},
{
"frame": 0.4,
"value": {
"__uuid__": "3d3e9576-84ee-4d07-912b-1d8ae00cdab6"
}
},
{
"frame": 0.4166666666666667,
"value": {
"__uuid__": "ac43bac9-d32e-4627-91ef-b79ab9b7913f"
}
},
{
"frame": 0.43333333333333335,
"value": {
"__uuid__": "57b95b95-8a8d-40b2-86ca-4bbeba6fb706"
}
},
{
"frame": 0.45,
"value": {
"__uuid__": "104b5bc6-8b5b-49a0-b2a0-be8408fb2b77"
}
},
{
"frame": 0.4666666666666667,
"value": {
"__uuid__": "210f1a12-9703-4a65-9067-6fdd8f4928ad"
}
},
{
"frame": 0.48333333333333334,
"value": {
"__uuid__": "d3bf302f-b552-445d-9372-a5cb9b7307e9"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "251ddaa5-441b-4ac1-89e8-f0f5d8373e55"
}
},
{
"frame": 0.5166666666666667,
"value": {
"__uuid__": "ea78b58a-78c2-48f2-8a19-29a030939207"
}
},
{
"frame": 0.5333333333333333,
"value": {
"__uuid__": "96cbf65a-d705-42dd-85e8-cb8f5186c3dd"
}
},
{
"frame": 0.55,
"value": {
"__uuid__": "b728245c-9306-48fa-81d2-b13df6024914"
}
},
{
"frame": 0.5666666666666667,
"value": {
"__uuid__": "a7329a0b-18d2-4f30-bfec-01b177a3eb4e"
}
},
{
"frame": 0.5833333333333334,
"value": {
"__uuid__": "70aa0b0d-b4e3-417b-9b29-bcb45f48d89c"
}
},
{
"frame": 0.6,
"value": {
"__uuid__": "30807665-b4a0-4cf8-b720-a63fd78368a5"
}
},
{
"frame": 0.6166666666666667,
"value": {
"__uuid__": "c0020652-e3ef-4799-a4d1-7bb76fdceb9e"
}
},
{
"frame": 0.6333333333333333,
"value": {
"__uuid__": "7283dfb2-960f-469c-9863-71a97ff8d76c"
}
},
{
"frame": 0.65,
"value": {
"__uuid__": "35489117-6b54-4eb2-83d6-87a5cd2e94f6"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "b4f6c6c2-fc41-4447-b362-9e7c4b9fef47"
}
},
{
"frame": 0.6833333333333333,
"value": {
"__uuid__": "3d33f34e-2b39-4781-8dbf-68a99c6456d1"
}
},
{
"frame": 0.7,
"value": {
"__uuid__": "77160c5d-1610-4bea-861a-306694e12896"
}
},
{
"frame": 0.7166666666666667,
"value": {
"__uuid__": "5a269545-7cc9-4a10-a2ac-0e236f6d35c9"
}
},
{
"frame": 0.7333333333333333,
"value": {
"__uuid__": "402a17e8-ba76-4acb-85cd-982e7eeb59f4"
}
},
{
"frame": 0.75,
"value": {
"__uuid__": "10cc7fa1-fa4e-4eab-ab4d-79e8745adfb7"
}
},
{
"frame": 0.7666666666666667,
"value": {
"__uuid__": "dd2c55af-31b1-4541-990f-baec6372893e"
}
},
{
"frame": 0.7833333333333333,
"value": {
"__uuid__": "6e4c8dde-b8cd-4660-8697-6425f8aac90f"
}
},
{
"frame": 0.8,
"value": {
"__uuid__": "e64645a7-1781-4b7d-935e-25b0bbe1c782"
}
},
{
"frame": 0.8166666666666667,
"value": {
"__uuid__": "3bdefe72-261f-480d-87bd-cdb97d580ef2"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "984d8f77-531b-40c2-acde-514566321e82"
}
},
{
"frame": 0.85,
"value": {
"__uuid__": "23319d53-82ab-4972-9a55-6b48e781e2ab"
}
},
{
"frame": 0.8666666666666667,
"value": {
"__uuid__": "f8ccedf1-1013-4618-bdd8-d3c4e871b964"
}
},
{
"frame": 0.8833333333333333,
"value": {
"__uuid__": "59f1a279-256a-40cc-81d1-6b41ff3e8964"
}
},
{
"frame": 0.9,
"value": {
"__uuid__": "dc771922-5e70-4dda-bccf-e62ed1412e36"
}
},
{
"frame": 0.9166666666666666,
"value": {
"__uuid__": "0f755080-8244-45ac-9f79-0750b4be884b"
}
},
{
"frame": 0.9333333333333333,
"value": {
"__uuid__": "37ce3e61-ee5e-4c6e-b1c3-429560b95223"
}
},
{
"frame": 0.95,
"value": {
"__uuid__": "ff82f13f-9d7e-428c-9459-3962419d6769"
}
},
{
"frame": 0.9666666666666667,
"value": {
"__uuid__": "f0775694-bd73-40e8-bcd6-4d7b7b905a66"
}
},
{
"frame": 0.9833333333333333,
"value": {
"__uuid__": "753f8974-8e1f-47de-a90f-95b5bf075317"
}
}
]
}
}
},
"curveData": {},
"events": []
}
\ No newline at end of file
......@@ -3,55 +3,55 @@
"_name": "clipPlay",
"_objFlags": 0,
"_native": "",
"_duration": 1.5,
"_duration": 0.08333333333333333,
"sample": 60,
"speed": 1,
"wrapMode": 1,
"curveData": {
"props": {
"height": [
"paths": {
"con": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": 148
"value": {
"__uuid__": "2820540a-5f9d-4eac-8d0f-e82c2e4f1eec"
}
},
{
"frame": 1.5,
"value": 648
"frame": 0.016666666666666666,
"value": {
"__uuid__": "bf5ca51e-92a5-4c72-b586-50cb397202d0"
}
]
},
"paths": {
"line": {
"props": {
"height": [
{
"frame": 0,
"value": 44
"frame": 0.03333333333333333,
"value": {
"__uuid__": "543b2355-cc24-4e66-a833-3c6810dd3d1c"
}
},
{
"frame": 1.5,
"value": 538
}
]
}
"frame": 0.05,
"value": {
"__uuid__": "0472450c-bc3a-4487-bb62-11da27e76d71"
}
},
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"frame": 0.06666666666666667,
"value": {
"__uuid__": "12fa6426-b4e8-4566-b187-464b9b22063a"
"__uuid__": "42e5dc13-a031-417b-9734-5487dda42adf"
}
}
]
}
}
}
}
},
"events": [
{
"frame": 1.5,
"frame": 0.06666666666666667,
"func": "onAnimCompleted",
"params": [
"clipPlay"
......
......@@ -3,7 +3,7 @@
"_name": "clipRation",
"_objFlags": 0,
"_native": "",
"_duration": 4,
"_duration": 3.966666666666667,
"sample": 30,
"speed": 1,
"wrapMode": 2,
......@@ -16,14 +16,14 @@
},
{
"frame": 1,
"value": 30
"value": 40
},
{
"frame": 3,
"value": -30
"value": -40
},
{
"frame": 4,
"frame": 3.966666666666667,
"value": 0
}
]
......
......@@ -3,75 +3,51 @@
"_name": "clipStop",
"_objFlags": 0,
"_native": "",
"_duration": 1.6833333333333333,
"_duration": 0.08333333333333333,
"sample": 60,
"speed": 1,
"wrapMode": 36,
"wrapMode": 1,
"curveData": {
"props": {
"height": [
{
"frame": 0,
"value": 148
},
{
"frame": 1.5,
"value": 648
}
]
},
"paths": {
"line": {
"props": {
"height": [
{
"frame": 0,
"value": 44
},
{
"frame": 1.5,
"value": 542
}
]
}
}
},
"con": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 1.5333333333333334,
"frame": 0,
"value": {
"__uuid__": "b08167e4-2bc5-464c-b4b1-b8646889045f"
"__uuid__": "9f9b15ed-14ef-441f-a30c-09ef39aa5da4"
}
},
{
"frame": 1.5666666666666667,
"frame": 0.016666666666666666,
"value": {
"__uuid__": "57f3929b-38bc-4532-a855-a125d00755cc"
"__uuid__": "2476d47e-cf46-4888-b9a0-7cc039485dd2"
}
},
{
"frame": 1.6,
"frame": 0.03333333333333333,
"value": {
"__uuid__": "d75a7db3-1b4a-450f-b766-745a8172efa8"
}
},
{
"frame": 1.6333333333333333,
"frame": 0.05,
"value": {
"__uuid__": "2476d47e-cf46-4888-b9a0-7cc039485dd2"
"__uuid__": "57f3929b-38bc-4532-a855-a125d00755cc"
}
},
{
"frame": 1.6666666666666667,
"frame": 0.06666666666666667,
"value": {
"__uuid__": "9f9b15ed-14ef-441f-a30c-09ef39aa5da4"
"__uuid__": "b08167e4-2bc5-464c-b4b1-b8646889045f"
}
}
]
}
}
}
}
},
"events": [
{
......
{
"ver": "1.1.3",
"uuid": "031be2d7-1990-4a7f-9369-47539ae00a8d",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.7",
"uuid": "75a92d8a-dffd-4028-990d-6c28d1fae543",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 122,
"platformSettings": {},
"subMetas": {
"夹子开_00000": {
"ver": "1.0.6",
"uuid": "2820540a-5f9d-4eac-8d0f-e82c2e4f1eec",
"importer": "sprite-frame",
"rawTextureUuid": "75a92d8a-dffd-4028-990d-6c28d1fae543",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": 0,
"trimX": 19,
"trimY": 5,
"width": 96,
"height": 112,
"rawWidth": 133,
"rawHeight": 122,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.7",
"uuid": "5a20d783-3f3a-4871-910d-479d94817863",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 122,
"platformSettings": {},
"subMetas": {
"夹子开_00001": {
"ver": "1.0.6",
"uuid": "bf5ca51e-92a5-4c72-b586-50cb397202d0",
"importer": "sprite-frame",
"rawTextureUuid": "5a20d783-3f3a-4871-910d-479d94817863",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": -1,
"trimX": 17,
"trimY": 5,
"width": 100,
"height": 114,
"rawWidth": 133,
"rawHeight": 122,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.7",
"uuid": "f1adcf3a-ec9d-4745-8541-39f8ec70e7f2",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 122,
"platformSettings": {},
"subMetas": {
"夹子开_00002": {
"ver": "1.0.6",
"uuid": "543b2355-cc24-4e66-a833-3c6810dd3d1c",
"importer": "sprite-frame",
"rawTextureUuid": "f1adcf3a-ec9d-4745-8541-39f8ec70e7f2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": -1.5,
"trimX": 15,
"trimY": 5,
"width": 104,
"height": 115,
"rawWidth": 133,
"rawHeight": 122,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.7",
"uuid": "f67bb5c4-f62b-45aa-9ad6-fcf2ee15384a",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 122,
"platformSettings": {},
"subMetas": {
"夹子开_00003": {
"ver": "1.0.6",
"uuid": "0472450c-bc3a-4487-bb62-11da27e76d71",
"importer": "sprite-frame",
"rawTextureUuid": "f67bb5c4-f62b-45aa-9ad6-fcf2ee15384a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": -1,
"trimX": 12,
"trimY": 5,
"width": 110,
"height": 114,
"rawWidth": 133,
"rawHeight": 122,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.7",
"uuid": "906f0b58-d0f6-40c7-b090-7047cfb4f37a",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 122,
"platformSettings": {},
"subMetas": {
"夹子开_00004": {
"ver": "1.0.6",
"uuid": "42e5dc13-a031-417b-9734-5487dda42adf",
"importer": "sprite-frame",
"rawTextureUuid": "906f0b58-d0f6-40c7-b090-7047cfb4f37a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": 0,
"trimX": 7,
"trimY": 5,
"width": 120,
"height": 112,
"rawWidth": 133,
"rawHeight": 122,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
......@@ -9,7 +9,7 @@
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 145,
"height": 139,
"platformSettings": {},
"subMetas": {
"夹子夹_00000": {
......@@ -20,14 +20,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"offsetX": 0.5,
"offsetY": -3,
"trimX": 7,
"trimY": 16,
"width": 120,
"height": 138,
"rawWidth": 120,
"rawHeight": 138,
"height": 113,
"rawWidth": 133,
"rawHeight": 139,
"borderTop": 5,
"borderBottom": 108,
"borderLeft": 0,
......
......@@ -9,7 +9,7 @@
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 145,
"height": 139,
"platformSettings": {},
"subMetas": {
"夹子夹_00001": {
......@@ -20,13 +20,13 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"offsetX": 0.5,
"offsetY": -3.5,
"trimX": 10,
"trimY": 16,
"width": 114,
"height": 139,
"rawWidth": 114,
"height": 114,
"rawWidth": 133,
"rawHeight": 139,
"borderTop": 7,
"borderBottom": 107,
......
......@@ -8,8 +8,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 104,
"height": 140,
"width": 133,
"height": 139,
"platformSettings": {},
"subMetas": {
"夹子夹_00002": {
......@@ -20,14 +20,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"offsetX": 0.5,
"offsetY": -4,
"trimX": 15,
"trimY": 16,
"width": 104,
"height": 140,
"rawWidth": 104,
"rawHeight": 140,
"height": 115,
"rawWidth": 133,
"rawHeight": 139,
"borderTop": 7.5,
"borderBottom": 107.5,
"borderLeft": 0,
......
......@@ -9,7 +9,7 @@
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 145,
"height": 139,
"platformSettings": {},
"subMetas": {
"夹子夹_00003": {
......@@ -20,13 +20,13 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"offsetX": 1,
"offsetY": -3.5,
"trimX": 18,
"trimY": 16,
"width": 99,
"height": 139,
"rawWidth": 99,
"height": 114,
"rawWidth": 133,
"rawHeight": 139,
"borderTop": 7,
"borderBottom": 107,
......
......@@ -9,7 +9,7 @@
"genMipmaps": false,
"packable": true,
"width": 133,
"height": 145,
"height": 139,
"platformSettings": {},
"subMetas": {
"夹子夹_00004": {
......@@ -20,14 +20,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"offsetX": 0.5,
"offsetY": -3,
"trimX": 19,
"trimY": 16,
"width": 96,
"height": 138,
"rawWidth": 96,
"rawHeight": 138,
"height": 113,
"rawWidth": 133,
"rawHeight": 139,
"borderTop": 15,
"borderBottom": 98,
"borderLeft": 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