Commit c3f44255 authored by haiyoucuv's avatar haiyoucuv

init

parent b30a8eb2
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "28652ac8-f90c-461d-ada0-ab5b4f646711",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true
}
}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "a66efc45-41ba-45bc-b3a5-28b896807b3b",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "FailPage"
}
}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "f9db42ff-4817-4bf0-9032-251171a6c4c1",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "SuccessPage"
}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "e6ada426-d39b-405f-bc14-d289a146d6cd",
"files": [],
"subMetas": {},
"userData": {}
}
{
"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"
}
}
{
"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"
}
}
{
"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"
}
}
{
"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
}
}
{
"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"
}
}
{
"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"
}
}
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);
}
}
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "7ce62da2-3f81-49a9-8db1-8f8a566ac928",
"files": [],
"subMetas": {},
"userData": {}
}
...@@ -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";
......
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);
// })
}
}
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "0de1bd91-0558-4eee-85ed-1556e05eb62b",
"files": [],
"subMetas": {},
"userData": {}
}
...@@ -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";
......
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