Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
interactiveGames_Level
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xuxing@jiuaoedu.com
interactiveGames_Level
Commits
65450189
Commit
65450189
authored
Oct 22, 2021
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下周做虚线消除
parent
ff6d45b9
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
2735 additions
and
0 deletions
+2735
-0
latticeBlockade.meta
assets/sceneBundle/games/latticeBlockade.meta
+12
-0
image.meta
assets/sceneBundle/games/latticeBlockade/image.meta
+12
-0
名称框.png
assets/sceneBundle/games/latticeBlockade/image/名称框.png
+0
-0
名称框.png.meta
assets/sceneBundle/games/latticeBlockade/image/名称框.png.meta
+74
-0
圆.png
assets/sceneBundle/games/latticeBlockade/image/圆.png
+0
-0
圆.png.meta
assets/sceneBundle/games/latticeBlockade/image/圆.png.meta
+74
-0
圆侧阴影.png
assets/sceneBundle/games/latticeBlockade/image/圆侧阴影.png
+0
-0
圆侧阴影.png.meta
assets/sceneBundle/games/latticeBlockade/image/圆侧阴影.png.meta
+74
-0
prefab.meta
assets/sceneBundle/games/latticeBlockade/prefab.meta
+12
-0
LatticeBlockadeItem.prefab
...e/games/latticeBlockade/prefab/LatticeBlockadeItem.prefab
+472
-0
LatticeBlockadeItem.prefab.meta
...es/latticeBlockade/prefab/LatticeBlockadeItem.prefab.meta
+13
-0
line.prefab
assets/sceneBundle/games/latticeBlockade/prefab/line.prefab
+142
-0
line.prefab.meta
...sceneBundle/games/latticeBlockade/prefab/line.prefab.meta
+13
-0
scene.meta
assets/sceneBundle/games/latticeBlockade/scene.meta
+12
-0
LatticeBlockade.scene
...eBundle/games/latticeBlockade/scene/LatticeBlockade.scene
+1300
-0
LatticeBlockade.scene.meta
...le/games/latticeBlockade/scene/LatticeBlockade.scene.meta
+11
-0
script.meta
assets/sceneBundle/games/latticeBlockade/script.meta
+12
-0
LatticeBlockadeCfg.ts
...Bundle/games/latticeBlockade/script/LatticeBlockadeCfg.ts
+20
-0
LatticeBlockadeCfg.ts.meta
...e/games/latticeBlockade/script/LatticeBlockadeCfg.ts.meta
+9
-0
LatticeBlockadeCtr.ts
...Bundle/games/latticeBlockade/script/LatticeBlockadeCtr.ts
+415
-0
LatticeBlockadeCtr.ts.meta
...e/games/latticeBlockade/script/LatticeBlockadeCtr.ts.meta
+9
-0
LatticeBlockadeItem.ts
...undle/games/latticeBlockade/script/LatticeBlockadeItem.ts
+40
-0
LatticeBlockadeItem.ts.meta
.../games/latticeBlockade/script/LatticeBlockadeItem.ts.meta
+9
-0
No files found.
assets/sceneBundle/games/latticeBlockade.meta
0 → 100644
View file @
65450189
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "ba1e724a-4da1-463a-aacf-3fe8ea4bd008",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
assets/sceneBundle/games/latticeBlockade/image.meta
0 → 100644
View file @
65450189
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "30f4749b-8990-465b-b982-4aea2f117a19",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
assets/sceneBundle/games/latticeBlockade/image/名称框.png
0 → 100644
View file @
65450189
2.17 KB
assets/sceneBundle/games/latticeBlockade/image/名称框.png.meta
0 → 100644
View file @
65450189
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "aca18868-0230-4954-8205-32b580969811",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "aca18868-0230-4954-8205-32b580969811@6c48a",
"displayName": "名称框",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "aca18868-0230-4954-8205-32b580969811"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "aca18868-0230-4954-8205-32b580969811@f9941",
"displayName": "名称框",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 262,
"height": 69,
"rawWidth": 262,
"rawHeight": 69,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "aca18868-0230-4954-8205-32b580969811@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "aca18868-0230-4954-8205-32b580969811@f9941"
}
}
assets/sceneBundle/games/latticeBlockade/image/圆.png
0 → 100644
View file @
65450189
347 Bytes
assets/sceneBundle/games/latticeBlockade/image/圆.png.meta
0 → 100644
View file @
65450189
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "242bd7af-45e9-4b13-866a-264b84f233a8",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "242bd7af-45e9-4b13-866a-264b84f233a8@6c48a",
"displayName": "圆",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "242bd7af-45e9-4b13-866a-264b84f233a8"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "242bd7af-45e9-4b13-866a-264b84f233a8@f9941",
"displayName": "圆",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 47,
"height": 47,
"rawWidth": 47,
"rawHeight": 47,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "242bd7af-45e9-4b13-866a-264b84f233a8@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "242bd7af-45e9-4b13-866a-264b84f233a8@f9941"
}
}
assets/sceneBundle/games/latticeBlockade/image/圆侧阴影.png
0 → 100644
View file @
65450189
384 Bytes
assets/sceneBundle/games/latticeBlockade/image/圆侧阴影.png.meta
0 → 100644
View file @
65450189
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "85d2a4f4-2c5d-4dfc-bc4e-3decd902c30f",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "85d2a4f4-2c5d-4dfc-bc4e-3decd902c30f@6c48a",
"displayName": "圆侧阴影",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "85d2a4f4-2c5d-4dfc-bc4e-3decd902c30f"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "85d2a4f4-2c5d-4dfc-bc4e-3decd902c30f@f9941",
"displayName": "圆侧阴影",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 2,
"offsetY": -2,
"trimX": 4,
"trimY": 4,
"width": 43,
"height": 43,
"rawWidth": 47,
"rawHeight": 47,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "85d2a4f4-2c5d-4dfc-bc4e-3decd902c30f@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "85d2a4f4-2c5d-4dfc-bc4e-3decd902c30f@f9941"
}
}
assets/sceneBundle/games/latticeBlockade/prefab.meta
0 → 100644
View file @
65450189
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "0a8411e2-b92d-4581-a8f1-c1432bf44fed",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
assets/sceneBundle/games/latticeBlockade/prefab/LatticeBlockadeItem.prefab
0 → 100644
View file @
65450189
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false
},
{
"__type__": "cc.Node",
"_name": "LatticeBlockadeItem",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 6
},
{
"__id__": 12
}
],
"_active": true,
"_components": [
{
"__id__": 18
},
{
"__id__": 20
}
],
"_prefab": {
"__id__": 22
},
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "rectNode",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 5
},
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "94FxpCcUtMY67V6qOmLOYM"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "30wfCDLqJDIai/72yTjQlf"
},
{
"__type__": "cc.Node",
"_name": "itemSpr",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
},
{
"__id__": 9
}
],
"_prefab": {
"__id__": 11
},
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f7NISe7HdAD68SLfhnddy8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"__prefab": {
"__id__": 10
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "242bd7af-45e9-4b13-866a-264b84f233a8@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": false,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e71ctEmpxFC4KlSYRZNz/a"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "cd6upkvh9C9bySzK9GtMKD"
},
{
"__type__": "cc.Node",
"_name": "圆侧阴影",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
},
{
"__id__": 15
}
],
"_prefab": {
"__id__": 17
},
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f7NISe7HdAD68SLfhnddy8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"__prefab": {
"__id__": 16
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "85d2a4f4-2c5d-4dfc-bc4e-3decd902c30f@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": false,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e71ctEmpxFC4KlSYRZNz/a"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "16Ja1MBT9BQJFYvYR36ago"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "0aHwXfubxB0LE3DpnJVf83"
},
{
"__type__": "a3846v1O6JH64sixDEiN1Io",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 21
},
"itemSpr": {
"__id__": 9
},
"rectNode": {
"__id__": 2
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "60j/+2GIpEg7Ih+KrrMf7t"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "e9wfyLX6RGNbWxyweIdMwH"
}
]
\ No newline at end of file
assets/sceneBundle/games/latticeBlockade/prefab/LatticeBlockadeItem.prefab.meta
0 → 100644
View file @
65450189
{
"ver": "1.1.27",
"importer": "prefab",
"imported": true,
"uuid": "1d8013b3-f53c-43d1-9439-e87a94ba0f15",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "LatticeBlockadeItem"
}
}
assets/sceneBundle/games/latticeBlockade/prefab/line.prefab
0 → 100644
View file @
65450189
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false
},
{
"__type__": "cc.Node",
"_name": "line",
"_objFlags": 0,
"_parent": null,
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
},
{
"__id__": 4
}
],
"_prefab": {
"__id__": 6
},
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 3
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 20
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 5
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"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": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b9MbCSD8tNz44JbGF1vmIE"
}
]
\ No newline at end of file
assets/sceneBundle/games/latticeBlockade/prefab/line.prefab.meta
0 → 100644
View file @
65450189
{
"ver": "1.1.27",
"importer": "prefab",
"imported": true,
"uuid": "438c1fbc-6966-463c-b930-24e54c408162",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "line"
}
}
assets/sceneBundle/games/latticeBlockade/scene.meta
0 → 100644
View file @
65450189
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "50ada3c7-f939-4af5-b070-8e015ab2e0b4",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
assets/sceneBundle/games/latticeBlockade/scene/LatticeBlockade.scene
0 → 100644
View file @
65450189
[
{
"__type__": "cc.SceneAsset",
"_name": "",
"_objFlags": 0,
"_native": "",
"scene": {
"__id__": 1
}
},
{
"__type__": "cc.Scene",
"_name": "LatticeBlockade",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_active": true,
"_components": [],
"_prefab": null,
"autoReleaseAssets": false,
"_globals": {
"__id__": 44
},
"_id": "845f6d9b-e827-48a1-b683-47d3cebc3d1b"
},
{
"__type__": "cc.Node",
"_name": "Main Light",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": -0.24999999999999997,
"y": -0.24999999999999997,
"z": -0.06698729810778066,
"w": 0.9330127018922194
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": -30,
"y": -30,
"z": 0
},
"_id": "c0y6F5f+pAvI805TdmxIjx"
},
{
"__type__": "cc.DirectionalLight",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": null,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_useColorTemperature": false,
"_colorTemperature": 6550,
"_staticSettings": {
"__id__": 4
},
"_illuminance": 65000,
"_id": "597uMYCbhEtJQc0ffJlcgA"
},
{
"__type__": "cc.StaticLightSettings",
"_baked": false,
"_editorOnly": false,
"_bakeable": false,
"_castShadow": false
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": -10,
"y": 10,
"z": 10
},
"_lrot": {
"__type__": "cc.Quat",
"x": -0.27781593346944056,
"y": -0.36497167621709875,
"z": -0.11507512748638377,
"w": 0.8811195706053617
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": -35,
"y": -45,
"z": 0
},
"_id": "c9DMICJLFO5IeO07EPon7U"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"__prefab": null,
"_projection": 1,
"_priority": 0,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 10,
"_near": 1,
"_far": 1000,
"_color": {
"__type__": "cc.Color",
"r": 51,
"g": 51,
"b": 51,
"a": 255
},
"_depth": 1,
"_stencil": 0,
"_clearFlags": 7,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_aperture": 19,
"_shutter": 7,
"_iso": 0,
"_screenScale": 1,
"_visibility": 1822425087,
"_targetTexture": null,
"_id": "7dWQTpwS5LrIHnc1zAPUtf"
},
{
"__type__": "cc.Node",
"_name": "Canvas",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 8
},
{
"__id__": 10
},
{
"__id__": 16
}
],
"_active": true,
"_components": [
{
"__id__": 37
},
{
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 667,
"y": 375,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "4cUTea+CBLgLqcWcQ3poMM"
},
{
"__type__": "cc.Node",
"_name": "Camera",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 1000
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "f1PuEK3wZMM7udZfTceA4S"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": null,
"_projection": 0,
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 414.4124472573839,
"_near": 1,
"_far": 2000,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": 1,
"_stencil": 0,
"_clearFlags": 6,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_aperture": 19,
"_shutter": 7,
"_iso": 0,
"_screenScale": 1,
"_visibility": 41943040,
"_targetTexture": null,
"_id": "a4O2mDe+NKrLrYF2Cvb85F"
},
{
"__type__": "cc.Node",
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
},
{
"__id__": 15
}
],
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "8drRlqvMhMrIbI/Vl7013n"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "dclqt5c3FEoILToCivKZpI"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 47,
"g": 101,
"b": 143,
"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": "14Pdqzf0NBKY1Fd4HQgOCO"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_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": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "3cuq5cbWBBT6K77h0isvmk"
},
{
"__type__": "cc.Node",
"_name": "mainNode",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 17
},
{
"__id__": 23
},
{
"__id__": 29
},
{
"__id__": 32
}
],
"_active": true,
"_components": [
{
"__id__": 35
},
{
"__id__": 36
}
],
"_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
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "3cSq7K/Z5DmpxTXUILkfnU"
},
{
"__type__": "cc.Node",
"_name": "bottomSpr",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 18
},
{
"__id__": 20
},
{
"__id__": 22
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -81.913,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "f2MYWi1zpExJjCo22dHDFJ"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"_contentSize": {
"__type__": "cc.Size",
"width": 420,
"height": 420
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "010iy5uRZGeqwjsMeb34tW"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f7NISe7HdAD68SLfhnddy8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"__prefab": {
"__id__": 21
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 50
},
"_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": "37W+UYTLtPorD9rmsdDsdY"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e71ctEmpxFC4KlSYRZNz/a"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 18,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": -81.913,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "89Bqgujz1MBYuLoTkIzSu/"
},
{
"__type__": "cc.Node",
"_name": "topSpr",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
},
{
"__id__": 26
},
{
"__id__": 28
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -81.913,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "75K1ncIyxNQIyPDw7cIaty"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": {
"__id__": 25
},
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 400
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "97aMjtiOtCYpNd5acEM1QD"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f7NISe7HdAD68SLfhnddy8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": {
"__id__": 27
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 80
},
"_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": "c87i8UAElKSKgH4X7eoJZf"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e71ctEmpxFC4KlSYRZNz/a"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 18,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": -81.913,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "1dPybGu0pIlLcAeOGhO6Ca"
},
{
"__type__": "cc.Node",
"_name": "lineArrNode",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 30
},
{
"__id__": 31
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -81.913,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "185d48qvVG6bt4zegYM+Uw"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 400
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "67KXqXiidN4ZHGHij7ILaF"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 18,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": -81.913,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "ffrwJSC9BIhaN1yH0xSxic"
},
{
"__type__": "cc.Node",
"_name": "posArrNode",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
},
{
"__id__": 34
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -81.913,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "daQ6diPJJDzqs2hkbpk9MH"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 400
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "58IZ/PB61JdK28424jjQyc"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 18,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": -81.913,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "b19GivuKJIKaXj9/AhLCL/"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "c7dVdnYTZOeplgmorCVCBw"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_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": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "0cBFVwl5xKHarK752QwIil"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 38
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 750
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "d6LpdG691D0qj7Vrgz/PGH"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "0dngp/9gNO34wUQjZfN/CX"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 40
},
"_cameraComponent": {
"__id__": 9
},
"_alignCanvasWithScreen": true,
"_id": "4dVnIXCa5FAroVF0/ZXgje"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "3f2oTdCepERZdpmIfLsrhd"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": {
"__id__": 42
},
"_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": "7aSiwgiUNBWLJ46TcZtK+1"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e8a+bU/8dPDbbJguUzLdoF"
},
{
"__type__": "1b7b5dE3PpCc717Chwms56+",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": null,
"posArrNode": {
"__id__": 32
},
"lineArrNode": {
"__id__": 29
},
"bottomSprNode": {
"__id__": 17
},
"topSprNode": {
"__id__": 23
},
"itemPre": {
"__uuid__": "1d8013b3-f53c-43d1-9439-e87a94ba0f15",
"__expectedType__": "cc.Prefab"
},
"linePre": {
"__uuid__": "438c1fbc-6966-463c-b930-24e54c408162",
"__expectedType__": "cc.Prefab"
},
"_id": "24ybd376tP05V7cqhtpbf7"
},
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 45
},
"shadows": {
"__id__": 46
},
"_skybox": {
"__id__": 47
},
"fog": {
"__id__": 48
}
},
{
"__type__": "cc.AmbientInfo",
"_skyColor": {
"__type__": "cc.Color",
"r": 51,
"g": 128,
"b": 204,
"a": 1
},
"_skyIllum": 20000,
"_groundAlbedo": {
"__type__": "cc.Color",
"r": 51,
"g": 51,
"b": 51,
"a": 255
}
},
{
"__type__": "cc.ShadowsInfo",
"_type": 0,
"_enabled": false,
"_normal": {
"__type__": "cc.Vec3",
"x": 0,
"y": 1,
"z": 0
},
"_distance": 0,
"_shadowColor": {
"__type__": "cc.Color",
"r": 76,
"g": 76,
"b": 76,
"a": 255
},
"_autoAdapt": true,
"_pcf": 0,
"_bias": 0.00001,
"_packing": false,
"_linear": true,
"_selfShadow": false,
"_normalBias": 0,
"_near": 1,
"_far": 30,
"_aspect": 1,
"_orthoSize": 5,
"_maxReceived": 4,
"_size": {
"__type__": "cc.Vec2",
"x": 512,
"y": 512
}
},
{
"__type__": "cc.SkyboxInfo",
"_envmap": null,
"_isRGBE": false,
"_enabled": false,
"_useIBL": false
},
{
"__type__": "cc.FogInfo",
"_type": 0,
"_fogColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"_enabled": false,
"_fogDensity": 0.3,
"_fogStart": 0.5,
"_fogEnd": 300,
"_fogAtten": 5,
"_fogTop": 1.5,
"_fogRange": 1.2
}
]
\ No newline at end of file
assets/sceneBundle/games/latticeBlockade/scene/LatticeBlockade.scene.meta
0 → 100644
View file @
65450189
{
"ver": "1.1.27",
"importer": "scene",
"imported": true,
"uuid": "845f6d9b-e827-48a1-b683-47d3cebc3d1b",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}
assets/sceneBundle/games/latticeBlockade/script.meta
0 → 100644
View file @
65450189
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "d3b90e96-06d3-49e2-824f-ace3b7b31df9",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
assets/sceneBundle/games/latticeBlockade/script/LatticeBlockadeCfg.ts
0 → 100644
View file @
65450189
import
{
_decorator
,
Component
,
Node
}
from
'cc'
;
const
{
ccclass
,
property
}
=
_decorator
;
export
interface
LatticeBlockadeIfo
{
s_xy
:
[
number
,
number
],
row
:
number
,
column
:
number
,
numArr
:
number
[][]
}
export
const
LB_LV_1
:
LatticeBlockadeIfo
=
{
s_xy
:
[
2
,
2
],
row
:
4
,
column
:
4
,
numArr
:
[[
3
,
-
1
,
2
]
,
[
-
1
,
-
1
,
1
]
,
[
0
,
-
1
,
-
1
]]
}
\ No newline at end of file
assets/sceneBundle/games/latticeBlockade/script/LatticeBlockadeCfg.ts.meta
0 → 100644
View file @
65450189
{
"ver": "4.0.22",
"importer": "typescript",
"imported": true,
"uuid": "63b79736-dee9-456d-872d-a8065d9546a8",
"files": [],
"subMetas": {},
"userData": {}
}
assets/sceneBundle/games/latticeBlockade/script/LatticeBlockadeCtr.ts
0 → 100644
View file @
65450189
import
{
_decorator
,
Component
,
Node
,
Vec3
,
v3
,
UITransform
,
Prefab
,
instantiate
,
Label
,
Color
,
Layers
,
find
,
Sprite
,
SpriteFrame
,
v2
,
director
,
Vec2
,
EventTouch
,
Canvas
}
from
'cc'
;
import
{
LatticeBlockadeIfo
,
LB_LV_1
}
from
'./LatticeBlockadeCfg'
;
import
{
LatticeBlockadeItem
}
from
'./LatticeBlockadeItem'
;
const
{
ccclass
,
property
}
=
_decorator
;
export
interface
ItemPosIfo
{
id
:
number
,
//唯一标识
pos
:
Vec3
,
//位置
xIdx
:
number
,
//列
yIdx
:
number
,
//行
target
:
Node
//占有这个节点的对象
}
export
interface
GridIfo
{
id
:
number
,
//唯一标识
pos
:
Vec3
,
//位置
itemArr
:
ItemPosIfo
[],
target
:
Node
,
//占有这个节点的对象
count
:
number
}
enum
LINE_TYPE
{
FULL
=
10
,
DOTTED
=
20
,
}
interface
LineIfo
{
type
:
LINE_TYPE
,
s_item
:
ItemPosIfo
,
e_item
:
ItemPosIfo
,
targSpr
:
Sprite
}
enum
GAME_STATE
{
READY
=
10
,
PAUSE
=
20
,
END
=
30
,
IDLE
=
40
,
PATH_LINE
=
50
,
MARK_LINE
=
60
,
}
@
ccclass
(
'LatticeBlockadeCtr'
)
export
class
LatticeBlockadeCtr
extends
Component
{
@
property
(
Node
)
posArrNode
:
Node
=
null
!
;
@
property
(
Node
)
lineArrNode
:
Node
=
null
!
;
@
property
(
Node
)
bottomSprNode
:
Node
=
null
!
;
@
property
(
Node
)
topSprNode
:
Node
=
null
!
;
@
property
(
Prefab
)
itemPre
:
Prefab
=
null
!
;
@
property
(
Prefab
)
linePre
:
Prefab
=
null
!
;
private
itemWidth
=
100
;
private
itemHeight
=
100
;
private
itemSpaceX
=
0
;
private
itemSpaceY
=
0
;
private
itemPosIfoArr
:
ItemPosIfo
[]
=
[];
private
row
=
5
;
private
column
=
5
;
private
gridIfoArr
:
GridIfo
[]
=
[];
private
level
=
1
;
private
levelData
:
LatticeBlockadeIfo
=
null
!
;
private
lineArr
:
LineIfo
[]
=
[];
private
pathItemPosArr
:
ItemPosIfo
[]
=
[];
private
endMarkItemPos
:
ItemPosIfo
=
null
!
;
private
gameState
=
GAME_STATE
.
READY
;
start
()
{
// [3]
this
.
posArrNode
.
on
(
Node
.
EventType
.
TOUCH_START
,
this
.
onTouchStart
,
this
);
this
.
posArrNode
.
on
(
Node
.
EventType
.
TOUCH_MOVE
,
this
.
onTouchMove
,
this
);
this
.
posArrNode
.
on
(
Node
.
EventType
.
TOUCH_END
,
this
.
onTouchEnd
,
this
);
this
.
gameStart
();
}
onDestroy
()
{
}
onTouchStart
(
event
:
EventTouch
)
{
if
(
this
.
gameState
!=
GAME_STATE
.
IDLE
)
return
;
let
touchItem
=
this
.
getTouchItem
(
event
.
getUILocation
());
if
(
!
touchItem
)
return
;
if
(
touchItem
?.
getPosIfo
().
id
==
this
.
pathItemPosArr
[
this
.
pathItemPosArr
.
length
-
1
].
id
)
{
this
.
gameState
=
GAME_STATE
.
PATH_LINE
;
}
else
{
this
.
gameState
=
GAME_STATE
.
MARK_LINE
;
this
.
endMarkItemPos
=
touchItem
.
getPosIfo
();
}
}
onTouchMove
(
event
:
EventTouch
)
{
if
(
this
.
gameState
!=
GAME_STATE
.
PATH_LINE
&&
this
.
gameState
!=
GAME_STATE
.
MARK_LINE
)
return
;
let
touchItem
=
this
.
getTouchItem
(
event
.
getUILocation
());
if
(
!
touchItem
)
return
;
if
(
this
.
gameState
==
GAME_STATE
.
PATH_LINE
)
{
let
endPosIfo
=
this
.
pathItemPosArr
[
this
.
pathItemPosArr
.
length
-
1
];
let
touchPosIfo
=
touchItem
.
getPosIfo
();
if
(
Math
.
abs
(
endPosIfo
.
xIdx
-
touchPosIfo
.
xIdx
)
+
Math
.
abs
(
endPosIfo
.
yIdx
-
touchPosIfo
.
yIdx
)
!=
1
)
return
;
for
(
let
i
=
1
;
i
<
this
.
pathItemPosArr
.
length
;
++
i
)
{
if
(
this
.
pathItemPosArr
[
i
].
id
==
this
.
pathItemPosArr
[
0
].
id
)
continue
;
this
.
pathItemPosArr
[
i
].
target
.
getComponent
(
LatticeBlockadeItem
)?.
setItemColor
(
new
Color
(
255
,
255
,
255
,
255
));
}
let
idx
=
-
1
;
for
(
let
i
=
0
;
i
<
this
.
pathItemPosArr
.
length
;
++
i
)
{
if
(
this
.
pathItemPosArr
[
i
].
id
==
touchItem
.
getPosIfo
().
id
)
{
idx
=
i
;
break
;
}
}
if
((
idx
==
-
1
||
(
idx
==
0
&&
this
.
pathItemPosArr
.
length
>=
3
)))
{
if
(
this
.
pathItemPosArr
.
length
>
2
&&
this
.
pathItemPosArr
[
this
.
pathItemPosArr
.
length
-
1
].
id
==
this
.
pathItemPosArr
[
0
].
id
)
{
for
(
let
i
=
0
;
i
<
this
.
pathItemPosArr
.
length
-
1
;
++
i
)
{
let
line
=
this
.
findLine
(
this
.
pathItemPosArr
[
i
],
this
.
pathItemPosArr
[
i
+
1
],
LINE_TYPE
.
FULL
);
if
(
line
)
{
this
.
lineArr
.
splice
(
this
.
lineArr
.
indexOf
(
line
),
1
);
line
.
targSpr
.
node
.
destroy
();
console
.
log
(
`销毁一个实线段`
);
}
}
this
.
pathItemPosArr
.
splice
(
1
,
this
.
pathItemPosArr
.
length
-
1
);
}
let
line
=
this
.
findLine
(
endPosIfo
,
touchPosIfo
,
LINE_TYPE
.
DOTTED
);
if
(
line
)
{
console
.
log
(
`由虚线变实线`
);
line
.
type
=
LINE_TYPE
.
FULL
;
line
.
targSpr
.
color
=
new
Color
(
255
,
255
,
255
,
255
);
}
else
{
line
=
this
.
creLine
(
endPosIfo
,
touchPosIfo
);
line
.
type
=
LINE_TYPE
.
FULL
;
line
.
targSpr
.
color
=
new
Color
(
255
,
255
,
255
,
255
);
this
.
lineArr
.
push
(
line
);
}
this
.
pathItemPosArr
.
push
(
touchPosIfo
);
console
.
log
(
`加一个实线段`
);
if
(
idx
==
0
)
{
//判断是否成功
}
}
else
if
(
idx
!=
0
||
(
this
.
pathItemPosArr
.
length
>
1
&&
this
.
pathItemPosArr
.
length
<=
3
))
{
console
.
log
(
`进入实线段销毁阶段`
);
console
.
log
(
idx
);
for
(
let
i
=
idx
;
i
<
this
.
pathItemPosArr
.
length
-
1
;
++
i
)
{
let
line
=
this
.
findLine
(
this
.
pathItemPosArr
[
i
],
this
.
pathItemPosArr
[
i
+
1
],
LINE_TYPE
.
FULL
);
console
.
log
(
`ddddddddddd`
);
console
.
log
(
line
);
if
(
line
)
{
this
.
lineArr
.
splice
(
this
.
lineArr
.
indexOf
(
line
),
1
);
line
.
targSpr
.
node
.
destroy
();
console
.
log
(
`销毁一个实线段`
);
}
}
this
.
pathItemPosArr
.
splice
(
idx
+
1
,
this
.
pathItemPosArr
.
length
-
idx
-
1
);
}
if
(
this
.
pathItemPosArr
.
length
>
1
&&
this
.
pathItemPosArr
[
this
.
pathItemPosArr
.
length
-
1
].
id
!=
this
.
pathItemPosArr
[
0
].
id
)
{
this
.
pathItemPosArr
[
this
.
pathItemPosArr
.
length
-
1
].
target
.
getComponent
(
LatticeBlockadeItem
)?.
setItemColor
(
new
Color
(
255
,
255
,
0
,
255
));
}
}
else
if
(
this
.
gameState
==
GAME_STATE
.
MARK_LINE
)
{
let
endPosIfo
=
this
.
endMarkItemPos
;
let
touchPosIfo
=
touchItem
.
getPosIfo
();
if
(
Math
.
abs
(
endPosIfo
.
xIdx
-
touchPosIfo
.
xIdx
)
+
Math
.
abs
(
endPosIfo
.
yIdx
-
touchPosIfo
.
yIdx
)
!=
1
)
return
;
let
line
=
this
.
findLine
(
endPosIfo
,
touchPosIfo
,
LINE_TYPE
.
FULL
);
if
(
line
)
{
return
;
}
line
=
this
.
findLine
(
endPosIfo
,
touchPosIfo
,
LINE_TYPE
.
DOTTED
);
if
(
line
)
{
return
;
}
line
=
this
.
creLine
(
endPosIfo
,
touchPosIfo
);
line
.
type
=
LINE_TYPE
.
DOTTED
;
line
.
targSpr
.
color
=
new
Color
(
255
,
255
,
255
,
120
);
this
.
lineArr
.
push
(
line
);
this
.
endMarkItemPos
=
touchPosIfo
;
}
}
onTouchEnd
(
event
:
TouchEvent
)
{
if
(
this
.
gameState
!=
GAME_STATE
.
PATH_LINE
&&
this
.
gameState
!=
GAME_STATE
.
MARK_LINE
)
return
;
this
.
gameState
=
GAME_STATE
.
IDLE
;
this
.
endMarkItemPos
=
null
!
;
//检测是否成功
}
getTouchItem
(
wPos
:
Vec2
)
{
for
(
let
i
=
0
;
i
<
this
.
itemPosIfoArr
.
length
;
++
i
)
{
if
(
this
.
itemPosIfoArr
[
i
].
target
.
getComponent
(
LatticeBlockadeItem
)?.
getWorldAABB
()?.
contains
(
wPos
))
{
return
this
.
itemPosIfoArr
[
i
].
target
.
getComponent
(
LatticeBlockadeItem
);
}
}
return
null
;
}
gameStart
()
{
this
.
levelData
=
this
.
getLevelCfg
(
this
.
level
);
this
.
row
=
this
.
levelData
.
row
;
this
.
column
=
this
.
levelData
.
column
;
this
.
setBgSprSize
();
this
.
creAllItem
();
let
tempNumArr
:
number
[]
=
[];
for
(
let
i
=
0
;
i
<
this
.
levelData
.
numArr
.
length
;
++
i
)
{
tempNumArr
=
tempNumArr
.
concat
(
this
.
levelData
.
numArr
[
i
]);
}
for
(
let
i
=
0
;
i
<
this
.
gridIfoArr
.
length
;
++
i
)
{
this
.
gridIfoArr
[
i
].
count
=
tempNumArr
[
i
];
if
(
tempNumArr
[
i
]
!=
-
1
)
{
this
.
gridIfoArr
[
i
].
target
.
getComponent
(
Label
)
!
.
string
=
tempNumArr
[
i
].
toString
();
}
else
{
this
.
gridIfoArr
[
i
].
target
.
getComponent
(
Label
)
!
.
string
=
""
;
}
}
this
.
endMarkItemPos
=
null
!
;
this
.
gameState
=
GAME_STATE
.
IDLE
;
//测试
// this.creLine(this.getItem(0, 0)!, this.getItem(0, 1)!);
}
creAllItem
()
{
this
.
itemPosIfoArr
=
this
.
getSqPosIfoArr
(
this
.
row
,
this
.
column
,
this
.
itemWidth
,
this
.
itemHeight
,
this
.
itemSpaceX
,
this
.
itemSpaceY
);
for
(
let
i
=
0
;
i
<
this
.
itemPosIfoArr
.
length
;
++
i
)
{
let
node
=
instantiate
(
this
.
itemPre
);
this
.
posArrNode
.
addChild
(
node
);
node
.
setPosition
(
this
.
itemPosIfoArr
[
i
].
pos
);
this
.
itemPosIfoArr
[
i
].
target
=
node
;
node
.
getComponent
(
LatticeBlockadeItem
)?.
setPosIfo
(
this
.
itemPosIfoArr
[
i
]);
}
let
item
=
this
.
getItem
(
this
.
levelData
.
s_xy
[
0
],
this
.
levelData
.
s_xy
[
1
])
!
.
target
.
getComponent
(
LatticeBlockadeItem
)
!
;
item
.
setItemColor
(
new
Color
(
0
,
255
,
0
,
255
));
this
.
pathItemPosArr
=
[];
this
.
pathItemPosArr
.
push
(
item
.
getPosIfo
())
this
.
getGridIfo
();
for
(
let
i
=
0
;
i
<
this
.
gridIfoArr
.
length
;
++
i
)
{
let
label
=
this
.
creNumLabel
();
label
.
string
=
"5"
;
this
.
gridIfoArr
[
i
].
target
=
label
.
node
;
this
.
posArrNode
.
addChild
(
label
.
node
);
label
.
node
.
setPosition
(
this
.
gridIfoArr
[
i
].
pos
);
label
.
node
.
layer
=
1
<<
25
;
}
}
setBgSprSize
()
{
let
minWidth
=
this
.
column
*
this
.
itemWidth
+
(
this
.
column
-
1
)
*
this
.
itemSpaceX
;
let
minHeight
=
this
.
row
*
this
.
itemHeight
+
(
this
.
row
-
1
)
*
this
.
itemSpaceY
;
this
.
bottomSprNode
.
getComponent
(
UITransform
)
!
.
width
=
minWidth
+
40
;
this
.
bottomSprNode
.
getComponent
(
UITransform
)
!
.
height
=
minHeight
+
40
;
this
.
topSprNode
.
getComponent
(
UITransform
)
!
.
width
=
minWidth
+
20
;
this
.
topSprNode
.
getComponent
(
UITransform
)
!
.
height
=
minHeight
+
20
;
this
.
posArrNode
.
getComponent
(
UITransform
)
!
.
width
=
minWidth
;
this
.
posArrNode
.
getComponent
(
UITransform
)
!
.
height
=
minHeight
;
}
getSqPosIfoArr
(
row
:
number
,
column
:
number
,
s_width
:
number
,
s_height
:
number
,
spacingX
:
number
,
spacingY
:
number
):
ItemPosIfo
[]
{
let
x_arr
:
number
[]
=
[];
for
(
let
c
=
1
;
c
<=
column
;
++
c
)
{
let
x
=
s_width
*
(
c
-
1
+
0.5
)
+
(
c
-
1
)
*
spacingX
-
(
column
*
s_width
+
(
column
-
1
)
*
spacingX
)
/
2
;
x_arr
.
push
(
x
);
}
let
y_arr
:
number
[]
=
[];
for
(
let
r
=
1
;
r
<=
row
;
++
r
)
{
let
y
=
s_height
*
(
r
-
1
+
0.5
)
+
(
r
-
1
)
*
spacingY
-
(
row
*
s_height
+
(
row
-
1
)
*
spacingY
)
/
2
;
y_arr
.
push
(
y
);
y_arr
.
sort
((
a
,
b
)
=>
{
return
b
-
a
;
});
}
let
pos_arr
:
ItemPosIfo
[]
=
[];
for
(
let
r
=
0
;
r
<
y_arr
.
length
;
++
r
)
{
for
(
let
c
=
0
;
c
<
x_arr
.
length
;
++
c
)
{
pos_arr
.
push
({
pos
:
v3
(
x_arr
[
c
],
y_arr
[
r
],
0
)
,
xIdx
:
c
,
yIdx
:
r
,
id
:
pos_arr
.
length
,
target
:
null
!
});
}
}
return
pos_arr
;
}
getGridIfo
()
{
this
.
gridIfoArr
=
[];
let
getItem
=
(
xIdx
:
number
,
yIdx
:
number
)
=>
{
for
(
let
i
=
0
;
i
<
this
.
itemPosIfoArr
.
length
;
++
i
)
{
if
(
this
.
itemPosIfoArr
[
i
].
xIdx
==
xIdx
&&
this
.
itemPosIfoArr
[
i
].
yIdx
==
yIdx
)
return
this
.
itemPosIfoArr
[
i
];
}
};
for
(
let
r
=
0
;
r
<
this
.
row
-
1
;
++
r
)
{
for
(
let
c
=
0
;
c
<
this
.
column
-
1
;
++
c
)
{
this
.
gridIfoArr
.
push
({
id
:
this
.
gridIfoArr
.
length
,
//唯一标识
pos
:
null
!
,
//位置
itemArr
:
[
getItem
(
c
,
r
)
!
,
getItem
(
c
+
1
,
r
)
!
,
getItem
(
c
,
r
+
1
)
!
,
getItem
(
c
+
1
,
r
+
1
)
!
],
target
:
null
!
,
//占有这个节点的对象
count
:
-
1
})
}
}
for
(
let
i
=
0
;
i
<
this
.
gridIfoArr
.
length
;
++
i
)
{
let
x
=
(
this
.
gridIfoArr
[
i
].
itemArr
[
0
].
pos
.
x
+
this
.
gridIfoArr
[
i
].
itemArr
[
1
].
pos
.
x
)
/
2
;
let
y
=
(
this
.
gridIfoArr
[
i
].
itemArr
[
0
].
pos
.
y
+
this
.
gridIfoArr
[
i
].
itemArr
[
2
].
pos
.
y
)
/
2
;
this
.
gridIfoArr
[
i
].
pos
=
v3
(
x
,
y
);
}
}
creNumLabel
()
{
let
label
=
new
Node
().
addComponent
(
Label
);
label
.
color
=
new
Color
(
255
,
255
,
255
,
255
);
label
.
lineHeight
=
40
;
label
.
fontSize
=
40
;
return
label
;
}
getLevelCfg
(
level
:
number
)
{
switch
(
level
)
{
case
1
:
return
LB_LV_1
;
default
:
return
LB_LV_1
;
}
}
//查看
findLine
(
s_item
:
ItemPosIfo
,
e_item
:
ItemPosIfo
,
type
:
LINE_TYPE
)
{
// console.log(`找一个线段`);
// console.log(this.lineArr);
// console.log(s_item);
// console.log(e_item);
for
(
let
i
=
0
;
i
<
this
.
lineArr
.
length
;
++
i
)
{
let
tempLine
=
this
.
lineArr
[
i
];
if
(
s_item
.
id
==
tempLine
.
s_item
.
id
&&
e_item
.
id
==
tempLine
.
e_item
.
id
&&
type
==
tempLine
.
type
)
return
tempLine
;
if
(
s_item
.
id
==
tempLine
.
e_item
.
id
&&
e_item
.
id
==
tempLine
.
s_item
.
id
&&
type
==
tempLine
.
type
)
return
tempLine
;
}
return
null
;
}
//判断一个格子周围线段是否存在正确数量
checkGridLine
(
grid
:
GridIfo
)
{
if
(
grid
.
count
==
-
1
)
return
true
;
let
count
=
0
;
if
(
this
.
findLine
(
grid
.
itemArr
[
0
],
grid
.
itemArr
[
1
],
LINE_TYPE
.
FULL
))
count
+=
1
;
if
(
this
.
findLine
(
grid
.
itemArr
[
0
],
grid
.
itemArr
[
2
],
LINE_TYPE
.
FULL
))
count
+=
1
;
if
(
this
.
findLine
(
grid
.
itemArr
[
1
],
grid
.
itemArr
[
3
],
LINE_TYPE
.
FULL
))
count
+=
1
;
if
(
this
.
findLine
(
grid
.
itemArr
[
2
],
grid
.
itemArr
[
3
],
LINE_TYPE
.
FULL
))
count
+=
1
;
return
count
==
grid
.
count
;
}
//如果一个格子周围的线段多余应有的数量
getGridMoreLine
(
grid
:
GridIfo
)
{
let
lineArr
:
LineIfo
[]
=
[];
if
(
grid
.
count
==
-
1
)
return
lineArr
;
let
existLineArr
:
LineIfo
[]
=
[];
let
count
=
0
;
if
(
this
.
findLine
(
grid
.
itemArr
[
0
],
grid
.
itemArr
[
1
],
LINE_TYPE
.
FULL
))
{
count
+=
1
;
existLineArr
.
push
(
this
.
findLine
(
grid
.
itemArr
[
0
],
grid
.
itemArr
[
1
],
LINE_TYPE
.
FULL
)
!
)
}
if
(
this
.
findLine
(
grid
.
itemArr
[
0
],
grid
.
itemArr
[
2
],
LINE_TYPE
.
FULL
))
{
count
+=
1
;
existLineArr
.
push
(
this
.
findLine
(
grid
.
itemArr
[
0
],
grid
.
itemArr
[
2
],
LINE_TYPE
.
FULL
)
!
)
}
if
(
this
.
findLine
(
grid
.
itemArr
[
1
],
grid
.
itemArr
[
3
],
LINE_TYPE
.
FULL
))
{
count
+=
1
;
existLineArr
.
push
(
this
.
findLine
(
grid
.
itemArr
[
1
],
grid
.
itemArr
[
3
],
LINE_TYPE
.
FULL
)
!
)
}
if
(
this
.
findLine
(
grid
.
itemArr
[
2
],
grid
.
itemArr
[
3
],
LINE_TYPE
.
FULL
))
{
count
+=
1
;
existLineArr
.
push
(
this
.
findLine
(
grid
.
itemArr
[
2
],
grid
.
itemArr
[
3
],
LINE_TYPE
.
FULL
)
!
)
}
// for (let i = 0; i < count - grid.count; ++i) {
// lineArr.push(existLineArr[i]);
// }
// return lineArr;
if
(
count
>
grid
.
count
)
return
existLineArr
;
return
lineArr
;
}
getItem
(
xIdx
:
number
,
yIdx
:
number
)
{
for
(
let
i
=
0
;
i
<
this
.
itemPosIfoArr
.
length
;
++
i
)
{
if
(
this
.
itemPosIfoArr
[
i
].
xIdx
==
xIdx
&&
this
.
itemPosIfoArr
[
i
].
yIdx
==
yIdx
)
return
this
.
itemPosIfoArr
[
i
];
}
}
creLine
(
s_posIfo
:
ItemPosIfo
,
e_posIfo
:
ItemPosIfo
)
{
let
spr
=
instantiate
(
this
.
linePre
).
getComponent
(
Sprite
)
!
;
spr
.
node
.
getComponent
(
UITransform
)
!
.
width
=
v3
(
e_posIfo
.
pos
.
x
,
e_posIfo
.
pos
.
y
,
e_posIfo
.
pos
.
z
).
subtract
(
s_posIfo
.
pos
).
length
();
let
dir
=
v3
(
e_posIfo
.
pos
.
x
,
e_posIfo
.
pos
.
y
,
e_posIfo
.
pos
.
z
).
subtract
(
s_posIfo
.
pos
);
let
angle
=
v2
(
1
,
0
).
signAngle
(
v2
(
dir
.
x
,
dir
.
y
))
*
(
180
/
Math
.
PI
);
// console.log(`减得向量:`);
// console.log(s_posIfo);
// console.log(e_posIfo);
// console.log(dir.normalize());
// console.log(angle);
this
.
lineArrNode
.
addChild
(
spr
.
node
);
spr
.
node
.
setPosition
(
s_posIfo
.
pos
)
spr
.
node
.
angle
=
angle
;
return
{
type
:
LINE_TYPE
.
FULL
,
s_item
:
s_posIfo
,
e_item
:
e_posIfo
,
targSpr
:
spr
,
}
}
// update (deltaTime: number) {
// // [4]
// }
}
assets/sceneBundle/games/latticeBlockade/script/LatticeBlockadeCtr.ts.meta
0 → 100644
View file @
65450189
{
"ver": "4.0.22",
"importer": "typescript",
"imported": true,
"uuid": "1b7b5744-dcfa-4273-bd7b-0a1c26b39ebe",
"files": [],
"subMetas": {},
"userData": {}
}
assets/sceneBundle/games/latticeBlockade/script/LatticeBlockadeItem.ts
0 → 100644
View file @
65450189
import
{
_decorator
,
Component
,
Node
,
Sprite
,
Color
,
director
,
BoxCollider2D
,
Contact2DType
,
UITransform
}
from
'cc'
;
import
{
ItemPosIfo
}
from
'./LatticeBlockadeCtr'
;
const
{
ccclass
,
property
}
=
_decorator
;
@
ccclass
(
'LatticeBlockadeItem'
)
export
class
LatticeBlockadeItem
extends
Component
{
@
property
(
Sprite
)
itemSpr
:
Sprite
=
null
!
;
@
property
(
Node
)
rectNode
:
Node
=
null
!
;
private
posIfo
:
ItemPosIfo
=
null
!
;
start
()
{
// [3]
}
setItemColor
(
color
:
Color
){
console
.
log
(
`1111111111`
);
this
.
itemSpr
.
color
=
color
;
}
setPosIfo
(
posIfo
:
ItemPosIfo
){
this
.
posIfo
=
posIfo
;
}
getPosIfo
(){
return
this
.
posIfo
;
}
getWorldAABB
(){
return
this
.
rectNode
.
getComponent
(
UITransform
)?.
getBoundingBoxToWorld
();
}
// update (deltaTime: number) {
// // [4]
// }
}
assets/sceneBundle/games/latticeBlockade/script/LatticeBlockadeItem.ts.meta
0 → 100644
View file @
65450189
{
"ver": "4.0.22",
"importer": "typescript",
"imported": true,
"uuid": "a3846bf5-3ba2-47eb-8b22-c43122375228",
"files": [],
"subMetas": {},
"userData": {}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment