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
863ab529
Commit
863ab529
authored
Nov 27, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
ba154cdd
Changes
22
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
3373 additions
and
14 deletions
+3373
-14
GameResultPanel.meta
assets/Bundles/GameResultPanel.meta
+1
-0
GameResultPanel.prefab
assets/Bundles/GameResultPanel/GameResultPanel.prefab
+2398
-0
GameResultPanel.prefab.meta
assets/Bundles/GameResultPanel/GameResultPanel.prefab.meta
+13
-0
anim.meta
assets/Bundles/GameResultPanel/anim.meta
+9
-0
light.anim
assets/Bundles/GameResultPanel/anim/light.anim
+207
-0
light.anim.meta
assets/Bundles/GameResultPanel/anim/light.anim.meta
+13
-0
png.meta
assets/Bundles/GameResultPanel/png.meta
+9
-0
再来一局.png
assets/Bundles/GameResultPanel/png/再来一局.png
+0
-0
再来一局.png.meta
assets/Bundles/GameResultPanel/png/再来一局.png.meta
+134
-0
分享好友.png
assets/Bundles/GameResultPanel/png/分享好友.png
+0
-0
分享好友.png.meta
assets/Bundles/GameResultPanel/png/分享好友.png.meta
+134
-0
发光.png
assets/Bundles/GameResultPanel/png/发光.png
+0
-0
发光.png.meta
assets/Bundles/GameResultPanel/png/发光.png.meta
+134
-0
弹窗背景.png
assets/Bundles/GameResultPanel/png/弹窗背景.png
+0
-0
弹窗背景.png.meta
assets/Bundles/GameResultPanel/png/弹窗背景.png.meta
+134
-0
返回首页.png
assets/Bundles/GameResultPanel/png/返回首页.png
+0
-0
返回首页.png.meta
assets/Bundles/GameResultPanel/png/返回首页.png.meta
+134
-0
GameResultPanel.ts
assets/Scripts/Panels/GameResultPanel.ts
+46
-0
GameResultPanel.ts.meta
assets/Scripts/Panels/GameResultPanel.ts.meta
+1
-0
HomeScene.ts
assets/Scripts/Scenes/HomeScene.ts
+3
-0
Global.ts
assets/Scripts/Scenes/MainGame/Global.ts
+0
-11
Start.ts
assets/Start/Start.ts
+3
-3
No files found.
assets/Bundles/GameResultPanel.meta
0 → 100644
View file @
863ab529
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"2e730492-411a-4939-baeb-5af8168ec83b","files":[],"subMetas":{},"userData":{"isBundle":true}}
assets/Bundles/GameResultPanel/GameResultPanel.prefab
0 → 100644
View file @
863ab529
This diff is collapsed.
Click to expand it.
assets/Bundles/GameResultPanel/GameResultPanel.prefab.meta
0 → 100644
View file @
863ab529
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "0bf3174b-3969-4ccb-bb3f-c1623eb50166",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "GameResultPanel"
}
}
assets/Bundles/GameResultPanel/anim.meta
0 → 100644
View file @
863ab529
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "65593d0c-9e52-468a-9717-c49388f18adb",
"files": [],
"subMetas": {},
"userData": {}
}
assets/Bundles/GameResultPanel/anim/light.anim
0 → 100644
View file @
863ab529
[
{
"__type__": "cc.AnimationClip",
"_name": "light",
"_objFlags": 0,
"__editorExtras__": {
"embeddedPlayerGroups": []
},
"_native": "",
"sample": 30,
"speed": 0.5,
"wrapMode": 2,
"enableTrsBlending": false,
"_duration": 3,
"_hash": 500763545,
"_tracks": [
{
"__id__": 1
}
],
"_exoticAnimation": null,
"_events": [],
"_embeddedPlayers": [],
"_additiveSettings": {
"__id__": 11
},
"_auxiliaryCurveEntries": []
},
{
"__type__": "cc.animation.VectorTrack",
"_binding": {
"__type__": "cc.animation.TrackBinding",
"path": {
"__id__": 2
},
"proxy": null
},
"_channels": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
},
{
"__id__": 9
}
],
"_nComponents": 3
},
{
"__type__": "cc.animation.TrackPath",
"_paths": [
"eulerAngles"
]
},
{
"__type__": "cc.animation.Channel",
"_curve": {
"__id__": 4
}
},
{
"__type__": "cc.RealCurve",
"_times": [
0,
3
],
"_values": [
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 0,
"tangentWeightMode": 0,
"value": 0,
"rightTangent": 0,
"rightTangentWeight": 1,
"leftTangent": 0,
"leftTangentWeight": 1,
"easingMethod": 0,
"__editorExtras__": {
"broken": null
}
},
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 0,
"tangentWeightMode": 0,
"value": 0,
"rightTangent": 0,
"rightTangentWeight": 1,
"leftTangent": 0,
"leftTangentWeight": 1,
"easingMethod": 0,
"__editorExtras__": null
}
],
"preExtrapolation": 1,
"postExtrapolation": 1
},
{
"__type__": "cc.animation.Channel",
"_curve": {
"__id__": 6
}
},
{
"__type__": "cc.RealCurve",
"_times": [
0,
3
],
"_values": [
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 0,
"tangentWeightMode": 0,
"value": 0,
"rightTangent": 0,
"rightTangentWeight": 1,
"leftTangent": 0,
"leftTangentWeight": 1,
"easingMethod": 0,
"__editorExtras__": {
"broken": null
}
},
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 0,
"tangentWeightMode": 0,
"value": 0,
"rightTangent": 0,
"rightTangentWeight": 1,
"leftTangent": 0,
"leftTangentWeight": 1,
"easingMethod": 0,
"__editorExtras__": null
}
],
"preExtrapolation": 1,
"postExtrapolation": 1
},
{
"__type__": "cc.animation.Channel",
"_curve": {
"__id__": 8
}
},
{
"__type__": "cc.RealCurve",
"_times": [
0,
3
],
"_values": [
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 0,
"tangentWeightMode": 0,
"value": 0,
"rightTangent": 0,
"rightTangentWeight": 1,
"leftTangent": 0,
"leftTangentWeight": 1,
"easingMethod": 0,
"__editorExtras__": {
"broken": null
}
},
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 0,
"tangentWeightMode": 0,
"value": -360,
"rightTangent": 0,
"rightTangentWeight": 1,
"leftTangent": 0,
"leftTangentWeight": 1,
"easingMethod": 0,
"__editorExtras__": null
}
],
"preExtrapolation": 1,
"postExtrapolation": 1
},
{
"__type__": "cc.animation.Channel",
"_curve": {
"__id__": 10
}
},
{
"__type__": "cc.RealCurve",
"_times": [],
"_values": [],
"preExtrapolation": 1,
"postExtrapolation": 1
},
{
"__type__": "cc.AnimationClipAdditiveSettings",
"enabled": false,
"refClip": null
}
]
\ No newline at end of file
assets/Bundles/GameResultPanel/anim/light.anim.meta
0 → 100644
View file @
863ab529
{
"ver": "2.0.3",
"importer": "animation-clip",
"imported": true,
"uuid": "d9727687-7b05-41d5-b08a-bc0d7d0cd4a8",
"files": [
".cconb"
],
"subMetas": {},
"userData": {
"name": "light"
}
}
assets/Bundles/GameResultPanel/png.meta
0 → 100644
View file @
863ab529
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "ad5c5c2f-dd71-4ed3-a993-d4030f72ab97",
"files": [],
"subMetas": {},
"userData": {}
}
assets/Bundles/GameResultPanel/png/再来一局.png
0 → 100644
View file @
863ab529
2.62 KB
assets/Bundles/GameResultPanel/png/再来一局.png.meta
0 → 100644
View file @
863ab529
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "dd584c86-f809-4db8-9487-7003953dec4c",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "dd584c86-f809-4db8-9487-7003953dec4c@6c48a",
"displayName": "再来一局",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "dd584c86-f809-4db8-9487-7003953dec4c",
"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": "dd584c86-f809-4db8-9487-7003953dec4c@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": "dd584c86-f809-4db8-9487-7003953dec4c@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "dd584c86-f809-4db8-9487-7003953dec4c@6c48a"
}
}
assets/Bundles/GameResultPanel/png/分享好友.png
0 → 100644
View file @
863ab529
3.06 KB
assets/Bundles/GameResultPanel/png/分享好友.png.meta
0 → 100644
View file @
863ab529
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "d82d1def-b32d-49b4-bc46-eb80c317511d",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "d82d1def-b32d-49b4-bc46-eb80c317511d@6c48a",
"displayName": "分享好友",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "d82d1def-b32d-49b4-bc46-eb80c317511d",
"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": "d82d1def-b32d-49b4-bc46-eb80c317511d@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": "d82d1def-b32d-49b4-bc46-eb80c317511d@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "d82d1def-b32d-49b4-bc46-eb80c317511d@6c48a"
}
}
assets/Bundles/GameResultPanel/png/发光.png
0 → 100644
View file @
863ab529
This diff is collapsed.
Click to expand it.
assets/Bundles/GameResultPanel/png/发光.png.meta
0 → 100644
View file @
863ab529
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "23688bae-9f82-467c-9efc-c6cde46c2c9e",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "23688bae-9f82-467c-9efc-c6cde46c2c9e@6c48a",
"displayName": "发光",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "23688bae-9f82-467c-9efc-c6cde46c2c9e",
"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": "23688bae-9f82-467c-9efc-c6cde46c2c9e@f9941",
"displayName": "发光",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1743,
"height": 1721,
"rawWidth": 1743,
"rawHeight": 1721,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-871.5,
-860.5,
0,
871.5,
-860.5,
0,
-871.5,
860.5,
0,
871.5,
860.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1721,
1743,
1721,
0,
0,
1743,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-871.5,
-860.5,
0
],
"maxPos": [
871.5,
860.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "23688bae-9f82-467c-9efc-c6cde46c2c9e@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "23688bae-9f82-467c-9efc-c6cde46c2c9e@6c48a"
}
}
assets/Bundles/GameResultPanel/png/弹窗背景.png
0 → 100644
View file @
863ab529
84 KB
assets/Bundles/GameResultPanel/png/弹窗背景.png.meta
0 → 100644
View file @
863ab529
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "22b83409-e7ea-487e-9cd8-333fafe7c793",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "22b83409-e7ea-487e-9cd8-333fafe7c793@6c48a",
"displayName": "弹窗背景",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "22b83409-e7ea-487e-9cd8-333fafe7c793",
"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": "22b83409-e7ea-487e-9cd8-333fafe7c793@f9941",
"displayName": "弹窗背景",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1136,
"height": 599,
"rawWidth": 1136,
"rawHeight": 599,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-568,
-299.5,
0,
568,
-299.5,
0,
-568,
299.5,
0,
568,
299.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
599,
1136,
599,
0,
0,
1136,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-568,
-299.5,
0
],
"maxPos": [
568,
299.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "22b83409-e7ea-487e-9cd8-333fafe7c793@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "22b83409-e7ea-487e-9cd8-333fafe7c793@6c48a"
}
}
assets/Bundles/GameResultPanel/png/返回首页.png
0 → 100644
View file @
863ab529
4.35 KB
assets/Bundles/GameResultPanel/png/返回首页.png.meta
0 → 100644
View file @
863ab529
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "92cc1371-f959-4243-9d27-7d34035891f7",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "92cc1371-f959-4243-9d27-7d34035891f7@6c48a",
"displayName": "返回首页",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "92cc1371-f959-4243-9d27-7d34035891f7",
"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": "92cc1371-f959-4243-9d27-7d34035891f7@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": "92cc1371-f959-4243-9d27-7d34035891f7@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "92cc1371-f959-4243-9d27-7d34035891f7@6c48a"
}
}
assets/Scripts/Panels/GameResultPanel.ts
0 → 100644
View file @
863ab529
import
Panel
from
"../../Module/Panel"
;
import
{
_decorator
,
Button
,
Label
,
Node
,
Sprite
}
from
"cc"
;
import
{
observer
}
from
"../store/decorators"
;
const
{
ccclass
,
property
}
=
_decorator
;
@
observer
@
ccclass
(
"GameResultPanel"
)
export
default
class
GameResultPanel
extends
Panel
{
static
bundle
=
"GameResultPanel"
;
static
skin
=
"GameResultPanel"
;
@
property
(
Node
)
share
:
Node
=
null
;
@
property
(
Node
)
again
:
Node
=
null
;
@
property
(
Node
)
back
:
Node
=
null
;
@
property
(
Sprite
)
prizeImg
:
Sprite
=
null
;
@
property
(
Label
)
prizeName
:
Label
=
null
;
@
property
(
Label
)
totalLength
:
Label
=
null
;
@
property
(
Label
)
totalKill
:
Label
=
null
;
onLoad
()
{
this
.
share
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickShare
,
this
);
this
.
again
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickAgain
,
this
);
this
.
back
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickBack
,
this
);
}
async
start
()
{
}
clickShare
()
{
}
clickAgain
()
{
}
clickBack
()
{
}
// @render
// render() {
// const {ruleInfo = ""} = store;
// this.setRuleTxt(ruleInfo);
// }
}
assets/Scripts/Panels/GameResultPanel.ts.meta
0 → 100644
View file @
863ab529
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"e0911d8b-0d27-49ae-8fd2-f6d2ad741906","files":[],"subMetas":{},"userData":{}}
assets/Scripts/Scenes/HomeScene.ts
View file @
863ab529
...
...
@@ -8,6 +8,7 @@ import { _asyncThrottle } from "../Utils/Utils";
import
RankPanel
from
"../Panels/RankPanel"
;
import
{
UIMgr
}
from
"../../Module/UIMgr"
;
import
gameStore
from
"../store/gameStore"
;
import
GameResultPanel
from
"../Panels/GameResultPanel"
;
const
{
ccclass
,
property
}
=
_decorator
;
...
...
@@ -36,6 +37,8 @@ export class HomeScene extends Scene {
await
store
.
updateIndex
();
showPanel
(
GameResultPanel
);
UIMgr
.
ins
.
preloadScene
(
MainGame
);
}
...
...
assets/Scripts/Scenes/MainGame/Global.ts
View file @
863ab529
...
...
@@ -7,17 +7,6 @@ const { ccclass } = _decorator;
@
ccclass
(
'Global'
)
export
class
Global
{
/** 设计分辨率 */
public
static
designResolutionSize
=
View
.
instance
.
getDesignResolutionSize
();
/** 可视区域大小 */
public
static
visibleSize
=
View
.
instance
.
getVisibleSize
();
/** 宽度缩放比例 */
public
static
widthScaling
=
Math
.
round
(
(
Global
.
visibleSize
.
width
/
Global
.
designResolutionSize
.
width
)
*
100
)
/
100
;
/** 地图宽度 */
public
static
MAP_WIDTH
:
number
=
6000
;
...
...
assets/Start/Start.ts
View file @
863ab529
...
...
@@ -76,9 +76,9 @@ export class Start extends Component {
await
changeScene
(
HomeScene
);
AudioMgr
.
ins
.
play
(
"audio/飞球背景音乐"
,
{
bundleName
:
"common"
,
});
//
AudioMgr.ins.play("audio/飞球背景音乐", {
//
bundleName: "common",
//
});
}
...
...
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