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
f9081e1a
Commit
f9081e1a
authored
Jun 04, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
117db250
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
37 additions
and
7565 deletions
+37
-7565
Bus.prefab
assets/Bundles/MainGame/prefab/Bus.prefab
+0
-3164
Bus.prefab.meta
assets/Bundles/MainGame/prefab/Bus.prefab.meta
+0
-1
Minivan.prefab
assets/Bundles/MainGame/prefab/Minivan.prefab
+0
-2317
Minivan.prefab.meta
assets/Bundles/MainGame/prefab/Minivan.prefab.meta
+0
-1
Sedan.prefab
assets/Bundles/MainGame/prefab/Sedan.prefab
+0
-2045
Sedan.prefab.meta
assets/Bundles/MainGame/prefab/Sedan.prefab.meta
+0
-1
CarColorsGlobalTypes.ts
assets/Scripts/Scenes/MainGame/CarColorsGlobalTypes.ts
+4
-3
CarCarColorsComponent.ts
...ripts/Scenes/MainGame/Components/CarCarColorsComponent.ts
+9
-9
CarCarColorsSysterm.ts
...s/Scripts/Scenes/MainGame/Systerms/CarCarColorsSysterm.ts
+6
-6
RoleCarColorsSysterm.ts
.../Scripts/Scenes/MainGame/Systerms/RoleCarColorsSysterm.ts
+3
-3
index.html
build/web-mobile/index.html
+12
-12
builder.json
profiles/v2/packages/builder.json
+3
-3
No files found.
assets/Bundles/MainGame/prefab/Bus.prefab
deleted
100644 → 0
View file @
117db250
This diff is collapsed.
Click to expand it.
assets/Bundles/MainGame/prefab/Bus.prefab.meta
deleted
100644 → 0
View file @
117db250
{"ver":"1.1.50","importer":"prefab","imported":true,"uuid":"e9d96308-84db-4157-8abd-43bd86b1b985","files":[".json"],"subMetas":{},"userData":{"syncNodeName":"Bus"}}
assets/Bundles/MainGame/prefab/Minivan.prefab
deleted
100644 → 0
View file @
117db250
This diff is collapsed.
Click to expand it.
assets/Bundles/MainGame/prefab/Minivan.prefab.meta
deleted
100644 → 0
View file @
117db250
{"ver":"1.1.50","importer":"prefab","imported":true,"uuid":"725a11fb-b865-4f16-b582-9bf848fd6a91","files":[".json"],"subMetas":{},"userData":{"syncNodeName":"Minivan"}}
assets/Bundles/MainGame/prefab/Sedan.prefab
deleted
100644 → 0
View file @
117db250
This diff is collapsed.
Click to expand it.
assets/Bundles/MainGame/prefab/Sedan.prefab.meta
deleted
100644 → 0
View file @
117db250
{"ver":"1.1.50","importer":"prefab","imported":true,"uuid":"1d050780-084a-4a94-89dc-105ed985a981","files":[".json"],"subMetas":{},"userData":{"syncNodeName":"Sedan"}}
assets/Scripts/Scenes/MainGame/CarColorsGlobalTypes.ts
View file @
f9081e1a
export
enum
CarTypes
{
export
enum
CarTypes
{
Sedan
,
CAR4
,
Bus
,
CAR6
,
Minivan
,
CAR8
,
CAR10
,
}
}
export
enum
CarColors
{
export
enum
CarColors
{
...
...
assets/Scripts/Scenes/MainGame/Components/CarCarColorsComponent.ts
View file @
f9081e1a
...
@@ -10,7 +10,7 @@ const { ccclass, property, executeInEditMode } = _decorator;
...
@@ -10,7 +10,7 @@ const { ccclass, property, executeInEditMode } = _decorator;
@
executeInEditMode
@
executeInEditMode
export
class
CarCarColorsComponent
extends
Component
{
export
class
CarCarColorsComponent
extends
Component
{
@
property
({
type
:
Enum
(
CarTypes
)
})
@
property
({
type
:
Enum
(
CarTypes
)
})
carType
:
CarTypes
=
CarTypes
.
Bus
carType
:
CarTypes
=
CarTypes
.
CAR10
@
property
({
type
:
Enum
(
CarColors
)
})
@
property
({
type
:
Enum
(
CarColors
)
})
get
carColor
()
{
get
carColor
()
{
...
@@ -43,9 +43,9 @@ export class CarCarColorsComponent extends Component {
...
@@ -43,9 +43,9 @@ export class CarCarColorsComponent extends Component {
onLoad
()
{
onLoad
()
{
this
.
changeColor
()
this
.
changeColor
()
if
(
this
.
carType
===
CarTypes
.
Minivan
)
{
if
(
this
.
carType
===
CarTypes
.
CAR8
)
{
this
.
halfLen
=
1.6
this
.
halfLen
=
1.6
}
else
if
(
this
.
carType
===
CarTypes
.
Sedan
)
{
}
else
if
(
this
.
carType
===
CarTypes
.
CAR6
)
{
this
.
halfLen
=
1.4
this
.
halfLen
=
1.4
}
}
...
@@ -95,12 +95,12 @@ export class CarCarColorsComponent extends Component {
...
@@ -95,12 +95,12 @@ export class CarCarColorsComponent extends Component {
this
.
tweenCount
+=
1
this
.
tweenCount
+=
1
this
.
roleNum
+=
1
this
.
roleNum
+=
1
if
(
this
.
carType
===
CarTypes
.
Minivan
)
{
if
(
this
.
carType
===
CarTypes
.
CAR8
)
{
this
.
isFull
=
this
.
roleNum
>
5
this
.
isFull
=
this
.
roleNum
>
=
8
}
else
if
(
this
.
carType
===
CarTypes
.
Sedan
)
{
}
else
if
(
this
.
carType
===
CarTypes
.
CAR6
)
{
this
.
isFull
=
this
.
roleNum
>
3
this
.
isFull
=
this
.
roleNum
>
=
6
}
else
if
(
this
.
carType
===
CarTypes
.
Bus
)
{
}
else
if
(
this
.
carType
===
CarTypes
.
CAR10
)
{
this
.
isFull
=
this
.
roleNum
>
9
this
.
isFull
=
this
.
roleNum
>
=
10
}
}
return
this
.
isFull
return
this
.
isFull
...
...
assets/Scripts/Scenes/MainGame/Systerms/CarCarColorsSysterm.ts
View file @
f9081e1a
...
@@ -32,10 +32,10 @@ export class CarCarColorsSysterm extends Component {
...
@@ -32,10 +32,10 @@ export class CarCarColorsSysterm extends Component {
const
color
=
node
.
getComponent
(
CarCarColorsComponent
).
carColor
const
color
=
node
.
getComponent
(
CarCarColorsComponent
).
carColor
const
carType
=
node
.
getComponent
(
CarCarColorsComponent
).
carType
const
carType
=
node
.
getComponent
(
CarCarColorsComponent
).
carType
let
len
=
10
let
len
=
10
if
(
carType
===
CarTypes
.
Minivan
)
{
if
(
carType
===
CarTypes
.
CAR8
)
{
len
=
8
}
else
if
(
carType
===
CarTypes
.
CAR6
)
{
len
=
6
len
=
6
}
else
if
(
carType
===
CarTypes
.
Sedan
)
{
len
=
4
}
}
for
(;
len
--
;)
{
for
(;
len
--
;)
{
...
@@ -75,17 +75,17 @@ export class CarCarColorsSysterm extends Component {
...
@@ -75,17 +75,17 @@ export class CarCarColorsSysterm extends Component {
cars
.
forEach
(
car
=>
{
cars
.
forEach
(
car
=>
{
const
carCom
=
car
.
getComponent
(
CarCarColorsComponent
)
const
carCom
=
car
.
getComponent
(
CarCarColorsComponent
)
if
(
!
carCom
)
return
if
(
!
carCom
)
return
if
(
carCom
.
carType
===
CarTypes
.
Sedan
)
{
if
(
carCom
.
carType
===
CarTypes
.
CAR6
)
{
miniCars
.
cars
.
push
(
car
)
miniCars
.
cars
.
push
(
car
)
miniCars
.
colors
.
push
(
carCom
.
carColor
)
miniCars
.
colors
.
push
(
carCom
.
carColor
)
return
return
}
}
if
(
carCom
.
carType
===
CarTypes
.
Minivan
)
{
if
(
carCom
.
carType
===
CarTypes
.
CAR8
)
{
middleCars
.
cars
.
push
(
car
)
middleCars
.
cars
.
push
(
car
)
middleCars
.
colors
.
push
(
carCom
.
carColor
)
middleCars
.
colors
.
push
(
carCom
.
carColor
)
return
return
}
}
if
(
carCom
.
carType
===
CarTypes
.
Bus
)
{
if
(
carCom
.
carType
===
CarTypes
.
CAR10
)
{
bigCars
.
cars
.
push
(
car
)
bigCars
.
cars
.
push
(
car
)
bigCars
.
colors
.
push
(
carCom
.
carColor
)
bigCars
.
colors
.
push
(
carCom
.
carColor
)
return
return
...
...
assets/Scripts/Scenes/MainGame/Systerms/RoleCarColorsSysterm.ts
View file @
f9081e1a
...
@@ -91,10 +91,10 @@ export class RoleCarColorsSysterm extends Component {
...
@@ -91,10 +91,10 @@ export class RoleCarColorsSysterm extends Component {
const
car
=
cars
[
i
]
const
car
=
cars
[
i
]
const
carComp
=
car
.
getComponent
(
CarCarColorsComponent
)
const
carComp
=
car
.
getComponent
(
CarCarColorsComponent
)
let
num
=
10
let
num
=
10
if
(
carComp
.
carType
===
CarTypes
.
Minivan
){
if
(
carComp
.
carType
===
CarTypes
.
CAR8
){
num
=
8
}
else
if
(
carComp
.
carType
===
CarTypes
.
CAR6
){
num
=
6
num
=
6
}
else
if
(
carComp
.
carType
===
CarTypes
.
Sedan
){
num
=
4
}
}
num
-=
carComp
.
roleNum
num
-=
carComp
.
roleNum
console
.
log
(
num
)
console
.
log
(
num
)
...
...
build/web-mobile/index.html
View file @
f9081e1a
...
@@ -98,14 +98,14 @@
...
@@ -98,14 +98,14 @@
</style>
</style>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
7909036
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
9384839
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
7909036
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
9384839
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
7909036
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
9384839
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
7909036
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
9384839
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
7909036
/src/assets/plugin/rem.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
9384839
/src/assets/plugin/rem.min.js"
></script>
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.6.0.js"
></script>
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.6.0.js"
></script>
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
7909036
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
9384839
/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
7909036
/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
9384839
/custom.css" />-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>-->
<!-- <script>eruda.init()</script>-->
...
@@ -132,20 +132,20 @@
...
@@ -132,20 +132,20 @@
</div>
</div>
<!-- Polyfills bundle. -->
<!-- Polyfills bundle. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
7909036
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
9384839
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
7909036
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
9384839
/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/174902
7909036
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/174902
9384839
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script
type=
"systemjs-importmap"
charset=
"utf-8"
>
<script
type=
"systemjs-importmap"
charset=
"utf-8"
>
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
7909036
/cocos-js/cc.js"
}}
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
9384839
/cocos-js/cc.js"
}}
</script>
</script>
<script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
7909036
/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/174902
9384839
/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
console
.
error
(
err
);
})
})
</script>
</script>
...
...
profiles/v2/packages/builder.json
View file @
f9081e1a
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
"progress"
:
1
,
"progress"
:
1
,
"state"
:
"success"
,
"state"
:
"success"
,
"stage"
:
"build"
,
"stage"
:
"build"
,
"message"
:
"2025-6-4 17:
06:40 build success in 1 min 33
s!"
,
"message"
:
"2025-6-4 17:
30:53 build success in 1 min 8
s!"
,
"detailMessage"
:
"
build task(web-mobile) in 92822
!
\r
"
,
"detailMessage"
:
"
Asset DB is resume
!
\r
"
,
"options"
:
{
"options"
:
{
"name"
:
"card"
,
"name"
:
"card"
,
"server"
:
""
,
"server"
:
""
,
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
"enable"
:
true
"enable"
:
true
}
}
},
},
"time"
:
"2025-6-4 17:
05:07
"
,
"time"
:
"2025-6-4 17:
29:44
"
,
"dirty"
:
false
"dirty"
:
false
}
}
}
}
...
...
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