Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
MingSnake_241120
Commits
96794d2a
Commit
96794d2a
authored
Jan 08, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
25年新迭代
parent
f653ad92
Changes
25
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
2306 additions
and
506 deletions
+2306
-506
HomeScene.scene
assets/Bundles/HomeScene/HomeScene.scene
+320
-205
更改昵称提示.png
assets/Bundles/HomeScene/png/更改昵称提示.png
+0
-0
更改昵称提示.png.meta
assets/Bundles/HomeScene/png/更改昵称提示.png.meta
+134
-0
MainGame.scene
assets/Bundles/MainGame/MainGame.scene
+825
-128
新引导.meta
assets/Bundles/MainGame/png/新引导.meta
+9
-0
下一页.png
assets/Bundles/MainGame/png/新引导/下一页.png
+0
-0
下一页.png.meta
assets/Bundles/MainGame/png/新引导/下一页.png.meta
+134
-0
引导1.jpg
assets/Bundles/MainGame/png/新引导/引导1.jpg
+0
-0
引导1.jpg.meta
assets/Bundles/MainGame/png/新引导/引导1.jpg.meta
+134
-0
引导1黄色.jpg
assets/Bundles/MainGame/png/新引导/引导1黄色.jpg
+0
-0
引导1黄色.jpg.meta
assets/Bundles/MainGame/png/新引导/引导1黄色.jpg.meta
+134
-0
引导2.jpg
assets/Bundles/MainGame/png/新引导/引导2.jpg
+0
-0
引导2.jpg.meta
assets/Bundles/MainGame/png/新引导/引导2.jpg.meta
+134
-0
引导2黄色.jpg
assets/Bundles/MainGame/png/新引导/引导2黄色.jpg
+0
-0
引导2黄色.jpg.meta
assets/Bundles/MainGame/png/新引导/引导2黄色.jpg.meta
+134
-0
我知道了.png
assets/Bundles/MainGame/png/新引导/我知道了.png
+0
-0
我知道了.png.meta
assets/Bundles/MainGame/png/新引导/我知道了.png.meta
+134
-0
HomeScene.ts
assets/Scripts/Scenes/HomeScene.ts
+169
-164
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+31
-3
Snake.ts
assets/Scripts/Scenes/MainGame/Snake.ts
+1
-1
store.ts
assets/Scripts/store/store.ts
+6
-0
startGame.do.json
preview-template/mock/game/startGame.do.json
+1
-1
startGame数据生成.mjs
preview-template/mock/game/startGame数据生成.mjs
+1
-1
index.do.json
preview-template/mock/home/index.do.json
+3
-1
information.json
settings/v2/packages/information.json
+2
-2
No files found.
assets/Bundles/HomeScene/HomeScene.scene
View file @
96794d2a
This diff is collapsed.
Click to expand it.
assets/Bundles/HomeScene/png/更改昵称提示.png
0 → 100644
View file @
96794d2a
3.74 KB
assets/Bundles/HomeScene/png/更改昵称提示.png.meta
0 → 100644
View file @
96794d2a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "cef3e6fb-dfda-4b43-b5b4-621fd921a976",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "cef3e6fb-dfda-4b43-b5b4-621fd921a976@6c48a",
"displayName": "更改昵称提示",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "cef3e6fb-dfda-4b43-b5b4-621fd921a976",
"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": "cef3e6fb-dfda-4b43-b5b4-621fd921a976@f9941",
"displayName": "更改昵称提示",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 218,
"height": 53,
"rawWidth": 218,
"rawHeight": 53,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-109,
-26.5,
0,
109,
-26.5,
0,
-109,
26.5,
0,
109,
26.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
53,
218,
53,
0,
0,
218,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-109,
-26.5,
0
],
"maxPos": [
109,
26.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "cef3e6fb-dfda-4b43-b5b4-621fd921a976@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "cef3e6fb-dfda-4b43-b5b4-621fd921a976@6c48a"
}
}
assets/Bundles/MainGame/MainGame.scene
View file @
96794d2a
This diff is collapsed.
Click to expand it.
assets/Bundles/MainGame/png/新引导.meta
0 → 100644
View file @
96794d2a
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "7c35d118-808a-4637-ae3b-a865cef8a70d",
"files": [],
"subMetas": {},
"userData": {}
}
assets/Bundles/MainGame/png/新引导/下一页.png
0 → 100644
View file @
96794d2a
3.12 KB
assets/Bundles/MainGame/png/新引导/下一页.png.meta
0 → 100644
View file @
96794d2a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "de5520e0-3483-45c2-be2e-c51a48a91585",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "de5520e0-3483-45c2-be2e-c51a48a91585@6c48a",
"displayName": "下一页",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "de5520e0-3483-45c2-be2e-c51a48a91585",
"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": "de5520e0-3483-45c2-be2e-c51a48a91585@f9941",
"displayName": "下一页",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 240,
"height": 88,
"rawWidth": 240,
"rawHeight": 88,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-120,
-44,
0,
120,
-44,
0,
-120,
44,
0,
120,
44,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
88,
240,
88,
0,
0,
240,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-120,
-44,
0
],
"maxPos": [
120,
44,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "de5520e0-3483-45c2-be2e-c51a48a91585@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "de5520e0-3483-45c2-be2e-c51a48a91585@6c48a"
}
}
assets/Bundles/MainGame/png/新引导/引导1.jpg
0 → 100644
View file @
96794d2a
72.8 KB
assets/Bundles/MainGame/png/新引导/引导1.jpg.meta
0 → 100644
View file @
96794d2a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a1fd93f8-04a5-4a0f-997d-7ce67393b3dd",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a1fd93f8-04a5-4a0f-997d-7ce67393b3dd@6c48a",
"displayName": "引导1",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a1fd93f8-04a5-4a0f-997d-7ce67393b3dd",
"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": "a1fd93f8-04a5-4a0f-997d-7ce67393b3dd@f9941",
"displayName": "引导1",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1624,
"height": 750,
"rawWidth": 1624,
"rawHeight": 750,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-812,
-375,
0,
812,
-375,
0,
-812,
375,
0,
812,
375,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
750,
1624,
750,
0,
0,
1624,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-812,
-375,
0
],
"maxPos": [
812,
375,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "a1fd93f8-04a5-4a0f-997d-7ce67393b3dd@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "a1fd93f8-04a5-4a0f-997d-7ce67393b3dd@6c48a"
}
}
assets/Bundles/MainGame/png/新引导/引导1黄色.jpg
0 → 100644
View file @
96794d2a
75.1 KB
assets/Bundles/MainGame/png/新引导/引导1黄色.jpg.meta
0 → 100644
View file @
96794d2a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "b25a58f1-1d18-44fd-9b0d-92ecc0146458",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "b25a58f1-1d18-44fd-9b0d-92ecc0146458@6c48a",
"displayName": "引导1黄色",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "b25a58f1-1d18-44fd-9b0d-92ecc0146458",
"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": "b25a58f1-1d18-44fd-9b0d-92ecc0146458@f9941",
"displayName": "引导1黄色",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1624,
"height": 750,
"rawWidth": 1624,
"rawHeight": 750,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-812,
-375,
0,
812,
-375,
0,
-812,
375,
0,
812,
375,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
750,
1624,
750,
0,
0,
1624,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-812,
-375,
0
],
"maxPos": [
812,
375,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "b25a58f1-1d18-44fd-9b0d-92ecc0146458@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "b25a58f1-1d18-44fd-9b0d-92ecc0146458@6c48a"
}
}
assets/Bundles/MainGame/png/新引导/引导2.jpg
0 → 100644
View file @
96794d2a
72.1 KB
assets/Bundles/MainGame/png/新引导/引导2.jpg.meta
0 → 100644
View file @
96794d2a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "5cde494c-5a2c-41d3-9158-40f51862cd9f",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "5cde494c-5a2c-41d3-9158-40f51862cd9f@6c48a",
"displayName": "引导2",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "5cde494c-5a2c-41d3-9158-40f51862cd9f",
"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": "5cde494c-5a2c-41d3-9158-40f51862cd9f@f9941",
"displayName": "引导2",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1624,
"height": 750,
"rawWidth": 1624,
"rawHeight": 750,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-812,
-375,
0,
812,
-375,
0,
-812,
375,
0,
812,
375,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
750,
1624,
750,
0,
0,
1624,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-812,
-375,
0
],
"maxPos": [
812,
375,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "5cde494c-5a2c-41d3-9158-40f51862cd9f@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "5cde494c-5a2c-41d3-9158-40f51862cd9f@6c48a"
}
}
assets/Bundles/MainGame/png/新引导/引导2黄色.jpg
0 → 100644
View file @
96794d2a
73.3 KB
assets/Bundles/MainGame/png/新引导/引导2黄色.jpg.meta
0 → 100644
View file @
96794d2a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "c071797c-b74e-4443-b140-2803dffcda84",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c071797c-b74e-4443-b140-2803dffcda84@6c48a",
"displayName": "引导2黄色",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "c071797c-b74e-4443-b140-2803dffcda84",
"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": "c071797c-b74e-4443-b140-2803dffcda84@f9941",
"displayName": "引导2黄色",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1624,
"height": 750,
"rawWidth": 1624,
"rawHeight": 750,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-812,
-375,
0,
812,
-375,
0,
-812,
375,
0,
812,
375,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
750,
1624,
750,
0,
0,
1624,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-812,
-375,
0
],
"maxPos": [
812,
375,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "c071797c-b74e-4443-b140-2803dffcda84@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "c071797c-b74e-4443-b140-2803dffcda84@6c48a"
}
}
assets/Bundles/MainGame/png/新引导/我知道了.png
0 → 100644
View file @
96794d2a
3.85 KB
assets/Bundles/MainGame/png/新引导/我知道了.png.meta
0 → 100644
View file @
96794d2a
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "33695c9d-96ff-45e6-a63b-6495bd18b0fb",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "33695c9d-96ff-45e6-a63b-6495bd18b0fb@6c48a",
"displayName": "我知道了",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "33695c9d-96ff-45e6-a63b-6495bd18b0fb",
"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": "33695c9d-96ff-45e6-a63b-6495bd18b0fb@f9941",
"displayName": "我知道了",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 240,
"height": 88,
"rawWidth": 240,
"rawHeight": 88,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-120,
-44,
0,
120,
-44,
0,
-120,
44,
0,
120,
44,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
88,
240,
88,
0,
0,
240,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-120,
-44,
0
],
"maxPos": [
120,
44,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "33695c9d-96ff-45e6-a63b-6495bd18b0fb@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "33695c9d-96ff-45e6-a63b-6495bd18b0fb@6c48a"
}
}
assets/Scripts/Scenes/HomeScene.ts
View file @
96794d2a
This diff is collapsed.
Click to expand it.
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
96794d2a
import
{
import
{
_decorator
,
_decorator
,
Button
,
Camera
,
Color
,
Camera
,
Color
,
director
,
game
,
instantiate
,
director
,
game
,
instantiate
,
Label
,
Label
,
...
@@ -74,6 +74,11 @@ export class MainGame extends Scene {
...
@@ -74,6 +74,11 @@ export class MainGame extends Scene {
@
property
({
type
:
Label
,
group
:
"UI"
})
killTxt
:
Label
=
null
;
@
property
({
type
:
Label
,
group
:
"UI"
})
killTxt
:
Label
=
null
;
@
property
({
type
:
Label
,
group
:
"UI"
})
lengthTxt
:
Label
=
null
;
@
property
({
type
:
Label
,
group
:
"UI"
})
lengthTxt
:
Label
=
null
;
@
property
({
type
:
Label
,
group
:
"UI"
})
luckyNum
:
Label
=
null
;
@
property
({
type
:
Label
,
group
:
"UI"
})
luckyNum
:
Label
=
null
;
@
property
({
type
:
Node
,
group
:
"UI"
})
newGuide
:
Node
=
null
;
@
property
({
type
:
Node
,
group
:
"UI"
})
newGuide1Btn
:
Node
=
null
;
@
property
({
type
:
Node
,
group
:
"UI"
})
newGuide2Btn
:
Node
=
null
;
@
property
(
RenderTexture
)
rt
:
RenderTexture
=
null
;
@
property
(
RenderTexture
)
rt
:
RenderTexture
=
null
;
_canvas
:
HTMLCanvasElement
=
null
;
_canvas
:
HTMLCanvasElement
=
null
;
_canvas2
:
HTMLCanvasElement
=
null
;
_canvas2
:
HTMLCanvasElement
=
null
;
...
@@ -122,6 +127,8 @@ export class MainGame extends Scene {
...
@@ -122,6 +127,8 @@ export class MainGame extends Scene {
async
start
()
{
async
start
()
{
this
.
newGuide
.
active
=
false
;
await
this
.
initStage
();
await
this
.
initStage
();
this
.
isStart
=
true
;
this
.
isStart
=
true
;
...
@@ -322,8 +329,10 @@ export class MainGame extends Scene {
...
@@ -322,8 +329,10 @@ export class MainGame extends Scene {
if (!currentStage || currentStage == 3) {
if (!currentStage || currentStage == 3) {
PropManager.ins.init(gameStore.startInfo?.barrierFlag ? 1 : 2);
// PropManager.ins.init(gameStore.startInfo?.barrierFlag ? 1 : 2);
CardManager.ins.init(gameStore.startInfo?.barrierFlag ? 1 : 2);
// CardManager.ins.init(gameStore.startInfo?.barrierFlag ? 1 : 2);
PropManager.ins.init(1);
CardManager.ins.init(1);
LuckyBagManager.ins.init();
LuckyBagManager.ins.init();
await Target.ins.showTarget3();
await Target.ins.showTarget3();
// await PreCd.ins.startCd();
// await PreCd.ins.startCd();
...
@@ -355,6 +364,7 @@ export class MainGame extends Scene {
...
@@ -355,6 +364,7 @@ export class MainGame extends Scene {
);
);
} else if (currentStage == 1) {
} else if (currentStage == 1) {
await this.showNewGuide();
const { time } = Global.stageConfig[0];
const { time } = Global.stageConfig[0];
Target.ins.totalCd = Target.ins.cd = time;
Target.ins.totalCd = Target.ins.cd = time;
await Target.ins.showTarget1();
await Target.ins.showTarget1();
...
@@ -364,6 +374,24 @@ export class MainGame extends Scene {
...
@@ -364,6 +374,24 @@ export class MainGame extends Scene {
}
}
}
}
showNewGuide = async () => {
return new Promise<void>((resolve) => {
this.newGuide.active = true;
this.newGuide1Btn.parent.active = true;
this.newGuide2Btn.parent.active = false;
this.newGuide1Btn.once(Button.EventType.CLICK, () => {
this.newGuide1Btn.parent.active = false;
this.newGuide2Btn.parent.active = true;
});
this.newGuide2Btn.once(Button.EventType.CLICK, async () => {
this.newGuide.active = false;
resolve();
});
});
};
update(dt: number) {
update(dt: number) {
if (!this.isStart) return;
if (!this.isStart) return;
this.isShort += dt
this.isShort += dt
...
...
assets/Scripts/Scenes/MainGame/Snake.ts
View file @
96794d2a
...
@@ -376,7 +376,7 @@ export class Snake extends Component {
...
@@ -376,7 +376,7 @@ export class Snake extends Component {
*/
*/
private
grow
()
{
private
grow
()
{
if
(
this
.
length
>
20
0
)
{
if
(
this
.
length
>
18
0
)
{
return
;
return
;
}
}
...
...
assets/Scripts/store/store.ts
View file @
96794d2a
...
@@ -47,6 +47,9 @@ export interface IHomeInfo {
...
@@ -47,6 +47,9 @@ export interface IHomeInfo {
bagName
:
string
;
bagName
:
string
;
bagImg
:
number
;
bagImg
:
number
;
};
};
bagSwitch
:
boolean
,
avatarGuide
:
boolean
,
}
}
...
@@ -81,6 +84,9 @@ class Store {
...
@@ -81,6 +84,9 @@ class Store {
rankPopList
:
[],
rankPopList
:
[],
bagPopVO
:
null
,
bagPopVO
:
null
,
bagLightFlag
:
false
,
bagLightFlag
:
false
,
bagSwitch
:
false
,
avatarGuide
:
false
,
};
};
async
updateIndex
()
{
async
updateIndex
()
{
...
...
preview-template/mock/game/startGame.do.json
View file @
96794d2a
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
"success"
:
true
,
"success"
:
true
,
"code"
:
""
,
"code"
:
""
,
"message"
:
""
,
"message"
:
""
,
"data"
:
"Dn22D8mkVmDOfP4ajNWcqtUT2BWK7hLAEHSofRAnITI23/h6M5dk9MJ+cY56DvHjDzXBIud5f2y2oC6Ki0109gTGfqIr9aJogqT+S54B6PDCX6U4eUaJ7IDHzUUFilz+rZLS/RcgGjrx9aF3NMMpcN6pDZ/CKPoLq0HmDD1u5q+fja1LYfEicgXLV37B6H9s
njl1PoaOdrcnUUvUhfTcoYdWr/xE2a7yz4v0dS6pwzPk1G/o5qWasw92Skmo1UTWWCp3B30UpNlB6mGduoAarvhdLgrAla0gKO7BpQrFQGYAggvR6H1RyssowTrlJzMsOr7Fyr6l7T0x/Rr0j4qXknsCakwY9oL7n6/EiYTi8DazEkNapclreM1ISd9IxuRc8RZWek2tan9hp+aKfJ6KH7QEYzp3683GzLo0GGRrlTEPlNs89A8cOvV44Zj5KErAygr9JwXp/prSsn1MEAlF36WeUiAEi7rgtln0ImFZPpB+6ysOSYxQsQ78pq3PTcW+gIWzOfHn3UpaZykLGEs/g6m2KUhVKG5QwfxSzYSi8d/G0KIXbhEtr1apZXQgmrV3xAVJdCgJKlbYTnA0w7TvffpiDjwdoAj9ehcjyJ3d/jWK2NebdECvRpZ9z+qVucGVwjcjtwNDt9P3uNhMo+HJ0
g=="
"data"
:
"Dn22D8mkVmDOfP4ajNWcqtUT2BWK7hLAEHSofRAnITI23/h6M5dk9MJ+cY56DvHjDzXBIud5f2y2oC6Ki0109gTGfqIr9aJogqT+S54B6PDCX6U4eUaJ7IDHzUUFilz+rZLS/RcgGjrx9aF3NMMpcN6pDZ/CKPoLq0HmDD1u5q+fja1LYfEicgXLV37B6H9s
lstMTx8EuAkIeaHM8HuZ5orDBIjo0jEeIruY4nIhZvHTZIkl7ilg4z12DHerGc+lBlPNDmY14d/zFfZgx43+j+Eh3+bU3SkyUcIjunn8mPqO7JdSl3ASV1giysk3KJ7HtT8OpbyyEah7uNJkXQeQFZ7JlrvIt+zXYD1ZHawn6c4MEw6ms8kb9dMuwQzElroiACLJ8X95R25hKkr/3Z3/MtC6sX9m2SZUXRS2icgmAYVXvFEtKcf6EVSk/gOIpK9+E9G7BvI/G75R2zGAuCi4knjX0oBb7KZVWmhn6oqGw8RyVueP3up3MUEsspCTgUANjpXJF8cr+uNXaCoPc+F4LZGaEZAsu3SwtqKtXQxj++V354kdqPSebNdYVj0PwhFnXja7i+tuNG/TRtZEULK6ap68B+uIaNmtY3RKIJAY7vV81yeo8oHRUYzwu3F1iDt2FlB6bXhootp7mExmN5lsL
g=="
}
}
\ No newline at end of file
preview-template/mock/game/startGame数据生成.mjs
View file @
96794d2a
...
@@ -52,7 +52,7 @@ const startInfo = {
...
@@ -52,7 +52,7 @@ const startInfo = {
limitLuckNum
:
5
,
// 当日上限可获得福袋数
limitLuckNum
:
5
,
// 当日上限可获得福袋数
downArea
:
[
3
,
2
,
1
],
// 掉落分布,集合,比如每日上限6个,这里配置返回1、2、3
downArea
:
[
3
,
2
,
1
],
// 掉落分布,集合,比如每日上限6个,这里配置返回1、2、3
currentAcquireNum
:
5
,
// 当局剩余可获得福袋数,不包含accumulateLuckNum,当局累计获得福袋数量
currentAcquireNum
:
5
,
// 当局剩余可获得福袋数,不包含accumulateLuckNum,当局累计获得福袋数量
currentStage
:
3
,
// 当前应该进入的阶段(1-一阶段 2-二阶段 3-无尽模式)
currentStage
:
1
,
// 当前应该进入的阶段(1-一阶段 2-二阶段 3-无尽模式)
spCardList
:
[
// 道具卡集合
spCardList
:
[
// 道具卡集合
{
spId
:
"sp_bag_silver"
,
num
:
1
},
{
spId
:
"sp_bag_silver"
,
num
:
1
},
{
spId
:
"sp_revival_card"
,
num
:
2
},
{
spId
:
"sp_revival_card"
,
num
:
2
},
...
...
preview-template/mock/home/index.do.json
View file @
96794d2a
...
@@ -50,7 +50,9 @@
...
@@ -50,7 +50,9 @@
],
],
"rankPopList"
:
[],
"rankPopList"
:
[],
"signPopFlag"
:
false
,
"signPopFlag"
:
false
,
"bagLightFlag"
:
true
"bagLightFlag"
:
true
,
"bagSwitch"
:
false
,
"avatarGuide"
:
false
},
},
"message"
:
null
,
"message"
:
null
,
"success"
:
true
,
"success"
:
true
,
...
...
settings/v2/packages/information.json
View file @
96794d2a
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
"enable"
:
true
,
"enable"
:
true
,
"customSplash"
:
{
"customSplash"
:
{
"complete"
:
true
,
"complete"
:
true
,
"form"
:
"https://creator-api.cocos.com/api/form/show?sid=
89ca74d316d6341a14aae897a7fd7ec2
"
"form"
:
"https://creator-api.cocos.com/api/form/show?sid=
441e6f8e3e7ba0c9581ed7936daee45d
"
}
}
},
},
"removeSplash"
:
{
"removeSplash"
:
{
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
"enable"
:
true
,
"enable"
:
true
,
"removeSplash"
:
{
"removeSplash"
:
{
"complete"
:
true
,
"complete"
:
true
,
"form"
:
"https://creator-api.cocos.com/api/form/show?sid=
89ca74d316d6341a14aae897a7fd7ec2
"
"form"
:
"https://creator-api.cocos.com/api/form/show?sid=
441e6f8e3e7ba0c9581ed7936daee45d
"
}
}
}
}
}
}
...
...
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