Commit c69de84f authored by haiyoucuv's avatar haiyoucuv

init

parent 9b08971c
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "92ff9886-7fb4-4641-b799-28871156bd6d",
"files": [],
"subMetas": {},
"userData": {}
}
[
{
"__type__": "cc.Prefab",
"_name": "level1",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "level1",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 16
},
{
"__id__": 31
},
{
"__id__": 45
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 59
},
"_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": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_prefab": {
"__id__": 3
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 2
},
"asset": {
"__uuid__": "1d050780-084a-4a94-89dc-105ed985a981",
"__expectedType__": "cc.Prefab"
},
"fileId": "ca6ZXggr1OPpZ1elxoE4VX",
"instance": {
"__id__": 4
},
"targetOverrides": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "10RRRGTuVJC6pRi/sZr9pk",
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 5
},
{
"__id__": 7
},
{
"__id__": 8
},
{
"__id__": 9
},
{
"__id__": 10
},
{
"__id__": 12
},
{
"__id__": 14
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 6
},
"propertyPath": [
"_name"
],
"value": "Sedan"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"ca6ZXggr1OPpZ1elxoE4VX"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 6
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 0.4129999876022339,
"y": 1.4901161415892261e-9,
"z": 2.559009552001953
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 6
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0.3826834559440613,
"z": 0,
"w": 0.9238795042037964
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 6
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 45.00000234965424,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 11
},
"propertyPath": [
"_active"
],
"value": false
},
{
"__type__": "cc.TargetInfo",
"localID": [
"a7+923THlGpK2OW81949am"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 13
},
"propertyPath": [
"_active"
],
"value": true
},
{
"__type__": "cc.TargetInfo",
"localID": [
"81Vne/NIZBVIDJQ5SqAs5P"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 15
},
"propertyPath": [
"_carColor"
],
"value": 0
},
{
"__type__": "cc.TargetInfo",
"localID": [
"6cFLC99U1Dl405ygHuNfbi"
]
},
{
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_prefab": {
"__id__": 17
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 16
},
"asset": {
"__uuid__": "1d050780-084a-4a94-89dc-105ed985a981",
"__expectedType__": "cc.Prefab"
},
"fileId": "ca6ZXggr1OPpZ1elxoE4VX",
"instance": {
"__id__": 18
},
"targetOverrides": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "aae/c2DrxJOLchCPcaOgVX",
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 19
},
{
"__id__": 21
},
{
"__id__": 22
},
{
"__id__": 23
},
{
"__id__": 24
},
{
"__id__": 26
},
{
"__id__": 28
},
{
"__id__": 29
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 20
},
"propertyPath": [
"_name"
],
"value": "Sedan"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"ca6ZXggr1OPpZ1elxoE4VX"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 20
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": -1.2899999618530273,
"y": 1.4901161415892261e-9,
"z": -1.2900018692016602
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 20
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0.9238795042037964,
"z": 0,
"w": -0.3826833963394165
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 20
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": -134.99999933643895,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 25
},
"propertyPath": [
"_active"
],
"value": true
},
{
"__type__": "cc.TargetInfo",
"localID": [
"669PK/vptAIKuU332f+2ap"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 27
},
"propertyPath": [
"_active"
],
"value": false
},
{
"__type__": "cc.TargetInfo",
"localID": [
"a7+923THlGpK2OW81949am"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 27
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 30
},
"propertyPath": [
"_carColor"
],
"value": 1
},
{
"__type__": "cc.TargetInfo",
"localID": [
"6cFLC99U1Dl405ygHuNfbi"
]
},
{
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_prefab": {
"__id__": 32
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 31
},
"asset": {
"__uuid__": "e9d96308-84db-4157-8abd-43bd86b1b985",
"__expectedType__": "cc.Prefab"
},
"fileId": "6b9c9AH31BepEFqW2vpkx7",
"instance": {
"__id__": 33
},
"targetOverrides": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "a6ZgfhH/JKZ4MZi0FkGKoV",
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 34
},
{
"__id__": 36
},
{
"__id__": 37
},
{
"__id__": 38
},
{
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 35
},
"propertyPath": [
"_name"
],
"value": "Bus"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"6b9c9AH31BepEFqW2vpkx7"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 35
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": -2.3589999675750732,
"y": 1.4901161415892261e-9,
"z": 2.3590087890625
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 35
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": -0.3826834559440613,
"z": 0,
"w": 0.9238795042037964
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 35
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": -45.00000234965424,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 40
},
"propertyPath": [
"_active"
],
"value": true
},
{
"__type__": "cc.TargetInfo",
"localID": [
"4eF495aaVF25CgwV6ThLCa"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 42
},
"propertyPath": [
"_active"
],
"value": false
},
{
"__type__": "cc.TargetInfo",
"localID": [
"0emLVBRfROm4tjVfj9FoAU"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 44
},
"propertyPath": [
"_carColor"
],
"value": 4
},
{
"__type__": "cc.TargetInfo",
"localID": [
"f2bH2OfzNNH5aWu5gngeXE"
]
},
{
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_prefab": {
"__id__": 46
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 45
},
"asset": {
"__uuid__": "725a11fb-b865-4f16-b582-9bf848fd6a91",
"__expectedType__": "cc.Prefab"
},
"fileId": "9cEQF8XeNI/5Zo+nRAEmT8",
"instance": {
"__id__": 47
},
"targetOverrides": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "02iIjAEANBwLL3O+Nh9NZC",
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 48
},
{
"__id__": 50
},
{
"__id__": 51
},
{
"__id__": 52
},
{
"__id__": 53
},
{
"__id__": 55
},
{
"__id__": 57
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 49
},
"propertyPath": [
"_name"
],
"value": "Minivan"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"9cEQF8XeNI/5Zo+nRAEmT8"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 49
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 1.1579999923706055,
"y": 1.4901161415892261e-9,
"z": -0.4460020065307617
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 49
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0.9238795042037964,
"z": 0,
"w": 0.3826833963394165
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 49
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 134.99999933643895,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 54
},
"propertyPath": [
"_active"
],
"value": false
},
{
"__type__": "cc.TargetInfo",
"localID": [
"d4H2x7mZNLx4QCsKeRekMp"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 56
},
"propertyPath": [
"_active"
],
"value": true
},
{
"__type__": "cc.TargetInfo",
"localID": [
"3an+ktAGJOuqnE028P8vxe"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 58
},
"propertyPath": [
"_carColor"
],
"value": 2
},
{
"__type__": "cc.TargetInfo",
"localID": [
"ea5VG/a7tMzbfIL5Lsqq/h"
]
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "42Z2ckGKdDSY/taLY7VCka",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": [
{
"__id__": 45
},
{
"__id__": 31
},
{
"__id__": 16
},
{
"__id__": 2
}
]
}
]
\ No newline at end of file
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "aef0fdf5-4746-48cd-95ba-fc71bb48526f",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "level1"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "7d2e5c17-ae25-4463-b83b-2e6062ca13c3",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "level10"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "53e57144-7c1d-4027-a81b-5473b76da97a",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "level2"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "acd60852-2465-43a6-a1a1-aed6d55c508e",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "level3"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "f4f0f3e0-802c-4e93-aa10-f9040d8d4b13",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "level4"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "84cd42a2-5ed9-4a12-a2d9-580a9b257fff",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "level5"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "e5c06d2b-5800-42e0-8ce9-2c47dce243dc",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "level6"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "e2f11ad5-5b1c-4fc7-b471-75cf0c5aa402",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "level7"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "57f31237-9a2d-459a-b385-bbe40e4dbe46",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "level8"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "362b5800-4e6b-407c-b5d1-5d709a58c1e4",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "level9"
}
}
[ [
{ {
"__type__": "cc.SceneAsset", "__type__": "cc.SceneAsset",
"_name": "CarColors", "_name": "MainGame",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_native": "", "_native": "",
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
}, },
{ {
"__type__": "cc.Scene", "__type__": "cc.Scene",
"_name": "CarColors", "_name": "MainGame",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_parent": null, "_parent": null,
......
import { import { _decorator, AssetManager, assetManager, Component, find, Label, Prefab, ProgressBar } from 'cc';
_decorator,
AssetManager,
assetManager,
AudioClip,
Component,
find,
Label,
Node,
Prefab,
ProgressBar
} from 'cc';
import { BundleNames, RoleNames } from '../CarColorsGlobalTypes'; import { BundleNames, RoleNames } from '../CarColorsGlobalTypes';
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
...@@ -80,17 +69,16 @@ export class BundleCarColorsSysterm extends Component { ...@@ -80,17 +69,16 @@ export class BundleCarColorsSysterm extends Component {
if (lv > 10) { if (lv > 10) {
lv = lv % 5 + 5 lv = lv % 5 + 5
} }
const promise: Promise<Prefab> = new Promise((res, rej) => { return new Promise((resolve) => {
assetManager.getBundle("MainGame").load(`Levels/level${lv}`, Prefab, (err, prefab: Prefab) => { assetManager.getBundle("MainGame")
if (err) { .load(`Levels/level${lv}`, Prefab, (err, prefab: Prefab) => {
// console.error(err) if (err) {
rej(err) resolve(null);
return return
} }
res(prefab) resolve(prefab);
}) })
}) })
return promise
} }
} }
......
...@@ -4,7 +4,7 @@ import { changeScene, hideWaiting, showPanel, showWaiting } from "db://assets/co ...@@ -4,7 +4,7 @@ import { changeScene, hideWaiting, showPanel, showWaiting } from "db://assets/co
import store from "../store/store"; import store from "../store/store";
import { observer, render } from "../store/decorators"; import { observer, render } from "../store/decorators";
import { _asyncThrottle } from "../Utils/Utils"; import { _asyncThrottle } from "../Utils/Utils";
import { CarColorsGameEntry } from "db://assets/CarColorsGame/Scrips/CarColorsGameEntry"; import { MainGame } from "./MainGame/MainGame";
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
...@@ -46,7 +46,7 @@ export class HomeScene extends Scene { ...@@ -46,7 +46,7 @@ export class HomeScene extends Scene {
clickStart = _asyncThrottle(async () => { clickStart = _asyncThrottle(async () => {
await loadWasmModuleBullet(); await loadWasmModuleBullet();
changeScene(CarColorsGameEntry); changeScene(MainGame);
}); });
} }
......
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "451d5a92-faec-498d-85ec-3160816b60af",
"files": [],
"subMetas": {},
"userData": {}
}
import { _decorator, find, instantiate, Label, ProgressBar } from 'cc'; import { _decorator, find, instantiate } from 'cc';
import { CarColorsGlobalInstance } from './CarColorsGlobalInstance';
import { BundleCarColorsSysterm } from './Systerms/BundleCarColorsSysterm';
import { RoleCarColorsSysterm } from './Systerms/RoleCarColorsSysterm';
import { GlobalData, ConfigKeys } from '../../ScriptFrame/GlobalData';
import { CarCarColorsSysterm } from './Systerms/CarCarColorsSysterm';
import Scene from "db://assets/core/Module/Scene"; import Scene from "db://assets/core/Module/Scene";
import { changeScene, showToast } from "db://assets/core/Module/UIFast"; import { changeScene, showToast } from "db://assets/core/Module/UIFast";
import { AudioClipName, AudioMgr } from "db://assets/core/base/AudioMgr"; import { AudioClipName, AudioMgr } from "db://assets/core/base/AudioMgr";
import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene"; import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
import { BundleCarColorsSysterm } from "db://assets/CarColorsGame/Scrips/Systerms/BundleCarColorsSysterm";
import { CarColorsGlobalInstance } from "db://assets/CarColorsGame/Scrips/CarColorsGlobalInstance";
import { RoleCarColorsSysterm } from "db://assets/CarColorsGame/Scrips/Systerms/RoleCarColorsSysterm";
import { CarCarColorsSysterm } from "db://assets/CarColorsGame/Scrips/Systerms/CarCarColorsSysterm";
import { ConfigKeys, GlobalData } from "db://assets/ScriptFrame/GlobalData";
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
@ccclass('CarColorsGameEntry') @ccclass('MainGame')
export class CarColorsGameEntry extends Scene { export class MainGame extends Scene {
static skin: string = "CarColors"; static skin: string = "MainGame";
static bundle: string = "MainGame"; static bundle: string = "MainGame";
async start() { async start() {
......
{ {
"__version__": "1.0.3", "__version__": "1.0.3",
"current-scene": "2c42d766-165b-48f3-b337-ed539df8fa45" "current-scene": "04224ebd-adcd-4112-8010-da14ed5ea48a"
} }
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