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
c97c4817
Commit
c97c4817
authored
Nov 29, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
6c3ec1fc
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
3053 additions
and
99 deletions
+3053
-99
GamePosterPanel.prefab
assets/Bundles/GamePosterPanel/GamePosterPanel.prefab
+150
-11
道具_加速_100px@1x.png
assets/Bundles/MainGame/png/道具/道具_加速_100px@1x.png
+0
-0
道具_加速_100px@1x.png.meta
assets/Bundles/MainGame/png/道具/道具_加速_100px@1x.png.meta
+134
-0
道具_加长_100px@1x.png
assets/Bundles/MainGame/png/道具/道具_加长_100px@1x.png
+0
-0
道具_加长_100px@1x.png.meta
assets/Bundles/MainGame/png/道具/道具_加长_100px@1x.png.meta
+134
-0
道具_双倍经验_100px@1x.png
assets/Bundles/MainGame/png/道具/道具_双倍经验_100px@1x.png
+0
-0
道具_双倍经验_100px@1x.png.meta
assets/Bundles/MainGame/png/道具/道具_双倍经验_100px@1x.png.meta
+134
-0
道具_护盾_100px@1x.png
assets/Bundles/MainGame/png/道具/道具_护盾_100px@1x.png
+0
-0
道具_护盾_100px@1x.png.meta
assets/Bundles/MainGame/png/道具/道具_护盾_100px@1x.png.meta
+134
-0
道具_磁铁_100px@1x.png
assets/Bundles/MainGame/png/道具/道具_磁铁_100px@1x.png
+0
-0
道具_磁铁_100px@1x.png.meta
assets/Bundles/MainGame/png/道具/道具_磁铁_100px@1x.png.meta
+134
-0
道具_福袋_100px@1x.png
assets/Bundles/MainGame/png/道具/道具_福袋_100px@1x.png
+0
-0
道具_福袋_100px@1x.png.meta
assets/Bundles/MainGame/png/道具/道具_福袋_100px@1x.png.meta
+134
-0
加速.prefab
assets/Bundles/MainGame/prefab/加速.prefab
+5
-26
加速.prefab.meta
assets/Bundles/MainGame/prefab/加速.prefab.meta
+2
-2
加长.prefab
assets/Bundles/MainGame/prefab/加长.prefab
+481
-0
加长.prefab.meta
assets/Bundles/MainGame/prefab/加长.prefab.meta
+13
-0
双倍经验.prefab
assets/Bundles/MainGame/prefab/双倍经验.prefab
+481
-0
双倍经验.prefab.meta
assets/Bundles/MainGame/prefab/双倍经验.prefab.meta
+13
-0
护盾.prefab
assets/Bundles/MainGame/prefab/护盾.prefab
+481
-0
护盾.prefab.meta
assets/Bundles/MainGame/prefab/护盾.prefab.meta
+13
-0
磁铁.prefab
assets/Bundles/MainGame/prefab/磁铁.prefab
+481
-0
磁铁.prefab.meta
assets/Bundles/MainGame/prefab/磁铁.prefab.meta
+13
-0
福袋.prefab
assets/Bundles/MainGame/prefab/福袋.prefab
+2
-2
HomeScene.ts
assets/Scripts/Scenes/HomeScene.ts
+1
-1
Start.ts
assets/Start/Start.ts
+112
-57
index.ejs
preview-template/index.ejs
+1
-0
No files found.
assets/Bundles/GamePosterPanel/GamePosterPanel.prefab
View file @
c97c4817
...
...
@@ -23,22 +23,25 @@
},
{
"__id__": 32
},
{
"__id__": 38
}
],
"_active": true,
"_components": [
{
"__id__":
36
"__id__":
42
},
{
"__id__":
38
"__id__":
44
},
{
"__id__": 4
0
"__id__": 4
6
}
],
"_prefab": {
"__id__": 4
2
"__id__": 4
8
},
"_lpos": {
"__type__": "cc.Vec3",
...
...
@@ -791,7 +794,7 @@
},
{
"__type__": "cc.Node",
"_name": "
Camera
",
"_name": "
长按保存
",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
...
...
@@ -802,10 +805,146 @@
"_components": [
{
"__id__": 33
},
{
"__id__": 35
}
],
"_prefab": {
"__id__": 37
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -286,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 32
},
"_enabled": true,
"__prefab": {
"__id__": 34
},
"_contentSize": {
"__type__": "cc.Size",
"width": 236,
"height": 38
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "eaJ6Avp5xH9KymQUzMVQpp"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 32
},
"_enabled": true,
"__prefab": {
"__id__": 36
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "101f763c-59b5-4d42-9c46-db2813111ad4@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "16XRxhnc9AOZbdmcp/+gZk"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "a1XBEZlNhBbYBrCypyeZEM",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "Camera",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 39
}
],
"_prefab": {
"__id__":
35
"__id__":
41
},
"_lpos": {
"__type__": "cc.Vec3",
...
...
@@ -842,11 +981,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
2
"__id__": 3
8
},
"_enabled": true,
"__prefab": {
"__id__":
34
"__id__":
40
},
"_projection": 0,
"_priority": 0,
...
...
@@ -914,7 +1053,7 @@
},
"_enabled": true,
"__prefab": {
"__id__":
37
"__id__":
43
},
"_contentSize": {
"__type__": "cc.Size",
...
...
@@ -942,7 +1081,7 @@
},
"_enabled": true,
"__prefab": {
"__id__":
39
"__id__":
45
},
"_alignFlags": 45,
"_target": null,
...
...
@@ -978,7 +1117,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 4
1
"__id__": 4
7
},
"rt": {
"__uuid__": "0fdf934b-32b0-4477-b6fa-a79f3615fec4",
...
...
assets/Bundles/MainGame/png/道具/道具_加速_100px@1x.png
0 → 100644
View file @
c97c4817
2.04 KB
assets/Bundles/MainGame/png/道具/道具_加速_100px@1x.png.meta
0 → 100644
View file @
c97c4817
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "0ae7b813-a5ba-4a58-b192-bc571b3e2593",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "0ae7b813-a5ba-4a58-b192-bc571b3e2593@6c48a",
"displayName": "道具_加速_100px@1x",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "0ae7b813-a5ba-4a58-b192-bc571b3e2593",
"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": "0ae7b813-a5ba-4a58-b192-bc571b3e2593@f9941",
"displayName": "道具_加速_100px@1x",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 54,
"height": 59,
"rawWidth": 54,
"rawHeight": 59,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-27,
-29.5,
0,
27,
-29.5,
0,
-27,
29.5,
0,
27,
29.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
59,
54,
59,
0,
0,
54,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-27,
-29.5,
0
],
"maxPos": [
27,
29.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "0ae7b813-a5ba-4a58-b192-bc571b3e2593@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "0ae7b813-a5ba-4a58-b192-bc571b3e2593@6c48a"
}
}
assets/Bundles/MainGame/png/道具/道具_加长_100px@1x.png
0 → 100644
View file @
c97c4817
2.24 KB
assets/Bundles/MainGame/png/道具/道具_加长_100px@1x.png.meta
0 → 100644
View file @
c97c4817
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a9a3c343-6f95-4025-90fc-172a41775793",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a9a3c343-6f95-4025-90fc-172a41775793@6c48a",
"displayName": "道具_加长_100px@1x",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a9a3c343-6f95-4025-90fc-172a41775793",
"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": "a9a3c343-6f95-4025-90fc-172a41775793@f9941",
"displayName": "道具_加长_100px@1x",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 63,
"height": 60,
"rawWidth": 63,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-31.5,
-30,
0,
31.5,
-30,
0,
-31.5,
30,
0,
31.5,
30,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
60,
63,
60,
0,
0,
63,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-31.5,
-30,
0
],
"maxPos": [
31.5,
30,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "a9a3c343-6f95-4025-90fc-172a41775793@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "a9a3c343-6f95-4025-90fc-172a41775793@6c48a"
}
}
assets/Bundles/MainGame/png/道具/道具_双倍经验_100px@1x.png
0 → 100644
View file @
c97c4817
1.14 KB
assets/Bundles/MainGame/png/道具/道具_双倍经验_100px@1x.png.meta
0 → 100644
View file @
c97c4817
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "f748d859-75cb-44fb-a2f5-7b0ee3283c00",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "f748d859-75cb-44fb-a2f5-7b0ee3283c00@6c48a",
"displayName": "道具_双倍经验_100px@1x",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "f748d859-75cb-44fb-a2f5-7b0ee3283c00",
"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": "f748d859-75cb-44fb-a2f5-7b0ee3283c00@f9941",
"displayName": "道具_双倍经验_100px@1x",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 47,
"height": 50,
"rawWidth": 47,
"rawHeight": 50,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-23.5,
-25,
0,
23.5,
-25,
0,
-23.5,
25,
0,
23.5,
25,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
50,
47,
50,
0,
0,
47,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-23.5,
-25,
0
],
"maxPos": [
23.5,
25,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "f748d859-75cb-44fb-a2f5-7b0ee3283c00@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "f748d859-75cb-44fb-a2f5-7b0ee3283c00@6c48a"
}
}
assets/Bundles/MainGame/png/道具/道具_护盾_100px@1x.png
0 → 100644
View file @
c97c4817
2.12 KB
assets/Bundles/MainGame/png/道具/道具_护盾_100px@1x.png.meta
0 → 100644
View file @
c97c4817
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "bb576d70-943b-4957-bbb9-65709ab2d421",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "bb576d70-943b-4957-bbb9-65709ab2d421@6c48a",
"displayName": "道具_护盾_100px@1x",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "bb576d70-943b-4957-bbb9-65709ab2d421",
"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": "bb576d70-943b-4957-bbb9-65709ab2d421@f9941",
"displayName": "道具_护盾_100px@1x",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 52,
"height": 60,
"rawWidth": 52,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-26,
-30,
0,
26,
-30,
0,
-26,
30,
0,
26,
30,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
60,
52,
60,
0,
0,
52,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-26,
-30,
0
],
"maxPos": [
26,
30,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "bb576d70-943b-4957-bbb9-65709ab2d421@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "bb576d70-943b-4957-bbb9-65709ab2d421@6c48a"
}
}
assets/Bundles/MainGame/png/道具/道具_磁铁_100px@1x.png
0 → 100644
View file @
c97c4817
1.86 KB
assets/Bundles/MainGame/png/道具/道具_磁铁_100px@1x.png.meta
0 → 100644
View file @
c97c4817
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "83a3eadd-84a1-4612-9c9c-d3fa3f334517",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "83a3eadd-84a1-4612-9c9c-d3fa3f334517@6c48a",
"displayName": "道具_磁铁_100px@1x",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "83a3eadd-84a1-4612-9c9c-d3fa3f334517",
"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": "83a3eadd-84a1-4612-9c9c-d3fa3f334517@f9941",
"displayName": "道具_磁铁_100px@1x",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 61,
"height": 61,
"rawWidth": 61,
"rawHeight": 61,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-30.5,
-30.5,
0,
30.5,
-30.5,
0,
-30.5,
30.5,
0,
30.5,
30.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
61,
61,
61,
0,
0,
61,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-30.5,
-30.5,
0
],
"maxPos": [
30.5,
30.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "83a3eadd-84a1-4612-9c9c-d3fa3f334517@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "83a3eadd-84a1-4612-9c9c-d3fa3f334517@6c48a"
}
}
assets/Bundles/MainGame/png/道具/道具_福袋_100px@1x.png
0 → 100644
View file @
c97c4817
2.5 KB
assets/Bundles/MainGame/png/道具/道具_福袋_100px@1x.png.meta
0 → 100644
View file @
c97c4817
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "e2817fc6-e2f5-4933-9407-2d6c730059f8",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "e2817fc6-e2f5-4933-9407-2d6c730059f8@6c48a",
"displayName": "道具_福袋_100px@1x",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "e2817fc6-e2f5-4933-9407-2d6c730059f8",
"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": "e2817fc6-e2f5-4933-9407-2d6c730059f8@f9941",
"displayName": "道具_福袋_100px@1x",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 61,
"height": 60,
"rawWidth": 61,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-30.5,
-30,
0,
30.5,
-30,
0,
-30.5,
30,
0,
30.5,
30,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
60,
61,
60,
0,
0,
61,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-30.5,
-30,
0
],
"maxPos": [
30.5,
30,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "e2817fc6-e2f5-4933-9407-2d6c730059f8@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "e2817fc6-e2f5-4933-9407-2d6c730059f8@6c48a"
}
}
assets/Bundles/MainGame/prefab/
道具
.prefab
→
assets/Bundles/MainGame/prefab/
加速
.prefab
View file @
c97c4817
[
{
"__type__": "cc.Prefab",
"_name": "
道具
",
"_name": "
加速
",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
...
...
@@ -13,7 +13,7 @@
},
{
"__type__": "cc.Node",
"_name": "
道具
",
"_name": "
加速
",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
...
...
@@ -35,13 +35,10 @@
},
{
"__id__": 20
},
{
"__id__": 22
}
],
"_prefab": {
"__id__": 2
4
"__id__": 2
2
},
"_lpos": {
"__type__": "cc.Vec3",
...
...
@@ -304,7 +301,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
61
,
"width":
54
,
"height": 59
},
"_anchorPoint": {
...
...
@@ -341,7 +338,7 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "
986f5ef8-b353-4dd9-90bd-ed5b536ee6a2
@f9941",
"__uuid__": "
0ae7b813-a5ba-4a58-b192-bc571b3e2593
@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
...
...
@@ -468,24 +465,6 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "d4nguP1hRPj6hmP9ugayLT"
},
{
"__type__": "5da8aSqHYxAvaSUEz+0fvlM",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 23
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "3e5kK27VpPMblCs9d+jIA3"
},
{
"__type__": "cc.PrefabInfo",
"root": {
...
...
assets/Bundles/MainGame/prefab/
道具
.prefab.meta
→
assets/Bundles/MainGame/prefab/
加速
.prefab.meta
View file @
c97c4817
...
...
@@ -2,12 +2,12 @@
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "
a5f2b7c2-a3e8-4830-ba7a-97aa26c34486
",
"uuid": "
b9232624-687a-4ac8-8c34-47be816572bc
",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "
道具
"
"syncNodeName": "
加速
"
}
}
assets/Bundles/MainGame/prefab/加长.prefab
0 → 100644
View file @
c97c4817
[
{
"__type__": "cc.Prefab",
"_name": "加长",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "加长",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_components": [
{
"__id__": 16
},
{
"__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
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "光",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 9
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 192,
"height": 191
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "66StAJqXFCaJ2ej3HlfBoS"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "91e706a3-2b72-4aae-9409-b4ae87570f9f@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "90C/3naUdLTpUo0dap3pqi"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"playOnLoad": true,
"_clips": [
{
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "41IFKRClFAq4STk7UDKwB9"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "64wwZ9uZZBB5gCQrFUdt98",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "图",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 15
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_contentSize": {
"__type__": "cc.Size",
"width": 63,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "5e6yk1hnhLtZvIiPTH+S/y"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "a9a3c343-6f95-4025-90fc-172a41775793@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "87+475Oh1E5JZyBvCWovfH"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b5udWGGdZFkr37lglnfJcy",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bdBolABn1LK44IChBt7j2O"
},
{
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"enabledContactListener": true,
"bullet": false,
"awakeOnLoad": true,
"_group": 4,
"_type": 2,
"_allowSleep": true,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "6cxO6EcOZGIY2Mutu8PTpJ"
},
{
"__type__": "cc.CircleCollider2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 21
},
"tag": 0,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_radius": 30,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d4nguP1hRPj6hmP9ugayLT"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "95QVeGhHxFHYdTtrbtkAQN",
"instance": null,
"targetOverrides": null
}
]
\ No newline at end of file
assets/Bundles/MainGame/prefab/加长.prefab.meta
0 → 100644
View file @
c97c4817
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "a16bac22-bcf1-4674-b657-1d95d7fe0ddf",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "加长"
}
}
assets/Bundles/MainGame/prefab/双倍经验.prefab
0 → 100644
View file @
c97c4817
[
{
"__type__": "cc.Prefab",
"_name": "双倍经验",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "双倍经验",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_components": [
{
"__id__": 16
},
{
"__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
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "光",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 9
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 192,
"height": 191
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "66StAJqXFCaJ2ej3HlfBoS"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "91e706a3-2b72-4aae-9409-b4ae87570f9f@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "90C/3naUdLTpUo0dap3pqi"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"playOnLoad": true,
"_clips": [
{
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "41IFKRClFAq4STk7UDKwB9"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "64wwZ9uZZBB5gCQrFUdt98",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "图",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 15
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_contentSize": {
"__type__": "cc.Size",
"width": 47,
"height": 50
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "5e6yk1hnhLtZvIiPTH+S/y"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "f748d859-75cb-44fb-a2f5-7b0ee3283c00@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "87+475Oh1E5JZyBvCWovfH"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b5udWGGdZFkr37lglnfJcy",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bdBolABn1LK44IChBt7j2O"
},
{
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"enabledContactListener": true,
"bullet": false,
"awakeOnLoad": true,
"_group": 4,
"_type": 2,
"_allowSleep": true,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "6cxO6EcOZGIY2Mutu8PTpJ"
},
{
"__type__": "cc.CircleCollider2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 21
},
"tag": 0,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_radius": 30,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d4nguP1hRPj6hmP9ugayLT"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "95QVeGhHxFHYdTtrbtkAQN",
"instance": null,
"targetOverrides": null
}
]
\ No newline at end of file
assets/Bundles/MainGame/prefab/双倍经验.prefab.meta
0 → 100644
View file @
c97c4817
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "c5548e2c-ccd8-49e3-b525-ac731a211cb9",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "双倍经验"
}
}
assets/Bundles/MainGame/prefab/护盾.prefab
0 → 100644
View file @
c97c4817
[
{
"__type__": "cc.Prefab",
"_name": "护盾",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "护盾",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_components": [
{
"__id__": 16
},
{
"__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
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "光",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 9
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 192,
"height": 191
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "66StAJqXFCaJ2ej3HlfBoS"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "91e706a3-2b72-4aae-9409-b4ae87570f9f@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "90C/3naUdLTpUo0dap3pqi"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"playOnLoad": true,
"_clips": [
{
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "41IFKRClFAq4STk7UDKwB9"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "64wwZ9uZZBB5gCQrFUdt98",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "图",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 15
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_contentSize": {
"__type__": "cc.Size",
"width": 52,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "5e6yk1hnhLtZvIiPTH+S/y"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "bb576d70-943b-4957-bbb9-65709ab2d421@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "87+475Oh1E5JZyBvCWovfH"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b5udWGGdZFkr37lglnfJcy",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bdBolABn1LK44IChBt7j2O"
},
{
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"enabledContactListener": true,
"bullet": false,
"awakeOnLoad": true,
"_group": 4,
"_type": 2,
"_allowSleep": true,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "6cxO6EcOZGIY2Mutu8PTpJ"
},
{
"__type__": "cc.CircleCollider2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 21
},
"tag": 0,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_radius": 30,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d4nguP1hRPj6hmP9ugayLT"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "95QVeGhHxFHYdTtrbtkAQN",
"instance": null,
"targetOverrides": null
}
]
\ No newline at end of file
assets/Bundles/MainGame/prefab/护盾.prefab.meta
0 → 100644
View file @
c97c4817
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "63dfad2d-5ed9-4ff4-91fa-23281e6d8c08",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "护盾"
}
}
assets/Bundles/MainGame/prefab/磁铁.prefab
0 → 100644
View file @
c97c4817
[
{
"__type__": "cc.Prefab",
"_name": "磁铁",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "磁铁",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_components": [
{
"__id__": 16
},
{
"__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
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "光",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 9
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 192,
"height": 191
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "66StAJqXFCaJ2ej3HlfBoS"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "91e706a3-2b72-4aae-9409-b4ae87570f9f@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "90C/3naUdLTpUo0dap3pqi"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"playOnLoad": true,
"_clips": [
{
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
"__uuid__": "e25622d3-ea85-4e16-8e94-1f1a839fbe1b",
"__expectedType__": "cc.AnimationClip"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "41IFKRClFAq4STk7UDKwB9"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "64wwZ9uZZBB5gCQrFUdt98",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "图",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 15
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_contentSize": {
"__type__": "cc.Size",
"width": 61,
"height": 61
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "5e6yk1hnhLtZvIiPTH+S/y"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "83a3eadd-84a1-4612-9c9c-d3fa3f334517@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "87+475Oh1E5JZyBvCWovfH"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b5udWGGdZFkr37lglnfJcy",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bdBolABn1LK44IChBt7j2O"
},
{
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"enabledContactListener": true,
"bullet": false,
"awakeOnLoad": true,
"_group": 4,
"_type": 2,
"_allowSleep": true,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "6cxO6EcOZGIY2Mutu8PTpJ"
},
{
"__type__": "cc.CircleCollider2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 21
},
"tag": 0,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_radius": 30,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d4nguP1hRPj6hmP9ugayLT"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "95QVeGhHxFHYdTtrbtkAQN",
"instance": null,
"targetOverrides": null
}
]
\ No newline at end of file
assets/Bundles/MainGame/prefab/磁铁.prefab.meta
0 → 100644
View file @
c97c4817
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "2d321722-ed4a-4ed1-a125-c08fdb45fd53",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "磁铁"
}
}
assets/Bundles/MainGame/prefab/福袋.prefab
View file @
c97c4817
...
...
@@ -305,7 +305,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 61,
"height":
59
"height":
60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -341,7 +341,7 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "
986f5ef8-b353-4dd9-90bd-ed5b536ee6a2
@f9941",
"__uuid__": "
e2817fc6-e2f5-4933-9407-2d6c730059f8
@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
...
...
assets/Scripts/Scenes/HomeScene.ts
View file @
c97c4817
...
...
@@ -38,7 +38,7 @@ export class HomeScene extends Scene {
await
store
.
updateIndex
();
showPanel
(
GamePosterPanel
);
//
showPanel(GamePosterPanel);
UIMgr
.
ins
.
preloadScene
(
MainGame
);
...
...
assets/Start/Start.ts
View file @
c97c4817
import
{
_decorator
,
assetManager
,
Component
,
Label
,
Node
,
Prefab
,
profiler
,
ProgressBar
,
resources
,
}
from
'cc'
;
import
{
PREVIEW
}
from
'cc/env'
;
import
{
_decorator
,
AssetManager
,
assetManager
,
Component
,
Label
,
lerp
,
Node
,
Prefab
,
profiler
,
ProgressBar
,
resources
,
tween
,
}
from
"cc"
;
import
{
PREVIEW
}
from
"cc/env"
;
import
{
UIMgr
}
from
"../Module/UIMgr"
;
import
{
changeScene
,
showToast
}
from
"db://assets/Module/UIFast"
;
import
{
changeScene
,
showToast
}
from
"db://assets/Module/UIFast"
;
import
{
HomeScene
}
from
"db://assets/Scripts/Scenes/HomeScene"
;
import
{
AudioMgr
}
from
"../core_tgx/base/AudioMgr"
;
import
{
MusicBtn
}
from
"../Component/MusicBtn/MusicBtn"
;
import
ZipLoader
from
"./ZipLoader"
;
import
store
from
"../Scripts/store/store"
;
...
...
@@ -12,7 +22,7 @@ const { ccclass, property } = _decorator;
const
_FPS
=
61
;
@
ccclass
(
'Start'
)
@
ccclass
(
"Start"
)
export
class
Start
extends
Component
{
@
property
(
Prefab
)
...
...
@@ -50,16 +60,30 @@ export class Start extends Component {
onDestroy
()
{
}
async
start
()
{
setProgress
(
progress
:
number
)
{
this
.
progressBar
.
progress
=
progress
;
this
.
progressTxt
.
string
=
`
${
Math
.
round
(
progress
*
100
)}
%`
;
}
loadZipBundle
(
from
:
number
,
to
:
number
)
{
const
zipBundle
=
window
[
"zipBundle"
]
||
[];
let
loaded
=
0
;
const
loadZipPs
=
zipBundle
.
map
((
name
:
any
)
=>
{
return
ZipLoader
.
ins
.
loadZip
(
`
${
window
[
"__remoteUrl__"
]}
remote/
${
name
}
`
);
return
ZipLoader
.
ins
.
loadZip
(
`
${
window
[
"__remoteUrl__"
]}
remote/
${
name
}
`
)
.
then
(()
=>
{
this
.
setProgress
(
lerp
(
from
,
to
,
loaded
/
zipBundle
.
length
));
});
});
return
Promise
.
all
(
loadZipPs
);
}
await
Promise
.
all
(
loadZipPs
);
async
start
()
{
await
this
.
preload
([
this
.
setProgress
(
0.1
);
await
this
.
loadZipBundle
(
0.1
,
0.3
);
const
pkg
=
[
{
path
:
"common"
,
type
:
"bundle"
,
...
...
@@ -72,64 +96,95 @@ export class Start extends Component {
path
:
"MainGame"
,
type
:
"bundle"
},
]);
];
const
list
=
await
this
.
getPreLoadList
(
pkg
);
await
changeScene
(
HomeScene
);
await
this
.
preload
(
list
,
0.3
,
1
);
// AudioMgr.ins.play("audio/飞球背景音乐", {
// bundleName: "common",
// });
await
changeScene
(
HomeScene
);
}
preload
=
(
pkg
)
=>
{
return
new
Promise
<
void
>
((
resolve
,
reject
)
=>
{
const
pathArr
=
[];
pkg
.
forEach
((
asset
)
=>
{
if
(
typeof
asset
==
"string"
)
{
return
pathArr
.
push
(
asset
);
}
switch
(
asset
.
type
)
{
case
"dir"
:
resources
.
getDirWithPath
(
asset
.
path
).
forEach
((
v
)
=>
pathArr
.
push
(
v
.
path
));
break
;
case
"bundle"
:
assetManager
.
loadBundle
(
asset
.
path
,
(
err
,
bundle
)
=>
{
if
(
err
)
{
console
.
error
(
err
);
}
getPreLoadList
=
async
(
pkg
)
=>
{
const
pathArr
:
{
path
:
string
;
bundle
:
AssetManager
.
Bundle
;
}[]
=
[];
const
ps
=
[];
pkg
.
forEach
((
asset
)
=>
{
if
(
typeof
asset
==
"string"
)
{
return
pathArr
.
push
({
path
:
asset
,
bundle
:
resources
,
});
}
switch
(
asset
.
type
)
{
case
"dir"
:
resources
.
getDirWithPath
(
asset
.
path
)
.
forEach
((
v
)
=>
{
pathArr
.
push
({
path
:
v
.
path
,
bundle
:
resources
});
});
break
;
break
;
case
"bundle"
:
ps
.
push
(
new
Promise
<
void
>
((
resolve
)
=>
{
assetManager
.
loadBundle
(
asset
.
path
,
(
err
,
bundle
)
=>
{
if
(
err
)
console
.
error
(
err
);
bundle
.
getDirWithPath
(
""
).
forEach
((
assets
)
=>
{
pathArr
.
push
({
path
:
assets
.
path
,
bundle
:
bundle
});
});
resolve
();
});
})
);
break
;
default
:
pathArr
.
push
({
bundle
:
resources
,
path
:
asset
.
path
});
}
});
default
:
pathArr
.
push
(
asset
.
path
);
}
})
;
resources
.
load
(
pathArr
,
(
finish
:
number
,
total
:
number
,
_
)
=>
{
const
pro
=
finish
/
total
;
if
(
pro
<
this
.
progressBar
?.
progress
)
{
return
;
}
this
.
progressBar
&&
(
this
.
progressBar
.
progress
=
pro
);
this
.
progressTxt
.
string
=
`
${(
pro
*
100
).
toFixed
(
0
)}
%`
;
const
x
=
640
*
pro
-
320
;
this
.
progressEffect
.
setPosition
(
x
,
0
,
0
)
;
},
async
(
error
)
=>
{
if
(
error
)
{
console
.
error
(
error
);
showToast
(
"Network error, please try again later."
)
;
}
// onComplete(
);
await
Promise
.
all
(
ps
);
return
pathArr
;
}
;
preload
=
async
(
pkg
:
{
path
:
string
;
bundle
:
AssetManager
.
Bundle
}[],
from
=
0
,
to
=
1
)
=>
{
const
total
=
pkg
.
length
;
let
loaded
=
0
;
const
ps
=
pkg
.
map
((
asset
)
=>
{
return
new
Promise
<
void
>
((
resolve
)
=>
{
asset
.
bundle
.
load
(
asset
.
path
,
()
=>
{
loaded
++
;
const
progress
=
lerp
(
from
,
to
,
loaded
/
total
);
this
.
setProgress
(
progress
);
resolve
();
}
);
}
);
}
);
});
}
await
Promise
.
all
(
ps
);
};
}
...
...
preview-template/index.ejs
View file @
c97c4817
...
...
@@ -38,6 +38,7 @@
<
%
-
include
(
cocosTemplate
,
{})
%
>
<script>
window
[
"designWidth"
]
=
1624
;
window
.
addEventListener
(
"load"
,
function
()
{
window
.
vConsole
?.
destroy
();
// 干掉烦人的vConsole
});
...
...
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