Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car
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
car
Commits
c3f44255
Commit
c3f44255
authored
May 30, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
b30a8eb2
Changes
24
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
0 additions
and
3124 deletions
+0
-3124
UI.meta
assets/Bundles/UI.meta
+0
-11
FailPage.prefab
assets/Bundles/UI/FailPage.prefab
+0
-1060
FailPage.prefab.meta
assets/Bundles/UI/FailPage.prefab.meta
+0
-13
SuccessPage.prefab
assets/Bundles/UI/SuccessPage.prefab
+0
-1058
SuccessPage.prefab.meta
assets/Bundles/UI/SuccessPage.prefab.meta
+0
-13
Sprites.meta
assets/CarColorsGame/Sprites.meta
+0
-9
btn_bg1.png
assets/CarColorsGame/Sprites/btn_bg1.png
+0
-0
btn_bg1.png.meta
assets/CarColorsGame/Sprites/btn_bg1.png.meta
+0
-134
btn_bg2.png
assets/CarColorsGame/Sprites/btn_bg2.png
+0
-0
btn_bg2.png.meta
assets/CarColorsGame/Sprites/btn_bg2.png.meta
+0
-134
bus.png
assets/CarColorsGame/Sprites/bus.png
+0
-0
bus.png.meta
assets/CarColorsGame/Sprites/bus.png.meta
+0
-134
default_panel.png
assets/CarColorsGame/Sprites/default_panel.png
+0
-0
default_panel.png.meta
assets/CarColorsGame/Sprites/default_panel.png.meta
+0
-143
shengli_bg.png
assets/CarColorsGame/Sprites/shengli_bg.png
+0
-0
shengli_bg.png.meta
assets/CarColorsGame/Sprites/shengli_bg.png.meta
+0
-134
shibai_bg.png
assets/CarColorsGame/Sprites/shibai_bg.png
+0
-0
shibai_bg.png.meta
assets/CarColorsGame/Sprites/shibai_bg.png.meta
+0
-134
FailPage.ts
assets/Scripts/Panels/FailPage.ts
+0
-60
FailPage.ts.meta
assets/Scripts/Panels/FailPage.ts.meta
+0
-9
ReviewPanel.ts
assets/Scripts/Panels/ReviewPanel.ts
+0
-1
SuccessPage.ts
assets/Scripts/Panels/SuccessPage.ts
+0
-67
SuccessPage.ts.meta
assets/Scripts/Panels/SuccessPage.ts.meta
+0
-9
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+0
-1
No files found.
assets/Bundles/UI.meta
deleted
100644 → 0
View file @
b30a8eb2
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "28652ac8-f90c-461d-ada0-ab5b4f646711",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true
}
}
assets/Bundles/UI/FailPage.prefab
deleted
100644 → 0
View file @
b30a8eb2
This diff is collapsed.
Click to expand it.
assets/Bundles/UI/FailPage.prefab.meta
deleted
100644 → 0
View file @
b30a8eb2
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "a66efc45-41ba-45bc-b3a5-28b896807b3b",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "FailPage"
}
}
assets/Bundles/UI/SuccessPage.prefab
deleted
100644 → 0
View file @
b30a8eb2
This diff is collapsed.
Click to expand it.
assets/Bundles/UI/SuccessPage.prefab.meta
deleted
100644 → 0
View file @
b30a8eb2
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "f9db42ff-4817-4bf0-9032-251171a6c4c1",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "SuccessPage"
}
}
assets/CarColorsGame/Sprites.meta
deleted
100644 → 0
View file @
b30a8eb2
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "e6ada426-d39b-405f-bc14-d289a146d6cd",
"files": [],
"subMetas": {},
"userData": {}
}
assets/CarColorsGame/Sprites/btn_bg1.png
deleted
100644 → 0
View file @
b30a8eb2
8.44 KB
assets/CarColorsGame/Sprites/btn_bg1.png.meta
deleted
100644 → 0
View file @
b30a8eb2
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "ed44d41b-13ba-4764-96ca-cb2d1e36561d",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "ed44d41b-13ba-4764-96ca-cb2d1e36561d@6c48a",
"displayName": "btn_bg1",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "ed44d41b-13ba-4764-96ca-cb2d1e36561d",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "ed44d41b-13ba-4764-96ca-cb2d1e36561d@f9941",
"displayName": "btn_bg1",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 200,
"height": 78,
"rawWidth": 200,
"rawHeight": 78,
"borderTop": 24,
"borderBottom": 24,
"borderLeft": 24,
"borderRight": 24,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-100,
-39,
0,
100,
-39,
0,
-100,
39,
0,
100,
39,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
78,
200,
78,
0,
0,
200,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-100,
-39,
0
],
"maxPos": [
100,
39,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "ed44d41b-13ba-4764-96ca-cb2d1e36561d@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": false,
"redirect": "ed44d41b-13ba-4764-96ca-cb2d1e36561d@6c48a"
}
}
assets/CarColorsGame/Sprites/btn_bg2.png
deleted
100644 → 0
View file @
b30a8eb2
9.92 KB
assets/CarColorsGame/Sprites/btn_bg2.png.meta
deleted
100644 → 0
View file @
b30a8eb2
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "9a79bcbe-0ae1-4b01-88ed-e38fbd682935",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "9a79bcbe-0ae1-4b01-88ed-e38fbd682935@6c48a",
"displayName": "btn_bg2",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "9a79bcbe-0ae1-4b01-88ed-e38fbd682935",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "9a79bcbe-0ae1-4b01-88ed-e38fbd682935@f9941",
"displayName": "btn_bg2",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 200,
"height": 78,
"rawWidth": 200,
"rawHeight": 78,
"borderTop": 24,
"borderBottom": 24,
"borderLeft": 24,
"borderRight": 24,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-100,
-39,
0,
100,
-39,
0,
-100,
39,
0,
100,
39,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
78,
200,
78,
0,
0,
200,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-100,
-39,
0
],
"maxPos": [
100,
39,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "9a79bcbe-0ae1-4b01-88ed-e38fbd682935@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": false,
"redirect": "9a79bcbe-0ae1-4b01-88ed-e38fbd682935@6c48a"
}
}
assets/CarColorsGame/Sprites/bus.png
deleted
100644 → 0
View file @
b30a8eb2
792 Bytes
assets/CarColorsGame/Sprites/bus.png.meta
deleted
100644 → 0
View file @
b30a8eb2
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "b0b01707-b60c-4fba-8f23-1139c3ae42a4",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "b0b01707-b60c-4fba-8f23-1139c3ae42a4@6c48a",
"displayName": "bus",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "b0b01707-b60c-4fba-8f23-1139c3ae42a4",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "b0b01707-b60c-4fba-8f23-1139c3ae42a4@f9941",
"displayName": "bus",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 15,
"width": 64,
"height": 34,
"rawWidth": 64,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": false,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-32,
-17,
0,
32,
-17,
0,
-32,
17,
0,
32,
17,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
49,
64,
49,
0,
15,
64,
15
],
"nuv": [
0,
0.234375,
1,
0.234375,
0,
0.765625,
1,
0.765625
],
"minPos": [
-32,
-17,
0
],
"maxPos": [
32,
17,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "b0b01707-b60c-4fba-8f23-1139c3ae42a4@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": false,
"redirect": "b0b01707-b60c-4fba-8f23-1139c3ae42a4@6c48a"
}
}
assets/CarColorsGame/Sprites/default_panel.png
deleted
100644 → 0
View file @
b30a8eb2
158 Bytes
assets/CarColorsGame/Sprites/default_panel.png.meta
deleted
100644 → 0
View file @
b30a8eb2
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "e60e30c9-4a24-43d7-9981-29e034f05169",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"ver": "1.0.22",
"importer": "texture",
"uuid": "e60e30c9-4a24-43d7-9981-29e034f05169@6c48a",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "e60e30c9-4a24-43d7-9981-29e034f05169",
"visible": false
},
"displayName": "default_panel",
"id": "6c48a",
"name": "texture"
},
"f9941": {
"ver": "1.0.12",
"importer": "sprite-frame",
"uuid": "e60e30c9-4a24-43d7-9981-29e034f05169@f9941",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"premultiplyAlpha": false,
"generateMipmap": false,
"anisotropy": 1,
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 20,
"height": 20,
"rawWidth": 20,
"rawHeight": 20,
"borderTop": 8,
"borderBottom": 8,
"borderLeft": 8,
"borderRight": 8,
"isUuid": true,
"imageUuidOrDatabaseUri": "e60e30c9-4a24-43d7-9981-29e034f05169@6c48a",
"atlasUuid": "",
"mipfilter": "none",
"packable": true,
"vertices": {
"rawPosition": [
-10,
-10,
0,
10,
-10,
0,
-10,
10,
0,
10,
10,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
20,
20,
20,
0,
0,
20,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-10,
-10,
0
],
"maxPos": [
10,
10,
0
]
},
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0
},
"displayName": "default_panel",
"id": "f9941",
"name": "spriteFrame"
}
},
"userData": {
"type": "sprite-frame",
"redirect": "e60e30c9-4a24-43d7-9981-29e034f05169@6c48a",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false
}
}
assets/CarColorsGame/Sprites/shengli_bg.png
deleted
100644 → 0
View file @
b30a8eb2
185 KB
assets/CarColorsGame/Sprites/shengli_bg.png.meta
deleted
100644 → 0
View file @
b30a8eb2
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "2cbed5f3-c016-4a28-886d-367f27c92725",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "2cbed5f3-c016-4a28-886d-367f27c92725@6c48a",
"displayName": "shengli_bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "2cbed5f3-c016-4a28-886d-367f27c92725",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "2cbed5f3-c016-4a28-886d-367f27c92725@f9941",
"displayName": "shengli_bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 660,
"height": 996,
"rawWidth": 660,
"rawHeight": 996,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-330,
-498,
0,
330,
-498,
0,
-330,
498,
0,
330,
498,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
996,
660,
996,
0,
0,
660,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-330,
-498,
0
],
"maxPos": [
330,
498,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "2cbed5f3-c016-4a28-886d-367f27c92725@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": false,
"redirect": "2cbed5f3-c016-4a28-886d-367f27c92725@6c48a"
}
}
assets/CarColorsGame/Sprites/shibai_bg.png
deleted
100644 → 0
View file @
b30a8eb2
84.2 KB
assets/CarColorsGame/Sprites/shibai_bg.png.meta
deleted
100644 → 0
View file @
b30a8eb2
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "2800b6b4-6420-45f4-8bdb-6d283168f2ba",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "2800b6b4-6420-45f4-8bdb-6d283168f2ba@6c48a",
"displayName": "shibai_bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "2800b6b4-6420-45f4-8bdb-6d283168f2ba",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "2800b6b4-6420-45f4-8bdb-6d283168f2ba@f9941",
"displayName": "shibai_bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 512,
"height": 498,
"rawWidth": 512,
"rawHeight": 498,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-256,
-249,
0,
256,
-249,
0,
-256,
249,
0,
256,
249,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
498,
512,
498,
0,
0,
512,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-256,
-249,
0
],
"maxPos": [
256,
249,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "2800b6b4-6420-45f4-8bdb-6d283168f2ba@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": false,
"redirect": "2800b6b4-6420-45f4-8bdb-6d283168f2ba@6c48a"
}
}
assets/Scripts/Panels/FailPage.ts
deleted
100644 → 0
View file @
b30a8eb2
import
{
_decorator
,
find
,
instantiate
,
Label
,
ProgressBar
}
from
'cc'
;
import
{
changeScene
,
showToast
}
from
"db://assets/core/Module/UIFast"
;
import
{
AudioClipName
,
AudioMgr
}
from
"db://assets/core/base/AudioMgr"
;
import
{
CarColorsGlobalInstance
}
from
"db://assets/CarColorsGame/Scrips/CarColorsGlobalInstance"
;
import
{
HomeScene
}
from
"db://assets/Scripts/Scenes/HomeScene"
;
import
Panel
from
"db://assets/core/Module/Panel"
;
const
{
ccclass
,
property
}
=
_decorator
;
@
ccclass
(
'FailPage'
)
export
class
FailPage
extends
Panel
{
static
skin
:
string
=
"FailPage"
;
static
bundle
:
string
=
"UI"
;
homeClick
()
{
AudioMgr
.
ins
.
playOneShot
(
AudioClipName
.
button_ok
);
this
.
hidePanel
();
changeScene
(
HomeScene
);
}
replayClick
()
{
AudioMgr
.
ins
.
playOneShot
(
AudioClipName
.
button_ok
);
this
.
hidePanel
();
this
.
startGame
()
}
async
startGame
()
{
find
(
"Scene/Parkings"
).
children
.
forEach
((
child
,
index
)
=>
{
if
(
index
<
4
)
{
child
.
name
=
"empty"
}
else
{
child
.
name
=
"lock"
child
.
children
[
0
].
children
[
0
].
active
=
false
child
.
children
[
0
].
children
[
1
].
active
=
true
}
child
.
children
[
1
]?.
destroy
()
child
.
children
[
1
]?.
removeFromParent
()
})
find
(
"Scene/Levels"
).
destroyAllChildren
()
find
(
"Scene/Levels"
).
removeAllChildren
()
CarColorsGlobalInstance
.
instance
.
roleSysterm
.
clearAll
()
CarColorsGlobalInstance
.
instance
.
carSysterm
.
clearAll
()
// CarColorsGlobalInstance.instance.bundleSysterm.loadLevels(GlobalData.instance.getConfigData(ConfigKeys.GameSaveData).level).then((level) => {
// const Level = instantiate(level)
// find("Scene/Levels").addChild(Level)
// for (let i = 0; i < Level.children.length; i++) {
// CarColorsGlobalInstance.instance.carSysterm.addCar(Level.children[i])
// }
// CarColorsGlobalInstance.instance.roleSysterm.initLevel()
// }).catch((err) => {
// // console.log(err)
// showToast("关卡正在制作中")
// changeScene(HomeScene);
// })
AudioMgr
.
ins
.
playOneShot
(
AudioClipName
.
start
);
}
}
assets/Scripts/Panels/FailPage.ts.meta
deleted
100644 → 0
View file @
b30a8eb2
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "7ce62da2-3f81-49a9-8db1-8f8a566ac928",
"files": [],
"subMetas": {},
"userData": {}
}
assets/Scripts/Panels/ReviewPanel.ts
View file @
c3f44255
...
@@ -4,7 +4,6 @@ import { AudioClipName, AudioMgr } from "db://assets/core/base/AudioMgr";
...
@@ -4,7 +4,6 @@ import { AudioClipName, AudioMgr } from "db://assets/core/base/AudioMgr";
import
Panel
from
"db://assets/core/Module/Panel"
;
import
Panel
from
"db://assets/core/Module/Panel"
;
import
{
showPanel
,
showShareGuide
}
from
"db://assets/core/Module/UIFast"
;
import
{
showPanel
,
showShareGuide
}
from
"db://assets/core/Module/UIFast"
;
import
{
MainGame
}
from
"db://assets/Scripts/Scenes/MainGame/MainGame"
;
import
{
MainGame
}
from
"db://assets/Scripts/Scenes/MainGame/MainGame"
;
import
{
FailPage
}
from
"db://assets/Scripts/Panels/FailPage"
;
import
gameStore
from
"db://assets/Scripts/store/gameStore"
;
import
gameStore
from
"db://assets/Scripts/store/gameStore"
;
import
{
_asyncThrottle
}
from
"db://assets/Scripts/Utils/Utils"
;
import
{
_asyncThrottle
}
from
"db://assets/Scripts/Utils/Utils"
;
...
...
assets/Scripts/Panels/SuccessPage.ts
deleted
100644 → 0
View file @
b30a8eb2
import
{
_decorator
,
Component
,
find
,
instantiate
,
Label
,
Node
,
ProgressBar
}
from
'cc'
;
import
{
CarColorsGlobalInstance
}
from
'db://assets/CarColorsGame/Scrips/CarColorsGlobalInstance'
;
import
{
GlobalData
,
ConfigKeys
}
from
'db://assets/ScriptFrame/GlobalData'
;
import
{
changeScene
,
showPanel
,
showToast
}
from
"db://assets/core/Module/UIFast"
;
import
{
AudioClipName
,
AudioMgr
}
from
"db://assets/core/base/AudioMgr"
;
import
{
HomeScene
}
from
"db://assets/Scripts/Scenes/HomeScene"
;
import
Panel
from
"db://assets/core/Module/Panel"
;
const
{
ccclass
,
property
}
=
_decorator
;
@
ccclass
(
'SuccessPage'
)
export
class
SuccessPage
extends
Panel
{
static
skin
:
string
=
"SuccessPage"
;
static
bundle
:
string
=
"UI"
;
start
():
void
{
const
gameSaveData
:
{
level
:
number
}
=
GlobalData
.
instance
.
getConfigData
(
ConfigKeys
.
GameSaveData
)
gameSaveData
.
level
+=
1
GlobalData
.
instance
.
setConfigData
(
ConfigKeys
.
GameSaveData
,
gameSaveData
)
AudioMgr
.
ins
.
playOneShot
(
AudioClipName
.
win
);
}
homeClick
()
{
AudioMgr
.
ins
.
playOneShot
(
AudioClipName
.
button_ok
);
this
.
hidePanel
();
changeScene
(
HomeScene
);
}
nextClick
()
{
AudioMgr
.
ins
.
playOneShot
(
AudioClipName
.
start
);
this
.
hidePanel
();
this
.
startGame
()
}
async
startGame
()
{
find
(
"Scene/Parkings"
).
children
.
forEach
((
child
,
index
)
=>
{
if
(
index
<
4
)
{
child
.
name
=
"empty"
}
else
{
child
.
name
=
"lock"
child
.
children
[
0
].
children
[
0
].
active
=
false
child
.
children
[
0
].
children
[
1
].
active
=
true
}
child
.
children
[
1
]?.
destroy
()
child
.
children
[
1
]?.
removeFromParent
()
})
find
(
"Scene/Levels"
).
destroyAllChildren
()
find
(
"Scene/Levels"
).
removeAllChildren
()
CarColorsGlobalInstance
.
instance
.
roleSysterm
.
clearAll
()
CarColorsGlobalInstance
.
instance
.
carSysterm
.
clearAll
()
// CarColorsGlobalInstance.instance.bundleSysterm.loadLevels(GlobalData.instance.getConfigData(ConfigKeys.GameSaveData).level).then((level) => {
// const Level = instantiate(level)
// find("Scene/Levels").addChild(Level)
// for (let i = 0; i < Level.children.length; i++) {
// CarColorsGlobalInstance.instance.carSysterm.addCar(Level.children[i])
// }
// CarColorsGlobalInstance.instance.roleSysterm.initLevel()
// }).catch((err) => {
// // console.log(err)
// showToast("关卡正在制作中")
// changeScene(HomeScene);
// })
}
}
assets/Scripts/Panels/SuccessPage.ts.meta
deleted
100644 → 0
View file @
b30a8eb2
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "0de1bd91-0558-4eee-85ed-1556e05eb62b",
"files": [],
"subMetas": {},
"userData": {}
}
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
c3f44255
...
@@ -6,7 +6,6 @@ import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
...
@@ -6,7 +6,6 @@ import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
import
{
CarColorsGlobalInstance
}
from
"db://assets/CarColorsGame/Scrips/CarColorsGlobalInstance"
;
import
{
CarColorsGlobalInstance
}
from
"db://assets/CarColorsGame/Scrips/CarColorsGlobalInstance"
;
import
{
RoleCarColorsSysterm
}
from
"./Systerms/RoleCarColorsSysterm"
;
import
{
RoleCarColorsSysterm
}
from
"./Systerms/RoleCarColorsSysterm"
;
import
{
CarCarColorsSysterm
}
from
"./Systerms/CarCarColorsSysterm"
;
import
{
CarCarColorsSysterm
}
from
"./Systerms/CarCarColorsSysterm"
;
import
{
SuccessPage
}
from
"db://assets/Scripts/Panels/SuccessPage"
;
import
{
PlatformManager
}
from
"db://assets/ScriptFrame/Frame/platformManager"
;
import
{
PlatformManager
}
from
"db://assets/ScriptFrame/Frame/platformManager"
;
import
gameStore
from
"db://assets/Scripts/store/gameStore"
;
import
gameStore
from
"db://assets/Scripts/store/gameStore"
;
...
...
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