Commit 77349e9c authored by haiyoucuv's avatar haiyoucuv

init

parent 42034335
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"_active": true, "_active": true,
"_components": [], "_components": [],
"_prefab": { "_prefab": {
"__id__": 28 "__id__": 31
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
}, },
"autoReleaseAssets": true, "autoReleaseAssets": true,
"_globals": { "_globals": {
"__id__": 29 "__id__": 32
}, },
"_id": "9e293cde-e27b-4902-808b-e884f3e9da32" "_id": "9e293cde-e27b-4902-808b-e884f3e9da32"
}, },
...@@ -83,16 +83,16 @@ ...@@ -83,16 +83,16 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 24 "__id__": 27
}, },
{ {
"__id__": 25 "__id__": 28
}, },
{ {
"__id__": 26 "__id__": 29
}, },
{ {
"__id__": 27 "__id__": 30
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -481,22 +481,25 @@ ...@@ -481,22 +481,25 @@
}, },
{ {
"__id__": 19 "__id__": 19
},
{
"__id__": 22
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 22 "__id__": 25
}, },
{ {
"__id__": 23 "__id__": 26
} }
], ],
"_prefab": null, "_prefab": null,
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": -7, "y": 20,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
...@@ -878,6 +881,115 @@ ...@@ -878,6 +881,115 @@
"_shadowBlur": 2, "_shadowBlur": 2,
"_id": "0dpodXRxhCpqFImk/H0KoY" "_id": "0dpodXRxhCpqFImk/H0KoY"
}, },
{
"__type__": "cc.Node",
"_name": "ip",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 12
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
},
{
"__id__": 24
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 12.553,
"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": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "51MTIgB4JGRKPnyibftu7g"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 22
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 166,
"height": 180
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "a4kfLABGRPh40uVgUdFyCL"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 22
},
"_enabled": true,
"__prefab": null,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "56190da5-54de-42ff-906b-c70d1f62b0f7@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "57FC+/YxtOxqEKMoWeoaPY"
},
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
...@@ -972,11 +1084,14 @@ ...@@ -972,11 +1084,14 @@
"__expectedType__": "cc.Prefab" "__expectedType__": "cc.Prefab"
}, },
"progressBar": { "progressBar": {
"__id__": 23 "__id__": 26
}, },
"progressTxt": { "progressTxt": {
"__id__": 21 "__id__": 21
}, },
"ip": {
"__id__": 22
},
"_id": "ccwYlVBqtP3qOrWWpSPSZW" "_id": "ccwYlVBqtP3qOrWWpSPSZW"
}, },
{ {
...@@ -1020,28 +1135,28 @@ ...@@ -1020,28 +1135,28 @@
{ {
"__type__": "cc.SceneGlobals", "__type__": "cc.SceneGlobals",
"ambient": { "ambient": {
"__id__": 30 "__id__": 33
}, },
"shadows": { "shadows": {
"__id__": 31 "__id__": 34
}, },
"_skybox": { "_skybox": {
"__id__": 32 "__id__": 35
}, },
"fog": { "fog": {
"__id__": 33 "__id__": 36
}, },
"octree": { "octree": {
"__id__": 34 "__id__": 37
}, },
"skin": { "skin": {
"__id__": 35 "__id__": 38
}, },
"lightProbeInfo": { "lightProbeInfo": {
"__id__": 36 "__id__": 39
}, },
"postSettings": { "postSettings": {
"__id__": 37 "__id__": 40
}, },
"bakedWithStationaryMainLight": false, "bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false "bakedWithHighpLightmap": false
......
import { _decorator, Component, Label, lerp, Prefab, ProgressBar, loadWasmModuleBullet} from "cc"; import { _decorator, Component, Label, lerp, Prefab, ProgressBar, loadWasmModuleBullet, Node } from "cc";
import { PREVIEW } from "cc/env"; import { PREVIEW } from "cc/env";
import { UIMgr } from "../core/Module/UIMgr"; import { UIMgr } from "../core/Module/UIMgr";
import { changeScene } from "db://assets/core/Module/UIFast"; import { changeScene } from "db://assets/core/Module/UIFast";
...@@ -7,7 +7,6 @@ import ZipLoader from "./ZipLoader"; ...@@ -7,7 +7,6 @@ import ZipLoader from "./ZipLoader";
import store from "../Scripts/store/store"; import store from "../Scripts/store/store";
import { getPreLoadList, preload } from "../Scripts/Utils/LoaderTools"; import { getPreLoadList, preload } from "../Scripts/Utils/LoaderTools";
import { AudioMgr } from "../core/base/AudioMgr"; import { AudioMgr } from "../core/base/AudioMgr";
import { LOG_TYPE, sendLog } from "../Scripts/Utils/WebNet/WebNet";
import shareStore from "../Scripts/store/shareStore"; import shareStore from "../Scripts/store/shareStore";
import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene"; import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
...@@ -27,6 +26,9 @@ export class Start extends Component{ ...@@ -27,6 +26,9 @@ export class Start extends Component{
@property(Label) @property(Label)
progressTxt: Label = null; progressTxt: Label = null;
@property(Node)
ip: Node = null;
async onLoad() { async onLoad() {
// game.frameRate = _FPS; // game.frameRate = _FPS;
...@@ -53,6 +55,7 @@ export class Start extends Component{ ...@@ -53,6 +55,7 @@ export class Start extends Component{
} }
setProgress = (progress: number) => { setProgress = (progress: number) => {
this.ip.setPosition(-616 / 2 + 616 * progress, 0);
this.progressBar.progress = progress; this.progressBar.progress = progress;
this.progressTxt.string = `加载中(${Math.round(progress * 100)}%)...`; this.progressTxt.string = `加载中(${Math.round(progress * 100)}%)...`;
} }
......
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "56190da5-54de-42ff-906b-c70d1f62b0f7",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "56190da5-54de-42ff-906b-c70d1f62b0f7@6c48a",
"displayName": "ip",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "56190da5-54de-42ff-906b-c70d1f62b0f7",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "56190da5-54de-42ff-906b-c70d1f62b0f7@f9941",
"displayName": "ip",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 166,
"height": 180,
"rawWidth": 166,
"rawHeight": 180,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-83,
-90,
0,
83,
-90,
0,
-83,
90,
0,
83,
90,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
180,
166,
180,
0,
0,
166,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-83,
-90,
0
],
"maxPos": [
83,
90,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "56190da5-54de-42ff-906b-c70d1f62b0f7@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "56190da5-54de-42ff-906b-c70d1f62b0f7@6c48a"
}
}
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