feat: integrate room framework and isolated subgame bundles
Complete room UI and protocol integration, move game definitions and resources behind bundle entries, publish authoritative version XML, and document single-game builds. Include all current resource changes and experiment artifacts.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
const fs=require('fs'),path=require('path');const root=path.resolve(__dirname,'project/build',process.argv[2]);
|
||||
const files=[];function walk(p){for(const e of fs.readdirSync(p,{withFileTypes:true})){const x=path.join(p,e.name);if(e.isDirectory())walk(x);else files.push(x);}}walk(root);
|
||||
const markers={};for(const marker of ['PRIVATE_CODE_ALPHA','PRIVATE_CODE_BETA','PRIVATE_RESOURCE_ALPHA','PRIVATE_RESOURCE_BETA'])markers[marker]=files.filter(p=>/\.(js|json|txt)$/.test(p)&&fs.readFileSync(p,'utf8').includes(marker)).map(p=>path.relative(root,p));
|
||||
console.log(JSON.stringify({root,bytes:files.reduce((n,p)=>n+fs.statSync(p).size,0),markers,build:JSON.parse(fs.readFileSync(path.join(root,'probe-build.json'),'utf8'))},null,2));
|
||||
@@ -0,0 +1,13 @@
|
||||
import {director,Director,assetManager,TextAsset,Prefab,instantiate,js} from 'cc';
|
||||
director.once(Director.EVENT_AFTER_SCENE_LAUNCH,async()=>{
|
||||
const report:any={ok:false,requests:[]};(globalThis as any).__probe=report;
|
||||
try{const target=await fetch('./target.json').then(r=>{if(!r.ok)throw Error('target missing');return r.json();});
|
||||
report.selected=target.bundle;
|
||||
const bundle=await new Promise<any>((resolve,reject)=>assetManager.loadBundle(target.bundle,(e,b)=>e?reject(e):resolve(b)));
|
||||
const entry:any=js.getClassByName(target.entry);if(!entry)throw Error('entry missing');report.code=entry.run();
|
||||
const text=await new Promise<TextAsset>((resolve,reject)=>bundle.load('private',TextAsset,(e,a)=>e?reject(e):resolve(a)));report.text=text.text;
|
||||
const prefab=await new Promise<Prefab>((resolve,reject)=>bundle.load('View',Prefab,(e,a)=>e?reject(e):resolve(a)));const node=instantiate(prefab);node.parent=director.getScene();report.prefab=node.name;
|
||||
report.otherRegistered=!!js.getClassByName(target.otherEntry);report.ok=true;
|
||||
}catch(e){report.error=String(e);}
|
||||
console.log('PROBE_RESULT',JSON.stringify(report));
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.24",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "d3a6cace-0705-4b94-b8d3-63782a437929",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "392b4a96-26fa-4d09-a0f8-3a200f1b24b3",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "22700432-1627-4047-b68f-cf933b98a1aa",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"isBundle": true,
|
||||
"bundleName": "game-alpha",
|
||||
"priority": 1,
|
||||
"bundleConfigID": "default"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import {_decorator} from 'cc';
|
||||
@_decorator.ccclass('ProbeEntry_alpha')
|
||||
export class ProbeEntry_alpha {static run(){return 'PRIVATE_CODE_ALPHA';}}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.24",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "34050570-bd92-492c-baa4-99301a76b4b7",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "View",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"persistent": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "View",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": null,
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 4
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 10,
|
||||
"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": 33554432,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 371,
|
||||
"height": 22.680000000000003
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 1
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "JYB5ndvc0hWZFdTsDPujQg"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_string": "资料文字",
|
||||
"_horizontalAlign": 0,
|
||||
"_verticalAlign": 0,
|
||||
"_actualFontSize": 18.975,
|
||||
"_fontSize": 18,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 18,
|
||||
"_overflow": 3,
|
||||
"_enableWrapText": true,
|
||||
"_font": null,
|
||||
"_isSystemFontUsed": true,
|
||||
"_spacingX": 0,
|
||||
"_isItalic": false,
|
||||
"_isBold": false,
|
||||
"_isUnderline": false,
|
||||
"_underlineHeight": 2,
|
||||
"_cacheMode": 0,
|
||||
"_enableOutline": false,
|
||||
"_outlineColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_outlineWidth": 2,
|
||||
"_enableShadow": false,
|
||||
"_shadowColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_shadowOffset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 2,
|
||||
"y": 2
|
||||
},
|
||||
"_shadowBlur": 2,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "wX+Ww4pBz/TnLcrPEXSuAA"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "Pn6tcB1uaJ1EOUf2nLgpzw",
|
||||
"instance": null,
|
||||
"targetOverrides": null
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"ver": "1.1.50",
|
||||
"importer": "prefab",
|
||||
"imported": true,
|
||||
"uuid": "4e0d204d-96ce-48b8-b976-7432279319f2",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"syncNodeName": "View"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PRIVATE_RESOURCE_ALPHA
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"importer": "text",
|
||||
"imported": true,
|
||||
"uuid": "cf1f8ff4-e394-4c08-acab-f14eabe1871f",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "eeab1f81-53b9-403e-9156-868659afb945",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"isBundle": true,
|
||||
"bundleName": "game-beta",
|
||||
"priority": 1,
|
||||
"bundleConfigID": "default"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import {_decorator} from 'cc';
|
||||
@_decorator.ccclass('ProbeEntry_beta')
|
||||
export class ProbeEntry_beta {static run(){return 'PRIVATE_CODE_BETA';}}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.24",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "f9f74254-73a9-41c2-824e-0e931042779b",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "View",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"persistent": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "View",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": null,
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 4
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 10,
|
||||
"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": 33554432,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 371,
|
||||
"height": 22.680000000000003
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 1
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "JYB5ndvc0hWZFdTsDPujQg"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_string": "资料文字",
|
||||
"_horizontalAlign": 0,
|
||||
"_verticalAlign": 0,
|
||||
"_actualFontSize": 18.975,
|
||||
"_fontSize": 18,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 18,
|
||||
"_overflow": 3,
|
||||
"_enableWrapText": true,
|
||||
"_font": null,
|
||||
"_isSystemFontUsed": true,
|
||||
"_spacingX": 0,
|
||||
"_isItalic": false,
|
||||
"_isBold": false,
|
||||
"_isUnderline": false,
|
||||
"_underlineHeight": 2,
|
||||
"_cacheMode": 0,
|
||||
"_enableOutline": false,
|
||||
"_outlineColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_outlineWidth": 2,
|
||||
"_enableShadow": false,
|
||||
"_shadowColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_shadowOffset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 2,
|
||||
"y": 2
|
||||
},
|
||||
"_shadowBlur": 2,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "wX+Ww4pBz/TnLcrPEXSuAA"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "Pn6tcB1uaJ1EOUf2nLgpzw",
|
||||
"instance": null,
|
||||
"targetOverrides": null
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"ver": "1.1.50",
|
||||
"importer": "prefab",
|
||||
"imported": true,
|
||||
"uuid": "6473a80a-d270-4712-97d3-a9c8b355e506",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"syncNodeName": "View"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PRIVATE_RESOURCE_BETA
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"importer": "text",
|
||||
"imported": true,
|
||||
"uuid": "72e3e5a7-2390-4c08-924c-1d465a6bcad4",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "a992dbdf-934c-4b9d-a536-b83554a5c857",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1,449 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.SceneAsset",
|
||||
"_name": "Probe",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": "",
|
||||
"scene": {
|
||||
"__id__": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Scene",
|
||||
"_name": "TemplateRoom",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": null,
|
||||
"_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
|
||||
},
|
||||
"autoReleaseAssets": false,
|
||||
"_globals": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_id": "18f06ada-9d36-485c-9f44-556d6980ca7a"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Canvas",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 800,
|
||||
"y": 360.00000000000006,
|
||||
"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": "1cgbnsENBDoLhHJwvyJnKB"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Camera",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 4
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 1000
|
||||
},
|
||||
"_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": "9atEuWMGdBq70ouQQ4tRnO"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Camera",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_projection": 0,
|
||||
"_priority": 0,
|
||||
"_fov": 45,
|
||||
"_fovAxis": 0,
|
||||
"_orthoHeight": 360,
|
||||
"_near": 0,
|
||||
"_far": 2000,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_depth": 1,
|
||||
"_stencil": 0,
|
||||
"_clearFlags": 7,
|
||||
"_rect": {
|
||||
"__type__": "cc.Rect",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 1,
|
||||
"height": 1
|
||||
},
|
||||
"_aperture": 19,
|
||||
"_shutter": 7,
|
||||
"_iso": 0,
|
||||
"_screenScale": 1,
|
||||
"_visibility": 1108344832,
|
||||
"_targetTexture": null,
|
||||
"_postProcess": null,
|
||||
"_usePostProcess": false,
|
||||
"_cameraType": -1,
|
||||
"_trackingType": 0,
|
||||
"_id": "4780+rx15BKqkTCexT+Fi8"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 1600,
|
||||
"height": 720
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": "9cHcVMc5JHVJoaZqnwhdaW"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Canvas",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_cameraComponent": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_alignCanvasWithScreen": true,
|
||||
"_id": "f7IXBbP6ZNjqIM4Q5/I3dI"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_alignFlags": 45,
|
||||
"_target": null,
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_top": 5.684341886080802e-14,
|
||||
"_bottom": 5.684341886080802e-14,
|
||||
"_horizontalCenter": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
"_isAbsRight": true,
|
||||
"_isAbsTop": true,
|
||||
"_isAbsBottom": true,
|
||||
"_isAbsHorizontalCenter": true,
|
||||
"_isAbsVerticalCenter": true,
|
||||
"_originalWidth": 0,
|
||||
"_originalHeight": 0,
|
||||
"_alignMode": 2,
|
||||
"_lockFlags": 0,
|
||||
"_id": "9fI6665VZLG5Uuoch5UpgC"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.SceneGlobals",
|
||||
"ambient": {
|
||||
"__id__": 9
|
||||
},
|
||||
"shadows": {
|
||||
"__id__": 10
|
||||
},
|
||||
"_skybox": {
|
||||
"__id__": 11
|
||||
},
|
||||
"fog": {
|
||||
"__id__": 12
|
||||
},
|
||||
"octree": {
|
||||
"__id__": 13
|
||||
},
|
||||
"skin": {
|
||||
"__id__": 14
|
||||
},
|
||||
"lightProbeInfo": {
|
||||
"__id__": 15
|
||||
},
|
||||
"postSettings": {
|
||||
"__id__": 16
|
||||
},
|
||||
"bakedWithStationaryMainLight": false,
|
||||
"bakedWithHighpLightmap": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.AmbientInfo",
|
||||
"_skyColorHDR": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.2,
|
||||
"y": 0.5,
|
||||
"z": 0.8,
|
||||
"w": 0.520833125
|
||||
},
|
||||
"_skyColor": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.2,
|
||||
"y": 0.5,
|
||||
"z": 0.8,
|
||||
"w": 0.520833125
|
||||
},
|
||||
"_skyIllumHDR": 20000,
|
||||
"_skyIllum": 20000,
|
||||
"_groundAlbedoHDR": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.2,
|
||||
"y": 0.2,
|
||||
"z": 0.2,
|
||||
"w": 1
|
||||
},
|
||||
"_groundAlbedo": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.2,
|
||||
"y": 0.2,
|
||||
"z": 0.2,
|
||||
"w": 1
|
||||
},
|
||||
"_skyColorLDR": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.2,
|
||||
"y": 0.5,
|
||||
"z": 0.8,
|
||||
"w": 1
|
||||
},
|
||||
"_skyIllumLDR": 20000,
|
||||
"_groundAlbedoLDR": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.2,
|
||||
"y": 0.2,
|
||||
"z": 0.2,
|
||||
"w": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.ShadowsInfo",
|
||||
"_enabled": false,
|
||||
"_type": 0,
|
||||
"_normal": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 1,
|
||||
"z": 0
|
||||
},
|
||||
"_distance": 0,
|
||||
"_planeBias": 1,
|
||||
"_shadowColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 76
|
||||
},
|
||||
"_maxReceived": 4,
|
||||
"_size": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 1024,
|
||||
"y": 1024
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.SkyboxInfo",
|
||||
"_envLightingType": 0,
|
||||
"_envmapHDR": null,
|
||||
"_envmap": null,
|
||||
"_envmapLDR": null,
|
||||
"_diffuseMapHDR": null,
|
||||
"_diffuseMapLDR": null,
|
||||
"_enabled": false,
|
||||
"_useHDR": true,
|
||||
"_editableMaterial": null,
|
||||
"_reflectionHDR": null,
|
||||
"_reflectionLDR": null,
|
||||
"_rotationAngle": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.FogInfo",
|
||||
"_type": 0,
|
||||
"_fogColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 200,
|
||||
"g": 200,
|
||||
"b": 200,
|
||||
"a": 255
|
||||
},
|
||||
"_enabled": false,
|
||||
"_fogDensity": 0.3,
|
||||
"_fogStart": 0.5,
|
||||
"_fogEnd": 300,
|
||||
"_fogAtten": 5,
|
||||
"_fogTop": 1.5,
|
||||
"_fogRange": 1.2,
|
||||
"_accurate": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.OctreeInfo",
|
||||
"_enabled": false,
|
||||
"_minPos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -1024,
|
||||
"y": -1024,
|
||||
"z": -1024
|
||||
},
|
||||
"_maxPos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1024,
|
||||
"y": 1024,
|
||||
"z": 1024
|
||||
},
|
||||
"_depth": 8
|
||||
},
|
||||
{
|
||||
"__type__": "cc.SkinInfo",
|
||||
"_enabled": true,
|
||||
"_blurRadius": 0.01,
|
||||
"_sssIntensity": 3
|
||||
},
|
||||
{
|
||||
"__type__": "cc.LightProbeInfo",
|
||||
"_giScale": 1,
|
||||
"_giSamples": 1024,
|
||||
"_bounces": 2,
|
||||
"_reduceRinging": 0,
|
||||
"_showProbe": true,
|
||||
"_showWireframe": true,
|
||||
"_showConvex": false,
|
||||
"_data": null,
|
||||
"_lightProbeSphereVolume": 1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PostSettingsInfo",
|
||||
"_toneMappingType": 0
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.1.50",
|
||||
"importer": "scene",
|
||||
"imported": true,
|
||||
"uuid": "18f06ada-9d36-485c-9f44-556d6980ca7a",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
System.register([], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var cc, Application;
|
||||
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
||||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
||||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
||||
return {
|
||||
setters: [],
|
||||
execute: function () {
|
||||
_export("Application", Application = /*#__PURE__*/function () {
|
||||
function Application() {
|
||||
_classCallCheck(this, Application);
|
||||
this.settingsPath = 'src/settings.json';
|
||||
this.showFPS = true;
|
||||
}
|
||||
_createClass(Application, [{
|
||||
key: "init",
|
||||
value: function init(engine) {
|
||||
cc = engine;
|
||||
cc.game.onPostBaseInitDelegate.add(this.onPostInitBase.bind(this));
|
||||
cc.game.onPostSubsystemInitDelegate.add(this.onPostSystemInit.bind(this));
|
||||
}
|
||||
}, {
|
||||
key: "onPostInitBase",
|
||||
value: function onPostInitBase() {
|
||||
// cc.settings.overrideSettings('assets', 'server', '');
|
||||
// do custom logic
|
||||
}
|
||||
}, {
|
||||
key: "onPostSystemInit",
|
||||
value: function onPostSystemInit() {
|
||||
// do custom logic
|
||||
}
|
||||
}, {
|
||||
key: "start",
|
||||
value: function start() {
|
||||
return cc.game.init({
|
||||
debugMode: true ? cc.DebugMode.INFO : cc.DebugMode.ERROR,
|
||||
settingsPath: this.settingsPath,
|
||||
overrideSettings: {
|
||||
// assets: {
|
||||
// preloadBundles: [{ bundle: 'main', version: 'xxx' }],
|
||||
// }
|
||||
profiling: {
|
||||
showFPS: this.showFPS
|
||||
}
|
||||
}
|
||||
}).then(function () {
|
||||
return cc.game.run();
|
||||
});
|
||||
}
|
||||
}]);
|
||||
return Application;
|
||||
}());
|
||||
}
|
||||
};
|
||||
});
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"importBase": "import",
|
||||
"nativeBase": "native",
|
||||
"name": "game-alpha",
|
||||
"deps": [],
|
||||
"uuids": [
|
||||
"4e0d204d-96ce-48b8-b976-7432279319f2",
|
||||
"cf1f8ff4-e394-4c08-acab-f14eabe1871f"
|
||||
],
|
||||
"paths": {
|
||||
"cf1f8ff4-e394-4c08-acab-f14eabe1871f": [
|
||||
"private",
|
||||
"cc.TextAsset",
|
||||
1
|
||||
],
|
||||
"4e0d204d-96ce-48b8-b976-7432279319f2": [
|
||||
"View",
|
||||
"cc.Prefab",
|
||||
1
|
||||
]
|
||||
},
|
||||
"scenes": {},
|
||||
"packs": {},
|
||||
"versions": {
|
||||
"import": [],
|
||||
"native": []
|
||||
},
|
||||
"redirect": [],
|
||||
"debug": true,
|
||||
"extensionMap": {},
|
||||
"hasPreloadScript": true,
|
||||
"dependencyRelationships": {}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
[1,0,["node","root","data"],[["cc.Prefab",["_name"],2],["cc.Node",["_name","_layer","_components","_prefab","_lpos"],1,9,4,5],["cc.UITransform",["node","__prefab","_contentSize","_anchorPoint"],3,1,4,5,5],["cc.CompPrefabInfo",["fileId"],2],["cc.Label",["_string","_horizontalAlign","_verticalAlign","_actualFontSize","_fontSize","_lineHeight","_overflow","node","__prefab","_color"],-4,1,4,5],["cc.PrefabInfo",["fileId","instance","targetOverrides","nestedPrefabInstanceRoots","root","asset"],-1,1,1]],[[3,0,2],[0,0,2],[1,0,1,2,3,4,3],[2,0,1,2,3,1],[4,0,1,2,3,4,5,6,7,8,9,8],[5,0,1,2,3,4,5,5]],[[1,"View"],[2,"View",33554432,[[3,-2,[0,"JYB5ndvc0hWZFdTsDPujQg"],[5,371,22.680000000000003],[0,0,1]],[4,"资料文字",0,0,18.975,18,18,3,-3,[0,"wX+Ww4pBz/TnLcrPEXSuAA"],[4,4278190080]]],[5,"Pn6tcB1uaJ1EOUf2nLgpzw",null,null,null,-1,0],[1,10,0,0]]],0,[0,1,1,0,0,1,0,0,1,0,2,1,3],[],[],[]]
|
||||
+1
@@ -0,0 +1 @@
|
||||
[1,0,0,[["cc.TextAsset",["_name","text"],1]],[[0,0,1,3]],[[0,"private","PRIVATE_RESOURCE_ALPHA"]],0,0,[],[],[]]
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
System.register("chunks:///_virtual/Entry.ts", ['cc'], function (exports) {
|
||||
var cclegacy, _decorator;
|
||||
return {
|
||||
setters: [function (module) {
|
||||
cclegacy = module.cclegacy;
|
||||
_decorator = module._decorator;
|
||||
}],
|
||||
execute: function () {
|
||||
var _dec, _class;
|
||||
cclegacy._RF.push({}, "34050VwvZJJLLqkmTAadrS3", "Entry", undefined);
|
||||
var ProbeEntry_alpha = exports('ProbeEntry_alpha', (_dec = _decorator.ccclass('ProbeEntry_alpha'), _dec(_class = /*#__PURE__*/function () {
|
||||
function ProbeEntry_alpha() {}
|
||||
ProbeEntry_alpha.run = function run() {
|
||||
return 'PRIVATE_CODE_ALPHA';
|
||||
};
|
||||
return ProbeEntry_alpha;
|
||||
}()) || _class));
|
||||
cclegacy._RF.pop();
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
System.register("chunks:///_virtual/game-alpha", ['./Entry.ts'], function () {
|
||||
return {
|
||||
setters: [null],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
|
||||
(function(r) {
|
||||
r('virtual:///prerequisite-imports/game-alpha', 'chunks:///_virtual/game-alpha');
|
||||
})(function(mid, cid) {
|
||||
System.register(mid, [cid], function (_export, _context) {
|
||||
return {
|
||||
setters: [function(_m) {
|
||||
var _exportObj = {};
|
||||
|
||||
for (var _key in _m) {
|
||||
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
|
||||
}
|
||||
|
||||
_export(_exportObj);
|
||||
}],
|
||||
execute: function () { }
|
||||
};
|
||||
});
|
||||
});
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"importBase": "import",
|
||||
"nativeBase": "native",
|
||||
"name": "game-beta",
|
||||
"deps": [],
|
||||
"uuids": [
|
||||
"6473a80a-d270-4712-97d3-a9c8b355e506",
|
||||
"72e3e5a7-2390-4c08-924c-1d465a6bcad4"
|
||||
],
|
||||
"paths": {
|
||||
"72e3e5a7-2390-4c08-924c-1d465a6bcad4": [
|
||||
"private",
|
||||
"cc.TextAsset",
|
||||
1
|
||||
],
|
||||
"6473a80a-d270-4712-97d3-a9c8b355e506": [
|
||||
"View",
|
||||
"cc.Prefab",
|
||||
1
|
||||
]
|
||||
},
|
||||
"scenes": {},
|
||||
"packs": {},
|
||||
"versions": {
|
||||
"import": [],
|
||||
"native": []
|
||||
},
|
||||
"redirect": [],
|
||||
"debug": true,
|
||||
"extensionMap": {},
|
||||
"hasPreloadScript": true,
|
||||
"dependencyRelationships": {}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
[1,0,["node","root","data"],[["cc.Prefab",["_name"],2],["cc.Node",["_name","_layer","_components","_prefab","_lpos"],1,9,4,5],["cc.UITransform",["node","__prefab","_contentSize","_anchorPoint"],3,1,4,5,5],["cc.CompPrefabInfo",["fileId"],2],["cc.Label",["_string","_horizontalAlign","_verticalAlign","_actualFontSize","_fontSize","_lineHeight","_overflow","node","__prefab","_color"],-4,1,4,5],["cc.PrefabInfo",["fileId","instance","targetOverrides","nestedPrefabInstanceRoots","root","asset"],-1,1,1]],[[3,0,2],[0,0,2],[1,0,1,2,3,4,3],[2,0,1,2,3,1],[4,0,1,2,3,4,5,6,7,8,9,8],[5,0,1,2,3,4,5,5]],[[1,"View"],[2,"View",33554432,[[3,-2,[0,"JYB5ndvc0hWZFdTsDPujQg"],[5,371,22.680000000000003],[0,0,1]],[4,"资料文字",0,0,18.975,18,18,3,-3,[0,"wX+Ww4pBz/TnLcrPEXSuAA"],[4,4278190080]]],[5,"Pn6tcB1uaJ1EOUf2nLgpzw",null,null,null,-1,0],[1,10,0,0]]],0,[0,1,1,0,0,1,0,0,1,0,2,1,3],[],[],[]]
|
||||
+1
@@ -0,0 +1 @@
|
||||
[1,0,0,[["cc.TextAsset",["_name","text"],1]],[[0,0,1,3]],[[0,"private","PRIVATE_RESOURCE_BETA"]],0,0,[],[],[]]
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
System.register("chunks:///_virtual/Entry2.ts", ['cc'], function (exports) {
|
||||
var cclegacy, _decorator;
|
||||
return {
|
||||
setters: [function (module) {
|
||||
cclegacy = module.cclegacy;
|
||||
_decorator = module._decorator;
|
||||
}],
|
||||
execute: function () {
|
||||
var _dec, _class;
|
||||
cclegacy._RF.push({}, "f9f74JUc6lBwoJODpMQQneb", "Entry", undefined);
|
||||
var ProbeEntry_beta = exports('ProbeEntry_beta', (_dec = _decorator.ccclass('ProbeEntry_beta'), _dec(_class = /*#__PURE__*/function () {
|
||||
function ProbeEntry_beta() {}
|
||||
ProbeEntry_beta.run = function run() {
|
||||
return 'PRIVATE_CODE_BETA';
|
||||
};
|
||||
return ProbeEntry_beta;
|
||||
}()) || _class));
|
||||
cclegacy._RF.pop();
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
System.register("chunks:///_virtual/game-beta", ['./Entry2.ts'], function () {
|
||||
return {
|
||||
setters: [null],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
|
||||
(function(r) {
|
||||
r('virtual:///prerequisite-imports/game-beta', 'chunks:///_virtual/game-beta');
|
||||
})(function(mid, cid) {
|
||||
System.register(mid, [cid], function (_export, _context) {
|
||||
return {
|
||||
setters: [function(_m) {
|
||||
var _exportObj = {};
|
||||
|
||||
for (var _key in _m) {
|
||||
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
|
||||
}
|
||||
|
||||
_export(_exportObj);
|
||||
}],
|
||||
execute: function () { }
|
||||
};
|
||||
});
|
||||
});
|
||||
+256
@@ -0,0 +1,256 @@
|
||||
{
|
||||
"importBase": "import",
|
||||
"nativeBase": "native",
|
||||
"name": "internal",
|
||||
"deps": [],
|
||||
"uuids": [
|
||||
"07d3aae9f",
|
||||
"081cab31-dccd-428e-8652-f2404cc81c47",
|
||||
"14da1725-c4c2-42b4-ab08-ee0aeb6898b3",
|
||||
"17debcc3-0a6b-4b8a-b00b-dc58b885581e",
|
||||
"1c02ae6f-4492-4915-b8f8-7492a3b1e4cd",
|
||||
"1d08ef62-a503-4ce2-8b9a-46c90873f7d3",
|
||||
"50f4348b-c883-4e2f-8f11-ce233b859fa1",
|
||||
"511d2633-09a7-4bdd-ac42-f778032124b3",
|
||||
"5c601d96-e4c7-4698-991b-7ee674b11079",
|
||||
"5d45aa00-e064-4938-b314-4265f0c2258c",
|
||||
"60f7195c-ec2a-45eb-ba94-8955f60e81d0",
|
||||
"6a2d0734-bd9e-4ddf-946e-caa52498cb75",
|
||||
"711ebe11-f673-4cd9-9a83-63c60ba54c5b",
|
||||
"78e0584a-4343-4727-8f37-e14e65c2a2db",
|
||||
"810e96e4-e456-4468-9b59-f4e8f39732c0",
|
||||
"871c3b6c-7379-419d-bda3-794b239ab90d",
|
||||
"8bbdbcdd-5cd4-4100-b6d5-b7c9625b6107",
|
||||
"9361fd90-ba52-4f84-aa93-6e878fd576ca",
|
||||
"970b0598-bcb0-4714-91fb-2e81440dccd8",
|
||||
"971bdb23-3ff6-43eb-b422-1c30165a3663",
|
||||
"a3cd009f-0ab0-420d-9278-b9fdab939bbc",
|
||||
"b5d6115f-0370-4d7c-aad3-c194cc71cf98",
|
||||
"ba21476f-2866-4f81-9c4d-6e359316e448",
|
||||
"bcd64cc6-2dd9-43f6-abbe-66318d332032",
|
||||
"c0143906-9aed-447e-9436-2ae8512d1b6e",
|
||||
"c27215d8-6835-4b68-bfbb-bdeac6100c04",
|
||||
"d1346436-ac96-4271-b863-1f4fdead95b0",
|
||||
"d930590d-bb92-4cc8-8bd1-23cd027f9edf",
|
||||
"dd3a144d-ab7f-41f0-82b8-2e43a090d496",
|
||||
"e9aa9a3e-5b2b-4ac7-a2c7-073de2b2b24f",
|
||||
"efe8e2a3-eace-427b-b4f1-cb8a937ec77d",
|
||||
"f0416e68-0200-4b77-a926-4f9d16e494da",
|
||||
"f92806d7-1768-443f-afe8-12bcde84d0f0",
|
||||
"fda095cb-831d-4601-ad94-846013963de8"
|
||||
],
|
||||
"paths": {
|
||||
"60f7195c-ec2a-45eb-ba94-8955f60e81d0": [
|
||||
"db:/internal/effects/for2d/builtin-sprite",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"1c02ae6f-4492-4915-b8f8-7492a3b1e4cd": [
|
||||
"db:/internal/effects/internal/builtin-graphics",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"810e96e4-e456-4468-9b59-f4e8f39732c0": [
|
||||
"db:/internal/effects/internal/builtin-clear-stencil",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"efe8e2a3-eace-427b-b4f1-cb8a937ec77d": [
|
||||
"db:/internal/default_materials/ui-sprite-gray-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"e9aa9a3e-5b2b-4ac7-a2c7-073de2b2b24f": [
|
||||
"db:/internal/default_materials/ui-base-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"8bbdbcdd-5cd4-4100-b6d5-b7c9625b6107": [
|
||||
"db:/internal/default_materials/default-clear-stencil",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"50f4348b-c883-4e2f-8f11-ce233b859fa1": [
|
||||
"db:/internal/default_materials/ui-alpha-test-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"fda095cb-831d-4601-ad94-846013963de8": [
|
||||
"db:/internal/default_materials/ui-sprite-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"f92806d7-1768-443f-afe8-12bcde84d0f0": [
|
||||
"db:/internal/default_materials/ui-sprite-alpha-sep-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"dd3a144d-ab7f-41f0-82b8-2e43a090d496": [
|
||||
"db:/internal/default_materials/ui-sprite-gray-alpha-sep-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"f0416e68-0200-4b77-a926-4f9d16e494da": [
|
||||
"db:/internal/default_materials/ui-graphics-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"511d2633-09a7-4bdd-ac42-f778032124b3": [
|
||||
"db:/internal/effects/pipeline/skybox",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"5d45aa00-e064-4938-b314-4265f0c2258c": [
|
||||
"db:/internal/effects/pipeline/deferred-lighting",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"9361fd90-ba52-4f84-aa93-6e878fd576ca": [
|
||||
"db:/internal/effects/pipeline/planar-shadow",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"970b0598-bcb0-4714-91fb-2e81440dccd8": [
|
||||
"db:/internal/effects/util/splash-screen",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"bcd64cc6-2dd9-43f6-abbe-66318d332032": [
|
||||
"db:/internal/default_materials/missing-effect-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"d930590d-bb92-4cc8-8bd1-23cd027f9edf": [
|
||||
"db:/internal/default_materials/missing-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"a3cd009f-0ab0-420d-9278-b9fdab939bbc": [
|
||||
"db:/internal/effects/builtin-unlit",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"6a2d0734-bd9e-4ddf-946e-caa52498cb75": [
|
||||
"db:/internal/effects/pipeline/post-process/tone-mapping",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"c27215d8-6835-4b68-bfbb-bdeac6100c04": [
|
||||
"db:/internal/effects/for2d/builtin-spine",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"b5d6115f-0370-4d7c-aad3-c194cc71cf98": [
|
||||
"db:/internal/default_materials/default-spine-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"d1346436-ac96-4271-b863-1f4fdead95b0": [
|
||||
"db:/internal/effects/particles/builtin-particle",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"971bdb23-3ff6-43eb-b422-1c30165a3663": [
|
||||
"db:/internal/effects/particles/builtin-particle-gpu",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"17debcc3-0a6b-4b8a-b00b-dc58b885581e": [
|
||||
"db:/internal/effects/particles/builtin-particle-trail",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"711ebe11-f673-4cd9-9a83-63c60ba54c5b": [
|
||||
"db:/internal/effects/particles/builtin-billboard",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"c0143906-9aed-447e-9436-2ae8512d1b6e": [
|
||||
"db:/internal/default_materials/default-particle-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"14da1725-c4c2-42b4-ab08-ee0aeb6898b3": [
|
||||
"db:/internal/default_materials/default-particle-gpu-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"081cab31-dccd-428e-8652-f2404cc81c47": [
|
||||
"db:/internal/default_materials/default-trail-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"78e0584a-4343-4727-8f37-e14e65c2a2db": [
|
||||
"db:/internal/default_materials/default-billboard-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"ba21476f-2866-4f81-9c4d-6e359316e448": [
|
||||
"db:/internal/physics/default-physics-material",
|
||||
"cc.PhysicsMaterial",
|
||||
1
|
||||
],
|
||||
"871c3b6c-7379-419d-bda3-794b239ab90d": [
|
||||
"db:/internal/effects/util/profiler",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"1d08ef62-a503-4ce2-8b9a-46c90873f7d3": [
|
||||
"db:/internal/effects/legacy/terrain",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"5c601d96-e4c7-4698-991b-7ee674b11079": [
|
||||
"db:/internal/effects/pipeline/copy-pass",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
]
|
||||
},
|
||||
"scenes": {},
|
||||
"packs": {
|
||||
"07d3aae9f": [
|
||||
"081cab31-dccd-428e-8652-f2404cc81c47",
|
||||
"14da1725-c4c2-42b4-ab08-ee0aeb6898b3",
|
||||
"17debcc3-0a6b-4b8a-b00b-dc58b885581e",
|
||||
"1c02ae6f-4492-4915-b8f8-7492a3b1e4cd",
|
||||
"1d08ef62-a503-4ce2-8b9a-46c90873f7d3",
|
||||
"50f4348b-c883-4e2f-8f11-ce233b859fa1",
|
||||
"511d2633-09a7-4bdd-ac42-f778032124b3",
|
||||
"5c601d96-e4c7-4698-991b-7ee674b11079",
|
||||
"5d45aa00-e064-4938-b314-4265f0c2258c",
|
||||
"60f7195c-ec2a-45eb-ba94-8955f60e81d0",
|
||||
"6a2d0734-bd9e-4ddf-946e-caa52498cb75",
|
||||
"711ebe11-f673-4cd9-9a83-63c60ba54c5b",
|
||||
"78e0584a-4343-4727-8f37-e14e65c2a2db",
|
||||
"810e96e4-e456-4468-9b59-f4e8f39732c0",
|
||||
"871c3b6c-7379-419d-bda3-794b239ab90d",
|
||||
"8bbdbcdd-5cd4-4100-b6d5-b7c9625b6107",
|
||||
"9361fd90-ba52-4f84-aa93-6e878fd576ca",
|
||||
"970b0598-bcb0-4714-91fb-2e81440dccd8",
|
||||
"971bdb23-3ff6-43eb-b422-1c30165a3663",
|
||||
"a3cd009f-0ab0-420d-9278-b9fdab939bbc",
|
||||
"b5d6115f-0370-4d7c-aad3-c194cc71cf98",
|
||||
"ba21476f-2866-4f81-9c4d-6e359316e448",
|
||||
"bcd64cc6-2dd9-43f6-abbe-66318d332032",
|
||||
"c0143906-9aed-447e-9436-2ae8512d1b6e",
|
||||
"c27215d8-6835-4b68-bfbb-bdeac6100c04",
|
||||
"d1346436-ac96-4271-b863-1f4fdead95b0",
|
||||
"d930590d-bb92-4cc8-8bd1-23cd027f9edf",
|
||||
"dd3a144d-ab7f-41f0-82b8-2e43a090d496",
|
||||
"e9aa9a3e-5b2b-4ac7-a2c7-073de2b2b24f",
|
||||
"efe8e2a3-eace-427b-b4f1-cb8a937ec77d",
|
||||
"f0416e68-0200-4b77-a926-4f9d16e494da",
|
||||
"f92806d7-1768-443f-afe8-12bcde84d0f0",
|
||||
"fda095cb-831d-4601-ad94-846013963de8"
|
||||
]
|
||||
},
|
||||
"versions": {
|
||||
"import": [],
|
||||
"native": []
|
||||
},
|
||||
"redirect": [],
|
||||
"debug": true,
|
||||
"extensionMap": {},
|
||||
"hasPreloadScript": true,
|
||||
"dependencyRelationships": {}
|
||||
}
|
||||
+1
File diff suppressed because one or more lines are too long
+2205
File diff suppressed because it is too large
Load Diff
+46
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"importBase": "import",
|
||||
"nativeBase": "native",
|
||||
"name": "main",
|
||||
"deps": [
|
||||
"internal"
|
||||
],
|
||||
"uuids": [
|
||||
"18f06ada-9d36-485c-9f44-556d6980ca7a",
|
||||
"ba21476f-2866-4f81-9c4d-6e359316e448",
|
||||
"fd8ec536-a354-4a17-9c74-4f3883c378c8"
|
||||
],
|
||||
"paths": {
|
||||
"18f06ada-9d36-485c-9f44-556d6980ca7a": [
|
||||
"db:/assets/scenes/Probe",
|
||||
"cc.SceneAsset",
|
||||
1
|
||||
],
|
||||
"fd8ec536-a354-4a17-9c74-4f3883c378c8": [
|
||||
"db:/internal/default_renderpipeline/builtin-forward",
|
||||
"cc.RenderPipeline",
|
||||
1
|
||||
],
|
||||
"ba21476f-2866-4f81-9c4d-6e359316e448": [
|
||||
"db:/internal/physics/default-physics-material",
|
||||
"cc.PhysicsMaterial",
|
||||
1
|
||||
]
|
||||
},
|
||||
"scenes": {
|
||||
"db://assets/scenes/Probe.scene": "18f06ada-9d36-485c-9f44-556d6980ca7a"
|
||||
},
|
||||
"packs": {},
|
||||
"versions": {
|
||||
"import": [],
|
||||
"native": []
|
||||
},
|
||||
"redirect": [
|
||||
"ba21476f-2866-4f81-9c4d-6e359316e448",
|
||||
"0"
|
||||
],
|
||||
"debug": true,
|
||||
"extensionMap": {},
|
||||
"hasPreloadScript": true,
|
||||
"dependencyRelationships": {}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
[1,0,["node","_cameraComponent","scene","_parent"],[["cc.SceneAsset",["_name"],2],["cc.Scene",["_name","_children","_globals"],2,2,4],["cc.Node",["_name","_layer","_id","_children","_components","_lpos"],0,2,9,5],["cc.Node",["_name","_parent","_components","_lpos"],2,1,2,5],["cc.Camera",["_projection","_orthoHeight","_near","_far","_visibility","node","_color"],-2,1,5],["cc.UITransform",["node","_contentSize"],3,1,5],["cc.Canvas",["node","_cameraComponent"],3,1,1],["cc.Widget",["_alignFlags","_top","_bottom","node"],0,1],["cc.SceneGlobals",["ambient","shadows","_skybox","fog","octree","skin","lightProbeInfo","postSettings"],3,4,4,4,4,4,4,4,4],["cc.AmbientInfo",["_skyColorHDR"],3,5],["cc.ShadowsInfo",[],3],["cc.SkyboxInfo",[],3],["cc.FogInfo",[],3],["cc.OctreeInfo",[],3],["cc.SkinInfo",[],3],["cc.LightProbeInfo",[],3],["cc.PostSettingsInfo",[],3]],[[0,0,2],[1,0,1,2,2],[2,0,1,2,3,4,5,4],[3,0,1,2,3,2],[4,0,1,2,3,4,5,6,6],[5,0,1,1],[6,0,1,1],[7,0,1,2,3,4],[8,0,1,2,3,4,5,6,7,1],[9,0,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1]],[[0,"Probe"],[2,"Canvas",33554432,"1cgbnsENBDoLhHJwvyJnKB",[-5],[[5,-1,[5,1600,720]],[6,-3,-2],[7,45,5.684341886080802e-14,5.684341886080802e-14,-4]],[1,800,360.00000000000006,0]],[1,"TemplateRoom",[1],[8,[9,[2,0.2,0.5,0.8,0.520833125]],[10],[11],[12],[13],[14],[15],[16]]],[3,"Camera",1,[-6],[1,0,0,1000]],[4,0,360,0,2000,1108344832,3,[4,4278190080]]],0,[0,0,1,0,1,4,0,0,1,0,0,1,0,-1,3,0,-1,4,0,2,2,1,3,2,6],[],[],[]]
|
||||
+1
@@ -0,0 +1 @@
|
||||
[1,0,0,[["RenderQueueDesc",["stages","isTransparent","sortMode"],0],["ForwardPipeline",["_flows"],3,9],["ShadowFlow",["_name","_stages"],2,9],["ShadowStage",["_name"],2],["ForwardFlow",["_name","_priority","_stages"],1,9],["ForwardStage",["_name","renderQueues"],2,9]],[[1,0,1],[2,0,1,2],[3,0,2],[4,0,1,2,3],[5,0,1,2],[0,0,2],[0,1,2,0,4]],[[0,[[1,"ShadowFlow",[[2,"ShadowStage"]]],[3,"ForwardFlow",1,[[4,"ForwardStage",[[5,["default"]],[6,true,1,["default"]]]]]]]]],0,0,[],[],[]]
|
||||
@@ -0,0 +1,119 @@
|
||||
System.register("chunks:///_virtual/Boot.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function () {
|
||||
var _asyncToGenerator, _regeneratorRuntime, cclegacy, director, Director, instantiate, js, Prefab, TextAsset, assetManager;
|
||||
return {
|
||||
setters: [function (module) {
|
||||
_asyncToGenerator = module.asyncToGenerator;
|
||||
_regeneratorRuntime = module.regeneratorRuntime;
|
||||
}, function (module) {
|
||||
cclegacy = module.cclegacy;
|
||||
director = module.director;
|
||||
Director = module.Director;
|
||||
instantiate = module.instantiate;
|
||||
js = module.js;
|
||||
Prefab = module.Prefab;
|
||||
TextAsset = module.TextAsset;
|
||||
assetManager = module.assetManager;
|
||||
}],
|
||||
execute: function () {
|
||||
cclegacy._RF.push({}, "d3a6crOBwVLlLjTY3gqQ3kp", "Boot", undefined);
|
||||
director.once(Director.EVENT_AFTER_SCENE_LAUNCH, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
||||
var report, target, bundle, entry, text, prefab, node;
|
||||
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
report = {
|
||||
ok: false,
|
||||
requests: []
|
||||
};
|
||||
globalThis.__probe = report;
|
||||
_context.prev = 2;
|
||||
_context.next = 5;
|
||||
return fetch('./target.json').then(function (r) {
|
||||
if (!r.ok) throw Error('target missing');
|
||||
return r.json();
|
||||
});
|
||||
case 5:
|
||||
target = _context.sent;
|
||||
report.selected = target.bundle;
|
||||
_context.next = 9;
|
||||
return new Promise(function (resolve, reject) {
|
||||
return assetManager.loadBundle(target.bundle, function (e, b) {
|
||||
return e ? reject(e) : resolve(b);
|
||||
});
|
||||
});
|
||||
case 9:
|
||||
bundle = _context.sent;
|
||||
entry = js.getClassByName(target.entry);
|
||||
if (entry) {
|
||||
_context.next = 13;
|
||||
break;
|
||||
}
|
||||
throw Error('entry missing');
|
||||
case 13:
|
||||
report.code = entry.run();
|
||||
_context.next = 16;
|
||||
return new Promise(function (resolve, reject) {
|
||||
return bundle.load('private', TextAsset, function (e, a) {
|
||||
return e ? reject(e) : resolve(a);
|
||||
});
|
||||
});
|
||||
case 16:
|
||||
text = _context.sent;
|
||||
report.text = text.text;
|
||||
_context.next = 20;
|
||||
return new Promise(function (resolve, reject) {
|
||||
return bundle.load('View', Prefab, function (e, a) {
|
||||
return e ? reject(e) : resolve(a);
|
||||
});
|
||||
});
|
||||
case 20:
|
||||
prefab = _context.sent;
|
||||
node = instantiate(prefab);
|
||||
node.parent = director.getScene();
|
||||
report.prefab = node.name;
|
||||
report.otherRegistered = !!js.getClassByName(target.otherEntry);
|
||||
report.ok = true;
|
||||
_context.next = 31;
|
||||
break;
|
||||
case 28:
|
||||
_context.prev = 28;
|
||||
_context.t0 = _context["catch"](2);
|
||||
report.error = String(_context.t0);
|
||||
case 31:
|
||||
console.log('PROBE_RESULT', JSON.stringify(report));
|
||||
case 32:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee, null, [[2, 28]]);
|
||||
})));
|
||||
cclegacy._RF.pop();
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
System.register("chunks:///_virtual/main", ['./Boot.ts'], function () {
|
||||
return {
|
||||
setters: [null],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
|
||||
(function(r) {
|
||||
r('virtual:///prerequisite-imports/main', 'chunks:///_virtual/main');
|
||||
})(function(mid, cid) {
|
||||
System.register(mid, [cid], function (_export, _context) {
|
||||
return {
|
||||
setters: [function(_m) {
|
||||
var _exportObj = {};
|
||||
|
||||
for (var _key in _m) {
|
||||
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
|
||||
}
|
||||
|
||||
_export(_exportObj);
|
||||
}],
|
||||
execute: function () { }
|
||||
};
|
||||
});
|
||||
});
|
||||
+156248
File diff suppressed because one or more lines are too long
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+72
File diff suppressed because one or more lines are too long
+2037
File diff suppressed because it is too large
Load Diff
+10
@@ -0,0 +1,10 @@
|
||||
System.register([], (function (exports, module) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: (function () {
|
||||
|
||||
var bullet_release_wasm = exports("default", 'assets/bullet.release.wasm-BIzkn7bF.wasm'); /* asset-hash:effe0a64 */
|
||||
|
||||
})
|
||||
};
|
||||
}));
|
||||
File diff suppressed because one or more lines are too long
+10
@@ -0,0 +1,10 @@
|
||||
System.register([], (function (exports, module) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: (function () {
|
||||
|
||||
var spine = exports("default", 'assets/spine-CC34fKUR.wasm'); /* asset-hash:b3d705bd */
|
||||
|
||||
})
|
||||
};
|
||||
}));
|
||||
+90
File diff suppressed because one or more lines are too long
+10
@@ -0,0 +1,10 @@
|
||||
System.register([], (function (exports, module) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: (function () {
|
||||
|
||||
var spine_js = exports("default", 'assets/spine.js.mem-pbmhlDdv.bin'); /* asset-hash:7a22a126 */
|
||||
|
||||
})
|
||||
};
|
||||
}));
|
||||
+1239
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,64 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>Cocos Creator | BundleProbe</title>
|
||||
|
||||
<!--http://www.html5rocks.com/en/mobile/mobifying/-->
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui=true"/>
|
||||
|
||||
<!--https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html-->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
|
||||
<!-- force webkit on 360 -->
|
||||
<meta name="renderer" content="webkit"/>
|
||||
<meta name="force-rendering" content="webkit"/>
|
||||
<!-- force edge on IE -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||||
<meta name="msapplication-tap-highlight" content="no">
|
||||
|
||||
<!-- force full screen on some browser -->
|
||||
<meta name="full-screen" content="yes"/>
|
||||
<meta name="x5-fullscreen" content="true"/>
|
||||
<meta name="360-fullscreen" content="true"/>
|
||||
|
||||
<!--fix fireball/issues/3568 -->
|
||||
<!--<meta name="browsermode" content="application">-->
|
||||
<meta name="x5-page-mode" content="app">
|
||||
|
||||
<!--<link rel="apple-touch-icon" href=".png" />-->
|
||||
<!--<link rel="apple-touch-icon-precomposed" href=".png" />-->
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="style.css"/>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="GameDiv" cc_exact_fit_screen="true">
|
||||
<div id="Cocos3dGameContainer">
|
||||
<canvas id="GameCanvas" oncontextmenu="event.preventDefault()" tabindex="99"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Polyfills bundle. -->
|
||||
|
||||
<script src="src/polyfills.bundle.js" charset="utf-8"> </script>
|
||||
|
||||
|
||||
<!-- SystemJS support. -->
|
||||
<script src="src/system.bundle.js" charset="utf-8"> </script>
|
||||
|
||||
<!-- Import map -->
|
||||
<script src="src/import-map.json" type="systemjs-importmap" charset="utf-8"> </script>
|
||||
|
||||
<script>
|
||||
System.import('./index.js').catch(function(err) { console.error(err); })
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,28 @@
|
||||
System.register(["./application.js"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var Application, canvas, $p, bcr, application;
|
||||
function topLevelImport(url) {
|
||||
return System["import"](url);
|
||||
}
|
||||
return {
|
||||
setters: [function (_applicationJs) {
|
||||
Application = _applicationJs.Application;
|
||||
}],
|
||||
execute: function () {
|
||||
canvas = document.getElementById('GameCanvas');
|
||||
$p = canvas.parentElement;
|
||||
bcr = $p.getBoundingClientRect();
|
||||
canvas.width = bcr.width;
|
||||
canvas.height = bcr.height;
|
||||
application = new Application();
|
||||
topLevelImport('cc').then(function (engine) {
|
||||
return application.init(engine);
|
||||
}).then(function () {
|
||||
return application.start();
|
||||
})["catch"](function (err) {
|
||||
console.error(err);
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"bundles": [
|
||||
"internal",
|
||||
"main",
|
||||
"game-alpha",
|
||||
"game-beta"
|
||||
],
|
||||
"options": [
|
||||
{
|
||||
"root": "22700432-1627-4047-b68f-cf933b98a1aa",
|
||||
"name": "game-alpha",
|
||||
"output": true
|
||||
},
|
||||
{
|
||||
"root": "eeab1f81-53b9-403e-9156-868659afb945",
|
||||
"name": "game-beta",
|
||||
"output": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,468 @@
|
||||
System.register([], function(_export, _context) { return { execute: function () {
|
||||
System.register("chunks:///_virtual/rollupPluginModLoBabelHelpers.js", [], function (exports) {
|
||||
return {
|
||||
execute: function () {
|
||||
exports({
|
||||
applyDecoratedDescriptor: _applyDecoratedDescriptor,
|
||||
arrayLikeToArray: _arrayLikeToArray,
|
||||
assertThisInitialized: _assertThisInitialized,
|
||||
asyncToGenerator: _asyncToGenerator,
|
||||
createClass: _createClass,
|
||||
createForOfIteratorHelperLoose: _createForOfIteratorHelperLoose,
|
||||
inheritsLoose: _inheritsLoose,
|
||||
initializerDefineProperty: _initializerDefineProperty,
|
||||
regeneratorRuntime: _regeneratorRuntime,
|
||||
setPrototypeOf: _setPrototypeOf,
|
||||
toPrimitive: _toPrimitive,
|
||||
toPropertyKey: _toPropertyKey,
|
||||
unsupportedIterableToArray: _unsupportedIterableToArray
|
||||
});
|
||||
function _regeneratorRuntime() {
|
||||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||||
_regeneratorRuntime = exports('regeneratorRuntime', function () {
|
||||
return e;
|
||||
});
|
||||
var t,
|
||||
e = {},
|
||||
r = Object.prototype,
|
||||
n = r.hasOwnProperty,
|
||||
o = Object.defineProperty || function (t, e, r) {
|
||||
t[e] = r.value;
|
||||
},
|
||||
i = "function" == typeof Symbol ? Symbol : {},
|
||||
a = i.iterator || "@@iterator",
|
||||
c = i.asyncIterator || "@@asyncIterator",
|
||||
u = i.toStringTag || "@@toStringTag";
|
||||
function define(t, e, r) {
|
||||
return Object.defineProperty(t, e, {
|
||||
value: r,
|
||||
enumerable: !0,
|
||||
configurable: !0,
|
||||
writable: !0
|
||||
}), t[e];
|
||||
}
|
||||
try {
|
||||
define({}, "");
|
||||
} catch (t) {
|
||||
define = function (t, e, r) {
|
||||
return t[e] = r;
|
||||
};
|
||||
}
|
||||
function wrap(t, e, r, n) {
|
||||
var i = e && e.prototype instanceof Generator ? e : Generator,
|
||||
a = Object.create(i.prototype),
|
||||
c = new Context(n || []);
|
||||
return o(a, "_invoke", {
|
||||
value: makeInvokeMethod(t, r, c)
|
||||
}), a;
|
||||
}
|
||||
function tryCatch(t, e, r) {
|
||||
try {
|
||||
return {
|
||||
type: "normal",
|
||||
arg: t.call(e, r)
|
||||
};
|
||||
} catch (t) {
|
||||
return {
|
||||
type: "throw",
|
||||
arg: t
|
||||
};
|
||||
}
|
||||
}
|
||||
e.wrap = wrap;
|
||||
var h = "suspendedStart",
|
||||
l = "suspendedYield",
|
||||
f = "executing",
|
||||
s = "completed",
|
||||
y = {};
|
||||
function Generator() {}
|
||||
function GeneratorFunction() {}
|
||||
function GeneratorFunctionPrototype() {}
|
||||
var p = {};
|
||||
define(p, a, function () {
|
||||
return this;
|
||||
});
|
||||
var d = Object.getPrototypeOf,
|
||||
v = d && d(d(values([])));
|
||||
v && v !== r && n.call(v, a) && (p = v);
|
||||
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
||||
function defineIteratorMethods(t) {
|
||||
["next", "throw", "return"].forEach(function (e) {
|
||||
define(t, e, function (t) {
|
||||
return this._invoke(e, t);
|
||||
});
|
||||
});
|
||||
}
|
||||
function AsyncIterator(t, e) {
|
||||
function invoke(r, o, i, a) {
|
||||
var c = tryCatch(t[r], t, o);
|
||||
if ("throw" !== c.type) {
|
||||
var u = c.arg,
|
||||
h = u.value;
|
||||
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
||||
invoke("next", t, i, a);
|
||||
}, function (t) {
|
||||
invoke("throw", t, i, a);
|
||||
}) : e.resolve(h).then(function (t) {
|
||||
u.value = t, i(u);
|
||||
}, function (t) {
|
||||
return invoke("throw", t, i, a);
|
||||
});
|
||||
}
|
||||
a(c.arg);
|
||||
}
|
||||
var r;
|
||||
o(this, "_invoke", {
|
||||
value: function (t, n) {
|
||||
function callInvokeWithMethodAndArg() {
|
||||
return new e(function (e, r) {
|
||||
invoke(t, n, e, r);
|
||||
});
|
||||
}
|
||||
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
||||
}
|
||||
});
|
||||
}
|
||||
function makeInvokeMethod(e, r, n) {
|
||||
var o = h;
|
||||
return function (i, a) {
|
||||
if (o === f) throw new Error("Generator is already running");
|
||||
if (o === s) {
|
||||
if ("throw" === i) throw a;
|
||||
return {
|
||||
value: t,
|
||||
done: !0
|
||||
};
|
||||
}
|
||||
for (n.method = i, n.arg = a;;) {
|
||||
var c = n.delegate;
|
||||
if (c) {
|
||||
var u = maybeInvokeDelegate(c, n);
|
||||
if (u) {
|
||||
if (u === y) continue;
|
||||
return u;
|
||||
}
|
||||
}
|
||||
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
||||
if (o === h) throw o = s, n.arg;
|
||||
n.dispatchException(n.arg);
|
||||
} else "return" === n.method && n.abrupt("return", n.arg);
|
||||
o = f;
|
||||
var p = tryCatch(e, r, n);
|
||||
if ("normal" === p.type) {
|
||||
if (o = n.done ? s : l, p.arg === y) continue;
|
||||
return {
|
||||
value: p.arg,
|
||||
done: n.done
|
||||
};
|
||||
}
|
||||
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
||||
}
|
||||
};
|
||||
}
|
||||
function maybeInvokeDelegate(e, r) {
|
||||
var n = r.method,
|
||||
o = e.iterator[n];
|
||||
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
||||
var i = tryCatch(o, e.iterator, r.arg);
|
||||
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
||||
var a = i.arg;
|
||||
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
||||
}
|
||||
function pushTryEntry(t) {
|
||||
var e = {
|
||||
tryLoc: t[0]
|
||||
};
|
||||
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
||||
}
|
||||
function resetTryEntry(t) {
|
||||
var e = t.completion || {};
|
||||
e.type = "normal", delete e.arg, t.completion = e;
|
||||
}
|
||||
function Context(t) {
|
||||
this.tryEntries = [{
|
||||
tryLoc: "root"
|
||||
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
||||
}
|
||||
function values(e) {
|
||||
if (e || "" === e) {
|
||||
var r = e[a];
|
||||
if (r) return r.call(e);
|
||||
if ("function" == typeof e.next) return e;
|
||||
if (!isNaN(e.length)) {
|
||||
var o = -1,
|
||||
i = function next() {
|
||||
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
||||
return next.value = t, next.done = !0, next;
|
||||
};
|
||||
return i.next = i;
|
||||
}
|
||||
}
|
||||
throw new TypeError(typeof e + " is not iterable");
|
||||
}
|
||||
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
||||
value: GeneratorFunctionPrototype,
|
||||
configurable: !0
|
||||
}), o(GeneratorFunctionPrototype, "constructor", {
|
||||
value: GeneratorFunction,
|
||||
configurable: !0
|
||||
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
||||
var e = "function" == typeof t && t.constructor;
|
||||
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
||||
}, e.mark = function (t) {
|
||||
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
||||
}, e.awrap = function (t) {
|
||||
return {
|
||||
__await: t
|
||||
};
|
||||
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
||||
return this;
|
||||
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
||||
void 0 === i && (i = Promise);
|
||||
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
||||
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
||||
return t.done ? t.value : a.next();
|
||||
});
|
||||
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
||||
return this;
|
||||
}), define(g, "toString", function () {
|
||||
return "[object Generator]";
|
||||
}), e.keys = function (t) {
|
||||
var e = Object(t),
|
||||
r = [];
|
||||
for (var n in e) r.push(n);
|
||||
return r.reverse(), function next() {
|
||||
for (; r.length;) {
|
||||
var t = r.pop();
|
||||
if (t in e) return next.value = t, next.done = !1, next;
|
||||
}
|
||||
return next.done = !0, next;
|
||||
};
|
||||
}, e.values = values, Context.prototype = {
|
||||
constructor: Context,
|
||||
reset: function (e) {
|
||||
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
||||
},
|
||||
stop: function () {
|
||||
this.done = !0;
|
||||
var t = this.tryEntries[0].completion;
|
||||
if ("throw" === t.type) throw t.arg;
|
||||
return this.rval;
|
||||
},
|
||||
dispatchException: function (e) {
|
||||
if (this.done) throw e;
|
||||
var r = this;
|
||||
function handle(n, o) {
|
||||
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
||||
}
|
||||
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
||||
var i = this.tryEntries[o],
|
||||
a = i.completion;
|
||||
if ("root" === i.tryLoc) return handle("end");
|
||||
if (i.tryLoc <= this.prev) {
|
||||
var c = n.call(i, "catchLoc"),
|
||||
u = n.call(i, "finallyLoc");
|
||||
if (c && u) {
|
||||
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
||||
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
||||
} else if (c) {
|
||||
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
||||
} else {
|
||||
if (!u) throw new Error("try statement without catch or finally");
|
||||
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
abrupt: function (t, e) {
|
||||
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
||||
var o = this.tryEntries[r];
|
||||
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
||||
var i = o;
|
||||
break;
|
||||
}
|
||||
}
|
||||
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
||||
var a = i ? i.completion : {};
|
||||
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
||||
},
|
||||
complete: function (t, e) {
|
||||
if ("throw" === t.type) throw t.arg;
|
||||
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
||||
},
|
||||
finish: function (t) {
|
||||
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
||||
var r = this.tryEntries[e];
|
||||
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
||||
}
|
||||
},
|
||||
catch: function (t) {
|
||||
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
||||
var r = this.tryEntries[e];
|
||||
if (r.tryLoc === t) {
|
||||
var n = r.completion;
|
||||
if ("throw" === n.type) {
|
||||
var o = n.arg;
|
||||
resetTryEntry(r);
|
||||
}
|
||||
return o;
|
||||
}
|
||||
}
|
||||
throw new Error("illegal catch attempt");
|
||||
},
|
||||
delegateYield: function (e, r, n) {
|
||||
return this.delegate = {
|
||||
iterator: values(e),
|
||||
resultName: r,
|
||||
nextLoc: n
|
||||
}, "next" === this.method && (this.arg = t), y;
|
||||
}
|
||||
}, e;
|
||||
}
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
||||
try {
|
||||
var info = gen[key](arg);
|
||||
var value = info.value;
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
return;
|
||||
}
|
||||
if (info.done) {
|
||||
resolve(value);
|
||||
} else {
|
||||
Promise.resolve(value).then(_next, _throw);
|
||||
}
|
||||
}
|
||||
function _asyncToGenerator(fn) {
|
||||
return function () {
|
||||
var self = this,
|
||||
args = arguments;
|
||||
return new Promise(function (resolve, reject) {
|
||||
var gen = fn.apply(self, args);
|
||||
function _next(value) {
|
||||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
||||
}
|
||||
function _throw(err) {
|
||||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
||||
}
|
||||
_next(undefined);
|
||||
});
|
||||
};
|
||||
}
|
||||
function _defineProperties(target, props) {
|
||||
for (var i = 0; i < props.length; i++) {
|
||||
var descriptor = props[i];
|
||||
descriptor.enumerable = descriptor.enumerable || false;
|
||||
descriptor.configurable = true;
|
||||
if ("value" in descriptor) descriptor.writable = true;
|
||||
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
||||
}
|
||||
}
|
||||
function _createClass(Constructor, protoProps, staticProps) {
|
||||
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||
Object.defineProperty(Constructor, "prototype", {
|
||||
writable: false
|
||||
});
|
||||
return Constructor;
|
||||
}
|
||||
function _inheritsLoose(subClass, superClass) {
|
||||
subClass.prototype = Object.create(superClass.prototype);
|
||||
subClass.prototype.constructor = subClass;
|
||||
_setPrototypeOf(subClass, superClass);
|
||||
}
|
||||
function _setPrototypeOf(o, p) {
|
||||
_setPrototypeOf = exports('setPrototypeOf', Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
||||
o.__proto__ = p;
|
||||
return o;
|
||||
});
|
||||
return _setPrototypeOf(o, p);
|
||||
}
|
||||
function _assertThisInitialized(self) {
|
||||
if (self === void 0) {
|
||||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
}
|
||||
return self;
|
||||
}
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(o);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
||||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
||||
if (it) return (it = it.call(o)).next.bind(it);
|
||||
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
||||
if (it) o = it;
|
||||
var i = 0;
|
||||
return function () {
|
||||
if (i >= o.length) return {
|
||||
done: true
|
||||
};
|
||||
return {
|
||||
done: false,
|
||||
value: o[i++]
|
||||
};
|
||||
};
|
||||
}
|
||||
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
function _toPrimitive(input, hint) {
|
||||
if (typeof input !== "object" || input === null) return input;
|
||||
var prim = input[Symbol.toPrimitive];
|
||||
if (prim !== undefined) {
|
||||
var res = prim.call(input, hint || "default");
|
||||
if (typeof res !== "object") return res;
|
||||
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||||
}
|
||||
return (hint === "string" ? String : Number)(input);
|
||||
}
|
||||
function _toPropertyKey(arg) {
|
||||
var key = _toPrimitive(arg, "string");
|
||||
return typeof key === "symbol" ? key : String(key);
|
||||
}
|
||||
function _initializerDefineProperty(target, property, descriptor, context) {
|
||||
if (!descriptor) return;
|
||||
Object.defineProperty(target, property, {
|
||||
enumerable: descriptor.enumerable,
|
||||
configurable: descriptor.configurable,
|
||||
writable: descriptor.writable,
|
||||
value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
|
||||
});
|
||||
}
|
||||
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
|
||||
var desc = {};
|
||||
Object.keys(descriptor).forEach(function (key) {
|
||||
desc[key] = descriptor[key];
|
||||
});
|
||||
desc.enumerable = !!desc.enumerable;
|
||||
desc.configurable = !!desc.configurable;
|
||||
if ('value' in desc || desc.initializer) {
|
||||
desc.writable = true;
|
||||
}
|
||||
desc = decorators.slice().reverse().reduce(function (desc, decorator) {
|
||||
return decorator(target, property, desc) || desc;
|
||||
}, desc);
|
||||
if (context && desc.initializer !== void 0) {
|
||||
desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
|
||||
desc.initializer = undefined;
|
||||
}
|
||||
if (desc.initializer === void 0) {
|
||||
Object.defineProperty(target, property, desc);
|
||||
desc = null;
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
} }; });
|
||||
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"imports": {
|
||||
"cc": "./../cocos-js/cc.js"
|
||||
}
|
||||
}
|
||||
+1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1121
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,61 @@
|
||||
html {
|
||||
-ms-touch-action: none;
|
||||
}
|
||||
|
||||
body, canvas, div {
|
||||
display: block;
|
||||
outline: none;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
|
||||
user-select: none;
|
||||
-moz-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
/* Remove spin of input type number */
|
||||
input::-webkit-outer-spin-button,
|
||||
input::-webkit-inner-spin-button {
|
||||
/* display: none; <- Crashes Chrome on hover */
|
||||
-webkit-appearance: none;
|
||||
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
|
||||
}
|
||||
|
||||
body {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
|
||||
cursor: default;
|
||||
color: #888;
|
||||
background-color: #333;
|
||||
|
||||
text-align: center;
|
||||
font-family: Helvetica, Verdana, Arial, sans-serif;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
canvas {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
#GameDiv, #Cocos3dGameContainer, #GameCanvas {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
:root {
|
||||
--safe-top: env(safe-area-inset-top);
|
||||
--safe-right: env(safe-area-inset-right);
|
||||
--safe-bottom: env(safe-area-inset-bottom);
|
||||
--safe-left: env(safe-area-inset-left);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"bundle":"game-alpha","entry":"ProbeEntry_alpha","otherEntry":"ProbeEntry_beta"}
|
||||
@@ -0,0 +1,61 @@
|
||||
System.register([], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var cc, Application;
|
||||
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
||||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
||||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
||||
return {
|
||||
setters: [],
|
||||
execute: function () {
|
||||
_export("Application", Application = /*#__PURE__*/function () {
|
||||
function Application() {
|
||||
_classCallCheck(this, Application);
|
||||
this.settingsPath = 'src/settings.json';
|
||||
this.showFPS = true;
|
||||
}
|
||||
_createClass(Application, [{
|
||||
key: "init",
|
||||
value: function init(engine) {
|
||||
cc = engine;
|
||||
cc.game.onPostBaseInitDelegate.add(this.onPostInitBase.bind(this));
|
||||
cc.game.onPostSubsystemInitDelegate.add(this.onPostSystemInit.bind(this));
|
||||
}
|
||||
}, {
|
||||
key: "onPostInitBase",
|
||||
value: function onPostInitBase() {
|
||||
// cc.settings.overrideSettings('assets', 'server', '');
|
||||
// do custom logic
|
||||
}
|
||||
}, {
|
||||
key: "onPostSystemInit",
|
||||
value: function onPostSystemInit() {
|
||||
// do custom logic
|
||||
}
|
||||
}, {
|
||||
key: "start",
|
||||
value: function start() {
|
||||
return cc.game.init({
|
||||
debugMode: true ? cc.DebugMode.INFO : cc.DebugMode.ERROR,
|
||||
settingsPath: this.settingsPath,
|
||||
overrideSettings: {
|
||||
// assets: {
|
||||
// preloadBundles: [{ bundle: 'main', version: 'xxx' }],
|
||||
// }
|
||||
profiling: {
|
||||
showFPS: this.showFPS
|
||||
}
|
||||
}
|
||||
}).then(function () {
|
||||
return cc.game.run();
|
||||
});
|
||||
}
|
||||
}]);
|
||||
return Application;
|
||||
}());
|
||||
}
|
||||
};
|
||||
});
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"importBase": "import",
|
||||
"nativeBase": "native",
|
||||
"name": "game-alpha",
|
||||
"deps": [],
|
||||
"uuids": [
|
||||
"4e0d204d-96ce-48b8-b976-7432279319f2",
|
||||
"cf1f8ff4-e394-4c08-acab-f14eabe1871f"
|
||||
],
|
||||
"paths": {
|
||||
"cf1f8ff4-e394-4c08-acab-f14eabe1871f": [
|
||||
"private",
|
||||
"cc.TextAsset",
|
||||
1
|
||||
],
|
||||
"4e0d204d-96ce-48b8-b976-7432279319f2": [
|
||||
"View",
|
||||
"cc.Prefab",
|
||||
1
|
||||
]
|
||||
},
|
||||
"scenes": {},
|
||||
"packs": {},
|
||||
"versions": {
|
||||
"import": [],
|
||||
"native": []
|
||||
},
|
||||
"redirect": [],
|
||||
"debug": true,
|
||||
"extensionMap": {},
|
||||
"hasPreloadScript": true,
|
||||
"dependencyRelationships": {}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
[1,0,["node","root","data"],[["cc.Prefab",["_name"],2],["cc.Node",["_name","_layer","_components","_prefab","_lpos"],1,9,4,5],["cc.UITransform",["node","__prefab","_contentSize","_anchorPoint"],3,1,4,5,5],["cc.CompPrefabInfo",["fileId"],2],["cc.Label",["_string","_horizontalAlign","_verticalAlign","_actualFontSize","_fontSize","_lineHeight","_overflow","node","__prefab","_color"],-4,1,4,5],["cc.PrefabInfo",["fileId","instance","targetOverrides","nestedPrefabInstanceRoots","root","asset"],-1,1,1]],[[3,0,2],[0,0,2],[1,0,1,2,3,4,3],[2,0,1,2,3,1],[4,0,1,2,3,4,5,6,7,8,9,8],[5,0,1,2,3,4,5,5]],[[1,"View"],[2,"View",33554432,[[3,-2,[0,"JYB5ndvc0hWZFdTsDPujQg"],[5,371,22.680000000000003],[0,0,1]],[4,"资料文字",0,0,18.975,18,18,3,-3,[0,"wX+Ww4pBz/TnLcrPEXSuAA"],[4,4278190080]]],[5,"Pn6tcB1uaJ1EOUf2nLgpzw",null,null,null,-1,0],[1,10,0,0]]],0,[0,1,1,0,0,1,0,0,1,0,2,1,3],[],[],[]]
|
||||
+1
@@ -0,0 +1 @@
|
||||
[1,0,0,[["cc.TextAsset",["_name","text"],1]],[[0,0,1,3]],[[0,"private","PRIVATE_RESOURCE_ALPHA"]],0,0,[],[],[]]
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
System.register("chunks:///_virtual/Entry.ts", ['cc'], function (exports) {
|
||||
var cclegacy, _decorator;
|
||||
return {
|
||||
setters: [function (module) {
|
||||
cclegacy = module.cclegacy;
|
||||
_decorator = module._decorator;
|
||||
}],
|
||||
execute: function () {
|
||||
var _dec, _class;
|
||||
cclegacy._RF.push({}, "34050VwvZJJLLqkmTAadrS3", "Entry", undefined);
|
||||
var ProbeEntry_alpha = exports('ProbeEntry_alpha', (_dec = _decorator.ccclass('ProbeEntry_alpha'), _dec(_class = /*#__PURE__*/function () {
|
||||
function ProbeEntry_alpha() {}
|
||||
ProbeEntry_alpha.run = function run() {
|
||||
return 'PRIVATE_CODE_ALPHA';
|
||||
};
|
||||
return ProbeEntry_alpha;
|
||||
}()) || _class));
|
||||
cclegacy._RF.pop();
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
System.register("chunks:///_virtual/game-alpha", ['./Entry.ts'], function () {
|
||||
return {
|
||||
setters: [null],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
|
||||
(function(r) {
|
||||
r('virtual:///prerequisite-imports/game-alpha', 'chunks:///_virtual/game-alpha');
|
||||
})(function(mid, cid) {
|
||||
System.register(mid, [cid], function (_export, _context) {
|
||||
return {
|
||||
setters: [function(_m) {
|
||||
var _exportObj = {};
|
||||
|
||||
for (var _key in _m) {
|
||||
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
|
||||
}
|
||||
|
||||
_export(_exportObj);
|
||||
}],
|
||||
execute: function () { }
|
||||
};
|
||||
});
|
||||
});
|
||||
+256
@@ -0,0 +1,256 @@
|
||||
{
|
||||
"importBase": "import",
|
||||
"nativeBase": "native",
|
||||
"name": "internal",
|
||||
"deps": [],
|
||||
"uuids": [
|
||||
"07d3aae9f",
|
||||
"081cab31-dccd-428e-8652-f2404cc81c47",
|
||||
"14da1725-c4c2-42b4-ab08-ee0aeb6898b3",
|
||||
"17debcc3-0a6b-4b8a-b00b-dc58b885581e",
|
||||
"1c02ae6f-4492-4915-b8f8-7492a3b1e4cd",
|
||||
"1d08ef62-a503-4ce2-8b9a-46c90873f7d3",
|
||||
"50f4348b-c883-4e2f-8f11-ce233b859fa1",
|
||||
"511d2633-09a7-4bdd-ac42-f778032124b3",
|
||||
"5c601d96-e4c7-4698-991b-7ee674b11079",
|
||||
"5d45aa00-e064-4938-b314-4265f0c2258c",
|
||||
"60f7195c-ec2a-45eb-ba94-8955f60e81d0",
|
||||
"6a2d0734-bd9e-4ddf-946e-caa52498cb75",
|
||||
"711ebe11-f673-4cd9-9a83-63c60ba54c5b",
|
||||
"78e0584a-4343-4727-8f37-e14e65c2a2db",
|
||||
"810e96e4-e456-4468-9b59-f4e8f39732c0",
|
||||
"871c3b6c-7379-419d-bda3-794b239ab90d",
|
||||
"8bbdbcdd-5cd4-4100-b6d5-b7c9625b6107",
|
||||
"9361fd90-ba52-4f84-aa93-6e878fd576ca",
|
||||
"970b0598-bcb0-4714-91fb-2e81440dccd8",
|
||||
"971bdb23-3ff6-43eb-b422-1c30165a3663",
|
||||
"a3cd009f-0ab0-420d-9278-b9fdab939bbc",
|
||||
"b5d6115f-0370-4d7c-aad3-c194cc71cf98",
|
||||
"ba21476f-2866-4f81-9c4d-6e359316e448",
|
||||
"bcd64cc6-2dd9-43f6-abbe-66318d332032",
|
||||
"c0143906-9aed-447e-9436-2ae8512d1b6e",
|
||||
"c27215d8-6835-4b68-bfbb-bdeac6100c04",
|
||||
"d1346436-ac96-4271-b863-1f4fdead95b0",
|
||||
"d930590d-bb92-4cc8-8bd1-23cd027f9edf",
|
||||
"dd3a144d-ab7f-41f0-82b8-2e43a090d496",
|
||||
"e9aa9a3e-5b2b-4ac7-a2c7-073de2b2b24f",
|
||||
"efe8e2a3-eace-427b-b4f1-cb8a937ec77d",
|
||||
"f0416e68-0200-4b77-a926-4f9d16e494da",
|
||||
"f92806d7-1768-443f-afe8-12bcde84d0f0",
|
||||
"fda095cb-831d-4601-ad94-846013963de8"
|
||||
],
|
||||
"paths": {
|
||||
"60f7195c-ec2a-45eb-ba94-8955f60e81d0": [
|
||||
"db:/internal/effects/for2d/builtin-sprite",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"1c02ae6f-4492-4915-b8f8-7492a3b1e4cd": [
|
||||
"db:/internal/effects/internal/builtin-graphics",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"810e96e4-e456-4468-9b59-f4e8f39732c0": [
|
||||
"db:/internal/effects/internal/builtin-clear-stencil",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"efe8e2a3-eace-427b-b4f1-cb8a937ec77d": [
|
||||
"db:/internal/default_materials/ui-sprite-gray-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"e9aa9a3e-5b2b-4ac7-a2c7-073de2b2b24f": [
|
||||
"db:/internal/default_materials/ui-base-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"8bbdbcdd-5cd4-4100-b6d5-b7c9625b6107": [
|
||||
"db:/internal/default_materials/default-clear-stencil",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"50f4348b-c883-4e2f-8f11-ce233b859fa1": [
|
||||
"db:/internal/default_materials/ui-alpha-test-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"fda095cb-831d-4601-ad94-846013963de8": [
|
||||
"db:/internal/default_materials/ui-sprite-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"f92806d7-1768-443f-afe8-12bcde84d0f0": [
|
||||
"db:/internal/default_materials/ui-sprite-alpha-sep-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"dd3a144d-ab7f-41f0-82b8-2e43a090d496": [
|
||||
"db:/internal/default_materials/ui-sprite-gray-alpha-sep-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"f0416e68-0200-4b77-a926-4f9d16e494da": [
|
||||
"db:/internal/default_materials/ui-graphics-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"511d2633-09a7-4bdd-ac42-f778032124b3": [
|
||||
"db:/internal/effects/pipeline/skybox",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"5d45aa00-e064-4938-b314-4265f0c2258c": [
|
||||
"db:/internal/effects/pipeline/deferred-lighting",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"9361fd90-ba52-4f84-aa93-6e878fd576ca": [
|
||||
"db:/internal/effects/pipeline/planar-shadow",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"970b0598-bcb0-4714-91fb-2e81440dccd8": [
|
||||
"db:/internal/effects/util/splash-screen",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"bcd64cc6-2dd9-43f6-abbe-66318d332032": [
|
||||
"db:/internal/default_materials/missing-effect-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"d930590d-bb92-4cc8-8bd1-23cd027f9edf": [
|
||||
"db:/internal/default_materials/missing-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"a3cd009f-0ab0-420d-9278-b9fdab939bbc": [
|
||||
"db:/internal/effects/builtin-unlit",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"6a2d0734-bd9e-4ddf-946e-caa52498cb75": [
|
||||
"db:/internal/effects/pipeline/post-process/tone-mapping",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"c27215d8-6835-4b68-bfbb-bdeac6100c04": [
|
||||
"db:/internal/effects/for2d/builtin-spine",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"b5d6115f-0370-4d7c-aad3-c194cc71cf98": [
|
||||
"db:/internal/default_materials/default-spine-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"d1346436-ac96-4271-b863-1f4fdead95b0": [
|
||||
"db:/internal/effects/particles/builtin-particle",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"971bdb23-3ff6-43eb-b422-1c30165a3663": [
|
||||
"db:/internal/effects/particles/builtin-particle-gpu",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"17debcc3-0a6b-4b8a-b00b-dc58b885581e": [
|
||||
"db:/internal/effects/particles/builtin-particle-trail",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"711ebe11-f673-4cd9-9a83-63c60ba54c5b": [
|
||||
"db:/internal/effects/particles/builtin-billboard",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"c0143906-9aed-447e-9436-2ae8512d1b6e": [
|
||||
"db:/internal/default_materials/default-particle-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"14da1725-c4c2-42b4-ab08-ee0aeb6898b3": [
|
||||
"db:/internal/default_materials/default-particle-gpu-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"081cab31-dccd-428e-8652-f2404cc81c47": [
|
||||
"db:/internal/default_materials/default-trail-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"78e0584a-4343-4727-8f37-e14e65c2a2db": [
|
||||
"db:/internal/default_materials/default-billboard-material",
|
||||
"cc.Material",
|
||||
1
|
||||
],
|
||||
"ba21476f-2866-4f81-9c4d-6e359316e448": [
|
||||
"db:/internal/physics/default-physics-material",
|
||||
"cc.PhysicsMaterial",
|
||||
1
|
||||
],
|
||||
"871c3b6c-7379-419d-bda3-794b239ab90d": [
|
||||
"db:/internal/effects/util/profiler",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"1d08ef62-a503-4ce2-8b9a-46c90873f7d3": [
|
||||
"db:/internal/effects/legacy/terrain",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
],
|
||||
"5c601d96-e4c7-4698-991b-7ee674b11079": [
|
||||
"db:/internal/effects/pipeline/copy-pass",
|
||||
"cc.EffectAsset",
|
||||
1
|
||||
]
|
||||
},
|
||||
"scenes": {},
|
||||
"packs": {
|
||||
"07d3aae9f": [
|
||||
"081cab31-dccd-428e-8652-f2404cc81c47",
|
||||
"14da1725-c4c2-42b4-ab08-ee0aeb6898b3",
|
||||
"17debcc3-0a6b-4b8a-b00b-dc58b885581e",
|
||||
"1c02ae6f-4492-4915-b8f8-7492a3b1e4cd",
|
||||
"1d08ef62-a503-4ce2-8b9a-46c90873f7d3",
|
||||
"50f4348b-c883-4e2f-8f11-ce233b859fa1",
|
||||
"511d2633-09a7-4bdd-ac42-f778032124b3",
|
||||
"5c601d96-e4c7-4698-991b-7ee674b11079",
|
||||
"5d45aa00-e064-4938-b314-4265f0c2258c",
|
||||
"60f7195c-ec2a-45eb-ba94-8955f60e81d0",
|
||||
"6a2d0734-bd9e-4ddf-946e-caa52498cb75",
|
||||
"711ebe11-f673-4cd9-9a83-63c60ba54c5b",
|
||||
"78e0584a-4343-4727-8f37-e14e65c2a2db",
|
||||
"810e96e4-e456-4468-9b59-f4e8f39732c0",
|
||||
"871c3b6c-7379-419d-bda3-794b239ab90d",
|
||||
"8bbdbcdd-5cd4-4100-b6d5-b7c9625b6107",
|
||||
"9361fd90-ba52-4f84-aa93-6e878fd576ca",
|
||||
"970b0598-bcb0-4714-91fb-2e81440dccd8",
|
||||
"971bdb23-3ff6-43eb-b422-1c30165a3663",
|
||||
"a3cd009f-0ab0-420d-9278-b9fdab939bbc",
|
||||
"b5d6115f-0370-4d7c-aad3-c194cc71cf98",
|
||||
"ba21476f-2866-4f81-9c4d-6e359316e448",
|
||||
"bcd64cc6-2dd9-43f6-abbe-66318d332032",
|
||||
"c0143906-9aed-447e-9436-2ae8512d1b6e",
|
||||
"c27215d8-6835-4b68-bfbb-bdeac6100c04",
|
||||
"d1346436-ac96-4271-b863-1f4fdead95b0",
|
||||
"d930590d-bb92-4cc8-8bd1-23cd027f9edf",
|
||||
"dd3a144d-ab7f-41f0-82b8-2e43a090d496",
|
||||
"e9aa9a3e-5b2b-4ac7-a2c7-073de2b2b24f",
|
||||
"efe8e2a3-eace-427b-b4f1-cb8a937ec77d",
|
||||
"f0416e68-0200-4b77-a926-4f9d16e494da",
|
||||
"f92806d7-1768-443f-afe8-12bcde84d0f0",
|
||||
"fda095cb-831d-4601-ad94-846013963de8"
|
||||
]
|
||||
},
|
||||
"versions": {
|
||||
"import": [],
|
||||
"native": []
|
||||
},
|
||||
"redirect": [],
|
||||
"debug": true,
|
||||
"extensionMap": {},
|
||||
"hasPreloadScript": true,
|
||||
"dependencyRelationships": {}
|
||||
}
|
||||
+1
File diff suppressed because one or more lines are too long
+2205
File diff suppressed because it is too large
Load Diff
+46
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"importBase": "import",
|
||||
"nativeBase": "native",
|
||||
"name": "main",
|
||||
"deps": [
|
||||
"internal"
|
||||
],
|
||||
"uuids": [
|
||||
"18f06ada-9d36-485c-9f44-556d6980ca7a",
|
||||
"ba21476f-2866-4f81-9c4d-6e359316e448",
|
||||
"fd8ec536-a354-4a17-9c74-4f3883c378c8"
|
||||
],
|
||||
"paths": {
|
||||
"18f06ada-9d36-485c-9f44-556d6980ca7a": [
|
||||
"db:/assets/scenes/Probe",
|
||||
"cc.SceneAsset",
|
||||
1
|
||||
],
|
||||
"fd8ec536-a354-4a17-9c74-4f3883c378c8": [
|
||||
"db:/internal/default_renderpipeline/builtin-forward",
|
||||
"cc.RenderPipeline",
|
||||
1
|
||||
],
|
||||
"ba21476f-2866-4f81-9c4d-6e359316e448": [
|
||||
"db:/internal/physics/default-physics-material",
|
||||
"cc.PhysicsMaterial",
|
||||
1
|
||||
]
|
||||
},
|
||||
"scenes": {
|
||||
"db://assets/scenes/Probe.scene": "18f06ada-9d36-485c-9f44-556d6980ca7a"
|
||||
},
|
||||
"packs": {},
|
||||
"versions": {
|
||||
"import": [],
|
||||
"native": []
|
||||
},
|
||||
"redirect": [
|
||||
"ba21476f-2866-4f81-9c4d-6e359316e448",
|
||||
"0"
|
||||
],
|
||||
"debug": true,
|
||||
"extensionMap": {},
|
||||
"hasPreloadScript": true,
|
||||
"dependencyRelationships": {}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
[1,0,["node","_cameraComponent","scene","_parent"],[["cc.SceneAsset",["_name"],2],["cc.Scene",["_name","_children","_globals"],2,2,4],["cc.Node",["_name","_layer","_id","_children","_components","_lpos"],0,2,9,5],["cc.Node",["_name","_parent","_components","_lpos"],2,1,2,5],["cc.Camera",["_projection","_orthoHeight","_near","_far","_visibility","node","_color"],-2,1,5],["cc.UITransform",["node","_contentSize"],3,1,5],["cc.Canvas",["node","_cameraComponent"],3,1,1],["cc.Widget",["_alignFlags","_top","_bottom","node"],0,1],["cc.SceneGlobals",["ambient","shadows","_skybox","fog","octree","skin","lightProbeInfo","postSettings"],3,4,4,4,4,4,4,4,4],["cc.AmbientInfo",["_skyColorHDR"],3,5],["cc.ShadowsInfo",[],3],["cc.SkyboxInfo",[],3],["cc.FogInfo",[],3],["cc.OctreeInfo",[],3],["cc.SkinInfo",[],3],["cc.LightProbeInfo",[],3],["cc.PostSettingsInfo",[],3]],[[0,0,2],[1,0,1,2,2],[2,0,1,2,3,4,5,4],[3,0,1,2,3,2],[4,0,1,2,3,4,5,6,6],[5,0,1,1],[6,0,1,1],[7,0,1,2,3,4],[8,0,1,2,3,4,5,6,7,1],[9,0,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1]],[[0,"Probe"],[2,"Canvas",33554432,"1cgbnsENBDoLhHJwvyJnKB",[-5],[[5,-1,[5,1600,720]],[6,-3,-2],[7,45,5.684341886080802e-14,5.684341886080802e-14,-4]],[1,800,360.00000000000006,0]],[1,"TemplateRoom",[1],[8,[9,[2,0.2,0.5,0.8,0.520833125]],[10],[11],[12],[13],[14],[15],[16]]],[3,"Camera",1,[-6],[1,0,0,1000]],[4,0,360,0,2000,1108344832,3,[4,4278190080]]],0,[0,0,1,0,1,4,0,0,1,0,0,1,0,-1,3,0,-1,4,0,2,2,1,3,2,6],[],[],[]]
|
||||
+1
@@ -0,0 +1 @@
|
||||
[1,0,0,[["RenderQueueDesc",["stages","isTransparent","sortMode"],0],["ForwardPipeline",["_flows"],3,9],["ShadowFlow",["_name","_stages"],2,9],["ShadowStage",["_name"],2],["ForwardFlow",["_name","_priority","_stages"],1,9],["ForwardStage",["_name","renderQueues"],2,9]],[[1,0,1],[2,0,1,2],[3,0,2],[4,0,1,2,3],[5,0,1,2],[0,0,2],[0,1,2,0,4]],[[0,[[1,"ShadowFlow",[[2,"ShadowStage"]]],[3,"ForwardFlow",1,[[4,"ForwardStage",[[5,["default"]],[6,true,1,["default"]]]]]]]]],0,0,[],[],[]]
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
System.register("chunks:///_virtual/Boot.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function () {
|
||||
var _asyncToGenerator, _regeneratorRuntime, cclegacy, director, Director, instantiate, js, Prefab, TextAsset, assetManager;
|
||||
return {
|
||||
setters: [function (module) {
|
||||
_asyncToGenerator = module.asyncToGenerator;
|
||||
_regeneratorRuntime = module.regeneratorRuntime;
|
||||
}, function (module) {
|
||||
cclegacy = module.cclegacy;
|
||||
director = module.director;
|
||||
Director = module.Director;
|
||||
instantiate = module.instantiate;
|
||||
js = module.js;
|
||||
Prefab = module.Prefab;
|
||||
TextAsset = module.TextAsset;
|
||||
assetManager = module.assetManager;
|
||||
}],
|
||||
execute: function () {
|
||||
cclegacy._RF.push({}, "d3a6crOBwVLlLjTY3gqQ3kp", "Boot", undefined);
|
||||
director.once(Director.EVENT_AFTER_SCENE_LAUNCH, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
||||
var report, target, bundle, entry, text, prefab, node;
|
||||
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
report = {
|
||||
ok: false,
|
||||
requests: []
|
||||
};
|
||||
globalThis.__probe = report;
|
||||
_context.prev = 2;
|
||||
_context.next = 5;
|
||||
return fetch('./target.json').then(function (r) {
|
||||
if (!r.ok) throw Error('target missing');
|
||||
return r.json();
|
||||
});
|
||||
case 5:
|
||||
target = _context.sent;
|
||||
report.selected = target.bundle;
|
||||
_context.next = 9;
|
||||
return new Promise(function (resolve, reject) {
|
||||
return assetManager.loadBundle(target.bundle, function (e, b) {
|
||||
return e ? reject(e) : resolve(b);
|
||||
});
|
||||
});
|
||||
case 9:
|
||||
bundle = _context.sent;
|
||||
entry = js.getClassByName(target.entry);
|
||||
if (entry) {
|
||||
_context.next = 13;
|
||||
break;
|
||||
}
|
||||
throw Error('entry missing');
|
||||
case 13:
|
||||
report.code = entry.run();
|
||||
_context.next = 16;
|
||||
return new Promise(function (resolve, reject) {
|
||||
return bundle.load('private', TextAsset, function (e, a) {
|
||||
return e ? reject(e) : resolve(a);
|
||||
});
|
||||
});
|
||||
case 16:
|
||||
text = _context.sent;
|
||||
report.text = text.text;
|
||||
_context.next = 20;
|
||||
return new Promise(function (resolve, reject) {
|
||||
return bundle.load('View', Prefab, function (e, a) {
|
||||
return e ? reject(e) : resolve(a);
|
||||
});
|
||||
});
|
||||
case 20:
|
||||
prefab = _context.sent;
|
||||
node = instantiate(prefab);
|
||||
node.parent = director.getScene();
|
||||
report.prefab = node.name;
|
||||
report.otherRegistered = !!js.getClassByName(target.otherEntry);
|
||||
report.ok = true;
|
||||
_context.next = 31;
|
||||
break;
|
||||
case 28:
|
||||
_context.prev = 28;
|
||||
_context.t0 = _context["catch"](2);
|
||||
report.error = String(_context.t0);
|
||||
case 31:
|
||||
console.log('PROBE_RESULT', JSON.stringify(report));
|
||||
case 32:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee, null, [[2, 28]]);
|
||||
})));
|
||||
cclegacy._RF.pop();
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
System.register("chunks:///_virtual/main", ['./Boot.ts'], function () {
|
||||
return {
|
||||
setters: [null],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
|
||||
(function(r) {
|
||||
r('virtual:///prerequisite-imports/main', 'chunks:///_virtual/main');
|
||||
})(function(mid, cid) {
|
||||
System.register(mid, [cid], function (_export, _context) {
|
||||
return {
|
||||
setters: [function(_m) {
|
||||
var _exportObj = {};
|
||||
|
||||
for (var _key in _m) {
|
||||
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
|
||||
}
|
||||
|
||||
_export(_exportObj);
|
||||
}],
|
||||
execute: function () { }
|
||||
};
|
||||
});
|
||||
});
|
||||
+156248
File diff suppressed because one or more lines are too long
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+72
File diff suppressed because one or more lines are too long
+2037
File diff suppressed because it is too large
Load Diff
+10
@@ -0,0 +1,10 @@
|
||||
System.register([], (function (exports, module) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: (function () {
|
||||
|
||||
var bullet_release_wasm = exports("default", 'assets/bullet.release.wasm-BIzkn7bF.wasm'); /* asset-hash:effe0a64 */
|
||||
|
||||
})
|
||||
};
|
||||
}));
|
||||
File diff suppressed because one or more lines are too long
+10
@@ -0,0 +1,10 @@
|
||||
System.register([], (function (exports, module) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: (function () {
|
||||
|
||||
var spine = exports("default", 'assets/spine-CC34fKUR.wasm'); /* asset-hash:b3d705bd */
|
||||
|
||||
})
|
||||
};
|
||||
}));
|
||||
+90
File diff suppressed because one or more lines are too long
+10
@@ -0,0 +1,10 @@
|
||||
System.register([], (function (exports, module) {
|
||||
'use strict';
|
||||
return {
|
||||
execute: (function () {
|
||||
|
||||
var spine_js = exports("default", 'assets/spine.js.mem-pbmhlDdv.bin'); /* asset-hash:7a22a126 */
|
||||
|
||||
})
|
||||
};
|
||||
}));
|
||||
+1239
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,64 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>Cocos Creator | BundleProbe</title>
|
||||
|
||||
<!--http://www.html5rocks.com/en/mobile/mobifying/-->
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui=true"/>
|
||||
|
||||
<!--https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html-->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
|
||||
<!-- force webkit on 360 -->
|
||||
<meta name="renderer" content="webkit"/>
|
||||
<meta name="force-rendering" content="webkit"/>
|
||||
<!-- force edge on IE -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||||
<meta name="msapplication-tap-highlight" content="no">
|
||||
|
||||
<!-- force full screen on some browser -->
|
||||
<meta name="full-screen" content="yes"/>
|
||||
<meta name="x5-fullscreen" content="true"/>
|
||||
<meta name="360-fullscreen" content="true"/>
|
||||
|
||||
<!--fix fireball/issues/3568 -->
|
||||
<!--<meta name="browsermode" content="application">-->
|
||||
<meta name="x5-page-mode" content="app">
|
||||
|
||||
<!--<link rel="apple-touch-icon" href=".png" />-->
|
||||
<!--<link rel="apple-touch-icon-precomposed" href=".png" />-->
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="style.css"/>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="GameDiv" cc_exact_fit_screen="true">
|
||||
<div id="Cocos3dGameContainer">
|
||||
<canvas id="GameCanvas" oncontextmenu="event.preventDefault()" tabindex="99"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Polyfills bundle. -->
|
||||
|
||||
<script src="src/polyfills.bundle.js" charset="utf-8"> </script>
|
||||
|
||||
|
||||
<!-- SystemJS support. -->
|
||||
<script src="src/system.bundle.js" charset="utf-8"> </script>
|
||||
|
||||
<!-- Import map -->
|
||||
<script src="src/import-map.json" type="systemjs-importmap" charset="utf-8"> </script>
|
||||
|
||||
<script>
|
||||
System.import('./index.js').catch(function(err) { console.error(err); })
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,28 @@
|
||||
System.register(["./application.js"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var Application, canvas, $p, bcr, application;
|
||||
function topLevelImport(url) {
|
||||
return System["import"](url);
|
||||
}
|
||||
return {
|
||||
setters: [function (_applicationJs) {
|
||||
Application = _applicationJs.Application;
|
||||
}],
|
||||
execute: function () {
|
||||
canvas = document.getElementById('GameCanvas');
|
||||
$p = canvas.parentElement;
|
||||
bcr = $p.getBoundingClientRect();
|
||||
canvas.width = bcr.width;
|
||||
canvas.height = bcr.height;
|
||||
application = new Application();
|
||||
topLevelImport('cc').then(function (engine) {
|
||||
return application.init(engine);
|
||||
}).then(function () {
|
||||
return application.start();
|
||||
})["catch"](function (err) {
|
||||
console.error(err);
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"bundles": [
|
||||
"internal",
|
||||
"main",
|
||||
"game-alpha"
|
||||
],
|
||||
"options": [
|
||||
{
|
||||
"root": "db://assets/games/alpha",
|
||||
"name": "game-alpha",
|
||||
"output": true
|
||||
},
|
||||
{
|
||||
"root": "db://assets/games/beta",
|
||||
"name": "game-beta",
|
||||
"output": false
|
||||
}
|
||||
]
|
||||
}
|
||||
+468
@@ -0,0 +1,468 @@
|
||||
System.register([], function(_export, _context) { return { execute: function () {
|
||||
System.register("chunks:///_virtual/rollupPluginModLoBabelHelpers.js", [], function (exports) {
|
||||
return {
|
||||
execute: function () {
|
||||
exports({
|
||||
applyDecoratedDescriptor: _applyDecoratedDescriptor,
|
||||
arrayLikeToArray: _arrayLikeToArray,
|
||||
assertThisInitialized: _assertThisInitialized,
|
||||
asyncToGenerator: _asyncToGenerator,
|
||||
createClass: _createClass,
|
||||
createForOfIteratorHelperLoose: _createForOfIteratorHelperLoose,
|
||||
inheritsLoose: _inheritsLoose,
|
||||
initializerDefineProperty: _initializerDefineProperty,
|
||||
regeneratorRuntime: _regeneratorRuntime,
|
||||
setPrototypeOf: _setPrototypeOf,
|
||||
toPrimitive: _toPrimitive,
|
||||
toPropertyKey: _toPropertyKey,
|
||||
unsupportedIterableToArray: _unsupportedIterableToArray
|
||||
});
|
||||
function _regeneratorRuntime() {
|
||||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||||
_regeneratorRuntime = exports('regeneratorRuntime', function () {
|
||||
return e;
|
||||
});
|
||||
var t,
|
||||
e = {},
|
||||
r = Object.prototype,
|
||||
n = r.hasOwnProperty,
|
||||
o = Object.defineProperty || function (t, e, r) {
|
||||
t[e] = r.value;
|
||||
},
|
||||
i = "function" == typeof Symbol ? Symbol : {},
|
||||
a = i.iterator || "@@iterator",
|
||||
c = i.asyncIterator || "@@asyncIterator",
|
||||
u = i.toStringTag || "@@toStringTag";
|
||||
function define(t, e, r) {
|
||||
return Object.defineProperty(t, e, {
|
||||
value: r,
|
||||
enumerable: !0,
|
||||
configurable: !0,
|
||||
writable: !0
|
||||
}), t[e];
|
||||
}
|
||||
try {
|
||||
define({}, "");
|
||||
} catch (t) {
|
||||
define = function (t, e, r) {
|
||||
return t[e] = r;
|
||||
};
|
||||
}
|
||||
function wrap(t, e, r, n) {
|
||||
var i = e && e.prototype instanceof Generator ? e : Generator,
|
||||
a = Object.create(i.prototype),
|
||||
c = new Context(n || []);
|
||||
return o(a, "_invoke", {
|
||||
value: makeInvokeMethod(t, r, c)
|
||||
}), a;
|
||||
}
|
||||
function tryCatch(t, e, r) {
|
||||
try {
|
||||
return {
|
||||
type: "normal",
|
||||
arg: t.call(e, r)
|
||||
};
|
||||
} catch (t) {
|
||||
return {
|
||||
type: "throw",
|
||||
arg: t
|
||||
};
|
||||
}
|
||||
}
|
||||
e.wrap = wrap;
|
||||
var h = "suspendedStart",
|
||||
l = "suspendedYield",
|
||||
f = "executing",
|
||||
s = "completed",
|
||||
y = {};
|
||||
function Generator() {}
|
||||
function GeneratorFunction() {}
|
||||
function GeneratorFunctionPrototype() {}
|
||||
var p = {};
|
||||
define(p, a, function () {
|
||||
return this;
|
||||
});
|
||||
var d = Object.getPrototypeOf,
|
||||
v = d && d(d(values([])));
|
||||
v && v !== r && n.call(v, a) && (p = v);
|
||||
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
||||
function defineIteratorMethods(t) {
|
||||
["next", "throw", "return"].forEach(function (e) {
|
||||
define(t, e, function (t) {
|
||||
return this._invoke(e, t);
|
||||
});
|
||||
});
|
||||
}
|
||||
function AsyncIterator(t, e) {
|
||||
function invoke(r, o, i, a) {
|
||||
var c = tryCatch(t[r], t, o);
|
||||
if ("throw" !== c.type) {
|
||||
var u = c.arg,
|
||||
h = u.value;
|
||||
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
||||
invoke("next", t, i, a);
|
||||
}, function (t) {
|
||||
invoke("throw", t, i, a);
|
||||
}) : e.resolve(h).then(function (t) {
|
||||
u.value = t, i(u);
|
||||
}, function (t) {
|
||||
return invoke("throw", t, i, a);
|
||||
});
|
||||
}
|
||||
a(c.arg);
|
||||
}
|
||||
var r;
|
||||
o(this, "_invoke", {
|
||||
value: function (t, n) {
|
||||
function callInvokeWithMethodAndArg() {
|
||||
return new e(function (e, r) {
|
||||
invoke(t, n, e, r);
|
||||
});
|
||||
}
|
||||
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
||||
}
|
||||
});
|
||||
}
|
||||
function makeInvokeMethod(e, r, n) {
|
||||
var o = h;
|
||||
return function (i, a) {
|
||||
if (o === f) throw new Error("Generator is already running");
|
||||
if (o === s) {
|
||||
if ("throw" === i) throw a;
|
||||
return {
|
||||
value: t,
|
||||
done: !0
|
||||
};
|
||||
}
|
||||
for (n.method = i, n.arg = a;;) {
|
||||
var c = n.delegate;
|
||||
if (c) {
|
||||
var u = maybeInvokeDelegate(c, n);
|
||||
if (u) {
|
||||
if (u === y) continue;
|
||||
return u;
|
||||
}
|
||||
}
|
||||
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
||||
if (o === h) throw o = s, n.arg;
|
||||
n.dispatchException(n.arg);
|
||||
} else "return" === n.method && n.abrupt("return", n.arg);
|
||||
o = f;
|
||||
var p = tryCatch(e, r, n);
|
||||
if ("normal" === p.type) {
|
||||
if (o = n.done ? s : l, p.arg === y) continue;
|
||||
return {
|
||||
value: p.arg,
|
||||
done: n.done
|
||||
};
|
||||
}
|
||||
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
||||
}
|
||||
};
|
||||
}
|
||||
function maybeInvokeDelegate(e, r) {
|
||||
var n = r.method,
|
||||
o = e.iterator[n];
|
||||
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
||||
var i = tryCatch(o, e.iterator, r.arg);
|
||||
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
||||
var a = i.arg;
|
||||
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
||||
}
|
||||
function pushTryEntry(t) {
|
||||
var e = {
|
||||
tryLoc: t[0]
|
||||
};
|
||||
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
||||
}
|
||||
function resetTryEntry(t) {
|
||||
var e = t.completion || {};
|
||||
e.type = "normal", delete e.arg, t.completion = e;
|
||||
}
|
||||
function Context(t) {
|
||||
this.tryEntries = [{
|
||||
tryLoc: "root"
|
||||
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
||||
}
|
||||
function values(e) {
|
||||
if (e || "" === e) {
|
||||
var r = e[a];
|
||||
if (r) return r.call(e);
|
||||
if ("function" == typeof e.next) return e;
|
||||
if (!isNaN(e.length)) {
|
||||
var o = -1,
|
||||
i = function next() {
|
||||
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
||||
return next.value = t, next.done = !0, next;
|
||||
};
|
||||
return i.next = i;
|
||||
}
|
||||
}
|
||||
throw new TypeError(typeof e + " is not iterable");
|
||||
}
|
||||
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
||||
value: GeneratorFunctionPrototype,
|
||||
configurable: !0
|
||||
}), o(GeneratorFunctionPrototype, "constructor", {
|
||||
value: GeneratorFunction,
|
||||
configurable: !0
|
||||
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
||||
var e = "function" == typeof t && t.constructor;
|
||||
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
||||
}, e.mark = function (t) {
|
||||
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
||||
}, e.awrap = function (t) {
|
||||
return {
|
||||
__await: t
|
||||
};
|
||||
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
||||
return this;
|
||||
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
||||
void 0 === i && (i = Promise);
|
||||
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
||||
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
||||
return t.done ? t.value : a.next();
|
||||
});
|
||||
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
||||
return this;
|
||||
}), define(g, "toString", function () {
|
||||
return "[object Generator]";
|
||||
}), e.keys = function (t) {
|
||||
var e = Object(t),
|
||||
r = [];
|
||||
for (var n in e) r.push(n);
|
||||
return r.reverse(), function next() {
|
||||
for (; r.length;) {
|
||||
var t = r.pop();
|
||||
if (t in e) return next.value = t, next.done = !1, next;
|
||||
}
|
||||
return next.done = !0, next;
|
||||
};
|
||||
}, e.values = values, Context.prototype = {
|
||||
constructor: Context,
|
||||
reset: function (e) {
|
||||
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
||||
},
|
||||
stop: function () {
|
||||
this.done = !0;
|
||||
var t = this.tryEntries[0].completion;
|
||||
if ("throw" === t.type) throw t.arg;
|
||||
return this.rval;
|
||||
},
|
||||
dispatchException: function (e) {
|
||||
if (this.done) throw e;
|
||||
var r = this;
|
||||
function handle(n, o) {
|
||||
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
||||
}
|
||||
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
||||
var i = this.tryEntries[o],
|
||||
a = i.completion;
|
||||
if ("root" === i.tryLoc) return handle("end");
|
||||
if (i.tryLoc <= this.prev) {
|
||||
var c = n.call(i, "catchLoc"),
|
||||
u = n.call(i, "finallyLoc");
|
||||
if (c && u) {
|
||||
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
||||
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
||||
} else if (c) {
|
||||
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
||||
} else {
|
||||
if (!u) throw new Error("try statement without catch or finally");
|
||||
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
abrupt: function (t, e) {
|
||||
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
||||
var o = this.tryEntries[r];
|
||||
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
||||
var i = o;
|
||||
break;
|
||||
}
|
||||
}
|
||||
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
||||
var a = i ? i.completion : {};
|
||||
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
||||
},
|
||||
complete: function (t, e) {
|
||||
if ("throw" === t.type) throw t.arg;
|
||||
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
||||
},
|
||||
finish: function (t) {
|
||||
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
||||
var r = this.tryEntries[e];
|
||||
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
||||
}
|
||||
},
|
||||
catch: function (t) {
|
||||
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
||||
var r = this.tryEntries[e];
|
||||
if (r.tryLoc === t) {
|
||||
var n = r.completion;
|
||||
if ("throw" === n.type) {
|
||||
var o = n.arg;
|
||||
resetTryEntry(r);
|
||||
}
|
||||
return o;
|
||||
}
|
||||
}
|
||||
throw new Error("illegal catch attempt");
|
||||
},
|
||||
delegateYield: function (e, r, n) {
|
||||
return this.delegate = {
|
||||
iterator: values(e),
|
||||
resultName: r,
|
||||
nextLoc: n
|
||||
}, "next" === this.method && (this.arg = t), y;
|
||||
}
|
||||
}, e;
|
||||
}
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
||||
try {
|
||||
var info = gen[key](arg);
|
||||
var value = info.value;
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
return;
|
||||
}
|
||||
if (info.done) {
|
||||
resolve(value);
|
||||
} else {
|
||||
Promise.resolve(value).then(_next, _throw);
|
||||
}
|
||||
}
|
||||
function _asyncToGenerator(fn) {
|
||||
return function () {
|
||||
var self = this,
|
||||
args = arguments;
|
||||
return new Promise(function (resolve, reject) {
|
||||
var gen = fn.apply(self, args);
|
||||
function _next(value) {
|
||||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
||||
}
|
||||
function _throw(err) {
|
||||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
||||
}
|
||||
_next(undefined);
|
||||
});
|
||||
};
|
||||
}
|
||||
function _defineProperties(target, props) {
|
||||
for (var i = 0; i < props.length; i++) {
|
||||
var descriptor = props[i];
|
||||
descriptor.enumerable = descriptor.enumerable || false;
|
||||
descriptor.configurable = true;
|
||||
if ("value" in descriptor) descriptor.writable = true;
|
||||
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
||||
}
|
||||
}
|
||||
function _createClass(Constructor, protoProps, staticProps) {
|
||||
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||
Object.defineProperty(Constructor, "prototype", {
|
||||
writable: false
|
||||
});
|
||||
return Constructor;
|
||||
}
|
||||
function _inheritsLoose(subClass, superClass) {
|
||||
subClass.prototype = Object.create(superClass.prototype);
|
||||
subClass.prototype.constructor = subClass;
|
||||
_setPrototypeOf(subClass, superClass);
|
||||
}
|
||||
function _setPrototypeOf(o, p) {
|
||||
_setPrototypeOf = exports('setPrototypeOf', Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
||||
o.__proto__ = p;
|
||||
return o;
|
||||
});
|
||||
return _setPrototypeOf(o, p);
|
||||
}
|
||||
function _assertThisInitialized(self) {
|
||||
if (self === void 0) {
|
||||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
}
|
||||
return self;
|
||||
}
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(o);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
||||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
||||
if (it) return (it = it.call(o)).next.bind(it);
|
||||
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
||||
if (it) o = it;
|
||||
var i = 0;
|
||||
return function () {
|
||||
if (i >= o.length) return {
|
||||
done: true
|
||||
};
|
||||
return {
|
||||
done: false,
|
||||
value: o[i++]
|
||||
};
|
||||
};
|
||||
}
|
||||
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
function _toPrimitive(input, hint) {
|
||||
if (typeof input !== "object" || input === null) return input;
|
||||
var prim = input[Symbol.toPrimitive];
|
||||
if (prim !== undefined) {
|
||||
var res = prim.call(input, hint || "default");
|
||||
if (typeof res !== "object") return res;
|
||||
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||||
}
|
||||
return (hint === "string" ? String : Number)(input);
|
||||
}
|
||||
function _toPropertyKey(arg) {
|
||||
var key = _toPrimitive(arg, "string");
|
||||
return typeof key === "symbol" ? key : String(key);
|
||||
}
|
||||
function _initializerDefineProperty(target, property, descriptor, context) {
|
||||
if (!descriptor) return;
|
||||
Object.defineProperty(target, property, {
|
||||
enumerable: descriptor.enumerable,
|
||||
configurable: descriptor.configurable,
|
||||
writable: descriptor.writable,
|
||||
value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
|
||||
});
|
||||
}
|
||||
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
|
||||
var desc = {};
|
||||
Object.keys(descriptor).forEach(function (key) {
|
||||
desc[key] = descriptor[key];
|
||||
});
|
||||
desc.enumerable = !!desc.enumerable;
|
||||
desc.configurable = !!desc.configurable;
|
||||
if ('value' in desc || desc.initializer) {
|
||||
desc.writable = true;
|
||||
}
|
||||
desc = decorators.slice().reverse().reduce(function (desc, decorator) {
|
||||
return decorator(target, property, desc) || desc;
|
||||
}, desc);
|
||||
if (context && desc.initializer !== void 0) {
|
||||
desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
|
||||
desc.initializer = undefined;
|
||||
}
|
||||
if (desc.initializer === void 0) {
|
||||
Object.defineProperty(target, property, desc);
|
||||
desc = null;
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
} }; });
|
||||
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"imports": {
|
||||
"cc": "./../cocos-js/cc.js"
|
||||
}
|
||||
}
|
||||
+1
File diff suppressed because one or more lines are too long
+124
File diff suppressed because one or more lines are too long
+1121
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,61 @@
|
||||
html {
|
||||
-ms-touch-action: none;
|
||||
}
|
||||
|
||||
body, canvas, div {
|
||||
display: block;
|
||||
outline: none;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
|
||||
user-select: none;
|
||||
-moz-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
/* Remove spin of input type number */
|
||||
input::-webkit-outer-spin-button,
|
||||
input::-webkit-inner-spin-button {
|
||||
/* display: none; <- Crashes Chrome on hover */
|
||||
-webkit-appearance: none;
|
||||
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
|
||||
}
|
||||
|
||||
body {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
|
||||
cursor: default;
|
||||
color: #888;
|
||||
background-color: #333;
|
||||
|
||||
text-align: center;
|
||||
font-family: Helvetica, Verdana, Arial, sans-serif;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
canvas {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
#GameDiv, #Cocos3dGameContainer, #GameCanvas {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
:root {
|
||||
--safe-top: env(safe-area-inset-top);
|
||||
--safe-right: env(safe-area-inset-right);
|
||||
--safe-bottom: env(safe-area-inset-bottom);
|
||||
--safe-left: env(safe-area-inset-left);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"bundle":"game-alpha","entry":"ProbeEntry_alpha","otherEntry":"ProbeEntry_beta"}
|
||||
@@ -0,0 +1,61 @@
|
||||
System.register([], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var cc, Application;
|
||||
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
||||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
||||
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
||||
return {
|
||||
setters: [],
|
||||
execute: function () {
|
||||
_export("Application", Application = /*#__PURE__*/function () {
|
||||
function Application() {
|
||||
_classCallCheck(this, Application);
|
||||
this.settingsPath = 'src/settings.json';
|
||||
this.showFPS = true;
|
||||
}
|
||||
_createClass(Application, [{
|
||||
key: "init",
|
||||
value: function init(engine) {
|
||||
cc = engine;
|
||||
cc.game.onPostBaseInitDelegate.add(this.onPostInitBase.bind(this));
|
||||
cc.game.onPostSubsystemInitDelegate.add(this.onPostSystemInit.bind(this));
|
||||
}
|
||||
}, {
|
||||
key: "onPostInitBase",
|
||||
value: function onPostInitBase() {
|
||||
// cc.settings.overrideSettings('assets', 'server', '');
|
||||
// do custom logic
|
||||
}
|
||||
}, {
|
||||
key: "onPostSystemInit",
|
||||
value: function onPostSystemInit() {
|
||||
// do custom logic
|
||||
}
|
||||
}, {
|
||||
key: "start",
|
||||
value: function start() {
|
||||
return cc.game.init({
|
||||
debugMode: true ? cc.DebugMode.INFO : cc.DebugMode.ERROR,
|
||||
settingsPath: this.settingsPath,
|
||||
overrideSettings: {
|
||||
// assets: {
|
||||
// preloadBundles: [{ bundle: 'main', version: 'xxx' }],
|
||||
// }
|
||||
profiling: {
|
||||
showFPS: this.showFPS
|
||||
}
|
||||
}
|
||||
}).then(function () {
|
||||
return cc.game.run();
|
||||
});
|
||||
}
|
||||
}]);
|
||||
return Application;
|
||||
}());
|
||||
}
|
||||
};
|
||||
});
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"importBase": "import",
|
||||
"nativeBase": "native",
|
||||
"name": "game-beta",
|
||||
"deps": [],
|
||||
"uuids": [
|
||||
"6473a80a-d270-4712-97d3-a9c8b355e506",
|
||||
"72e3e5a7-2390-4c08-924c-1d465a6bcad4"
|
||||
],
|
||||
"paths": {
|
||||
"72e3e5a7-2390-4c08-924c-1d465a6bcad4": [
|
||||
"private",
|
||||
"cc.TextAsset",
|
||||
1
|
||||
],
|
||||
"6473a80a-d270-4712-97d3-a9c8b355e506": [
|
||||
"View",
|
||||
"cc.Prefab",
|
||||
1
|
||||
]
|
||||
},
|
||||
"scenes": {},
|
||||
"packs": {},
|
||||
"versions": {
|
||||
"import": [],
|
||||
"native": []
|
||||
},
|
||||
"redirect": [],
|
||||
"debug": true,
|
||||
"extensionMap": {},
|
||||
"hasPreloadScript": true,
|
||||
"dependencyRelationships": {}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
[1,0,["node","root","data"],[["cc.Prefab",["_name"],2],["cc.Node",["_name","_layer","_components","_prefab","_lpos"],1,9,4,5],["cc.UITransform",["node","__prefab","_contentSize","_anchorPoint"],3,1,4,5,5],["cc.CompPrefabInfo",["fileId"],2],["cc.Label",["_string","_horizontalAlign","_verticalAlign","_actualFontSize","_fontSize","_lineHeight","_overflow","node","__prefab","_color"],-4,1,4,5],["cc.PrefabInfo",["fileId","instance","targetOverrides","nestedPrefabInstanceRoots","root","asset"],-1,1,1]],[[3,0,2],[0,0,2],[1,0,1,2,3,4,3],[2,0,1,2,3,1],[4,0,1,2,3,4,5,6,7,8,9,8],[5,0,1,2,3,4,5,5]],[[1,"View"],[2,"View",33554432,[[3,-2,[0,"JYB5ndvc0hWZFdTsDPujQg"],[5,371,22.680000000000003],[0,0,1]],[4,"资料文字",0,0,18.975,18,18,3,-3,[0,"wX+Ww4pBz/TnLcrPEXSuAA"],[4,4278190080]]],[5,"Pn6tcB1uaJ1EOUf2nLgpzw",null,null,null,-1,0],[1,10,0,0]]],0,[0,1,1,0,0,1,0,0,1,0,2,1,3],[],[],[]]
|
||||
+1
@@ -0,0 +1 @@
|
||||
[1,0,0,[["cc.TextAsset",["_name","text"],1]],[[0,0,1,3]],[[0,"private","PRIVATE_RESOURCE_BETA"]],0,0,[],[],[]]
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
System.register("chunks:///_virtual/Entry.ts", ['cc'], function (exports) {
|
||||
var cclegacy, _decorator;
|
||||
return {
|
||||
setters: [function (module) {
|
||||
cclegacy = module.cclegacy;
|
||||
_decorator = module._decorator;
|
||||
}],
|
||||
execute: function () {
|
||||
var _dec, _class;
|
||||
cclegacy._RF.push({}, "f9f74JUc6lBwoJODpMQQneb", "Entry", undefined);
|
||||
var ProbeEntry_beta = exports('ProbeEntry_beta', (_dec = _decorator.ccclass('ProbeEntry_beta'), _dec(_class = /*#__PURE__*/function () {
|
||||
function ProbeEntry_beta() {}
|
||||
ProbeEntry_beta.run = function run() {
|
||||
return 'PRIVATE_CODE_BETA';
|
||||
};
|
||||
return ProbeEntry_beta;
|
||||
}()) || _class));
|
||||
cclegacy._RF.pop();
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
System.register("chunks:///_virtual/game-beta", ['./Entry.ts'], function () {
|
||||
return {
|
||||
setters: [null],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
|
||||
(function(r) {
|
||||
r('virtual:///prerequisite-imports/game-beta', 'chunks:///_virtual/game-beta');
|
||||
})(function(mid, cid) {
|
||||
System.register(mid, [cid], function (_export, _context) {
|
||||
return {
|
||||
setters: [function(_m) {
|
||||
var _exportObj = {};
|
||||
|
||||
for (var _key in _m) {
|
||||
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
|
||||
}
|
||||
|
||||
_export(_exportObj);
|
||||
}],
|
||||
execute: function () { }
|
||||
};
|
||||
});
|
||||
});
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user