Commit c0b3fa4a authored by haiyoucuv's avatar haiyoucuv

init

parent 528e7534
......@@ -26,7 +26,7 @@
"_active": true,
"_components": [],
"_prefab": {
"__id__": 65
"__id__": 82
},
"_lpos": {
"__type__": "cc.Vec3",
......@@ -57,7 +57,7 @@
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 69
"__id__": 86
},
"_id": "53947ca7-3484-4b53-800d-509405063d68"
},
......@@ -89,16 +89,16 @@
"_active": true,
"_components": [
{
"__id__": 61
"__id__": 78
},
{
"__id__": 62
"__id__": 79
},
{
"__id__": 63
"__id__": 80
},
{
"__id__": 64
"__id__": 81
}
],
"_prefab": null,
......@@ -1541,10 +1541,10 @@
"_enabled": true,
"__prefab": null,
"handle": {
"__id__": 55
"__id__": 72
},
"bg": {
"__id__": 59
"__id__": 76
},
"normalSp": {
"__uuid__": "7f413237-4b73-4bae-bca7-7ab9e9742ebc@f9941",
......@@ -1566,22 +1566,22 @@
},
"_children": [
{
"__id__": 55
"__id__": 72
}
],
"_active": true,
"_components": [
{
"__id__": 58
"__id__": 75
},
{
"__id__": 59
"__id__": 76
},
{
"__id__": 37
},
{
"__id__": 60
"__id__": 77
}
],
"_prefab": null,
......@@ -1639,13 +1639,13 @@
"_active": true,
"_components": [
{
"__id__": 52
"__id__": 69
},
{
"__id__": 53
"__id__": 70
},
{
"__id__": 54
"__id__": 71
}
],
"_prefab": null,
......@@ -1996,18 +1996,73 @@
},
{
"__type__": "cc.Node",
"_name": "LTips",
"_name": "left",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 39
},
"_children": [],
"_children": [
{
"__id__": 49
},
{
"__id__": 52
}
],
"_active": true,
"_components": [
{
"__id__": 49
"__id__": 66
},
{
"__id__": 67
},
{
"__id__": 68
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": -795.0000000000001,
"y": 317.2,
"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": "e7NE8GAOZEboCQW2IhP/lc"
},
{
"__type__": "cc.Node",
"_name": "击杀数",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 48
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 50
},
......@@ -2018,8 +2073,8 @@
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 712,
"y": 249.8,
"x": 94.55999755859375,
"y": 0,
"z": 0
},
"_lrot": {
......@@ -2051,14 +2106,14 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 48
"__id__": 49
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 42.255859375,
"height": 50.4
"width": 94.55999755859375,
"height": 75.6
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2073,7 +2128,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 48
"__id__": 49
},
"_enabled": true,
"__prefab": null,
......@@ -2087,20 +2142,23 @@
"b": 0,
"a": 255
},
"_string": "label",
"_string": "8名",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 20,
"_fontSize": 20,
"_actualFontSize": 60,
"_fontSize": 60,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_lineHeight": 60,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_font": {
"__uuid__": "51c12289-a516-4991-8323-ac98cee8b520",
"__expectedType__": "cc.TTFFont"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
......@@ -2130,125 +2188,134 @@
"_id": "19rM5WBaxLeLzdAeJnwo00"
},
{
"__type__": "cc.Widget",
"_name": "",
"__type__": "cc.Node",
"_name": "Node",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"_parent": {
"__id__": 48
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 33,
"_target": null,
"_left": 0,
"_right": 100,
"_top": 100,
"_bottom": -28.117999999999995,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 50.4,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "ecH3oPhpZGbLylQqewE5v7"
"_children": [
{
"__id__": 53
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
"__id__": 62
}
],
"_active": true,
"_components": [
{
"__id__": 65
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 102.55999755859375,
"y": 0,
"z": 0
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1624.0000000000002,
"height": 750
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_id": "33mxfvlWJOYoIbx4ZEAfKS"
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "d76m1Be6JPE7MRz+uLGmRz"
},
{
"__type__": "cc.Canvas",
"_name": "",
"__type__": "cc.Node",
"_name": "Node",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
"_parent": {
"__id__": 52
},
"_enabled": true,
"__prefab": null,
"_cameraComponent": {
"__id__": 41
"_children": [
{
"__id__": 54
},
"_alignCanvasWithScreen": true,
"_id": "34wxp/0vpKH4Wcp1ieFQOS"
{
"__id__": 57
}
],
"_active": true,
"_components": [
{
"__id__": 60
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
"__id__": 61
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 17,
"z": 0
},
"_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": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "06Ujytz0pEyLB5yn9hXAKx"
"_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": "7aNLSIt2dM4Jkvhl2PeyN5"
},
{
"__type__": "cc.Node",
"_name": "handle",
"_name": "长度",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 38
"__id__": 53
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 56
"__id__": 55
},
{
"__id__": 57
"__id__": 56
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"x": 44,
"y": 0,
"z": 0
},
......@@ -2273,7 +2340,7 @@
"y": 0,
"z": 0
},
"_id": "afSm7CFGFEXrWoQl6Y6Gxn"
"_id": "4fClJk9J9ER5wMW/5eh/7b"
},
{
"__type__": "cc.UITransform",
......@@ -2281,29 +2348,662 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 55
"__id__": 54
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 60
"width": 44,
"height": 27.72
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"x": 1,
"y": 0.5
},
"_id": "90ZZLRikdJoKqiyDQXUVwh"
"_id": "65VBumDrZM2Z6U5WpnTWpg"
},
{
"__type__": "cc.Sprite",
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 55
"__id__": 54
},
"_enabled": true,
"__prefab": null,
"_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": 0,
"_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": "00GFXL5z5HOqGRNoYOvHlz"
},
{
"__type__": "cc.Node",
"_name": "长度Num",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 53
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 58
},
{
"__id__": 59
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 49,
"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": "83FsmF9m5BY71q0qhawgIE"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 57
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 12.6719970703125,
"height": 27.72
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": "62X1dUZKBEe5+MuKg58f2+"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 57
},
"_enabled": true,
"__prefab": null,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 0,
"b": 0,
"a": 255
},
"_string": "0",
"_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": 0,
"_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": "d83gzLSelE2KX8v1Lj45u3"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 53
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 61.6719970703125,
"height": 27.72
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": "a6ddzecHFFZ7lW10Ahq/Q4"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 53
},
"_enabled": true,
"__prefab": null,
"_resizeMode": 1,
"_layoutType": 1,
"_cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_startAxis": 0,
"_paddingLeft": 0,
"_paddingRight": 0,
"_paddingTop": 0,
"_paddingBottom": 0,
"_spacingX": 5,
"_spacingY": 0,
"_verticalDirection": 1,
"_horizontalDirection": 0,
"_constraint": 0,
"_constraintNum": 2,
"_affectedByScale": false,
"_isAlign": true,
"_id": "9cSztn0zdNHIy2d8966Brp"
},
{
"__type__": "cc.Node",
"_name": "击杀",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 52
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 63
},
{
"__id__": 64
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -17,
"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": "40gCuFvatNZZEJOTwIbH8K"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 62
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 44,
"height": 27.72
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": "f58i0X1HxBeIxyKqASJOVP"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 62
},
"_enabled": true,
"__prefab": null,
"_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": 0,
"_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": "68aPLliGdIg6lb+w/TYSef"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 52
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 97.27999877929688,
"height": 75.6
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": "4fVEp4vg9Bt5TI+5oTwsgD"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 48
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 199.83999633789062,
"height": 75.6
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": "0e0TLA13hKhLmrxoeu40G9"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 48
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 9,
"_target": null,
"_left": 17,
"_right": 0,
"_top": 20,
"_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": "77QTEel7lAI7V9r7pwqurp"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 48
},
"_enabled": true,
"__prefab": null,
"_resizeMode": 1,
"_layoutType": 1,
"_cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_startAxis": 0,
"_paddingLeft": 0,
"_paddingRight": 0,
"_paddingTop": 0,
"_paddingBottom": 0,
"_spacingX": 8,
"_spacingY": 0,
"_verticalDirection": 1,
"_horizontalDirection": 0,
"_constraint": 0,
"_constraintNum": 2,
"_affectedByScale": false,
"_isAlign": true,
"_id": "bbpfXi9v9F24X/Ptbw6uCj"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1624.0000000000002,
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "33mxfvlWJOYoIbx4ZEAfKS"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
},
"_enabled": true,
"__prefab": null,
"_cameraComponent": {
"__id__": 41
},
"_alignCanvasWithScreen": true,
"_id": "34wxp/0vpKH4Wcp1ieFQOS"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
},
"_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": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "06Ujytz0pEyLB5yn9hXAKx"
},
{
"__type__": "cc.Node",
"_name": "handle",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 73
},
{
"__id__": 74
}
],
"_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": "afSm7CFGFEXrWoQl6Y6Gxn"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 72
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "90ZZLRikdJoKqiyDQXUVwh"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 72
},
"_enabled": true,
"__prefab": null,
......@@ -2530,11 +3230,17 @@
"__id__": 23
},
"LTips": {
"__id__": 50
"__id__": 51
},
"camera": {
"__id__": 4
},
"killTxt": {
"__id__": 51
},
"lengthTxt": {
"__id__": 59
},
"_id": "212vDeP7dNBZXi0fJjPuCy"
},
{
......@@ -2545,7 +3251,7 @@
"instance": null,
"targetOverrides": [
{
"__id__": 66
"__id__": 83
}
]
},
......@@ -2555,7 +3261,7 @@
"__id__": 25
},
"sourceInfo": {
"__id__": 67
"__id__": 84
},
"propertyPath": [
"head"
......@@ -2564,7 +3270,7 @@
"__id__": 25
},
"targetInfo": {
"__id__": 68
"__id__": 85
}
},
{
......@@ -2582,28 +3288,28 @@
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 70
"__id__": 87
},
"shadows": {
"__id__": 71
"__id__": 88
},
"_skybox": {
"__id__": 72
"__id__": 89
},
"fog": {
"__id__": 73
"__id__": 90
},
"octree": {
"__id__": 74
"__id__": 91
},
"skin": {
"__id__": 75
"__id__": 92
},
"lightProbeInfo": {
"__id__": 76
"__id__": 93
},
"postSettings": {
"__id__": 77
"__id__": 94
},
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false
......
{
"ver": "1.0.1",
"importer": "ttf-font",
"imported": true,
"uuid": "2c64cd9b-a68c-4de0-b137-694dc03e1edf",
"files": [
".json",
"CKTKingkongNum.ttf"
],
"subMetas": {},
"userData": {}
}
......@@ -67,12 +67,24 @@ export class MainGame extends Scene {
@property(Node)
animalNode: Node = null;
@property(Label)
private LTips: Label = null;
@property(Camera)
camera: Camera = null;
@property({ type: Label, group: "UI" }) killTxt: Label = null;
@property({ type: Label, group: "UI" }) lengthTxt: Label = null;
private _killNum = 0;
set killNum(n: number) {
this._killNum = n;
this.killTxt.string = `${this._killNum}名`;
}
get killNum() {
return this._killNum;
}
private state: GameState = GameState.READY;
private rebirthSum: number = 0;
......@@ -148,9 +160,6 @@ export class MainGame extends Scene {
update(dt: number) {
if (this.state == GameState.READY) return;
// 更新UI提示
this.LTips.string = `长度:${this.player.getSnakeLen()}, 四叉树节点个数:${QuadTreeNode.caches.length}`;
this.player.onUpdate(dt);
// 更新相机位置
......
......@@ -6,6 +6,7 @@ import { Snake } from "./Snake";
import { Joystick } from "./Components/Joystick";
import { FastBtn } from "./Components/FastBtn";
import { Events, GameState } from "./Common/Enums";
import { MainGame } from "./MainGame";
const { ccclass, property } = _decorator;
......@@ -23,18 +24,24 @@ export class Player extends Snake {
input.on(Input.EventType.KEY_DOWN, this.onKeyDown, this);
input.on(Input.EventType.KEY_UP, this.onKeyUp, this);
this.fastBtn.node.on("fast", this.onFast, this);
this.node.on("updateLength", this.updateLength, this);
}
onDestroy() {
input.off(Input.EventType.KEY_DOWN, this.onKeyDown, this);
input.off(Input.EventType.KEY_UP, this.onKeyUp, this);
this.fastBtn.node.off("fast", this.onFast, this);
this.node.off("updateLength", this.updateLength, this);
}
onFast(isFast: boolean) {
this.isFast = isFast;
}
updateLength(length: number) {
MainGame.ins.lengthTxt.string = `${length}`;
}
death() {
super.death();
......
......@@ -58,10 +58,17 @@ export class Snake extends Component {
protected tag: number = 0;
// 位置相关
private vw: number = Global.visibleSize.width / 2 + 100;
private vh: number = Global.visibleSize.height / 2 + 100;
private ready: boolean = false;
private _length: number = 0;
get length() {
return this._length;
}
set length(value: number) {
this._length = value;
this.node.emit("updateLength", value);
}
get radius() {
return this.scale * 29;
}
......@@ -176,7 +183,6 @@ export class Snake extends Component {
// 能量与成长
lastRemaining = 0;
private addEnergy(value: number) {
console.log(this.energy, value);
this.energy += value;
const growthThreshold = Math.floor(4 * this.scale);
......@@ -191,8 +197,6 @@ export class Snake extends Component {
}
}
console.log(this.energy, this.scale, this.energy / this.bodyArr.length);
this.lastRemaining = value;
// this.speed = 600 * this.scale;
......
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