Commit d2d92e18 authored by haiyoucuv's avatar haiyoucuv

init

parent 57192aa8
......@@ -20,13 +20,13 @@
"__id__": 2
},
{
"__id__": 39
"__id__": 43
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 89
"__id__": 109
},
"_lpos": {
"__type__": "cc.Vec3",
......@@ -57,7 +57,7 @@
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 93
"__id__": 113
},
"_id": "53947ca7-3484-4b53-800d-509405063d68"
},
......@@ -77,28 +77,28 @@
"__id__": 5
},
{
"__id__": 20
"__id__": 24
},
{
"__id__": 23
"__id__": 27
},
{
"__id__": 25
"__id__": 29
}
],
"_active": true,
"_components": [
{
"__id__": 85
"__id__": 105
},
{
"__id__": 86
"__id__": 106
},
{
"__id__": 87
"__id__": 107
},
{
"__id__": 88
"__id__": 108
}
],
"_prefab": null,
......@@ -195,9 +195,9 @@
"_far": 2000,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"r": 75,
"g": 75,
"b": 75,
"a": 255
},
"_depth": 1,
......@@ -235,22 +235,22 @@
"__id__": 6
},
{
"__id__": 9
"__id__": 10
},
{
"__id__": 12
"__id__": 14
},
{
"__id__": 15
"__id__": 18
}
],
"_active": true,
"_components": [
{
"__id__": 18
"__id__": 22
},
{
"__id__": 19
"__id__": 23
}
],
"_prefab": null,
......@@ -299,13 +299,16 @@
},
{
"__id__": 8
},
{
"__id__": 9
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"y": 2110,
"z": 0
},
"_lrot": {
......@@ -343,8 +346,8 @@
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 2,
"height": 2
"width": 6040,
"height": 20
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -379,7 +382,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
......@@ -392,6 +395,36 @@
"_atlas": null,
"_id": "62Gw59LnZFDbxGGR1SnLpR"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 6
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 41,
"_target": null,
"_left": -20,
"_right": -20,
"_top": -20,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 20,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "2fhkYxq/1PVYgwFS/qA4kn"
},
{
"__type__": "cc.Node",
"_name": "WALL_BOTTOM",
......@@ -404,17 +437,20 @@
"_active": true,
"_components": [
{
"__id__": 10
"__id__": 11
},
{
"__id__": 11
"__id__": 12
},
{
"__id__": 13
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"y": -2110,
"z": 0
},
"_lrot": {
......@@ -446,14 +482,14 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 9
"__id__": 10
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 2,
"height": 2
"width": 6040,
"height": 20
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -468,7 +504,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 9
"__id__": 10
},
"_enabled": true,
"__prefab": null,
......@@ -488,7 +524,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
......@@ -501,6 +537,36 @@
"_atlas": null,
"_id": "80VpvxboFCx7OE0n/0lwfU"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 44,
"_target": null,
"_left": -20,
"_right": -20,
"_top": 0,
"_bottom": -20,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 20,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "33xNHKTAtOUoYGOqLeh4j1"
},
{
"__type__": "cc.Node",
"_name": "WALL_LEFT",
......@@ -513,16 +579,19 @@
"_active": true,
"_components": [
{
"__id__": 13
"__id__": 15
},
{
"__id__": 14
"__id__": 16
},
{
"__id__": 17
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"x": -3010,
"y": 0,
"z": 0
},
......@@ -555,14 +624,14 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 12
"__id__": 14
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 2,
"height": 2
"width": 20,
"height": 4240
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -577,7 +646,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 12
"__id__": 14
},
"_enabled": true,
"__prefab": null,
......@@ -597,7 +666,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
......@@ -610,6 +679,36 @@
"_atlas": null,
"_id": "81uLUKrflGZJfZ4OsjkAcU"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 14
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 13,
"_target": null,
"_left": -20,
"_right": 0,
"_top": -20,
"_bottom": -20,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 20,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "a9Xnm5vwNL1qvK/o2K6iYL"
},
{
"__type__": "cc.Node",
"_name": "WALL_RIGHT",
......@@ -622,16 +721,19 @@
"_active": true,
"_components": [
{
"__id__": 16
"__id__": 19
},
{
"__id__": 17
"__id__": 20
},
{
"__id__": 21
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"x": 3010,
"y": 0,
"z": 0
},
......@@ -664,14 +766,14 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 15
"__id__": 18
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 2,
"height": 2
"width": 20,
"height": 4240
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -686,7 +788,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 15
"__id__": 18
},
"_enabled": true,
"__prefab": null,
......@@ -706,7 +808,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
......@@ -719,6 +821,36 @@
"_atlas": null,
"_id": "30nPtFanxCAZz6kA6oAUjL"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 18
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 37,
"_target": null,
"_left": 0,
"_right": -20,
"_top": -20,
"_bottom": -20,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 20,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "97j2MzwwpArZXgqpxWZHQC"
},
{
"__type__": "cc.UITransform",
"_name": "",
......@@ -792,10 +924,10 @@
"_active": true,
"_components": [
{
"__id__": 21
"__id__": 25
},
{
"__id__": 22
"__id__": 26
}
],
"_prefab": null,
......@@ -834,7 +966,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 20
"__id__": 24
},
"_enabled": true,
"__prefab": null,
......@@ -856,7 +988,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 20
"__id__": 24
},
"_enabled": true,
"__prefab": null,
......@@ -1080,7 +1212,7 @@
"_active": true,
"_components": [
{
"__id__": 24
"__id__": 28
}
],
"_prefab": null,
......@@ -1119,7 +1251,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
"__id__": 27
},
"_enabled": true,
"__prefab": null,
......@@ -1145,16 +1277,16 @@
},
"_children": [
{
"__id__": 26
"__id__": 30
}
],
"_active": true,
"_components": [
{
"__id__": 35
"__id__": 39
},
{
"__id__": 36
"__id__": 40
}
],
"_prefab": null,
......@@ -1193,26 +1325,26 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 25
"__id__": 29
},
"_children": [
{
"__id__": 27
"__id__": 31
}
],
"_active": true,
"_components": [
{
"__id__": 31
"__id__": 35
},
{
"__id__": 32
"__id__": 36
},
{
"__id__": 33
"__id__": 37
},
{
"__id__": 34
"__id__": 38
}
],
"_prefab": null,
......@@ -1251,19 +1383,19 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 26
"__id__": 30
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 28
"__id__": 32
},
{
"__id__": 29
"__id__": 33
},
{
"__id__": 30
"__id__": 34
}
],
"_prefab": null,
......@@ -1302,7 +1434,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 27
"__id__": 31
},
"_enabled": true,
"__prefab": null,
......@@ -1324,7 +1456,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 27
"__id__": 31
},
"_enabled": true,
"__prefab": null,
......@@ -1352,7 +1484,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 27
"__id__": 31
},
"_enabled": true,
"__prefab": null,
......@@ -1376,7 +1508,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 26
"__id__": 30
},
"_enabled": true,
"__prefab": null,
......@@ -1398,7 +1530,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 26
"__id__": 30
},
"_enabled": true,
"__prefab": null,
......@@ -1434,7 +1566,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 26
"__id__": 30
},
"_enabled": true,
"__prefab": null,
......@@ -1462,7 +1594,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 26
"__id__": 30
},
"_enabled": true,
"__prefab": null,
......@@ -1486,7 +1618,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 25
"__id__": 29
},
"_enabled": true,
"__prefab": null,
......@@ -1508,22 +1640,22 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 25
"__id__": 29
},
"_enabled": true,
"__prefab": null,
"head": {
"__id__": 26
"__id__": 30
},
"bodyPrefab": {
"__uuid__": "8c4f22c7-20c7-4868-88ea-dedb8004999f",
"__expectedType__": "cc.Prefab"
},
"joystick": {
"__id__": 37
"__id__": 41
},
"fastBtn": {
"__id__": 45
"__id__": 53
},
"_id": "2dUcPvKs9AvZqQZfZoDIZT"
},
......@@ -1533,15 +1665,15 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 38
"__id__": 42
},
"_enabled": true,
"__prefab": null,
"handle": {
"__id__": 79
"__id__": 99
},
"bg": {
"__id__": 83
"__id__": 103
},
"normalSp": {
"__uuid__": "7f413237-4b73-4bae-bca7-7ab9e9742ebc@f9941",
......@@ -1559,26 +1691,26 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 39
"__id__": 43
},
"_children": [
{
"__id__": 79
"__id__": 99
}
],
"_active": true,
"_components": [
{
"__id__": 82
"__id__": 102
},
{
"__id__": 83
"__id__": 103
},
{
"__id__": 37
"__id__": 41
},
{
"__id__": 84
"__id__": 104
}
],
"_prefab": null,
......@@ -1621,31 +1753,37 @@
},
"_children": [
{
"__id__": 40
"__id__": 44
},
{
"__id__": 42
"__id__": 46
},
{
"__id__": 38
"__id__": 50
},
{
"__id__": 48
"__id__": 42
},
{
"__id__": 69
"__id__": 56
},
{
"__id__": 77
},
{
"__id__": 89
}
],
"_active": true,
"_components": [
{
"__id__": 76
"__id__": 96
},
{
"__id__": 77
"__id__": 97
},
{
"__id__": 78
"__id__": 98
}
],
"_prefab": null,
......@@ -1684,13 +1822,13 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 39
"__id__": 43
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 41
"__id__": 45
}
],
"_prefab": null,
......@@ -1729,7 +1867,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 40
"__id__": 44
},
"_enabled": true,
"__prefab": null,
......@@ -1769,31 +1907,173 @@
"_trackingType": 0,
"_id": "22C/2+IRRDyq2udD8/1gUV"
},
{
"__type__": "cc.Node",
"_name": "背景位置参考",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 43
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 47
},
{
"__id__": 48
},
{
"__id__": 49
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "26sQt7JNtJFoeTCEN9/84q"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 46
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1624,
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "03FBgcIFlBlJX2nx/RJNpf"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 46
},
"_enabled": true,
"__prefab": null,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 173,
"g": 173,
"b": 173,
"a": 255
},
"_spriteFrame": {
"__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "6eFsdY7y9JV4hl5Dd+IF8a"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 46
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 40,
"_originalHeight": 36,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "82dpWk31BJ5ohOd4772SGg"
},
{
"__type__": "cc.Node",
"_name": "加速",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 39
"__id__": 43
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 43
"__id__": 51
},
{
"__id__": 44
"__id__": 52
},
{
"__id__": 45
"__id__": 53
},
{
"__id__": 46
"__id__": 54
},
{
"__id__": 47
"__id__": 55
}
],
"_prefab": null,
......@@ -1832,7 +2112,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 42
"__id__": 50
},
"_enabled": true,
"__prefab": null,
......@@ -1854,7 +2134,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 42
"__id__": 50
},
"_enabled": true,
"__prefab": null,
......@@ -1893,12 +2173,12 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 42
"__id__": 50
},
"_enabled": true,
"__prefab": null,
"sp": {
"__id__": 44
"__id__": 52
},
"_id": "cbuYoeJJBN/Z/dZ6F3l5A5"
},
......@@ -1908,7 +2188,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 42
"__id__": 50
},
"_enabled": true,
"__prefab": null,
......@@ -1970,7 +2250,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 42
"__id__": 50
},
"_enabled": true,
"__prefab": null,
......@@ -2000,26 +2280,26 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 39
"__id__": 43
},
"_children": [
{
"__id__": 49
"__id__": 57
},
{
"__id__": 52
"__id__": 60
}
],
"_active": true,
"_components": [
{
"__id__": 66
"__id__": 74
},
{
"__id__": 67
"__id__": 75
},
{
"__id__": 68
"__id__": 76
}
],
"_prefab": null,
......@@ -2058,16 +2338,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 48
"__id__": 56
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 50
"__id__": 58
},
{
"__id__": 51
"__id__": 59
}
],
"_prefab": null,
......@@ -2106,7 +2386,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 49
"__id__": 57
},
"_enabled": true,
"__prefab": null,
......@@ -2128,7 +2408,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 49
"__id__": 57
},
"_enabled": true,
"__prefab": null,
......@@ -2193,20 +2473,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 48
"__id__": 56
},
"_children": [
{
"__id__": 53
"__id__": 61
},
{
"__id__": 62
"__id__": 70
}
],
"_active": true,
"_components": [
{
"__id__": 65
"__id__": 73
}
],
"_prefab": null,
......@@ -2245,23 +2525,23 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 52
"__id__": 60
},
"_children": [
{
"__id__": 54
"__id__": 62
},
{
"__id__": 57
"__id__": 65
}
],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 68
},
{
"__id__": 61
"__id__": 69
}
],
"_prefab": null,
......@@ -2300,16 +2580,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 53
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 55
"__id__": 63
},
{
"__id__": 56
"__id__": 64
}
],
"_prefab": null,
......@@ -2348,7 +2628,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 54
"__id__": 62
},
"_enabled": true,
"__prefab": null,
......@@ -2370,7 +2650,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 54
"__id__": 62
},
"_enabled": true,
"__prefab": null,
......@@ -2435,16 +2715,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 53
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 58
"__id__": 66
},
{
"__id__": 59
"__id__": 67
}
],
"_prefab": null,
......@@ -2483,7 +2763,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 57
"__id__": 65
},
"_enabled": true,
"__prefab": null,
......@@ -2505,7 +2785,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 57
"__id__": 65
},
"_enabled": true,
"__prefab": null,
......@@ -2570,7 +2850,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 53
"__id__": 61
},
"_enabled": true,
"__prefab": null,
......@@ -2592,7 +2872,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 53
"__id__": 61
},
"_enabled": true,
"__prefab": null,
......@@ -2624,16 +2904,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 52
"__id__": 60
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 63
"__id__": 71
},
{
"__id__": 64
"__id__": 72
}
],
"_prefab": null,
......@@ -2672,7 +2952,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 62
"__id__": 70
},
"_enabled": true,
"__prefab": null,
......@@ -2694,7 +2974,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 62
"__id__": 70
},
"_enabled": true,
"__prefab": null,
......@@ -2759,7 +3039,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 52
"__id__": 60
},
"_enabled": true,
"__prefab": null,
......@@ -2781,7 +3061,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 48
"__id__": 56
},
"_enabled": true,
"__prefab": null,
......@@ -2803,7 +3083,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 48
"__id__": 56
},
"_enabled": true,
"__prefab": null,
......@@ -2833,7 +3113,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 48
"__id__": 56
},
"_enabled": true,
"__prefab": null,
......@@ -2859,29 +3139,270 @@
"_isAlign": true,
"_id": "bbpfXi9v9F24X/Ptbw6uCj"
},
{
"__type__": "cc.Node",
"_name": "rank",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 43
},
"_children": [
{
"__id__": 78
}
],
"_active": true,
"_components": [
{
"__id__": 86
},
{
"__id__": 87
},
{
"__id__": 88
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": -795,
"y": 270,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "adAbLinbJMWo0ENCjw0Syd"
},
{
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 77
},
"_prefab": {
"__id__": 79
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 78
},
"asset": {
"__uuid__": "279fb523-a195-4d19-9e7c-1a05f1af2c6b",
"__expectedType__": "cc.Prefab"
},
"fileId": "49A5rcXXVEt7bJwMc/vvkp",
"instance": {
"__id__": 80
},
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "edWRejTWlA6Yvd5VPc5jDH",
"prefabRootNode": null,
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 81
},
{
"__id__": 83
},
{
"__id__": 84
},
{
"__id__": 85
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 82
},
"propertyPath": [
"_name"
],
"value": "排行榜自己"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"49A5rcXXVEt7bJwMc/vvkp"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 82
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 82
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 82
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 77
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 260
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 1
},
"_id": "1eFQmdC5xN0LgGVByfSLZs"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 77
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 9,
"_target": null,
"_left": 17,
"_right": 0,
"_top": 105,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "b3Df2k4C9CfqmK0rDyFYYg"
},
{
"__type__": "98e42dnmBpEZbq9WdtDfrS5",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 77
},
"_enabled": true,
"__prefab": null,
"otherRankPrefab": {
"__uuid__": "816e734e-d8ca-49bc-be1e-8c23e023cdd5",
"__expectedType__": "cc.Prefab"
},
"selfRankPrefab": {
"__uuid__": "279fb523-a195-4d19-9e7c-1a05f1af2c6b",
"__expectedType__": "cc.Prefab"
},
"selfNode": {
"__id__": 78
},
"_id": "d17UmC1cFCiY8DxwBXpbec"
},
{
"__type__": "cc.Node",
"_name": "福袋",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 39
"__id__": 43
},
"_children": [
{
"__id__": 70
"__id__": 90
}
],
"_active": true,
"_components": [
{
"__id__": 73
"__id__": 93
},
{
"__id__": 74
"__id__": 94
},
{
"__id__": 75
"__id__": 95
}
],
"_prefab": null,
......@@ -2920,16 +3441,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 69
"__id__": 89
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 71
"__id__": 91
},
{
"__id__": 72
"__id__": 92
}
],
"_prefab": null,
......@@ -2968,7 +3489,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 70
"__id__": 90
},
"_enabled": true,
"__prefab": null,
......@@ -2990,7 +3511,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 70
"__id__": 90
},
"_enabled": true,
"__prefab": null,
......@@ -3055,7 +3576,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 69
"__id__": 89
},
"_enabled": true,
"__prefab": null,
......@@ -3077,7 +3598,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 69
"__id__": 89
},
"_enabled": true,
"__prefab": null,
......@@ -3116,7 +3637,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 69
"__id__": 89
},
"_enabled": true,
"__prefab": null,
......@@ -3146,7 +3667,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
"__id__": 43
},
"_enabled": true,
"__prefab": null,
......@@ -3168,12 +3689,12 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
"__id__": 43
},
"_enabled": true,
"__prefab": null,
"_cameraComponent": {
"__id__": 41
"__id__": 45
},
"_alignCanvasWithScreen": true,
"_id": "34wxp/0vpKH4Wcp1ieFQOS"
......@@ -3184,7 +3705,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
"__id__": 43
},
"_enabled": true,
"__prefab": null,
......@@ -3214,16 +3735,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 38
"__id__": 42
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 80
"__id__": 100
},
{
"__id__": 81
"__id__": 101
}
],
"_prefab": null,
......@@ -3262,7 +3783,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 79
"__id__": 99
},
"_enabled": true,
"__prefab": null,
......@@ -3284,7 +3805,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 79
"__id__": 99
},
"_enabled": true,
"__prefab": null,
......@@ -3323,7 +3844,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 38
"__id__": 42
},
"_enabled": true,
"__prefab": null,
......@@ -3345,7 +3866,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 38
"__id__": 42
},
"_enabled": true,
"__prefab": null,
......@@ -3384,7 +3905,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 38
"__id__": 42
},
"_enabled": true,
"__prefab": null,
......@@ -3493,34 +4014,34 @@
"maxFood": 300,
"maxAnimal": 20,
"joystick": {
"__id__": 37
"__id__": 41
},
"fastBtn": {
"__id__": 45
"__id__": 53
},
"uiBg": {
"__id__": 18
"__id__": 5
},
"player": {
"__id__": 36
"__id__": 40
},
"fondManger": {
"__id__": 22
"__id__": 26
},
"animalNode": {
"__id__": 23
"__id__": 27
},
"camera": {
"__id__": 4
},
"killTxt": {
"__id__": 51
"__id__": 59
},
"lengthTxt": {
"__id__": 59
"__id__": 67
},
"luckyNum": {
"__id__": 72
"__id__": 92
},
"_id": "212vDeP7dNBZXi0fJjPuCy"
},
......@@ -3532,26 +4053,31 @@
"instance": null,
"targetOverrides": [
{
"__id__": 90
"__id__": 110
}
],
"nestedPrefabInstanceRoots": [
{
"__id__": 78
}
]
},
{
"__type__": "cc.TargetOverrideInfo",
"source": {
"__id__": 25
"__id__": 29
},
"sourceInfo": {
"__id__": 91
"__id__": 111
},
"propertyPath": [
"head"
],
"target": {
"__id__": 25
"__id__": 29
},
"targetInfo": {
"__id__": 92
"__id__": 112
}
},
{
......@@ -3569,28 +4095,28 @@
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 94
"__id__": 114
},
"shadows": {
"__id__": 95
"__id__": 115
},
"_skybox": {
"__id__": 96
"__id__": 116
},
"fog": {
"__id__": 97
"__id__": 117
},
"octree": {
"__id__": 98
"__id__": 118
},
"skin": {
"__id__": 99
"__id__": 119
},
"lightProbeInfo": {
"__id__": 100
"__id__": 120
},
"postSettings": {
"__id__": 101
"__id__": 121
},
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false
......
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "cbd167b9-62d1-46a8-8a05-99214bbb21ab",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "cbd167b9-62d1-46a8-8a05-99214bbb21ab@6c48a",
"displayName": "排行榜他人",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "cbd167b9-62d1-46a8-8a05-99214bbb21ab",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "cbd167b9-62d1-46a8-8a05-99214bbb21ab@f9941",
"displayName": "排行榜他人",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 199,
"height": 40,
"rawWidth": 199,
"rawHeight": 40,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-99.5,
-20,
0,
99.5,
-20,
0,
-99.5,
20,
0,
99.5,
20,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
40,
199,
40,
0,
0,
199,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-99.5,
-20,
0
],
"maxPos": [
99.5,
20,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "cbd167b9-62d1-46a8-8a05-99214bbb21ab@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "cbd167b9-62d1-46a8-8a05-99214bbb21ab@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "5cf6ec7d-518e-445a-8b30-81fc930c2ba4",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "5cf6ec7d-518e-445a-8b30-81fc930c2ba4@6c48a",
"displayName": "排行榜自己",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "5cf6ec7d-518e-445a-8b30-81fc930c2ba4",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "5cf6ec7d-518e-445a-8b30-81fc930c2ba4@f9941",
"displayName": "排行榜自己",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 200,
"height": 40,
"rawWidth": 200,
"rawHeight": 40,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-100,
-20,
0,
100,
-20,
0,
-100,
20,
0,
100,
20,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
40,
200,
40,
0,
0,
200,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-100,
-20,
0
],
"maxPos": [
100,
20,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "5cf6ec7d-518e-445a-8b30-81fc930c2ba4@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "5cf6ec7d-518e-445a-8b30-81fc930c2ba4@6c48a"
}
}
[
{
"__type__": "cc.Prefab",
"_name": "排行榜他人",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "排行榜他人",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 14
},
{
"__id__": 16
},
{
"__id__": 18
}
],
"_prefab": {
"__id__": 20
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "rank",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
}
],
"_prefab": {
"__id__": 7
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 14,
"y": -20,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 8.27,
"height": 22
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "93H/4SamREtJlsDe0C3mtG"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_string": "1",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 22,
"_fontSize": 22,
"_fontFamily": "Arial",
"_lineHeight": 22,
"_overflow": 0,
"_enableWrapText": true,
"_font": {
"__uuid__": "51c12289-a516-4991-8323-ac98cee8b520",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 2,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "cfCpcf2wtO7790r1xY+1LM"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "5bPu7e339Ic7SSq+U2BmL+",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "nick",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
},
{
"__id__": 11
}
],
"_prefab": {
"__id__": 13
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 45,
"y": -20,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": {
"__id__": 10
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 27.72
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "58ynnO97ZCwaJiBcCgMFOL"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_string": "",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 22,
"_fontSize": 22,
"_fontFamily": "Arial",
"_lineHeight": 22,
"_overflow": 0,
"_enableWrapText": true,
"_font": {
"__uuid__": "51c12289-a516-4991-8323-ac98cee8b520",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 1,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "38ljvC9plFc7XcUIquCPBY"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "311ilSh3hLra+aZMHk4Xai",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 15
},
"_contentSize": {
"__type__": "cc.Size",
"width": 199,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 1
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2b6t122gBJ7oP26I9enTTj"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "cbd167b9-62d1-46a8-8a05-99214bbb21ab@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b4gxlxZ8NEAZyRggbfdZIq"
},
{
"__type__": "cc.UIOpacity",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"_opacity": 255,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "8dnW/RiydB4L9Vampq6FOB"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "9dGFpVDhJNSbeu33oaQCW+",
"instance": null,
"targetOverrides": null
}
]
\ No newline at end of file
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "816e734e-d8ca-49bc-be1e-8c23e023cdd5",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "排行榜他人"
}
}
[
{
"__type__": "cc.Prefab",
"_name": "排行榜自己",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "排行榜自己",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 14
},
{
"__id__": 16
},
{
"__id__": 18
}
],
"_prefab": {
"__id__": 20
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -220,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "rank",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
}
],
"_prefab": {
"__id__": 7
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 14,
"y": -20,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 9.77,
"height": 23
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "8bUrMCxWlMTLSd91dV1ErQ"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_string": "1",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 22,
"_fontSize": 22,
"_fontFamily": "Arial",
"_lineHeight": 22,
"_overflow": 0,
"_enableWrapText": true,
"_font": {
"__uuid__": "51c12289-a516-4991-8323-ac98cee8b520",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 2,
"_enableOutline": true,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 0.5,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "83JFgtWhhPp65JtsWzacKf"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "71R0DHp6VKMZneDgj0W3GG",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "nick",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
},
{
"__id__": 11
}
],
"_prefab": {
"__id__": 13
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 45,
"y": -20,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": {
"__id__": 10
},
"_contentSize": {
"__type__": "cc.Size",
"width": 22,
"height": 27.72
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "64r5xR0opEzLEEpgUaVudJ"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_string": "我",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 22,
"_fontSize": 22,
"_fontFamily": "Arial",
"_lineHeight": 22,
"_overflow": 0,
"_enableWrapText": true,
"_font": {
"__uuid__": "51c12289-a516-4991-8323-ac98cee8b520",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 1,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "449Y3xNt5MtrSbfOYNf0tg"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "44tiUwt4xB1pgR+8oBeVzG",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 15
},
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 1
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "abyW/EFwNF/YUtdBtjoBue"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "5cf6ec7d-518e-445a-8b30-81fc930c2ba4@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "74Nh0ih2hHtrQISSenhjB+"
},
{
"__type__": "cc.UIOpacity",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"_opacity": 255,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "6a3GsGVhVK5brHHaMFhOqv"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "49A5rcXXVEt7bJwMc/vvkp",
"instance": null,
"targetOverrides": null
}
]
\ No newline at end of file
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "279fb523-a195-4d19-9e7c-1a05f1af2c6b",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "排行榜自己"
}
}
......@@ -57,7 +57,7 @@ export class AISnake extends Snake {
// 碰到其他蛇身
// this.setAngle(this.head.angle + 180);
// this.isFast = true;
this.setState(AIState.ESCAPING, otherCollider.node.parent.getComponent(Snake));
this.setState(AIState.ESCAPING, otherCollider.node?.parent?.getComponent(Snake));
}
}
......@@ -68,7 +68,7 @@ export class AISnake extends Snake {
aiPool.put(this.node);
MainGame.ins.initAnimal(1);
MainGame.ins.initAiSnake(this.nickName, this.tag);
}
private get difficultyParams() {
......
import { _decorator, Component, v3, instantiate, Label, math, Node, Prefab, tween, UIOpacity } from "cc";
import { MainGame } from "../MainGame";
import { Snake } from "../Snake";
const { ccclass, property } = _decorator;
@ccclass("Rank")
export class Rank extends Component {
@property(Prefab) otherRankPrefab: Prefab;
@property(Prefab) selfRankPrefab: Prefab;
@property(Node) selfNode: Node;
nodeMap = new Map<number, Node>();
start() {
this.nodeMap.set(MainGame.ins.player.tag, this.selfNode);
this.schedule(() => {
this.updateRank();
}, 1);
}
updateRank() {
const snakes = MainGame.ins.animalNode.children.map((snakeNode) => {
const snake = snakeNode.getComponent(Snake);
if (!this.nodeMap.has(snake.tag)) {
const node = instantiate(this.otherRankPrefab);
node.position.set(0, -220 - 44);
node.getComponent(UIOpacity).opacity = 0;
node.getChildByName("nick").getComponent(Label).string = snake.nickName;
this.node.addChild(node);
this.nodeMap.set(snake.tag, node);
}
return snake;
});
snakes.push(MainGame.ins.player);
snakes.sort((a, b) => {
return b.length - a.length;
});
const playerIndex = snakes.indexOf(MainGame.ins.player);
for (let i = 0; i < snakes.length; i++) {
const node = this.nodeMap.get(snakes[i].tag);
node.getChildByName("rank").getComponent(Label).string = `${i + 1}`;
let rankIndex = i;
if (i == playerIndex) {
rankIndex = Math.min(rankIndex, 5);
} else if (playerIndex > 5 && rankIndex >= 5) {
rankIndex = 7;
}
tween(node)
.to(0.288, { position: v3(0, -44 * rankIndex, 0) })
.start();
tween(node.getComponent(UIOpacity))
.to(0.288, { opacity: rankIndex > 5 ? 0 : 255 })
.start();
}
}
update(deltaTime: number) {
}
}
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "98e42767-981a-4465-babd-59db437eb4b9",
"files": [],
"subMetas": {},
"userData": {}
}
......@@ -52,7 +52,7 @@ export class MainGame extends Scene {
@property({ type: FastBtn, displayName: "快进按钮" }) private fastBtn: FastBtn = null;
@property(UITransform) private uiBg: UITransform = null;
@property(Node) private uiBg: Node = null;
@property(Player) player: Player = null;
......@@ -106,25 +106,8 @@ export class MainGame extends Scene {
// EPhysics2DDrawFlags.Joint |
// EPhysics2DDrawFlags.Shape;
Global.MAP_WIDTH = this.uiBg.contentSize.x;
Global.MAP_HEIGHT = this.uiBg.contentSize.y;
// 初始化墙壁
const wallTop = this.uiBg.node.getChildByName("WALL_TOP");
wallTop.setPosition(0, Global.MAP_HEIGHT / 2);
wallTop.getComponent(UITransform).width = Global.MAP_WIDTH;
const wallBottom = this.uiBg.node.getChildByName("WALL_BOTTOM");
wallBottom.setPosition(0, -Global.MAP_HEIGHT / 2);
wallBottom.getComponent(UITransform).width = Global.MAP_WIDTH;
const wallLeft = this.uiBg.node.getChildByName("WALL_LEFT");
wallLeft.setPosition(-Global.MAP_WIDTH / 2, 0);
wallLeft.getComponent(UITransform).height = Global.MAP_HEIGHT;
const wallRight = this.uiBg.node.getChildByName("WALL_RIGHT");
wallRight.setPosition(Global.MAP_WIDTH / 2, 0);
wallRight.getComponent(UITransform).height = Global.MAP_HEIGHT;
this.uiBg.getComponent(UITransform)
.setContentSize(Global.MAP_WIDTH, Global.MAP_HEIGHT);
this.player.init({
// initEnergy: 10000
......@@ -246,16 +229,13 @@ export class MainGame extends Scene {
console.log("showGOver", this.player.getSnakeLen());
}
async initAnimal(count: number) {
const nickArr = useNick(count);
const initItem = (index: number) => {
initAiSnake(nickName?: string, tag?: number) {
const node = aiPool.get() || instantiate(this.animalPrefab);
const x = math.randomRangeInt(-(Global.MAP_WIDTH / 2 - 50), Global.MAP_WIDTH / 2 - 50);
const y = math.randomRangeInt(-(Global.MAP_HEIGHT / 2 - 50), Global.MAP_HEIGHT / 2 - 50);
node.getComponent(AISnake)?.init({
nickName: nickArr[index],
nickName: nickName,
tag: tag,
x, y,
// x: 50,
// y: 50,
......@@ -263,10 +243,15 @@ export class MainGame extends Scene {
angle: math.randomRangeInt(0, 360),
skinName: "s0",
});
this.animalNode.addChild(node);
};
}
async initAnimal(count: number) {
const nickArr = useNick(count);
const initItem = (index: number) => {
this.initAiSnake(nickArr[index]);
};
await executePreFrame(getItemGenerator(count, initItem), 1, this);
}
......
......@@ -32,6 +32,7 @@ export interface IInitConfig {
scale?: number;
bodyCount?: number;
initEnergy?: number,
tag?: number;
}
@ccclass("Snake")
......@@ -59,7 +60,7 @@ export class Snake extends Component {
private scale: number = 0.2;
speed: number = 300;
private energy: number = 0;
protected tag: number = 0;
tag: number = 0;
// 位置相关
private ready: boolean = false;
......@@ -88,6 +89,7 @@ export class Snake extends Component {
x = 0, y = 0, angle = 0, scale = 0.5,
skinName = "default",
initEnergy = 5,
tag = Snake.getTag(),
} = config;
this.nickName = nickName;
......@@ -98,7 +100,7 @@ export class Snake extends Component {
this.energy = 0;
this.bodyArr = [];
this.scale = scale;
this.tag = Snake.getTag();
this.tag = tag;
// 设置头部
this.head.angle = angle;
......
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