Commit f9081e1a authored by haiyoucuv's avatar haiyoucuv

init

parent 117db250
This diff is collapsed.
{"ver":"1.1.50","importer":"prefab","imported":true,"uuid":"e9d96308-84db-4157-8abd-43bd86b1b985","files":[".json"],"subMetas":{},"userData":{"syncNodeName":"Bus"}}
This diff is collapsed.
{"ver":"1.1.50","importer":"prefab","imported":true,"uuid":"725a11fb-b865-4f16-b582-9bf848fd6a91","files":[".json"],"subMetas":{},"userData":{"syncNodeName":"Minivan"}}
This diff is collapsed.
{"ver":"1.1.50","importer":"prefab","imported":true,"uuid":"1d050780-084a-4a94-89dc-105ed985a981","files":[".json"],"subMetas":{},"userData":{"syncNodeName":"Sedan"}}
export enum CarTypes {
Sedan,
Bus,
Minivan,
CAR4,
CAR6,
CAR8,
CAR10,
}
export enum CarColors {
......
......@@ -10,7 +10,7 @@ const { ccclass, property, executeInEditMode } = _decorator;
@executeInEditMode
export class CarCarColorsComponent extends Component {
@property({ type: Enum(CarTypes) })
carType: CarTypes = CarTypes.Bus
carType: CarTypes = CarTypes.CAR10
@property({ type: Enum(CarColors) })
get carColor() {
......@@ -43,9 +43,9 @@ export class CarCarColorsComponent extends Component {
onLoad() {
this.changeColor()
if (this.carType === CarTypes.Minivan) {
if (this.carType === CarTypes.CAR8) {
this.halfLen = 1.6
} else if (this.carType === CarTypes.Sedan) {
} else if (this.carType === CarTypes.CAR6) {
this.halfLen = 1.4
}
......@@ -95,12 +95,12 @@ export class CarCarColorsComponent extends Component {
this.tweenCount += 1
this.roleNum += 1
if (this.carType === CarTypes.Minivan) {
this.isFull = this.roleNum > 5
} else if (this.carType === CarTypes.Sedan) {
this.isFull = this.roleNum > 3
} else if (this.carType === CarTypes.Bus) {
this.isFull = this.roleNum > 9
if (this.carType === CarTypes.CAR8) {
this.isFull = this.roleNum >= 8
} else if (this.carType === CarTypes.CAR6) {
this.isFull = this.roleNum >= 6
} else if (this.carType === CarTypes.CAR10) {
this.isFull = this.roleNum >= 10
}
return this.isFull
......
......@@ -32,10 +32,10 @@ export class CarCarColorsSysterm extends Component {
const color = node.getComponent(CarCarColorsComponent).carColor
const carType = node.getComponent(CarCarColorsComponent).carType
let len = 10
if (carType === CarTypes.Minivan) {
if (carType === CarTypes.CAR8) {
len = 8
} else if (carType === CarTypes.CAR6) {
len = 6
} else if (carType === CarTypes.Sedan) {
len = 4
}
for (; len--;) {
......@@ -75,17 +75,17 @@ export class CarCarColorsSysterm extends Component {
cars.forEach(car => {
const carCom = car.getComponent(CarCarColorsComponent)
if (!carCom) return
if (carCom.carType === CarTypes.Sedan) {
if (carCom.carType === CarTypes.CAR6) {
miniCars.cars.push(car)
miniCars.colors.push(carCom.carColor)
return
}
if (carCom.carType === CarTypes.Minivan) {
if (carCom.carType === CarTypes.CAR8) {
middleCars.cars.push(car)
middleCars.colors.push(carCom.carColor)
return
}
if (carCom.carType === CarTypes.Bus) {
if (carCom.carType === CarTypes.CAR10) {
bigCars.cars.push(car)
bigCars.colors.push(carCom.carColor)
return
......
......@@ -91,10 +91,10 @@ export class RoleCarColorsSysterm extends Component {
const car = cars[i]
const carComp = car.getComponent(CarCarColorsComponent)
let num = 10
if (carComp.carType === CarTypes.Minivan){
if (carComp.carType === CarTypes.CAR8){
num = 8
}else if (carComp.carType === CarTypes.CAR6){
num = 6
}else if (carComp.carType === CarTypes.Sedan){
num = 4
}
num -= carComp.roleNum
console.log(num)
......
......@@ -98,14 +98,14 @@
</style>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027909036/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027909036/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027909036/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027909036/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027909036/src/assets/plugin/rem.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749029384839/src/assets/plugin/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749029384839/src/assets/plugin/declare-process.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749029384839/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749029384839/src/assets/plugin/jszip.min.v3.10.1.js"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749029384839/src/assets/plugin/rem.min.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/1749027909036/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027909036/custom.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749029384839/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749029384839/custom.css" />-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>-->
......@@ -132,20 +132,20 @@
</div>
<!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027909036/src/polyfills.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749029384839/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027909036/src/system.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1749029384839/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1749027909036/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/1749029384839/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script type="systemjs-importmap" charset="utf-8">
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027909036/cocos-js/cc.js"}}
{"imports":{"cc":"//yun.duiba.com.cn/db_games/ccc_game/template3d/1749029384839/cocos-js/cc.js"}}
</script>
<script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1749027909036/index.js').catch(function (err) {
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1749029384839/index.js').catch(function (err) {
console.error(err);
})
</script>
......
......@@ -31,8 +31,8 @@
"progress": 1,
"state": "success",
"stage": "build",
"message": "2025-6-4 17:06:40 build success in 1 min 33 s!",
"detailMessage": "build task(web-mobile) in 92822!\r",
"message": "2025-6-4 17:30:53 build success in 1 min 8 s!",
"detailMessage": "Asset DB is resume!\r",
"options": {
"name": "card",
"server": "",
......@@ -103,7 +103,7 @@
"enable": true
}
},
"time": "2025-6-4 17:05:07",
"time": "2025-6-4 17:29:44",
"dirty": false
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment