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
7b895f23
Commit
7b895f23
authored
Dec 04, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
597613a7
Changes
29
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
1216 additions
and
1115 deletions
+1216
-1115
HomeScene.scene
assets/Bundles/HomeScene/HomeScene.scene
+891
-330
anim.meta
assets/Bundles/HomeScene/anim.meta
+9
-0
开始按钮.anim
assets/Bundles/HomeScene/anim/开始按钮.anim
+121
-0
开始按钮.anim.meta
assets/Bundles/HomeScene/anim/开始按钮.anim.meta
+13
-0
point_icon.png
assets/Bundles/HomeScene/png/point_icon.png
+0
-0
point_icon.png.meta
assets/Bundles/HomeScene/png/point_icon.png.meta
+0
-134
rule.png
assets/Bundles/HomeScene/png/rule.png
+0
-0
rule.png.meta
assets/Bundles/HomeScene/png/rule.png.meta
+0
-134
snake_ip.png
assets/Bundles/HomeScene/png/snake_ip.png
+0
-0
title.png
assets/Bundles/HomeScene/png/title.png
+0
-0
title.png.meta
assets/Bundles/HomeScene/png/title.png.meta
+0
-134
tutorial.png
assets/Bundles/HomeScene/png/tutorial.png
+0
-0
tutorial.png.meta
assets/Bundles/HomeScene/png/tutorial.png.meta
+0
-134
按钮动画.png
assets/Bundles/HomeScene/png/按钮动画.png
+0
-0
按钮动画.png.meta
assets/Bundles/HomeScene/png/按钮动画.png.meta
+28
-28
返回.png
assets/Bundles/HomeScene/png/返回.png
+0
-0
返回.png.meta
assets/Bundles/HomeScene/png/返回.png.meta
+0
-134
输出首页氛围.svga
assets/Bundles/HomeScene/svga/输出首页氛围.svga
+0
-0
输出首页氛围.svga.meta
assets/Bundles/HomeScene/svga/输出首页氛围.svga.meta
+12
-0
HomeScene.ts
assets/Scripts/Scenes/HomeScene.ts
+14
-4
WebNet.ts
assets/Scripts/Utils/WebNet/WebNet.ts
+2
-6
store.ts
assets/Scripts/store/store.ts
+41
-6
index.json
preview-template/mock/app/game/index.json
+0
-11
rankInfo.json
preview-template/mock/app/game/rankInfo.json
+0
-21
start.json
preview-template/mock/app/game/start.json
+0
-7
stepNewGuide.json
preview-template/mock/app/game/stepNewGuide.json
+0
-10
submit.json
preview-template/mock/app/game/submit.json
+0
-15
autologin.json
preview-template/mock/app/login/autologin.json
+0
-7
index.do.json
preview-template/mock/home/index.do.json
+85
-0
No files found.
assets/Bundles/HomeScene/HomeScene.scene
View file @
7b895f23
This diff is collapsed.
Click to expand it.
assets/Bundles/HomeScene/anim.meta
0 → 100644
View file @
7b895f23
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "3e0c9257-28b6-4898-8879-846a81fe3ff6",
"files": [],
"subMetas": {},
"userData": {}
}
assets/Bundles/HomeScene/anim/开始按钮.anim
0 → 100644
View file @
7b895f23
[
{
"__type__": "cc.AnimationClip",
"_name": "开始按钮",
"_objFlags": 0,
"__editorExtras__": {
"embeddedPlayerGroups": []
},
"_native": "",
"sample": 60,
"speed": 0.5,
"wrapMode": 2,
"enableTrsBlending": false,
"_duration": 1,
"_hash": 500763545,
"_tracks": [
{
"__id__": 1
}
],
"_exoticAnimation": null,
"_events": [],
"_embeddedPlayers": [],
"_additiveSettings": {
"__id__": 6
},
"_auxiliaryCurveEntries": []
},
{
"__type__": "cc.animation.RealTrack",
"_binding": {
"__type__": "cc.animation.TrackBinding",
"path": {
"__id__": 2
},
"proxy": null
},
"_channel": {
"__id__": 4
}
},
{
"__type__": "cc.animation.TrackPath",
"_paths": [
{
"__id__": 3
},
"opacity"
]
},
{
"__type__": "cc.animation.ComponentPath",
"component": "cc.UIOpacity"
},
{
"__type__": "cc.animation.Channel",
"_curve": {
"__id__": 5
}
},
{
"__type__": "cc.RealCurve",
"_times": [
0,
0.5,
1
],
"_values": [
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 2,
"tangentWeightMode": 2,
"value": 0,
"rightTangent": 938.4000244140625,
"rightTangentWeight": 117.30006408691406,
"leftTangent": 0,
"leftTangentWeight": 1,
"easingMethod": 0,
"__editorExtras__": {
"tangentMode": 0
}
},
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 2,
"tangentWeightMode": 3,
"value": 255,
"rightTangent": -74.18181610107422,
"rightTangentWeight": 20.401853561401367,
"leftTangent": 46.3636360168457,
"leftTangentWeight": 12.752964973449707,
"easingMethod": 0,
"__editorExtras__": {
"tangentMode": 0
}
},
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 2,
"tangentWeightMode": 1,
"value": 0,
"rightTangent": 0,
"rightTangentWeight": 1,
"leftTangent": -749.0625,
"leftTangentWeight": 119.85010528564453,
"easingMethod": 0,
"__editorExtras__": {
"tangentMode": 0
}
}
],
"preExtrapolation": 1,
"postExtrapolation": 1
},
{
"__type__": "cc.AnimationClipAdditiveSettings",
"enabled": false,
"refClip": null
}
]
\ No newline at end of file
assets/Bundles/HomeScene/anim/开始按钮.anim.meta
0 → 100644
View file @
7b895f23
{
"ver": "2.0.3",
"importer": "animation-clip",
"imported": true,
"uuid": "c2a97c38-bb04-4b05-8af9-b8fb3519aba2",
"files": [
".cconb"
],
"subMetas": {},
"userData": {
"name": "开始按钮"
}
}
assets/Bundles/HomeScene/png/point_icon.png
deleted
100644 → 0
View file @
597613a7
4.38 KB
assets/Bundles/HomeScene/png/point_icon.png.meta
deleted
100644 → 0
View file @
597613a7
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "8741f8f5-3da5-4ceb-95ea-f544470d709c",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "8741f8f5-3da5-4ceb-95ea-f544470d709c@6c48a",
"displayName": "point_icon",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "8741f8f5-3da5-4ceb-95ea-f544470d709c",
"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": "8741f8f5-3da5-4ceb-95ea-f544470d709c@f9941",
"displayName": "point_icon",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 80,
"height": 80,
"rawWidth": 80,
"rawHeight": 80,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-40,
-40,
0,
40,
-40,
0,
-40,
40,
0,
40,
40,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
80,
80,
80,
0,
0,
80,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-40,
-40,
0
],
"maxPos": [
40,
40,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "8741f8f5-3da5-4ceb-95ea-f544470d709c@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "8741f8f5-3da5-4ceb-95ea-f544470d709c@6c48a"
}
}
assets/Bundles/HomeScene/png/rule.png
deleted
100644 → 0
View file @
597613a7
14.2 KB
assets/Bundles/HomeScene/png/rule.png.meta
deleted
100644 → 0
View file @
597613a7
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "31d23e0d-50d7-4aec-a449-49e6a8902ca0",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "31d23e0d-50d7-4aec-a449-49e6a8902ca0@6c48a",
"displayName": "rule",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "31d23e0d-50d7-4aec-a449-49e6a8902ca0",
"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": "31d23e0d-50d7-4aec-a449-49e6a8902ca0@f9941",
"displayName": "rule",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 176,
"height": 63,
"rawWidth": 176,
"rawHeight": 63,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-88,
-31.5,
0,
88,
-31.5,
0,
-88,
31.5,
0,
88,
31.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
63,
176,
63,
0,
0,
176,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-88,
-31.5,
0
],
"maxPos": [
88,
31.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "31d23e0d-50d7-4aec-a449-49e6a8902ca0@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "31d23e0d-50d7-4aec-a449-49e6a8902ca0@6c48a"
}
}
assets/Bundles/HomeScene/png/snake_ip.png
deleted
100644 → 0
View file @
597613a7
11.9 KB
assets/Bundles/HomeScene/png/title.png
deleted
100644 → 0
View file @
597613a7
121 KB
assets/Bundles/HomeScene/png/title.png.meta
deleted
100644 → 0
View file @
597613a7
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "b02e16b7-1d0d-457a-8e46-d358a8747aba",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "b02e16b7-1d0d-457a-8e46-d358a8747aba@6c48a",
"displayName": "title",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "b02e16b7-1d0d-457a-8e46-d358a8747aba",
"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": "b02e16b7-1d0d-457a-8e46-d358a8747aba@f9941",
"displayName": "title",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 518,
"height": 265,
"rawWidth": 518,
"rawHeight": 265,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-259,
-132.5,
0,
259,
-132.5,
0,
-259,
132.5,
0,
259,
132.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
265,
518,
265,
0,
0,
518,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-259,
-132.5,
0
],
"maxPos": [
259,
132.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "b02e16b7-1d0d-457a-8e46-d358a8747aba@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "b02e16b7-1d0d-457a-8e46-d358a8747aba@6c48a"
}
}
assets/Bundles/HomeScene/png/tutorial.png
deleted
100644 → 0
View file @
597613a7
12.2 KB
assets/Bundles/HomeScene/png/tutorial.png.meta
deleted
100644 → 0
View file @
597613a7
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "98508ed4-68e4-433b-8580-4b077a3589ad",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "98508ed4-68e4-433b-8580-4b077a3589ad@6c48a",
"displayName": "tutorial",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "98508ed4-68e4-433b-8580-4b077a3589ad",
"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": "98508ed4-68e4-433b-8580-4b077a3589ad@f9941",
"displayName": "tutorial",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 172,
"height": 48,
"rawWidth": 172,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-86,
-24,
0,
86,
-24,
0,
-86,
24,
0,
86,
24,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
48,
172,
48,
0,
0,
172,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-86,
-24,
0
],
"maxPos": [
86,
24,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "98508ed4-68e4-433b-8580-4b077a3589ad@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "98508ed4-68e4-433b-8580-4b077a3589ad@6c48a"
}
}
assets/Bundles/HomeScene/png/按钮动画.png
0 → 100644
View file @
7b895f23
102 KB
assets/Bundles/HomeScene/png/
snake_ip
.png.meta
→
assets/Bundles/HomeScene/png/
按钮动画
.png.meta
View file @
7b895f23
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"ver": "1.0.27",
"ver": "1.0.27",
"importer": "image",
"importer": "image",
"imported": true,
"imported": true,
"uuid": "
0c32f0f3-1475-4d1e-b5ab-fb7979e4f206
",
"uuid": "
caa7f0ea-e6c8-41f5-a2c7-dc2c3f583f38
",
"files": [
"files": [
".json",
".json",
".png"
".png"
...
@@ -10,14 +10,14 @@
...
@@ -10,14 +10,14 @@
"subMetas": {
"subMetas": {
"6c48a": {
"6c48a": {
"importer": "texture",
"importer": "texture",
"uuid": "
0c32f0f3-1475-4d1e-b5ab-fb7979e4f206
@6c48a",
"uuid": "
caa7f0ea-e6c8-41f5-a2c7-dc2c3f583f38
@6c48a",
"displayName": "
snake_ip
",
"displayName": "
按钮动画
",
"id": "6c48a",
"id": "6c48a",
"name": "texture",
"name": "texture",
"userData": {
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "
0c32f0f3-1475-4d1e-b5ab-fb7979e4f206
",
"imageUuidOrDatabaseUri": "
caa7f0ea-e6c8-41f5-a2c7-dc2c3f583f38
",
"isUuid": true,
"isUuid": true,
"visible": false,
"visible": false,
"minfilter": "linear",
"minfilter": "linear",
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
},
},
"f9941": {
"f9941": {
"importer": "sprite-frame",
"importer": "sprite-frame",
"uuid": "
0c32f0f3-1475-4d1e-b5ab-fb7979e4f206
@f9941",
"uuid": "
caa7f0ea-e6c8-41f5-a2c7-dc2c3f583f38
@f9941",
"displayName": "
snake_ip
",
"displayName": "
按钮动画
",
"id": "f9941",
"id": "f9941",
"name": "spriteFrame",
"name": "spriteFrame",
"userData": {
"userData": {
...
@@ -46,10 +46,10 @@
...
@@ -46,10 +46,10 @@
"offsetY": 0,
"offsetY": 0,
"trimX": 0,
"trimX": 0,
"trimY": 0,
"trimY": 0,
"width":
914
,
"width":
520
,
"height":
189
,
"height":
225
,
"rawWidth":
914
,
"rawWidth":
520
,
"rawHeight":
189
,
"rawHeight":
225
,
"borderTop": 0,
"borderTop": 0,
"borderBottom": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderLeft": 0,
...
@@ -61,17 +61,17 @@
...
@@ -61,17 +61,17 @@
"meshType": 0,
"meshType": 0,
"vertices": {
"vertices": {
"rawPosition": [
"rawPosition": [
-
457
,
-
260
,
-
94
.5,
-
112
.5,
0,
0,
457
,
260
,
-
94
.5,
-
112
.5,
0,
0,
-
457
,
-
260
,
94
.5,
112
.5,
0,
0,
457
,
260
,
94
.5,
112
.5,
0
0
],
],
"indexes": [
"indexes": [
...
@@ -84,12 +84,12 @@
...
@@ -84,12 +84,12 @@
],
],
"uv": [
"uv": [
0,
0,
189
,
225
,
914
,
520
,
189
,
225
,
0,
0,
0,
0,
914
,
520
,
0
0
],
],
"nuv": [
"nuv": [
...
@@ -103,18 +103,18 @@
...
@@ -103,18 +103,18 @@
1
1
],
],
"minPos": [
"minPos": [
-
457
,
-
260
,
-
94
.5,
-
112
.5,
0
0
],
],
"maxPos": [
"maxPos": [
457
,
260
,
94
.5,
112
.5,
0
0
]
]
},
},
"isUuid": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "
0c32f0f3-1475-4d1e-b5ab-fb7979e4f206
@6c48a",
"imageUuidOrDatabaseUri": "
caa7f0ea-e6c8-41f5-a2c7-dc2c3f583f38
@6c48a",
"atlasUuid": ""
"atlasUuid": ""
},
},
"ver": "1.0.12",
"ver": "1.0.12",
...
@@ -129,6 +129,6 @@
...
@@ -129,6 +129,6 @@
"type": "sprite-frame",
"type": "sprite-frame",
"hasAlpha": true,
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "
0c32f0f3-1475-4d1e-b5ab-fb7979e4f206
@6c48a"
"redirect": "
caa7f0ea-e6c8-41f5-a2c7-dc2c3f583f38
@6c48a"
}
}
}
}
assets/Bundles/HomeScene/png/返回.png
deleted
100644 → 0
View file @
597613a7
4.81 KB
assets/Bundles/HomeScene/png/返回.png.meta
deleted
100644 → 0
View file @
597613a7
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "f8449379-3802-4387-bce2-a6661f3d267c",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "f8449379-3802-4387-bce2-a6661f3d267c@6c48a",
"displayName": "返回",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "f8449379-3802-4387-bce2-a6661f3d267c",
"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": "f8449379-3802-4387-bce2-a6661f3d267c@f9941",
"displayName": "返回",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 48,
"height": 48,
"rawWidth": 48,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-24,
-24,
0,
24,
-24,
0,
-24,
24,
0,
24,
24,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
48,
48,
48,
0,
0,
48,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-24,
-24,
0
],
"maxPos": [
24,
24,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "f8449379-3802-4387-bce2-a6661f3d267c@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "f8449379-3802-4387-bce2-a6661f3d267c@6c48a"
}
}
assets/Bundles/HomeScene/svga/输出首页氛围.svga
0 → 100644
View file @
7b895f23
File added
assets/Bundles/HomeScene/svga/输出首页氛围.svga.meta
0 → 100644
View file @
7b895f23
{
"ver": "1.0.0",
"importer": "*",
"imported": true,
"uuid": "e5584df6-544c-4273-864b-0fe2a46ed317",
"files": [
".json",
".svga"
],
"subMetas": {},
"userData": {}
}
assets/Scripts/Scenes/HomeScene.ts
View file @
7b895f23
import
{
_decorator
,
Button
,
Node
}
from
'cc'
;
import
{
_decorator
,
Button
,
Label
,
Node
}
from
"cc"
;
import
Scene
from
"db://assets/Module/Scene"
;
import
Scene
from
"db://assets/Module/Scene"
;
import
{
MainGame
}
from
"./MainGame/MainGame"
;
import
{
MainGame
}
from
"./MainGame/MainGame"
;
import
{
changeScene
,
showPanel
}
from
"db://assets/Module/UIFast"
;
import
{
changeScene
,
showPanel
}
from
"db://assets/Module/UIFast"
;
...
@@ -26,13 +26,16 @@ export class HomeScene extends Scene {
...
@@ -26,13 +26,16 @@ export class HomeScene extends Scene {
@
property
(
Node
)
startBtn
:
Node
=
null
;
@
property
(
Node
)
startBtn
:
Node
=
null
;
@
property
(
Node
)
ruleBtn
:
Node
=
null
;
@
property
(
Node
)
ruleBtn
:
Node
=
null
;
@
property
(
Node
)
rankBtn
:
Node
=
null
;
@
property
(
Node
)
rankBtn
:
Node
=
null
;
@
property
(
Node
)
backBtn
:
Node
=
null
;
@
property
(
Label
)
userName
:
Label
;
@
property
(
Label
)
pointNum
:
Label
;
@
property
(
Label
)
fuDaiText
:
Label
;
@
property
(
Label
)
signTxt
:
Label
;
onLoad
()
{
onLoad
()
{
this
.
startBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickStart
,
this
);
this
.
startBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickStart
,
this
);
this
.
ruleBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickRule
,
this
);
this
.
ruleBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickRule
,
this
);
this
.
rankBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickRank
,
this
);
this
.
rankBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickRank
,
this
);
this
.
backBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickBack
,
this
);
}
}
async
start
()
{
async
start
()
{
...
@@ -47,7 +50,14 @@ export class HomeScene extends Scene {
...
@@ -47,7 +50,14 @@ export class HomeScene extends Scene {
@
render
@
render
render
()
{
render
()
{
// const {} = store.homeInfo || {};
const
{
nickname
=
""
,
creditsNum
=
0
,
}
=
store
.
homeInfo
||
{};
this
.
userName
.
string
=
nickname
;
this
.
pointNum
.
string
=
`
${
creditsNum
}
`
;
}
}
clickStart
=
_asyncThrottle
(
async
()
=>
{
clickStart
=
_asyncThrottle
(
async
()
=>
{
...
...
assets/Scripts/Utils/WebNet/WebNet.ts
View file @
7b895f23
...
@@ -21,6 +21,8 @@ export enum WebNetName {
...
@@ -21,6 +21,8 @@ export enum WebNetName {
buriedPoint
=
'buriedPoint'
,
buriedPoint
=
'buriedPoint'
,
index
=
"home/index.do"
,
startGame
=
"game/startGame.do"
,
startGame
=
"game/startGame.do"
,
submitOne
=
"game/submitOne.do"
,
submitOne
=
"game/submitOne.do"
,
submitTwo
=
"game/submitTwo.do"
,
submitTwo
=
"game/submitTwo.do"
,
...
@@ -33,12 +35,6 @@ export enum WebNetName {
...
@@ -33,12 +35,6 @@ export enum WebNetName {
*/
*/
rank
=
"rank/index.do"
,
rank
=
"rank/index.do"
,
index
=
"app/game/index"
,
start
=
"app/game/start"
,
submit
=
"app/game/submit"
,
stepNewGuide
=
"app/game/stepNewGuide"
,
rankInfo
=
"app/game/rankInfo"
,
/**
/**
* 获取规则
* 获取规则
*/
*/
...
...
assets/Scripts/store/store.ts
View file @
7b895f23
import
mobx
from
"mobx"
;
import
mobx
from
"mobx"
;
import
{
sendWebNet
,
WebNetName
}
from
"../Utils/WebNet/WebNet"
;
import
{
sendWebNet
,
WebNetName
}
from
"../Utils/WebNet/WebNet"
;
import
{
IStartInfo
}
from
"./gameStore"
;
const
{
makeAutoObservable
}
=
mobx
;
const
{
makeAutoObservable
}
=
mobx
;
export
interface
IHomeInfo
{
export
interface
IHomeInfo
{
activityRule
:
string
;
actStartTime
:
number
;
alreadyGuideSteps
:
number
;
actEndTime
:
number
;
allGuideSteps
:
number
;
currentTime
:
number
;
creditsNum
:
number
;
signPopFlag
:
boolean
;
continueSignDays
:
number
;
nickname
:
string
;
avatar
:
string
;
newGetSpId
:
string
;
rankInfos
:
{
index
:
number
;
nickname
:
string
;
avatar
:
string
;
}[];
rankPopList
:
{
rankType
:
1
|
2
;
openDate
:
string
;
index
:
number
;
prizeId
:
string
;
prizeName
:
string
;
prizeImage
:
string
;
count
:
number
;
}[];
bagPopVO
:
{
bagNum
:
number
;
bagName
:
string
;
bagImg
:
number
;
};
}
}
...
@@ -24,9 +50,18 @@ class Store {
...
@@ -24,9 +50,18 @@ class Store {
}
}
homeInfo
:
IHomeInfo
=
{
homeInfo
:
IHomeInfo
=
{
activityRule
:
""
,
actStartTime
:
Date
.
now
(),
alreadyGuideSteps
:
0
,
// 活动结束时间戳(精确到毫秒)
actEndTime
:
Date
.
now
()
-
1000
,
allGuideSteps
:
0
,
// 当前时间戳(精确到毫秒)
currentTime
:
Date
.
now
(),
creditsNum
:
0
,
signPopFlag
:
false
,
continueSignDays
:
0
,
nickname
:
""
,
avatar
:
""
,
newGetSpId
:
null
,
rankInfos
:
[],
rankPopList
:
[],
bagPopVO
:
null
,
}
}
async
updateIndex
()
{
async
updateIndex
()
{
...
...
preview-template/mock/app/game/index.json
deleted
100644 → 0
View file @
597613a7
{
"ok"
:
true
,
"msg"
:
"ok"
,
"code"
:
0
,
"data"
:
{
"activityRule"
:
"<p>123123123123123</p>"
,
"alreadyGuideSteps"
:
0
,
"allGuideSteps"
:
4
},
"timestamp"
:
1724379274542
}
\ No newline at end of file
preview-template/mock/app/game/rankInfo.json
deleted
100644 → 0
View file @
597613a7
{
"code"
:
null
,
"data"
:
{
"rankList"
:
[
{
"avatar"
:
"dolore"
,
"rank"
:
1
,
"nickname"
:
"ea"
,
"score"
:
888888
}
],
"myRank"
:
{
"avatar"
:
"sint mollit ullamco"
,
"rank"
:
null
,
"nickname"
:
"commodo"
,
"score"
:
888
}
},
"message"
:
"consectetur in exercitation"
,
"success"
:
true
}
\ No newline at end of file
preview-template/mock/app/game/start.json
deleted
100644 → 0
View file @
597613a7
{
"ok"
:
true
,
"msg"
:
"ok"
,
"code"
:
100013
,
"data"
:
"hId4l6KOn3coexfedjTQ48vx0NEZcG0Se2UrnuDcr8Y="
,
"timestamp"
:
1724379274542
}
\ No newline at end of file
preview-template/mock/app/game/stepNewGuide.json
deleted
100644 → 0
View file @
597613a7
{
"ok"
:
true
,
"msg"
:
"ok"
,
"code"
:
0
,
"data"
:
{
"alreadyGuideSteps"
:
0
,
"allGuideSteps"
:
4
},
"timestamp"
:
1724379274542
}
\ No newline at end of file
preview-template/mock/app/game/submit.json
deleted
100644 → 0
View file @
597613a7
{
"ok"
:
true
,
"msg"
:
"ok"
,
"code"
:
0
,
"data"
:
{
"prizeVO"
:
{
"optionName"
:
"optionName"
,
"optionImg"
:
"optionImg"
},
"historyMaxScore"
:
9999
,
"thirdCode"
:
10002
,
"thirdMsg"
:
"thirdMsg"
},
"timestamp"
:
1724379274542
}
\ No newline at end of file
preview-template/mock/app/login/autologin.json
deleted
100644 → 0
View file @
597613a7
{
"ok"
:
true
,
"msg"
:
"ok"
,
"code"
:
0
,
"data"
:
null
,
"timestamp"
:
1724379274542
}
\ No newline at end of file
preview-template/mock/home/index.do.json
0 → 100644
View file @
7b895f23
{
"code"
:
"est irure aute"
,
"data"
:
{
"actStartTime"
:
1733282000000
,
"signPopFlag"
:
true
,
"creditsNum"
:
999999
,
"actEndTime"
:
1733282900000
,
"currentTime"
:
1733282100000
,
"avatar"
:
"non qui in aliqua"
,
"nickname"
:
"ex aliquip esse dolor cupidatat"
,
"rankInfos"
:
[
{
"index"
:
1
,
"nickname"
:
"sed Excepteur pariatur aute"
,
"avatar"
:
"elit proident"
},
{
"index"
:
2
,
"nickname"
:
"sed Excepteur pariatur aute"
,
"avatar"
:
"elit proident"
},
{
"index"
:
3
,
"nickname"
:
"sed Excepteur pariatur aute"
,
"avatar"
:
"elit proident"
}
],
"rankPopList"
:
[
{
"rankType"
:
"do consequat sint Ut aliquip"
,
"openDate"
:
"do dolor irure adipisicing"
,
"index"
:
51975861.85452643
,
"prizeName"
:
"elit Ut cillum irure"
,
"count"
:
-69110138.47883804
,
"prizeImage"
:
"irure"
,
"prizeId"
:
"minim aute fugiat aliqua eiusmod"
},
{
"rankType"
:
"consequat Ut"
,
"openDate"
:
"aliqua veniam sit"
,
"index"
:
-90451212.72170383
,
"prizeName"
:
"deserunt ullamco"
,
"count"
:
32524730.09524168
,
"prizeImage"
:
"nostrud culpa dolor id"
,
"prizeId"
:
"quis et dolore"
},
{
"rankType"
:
"aute in"
,
"openDate"
:
"mollit voluptate nisi"
,
"index"
:
-5272952.166486308
,
"prizeName"
:
"voluptate fugiat aute Lorem Ut"
,
"count"
:
-87639967.64217277
,
"prizeImage"
:
"ea ipsum"
,
"prizeId"
:
"sunt"
},
{
"rankType"
:
"dolor ex fugiat in sint"
,
"openDate"
:
"adipisicing do"
,
"index"
:
-30792310.48187779
,
"prizeName"
:
"nulla esse Duis sunt"
,
"count"
:
90098550.33463329
,
"prizeImage"
:
"ut"
,
"prizeId"
:
"ullamco nulla aliquip"
},
{
"rankType"
:
"magna"
,
"openDate"
:
"nostrud anim laboris"
,
"index"
:
-26635296.24822849
,
"prizeName"
:
"aliqua"
,
"count"
:
85964283.52799341
,
"prizeImage"
:
"do"
,
"prizeId"
:
"sit veniam"
}
],
"continueSignDays"
:
-54575612.31937764
,
"newGetSpId"
:
"esse irure enim in"
,
"bagPopVO"
:
{
"bagNum"
:
-31505178.73679313
,
"bagImg"
:
"aute laboris et"
,
"bagName"
:
"ipsum"
}
},
"message"
:
"incididunt ullamco qui voluptate dolor"
,
"success"
:
true
}
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