(function () {
'use strict';
function errMsg(errCode, msg) {
return (msg || "") + " (SystemJS Error#" + errCode + " " + "https://git.io/JvFET#" + errCode + ")";
}
var hasSymbol = typeof Symbol !== 'undefined';
var hasSelf = typeof self !== 'undefined';
var hasDocument = typeof document !== 'undefined';
var envGlobal = hasSelf ? self : global;
var baseUrl;
if (hasDocument) {
var baseEl = document.querySelector('base[href]');
if (baseEl)
baseUrl = baseEl.href;
}
if (!baseUrl && typeof location !== 'undefined') {
baseUrl = location.href.split('#')[0].split('?')[0];
var lastSepIndex = baseUrl.lastIndexOf('/');
if (lastSepIndex !== -1)
baseUrl = baseUrl.slice(0, lastSepIndex + 1);
}
var backslashRegEx = /\\/g;
function resolveIfNotPlainOrUrl (relUrl, parentUrl) {
if (relUrl.indexOf('\\') !== -1)
relUrl = relUrl.replace(backslashRegEx, '/');
// protocol-relative
if (relUrl[0] === '/' && relUrl[1] === '/') {
return parentUrl.slice(0, parentUrl.indexOf(':') + 1) + relUrl;
}
// relative-url
else if (relUrl[0] === '.' && (relUrl[1] === '/' || relUrl[1] === '.' && (relUrl[2] === '/' || relUrl.length === 2 && (relUrl += '/')) ||
relUrl.length === 1 && (relUrl += '/')) ||
relUrl[0] === '/') {
var parentProtocol = parentUrl.slice(0, parentUrl.indexOf(':') + 1);
// Disabled, but these cases will give inconsistent results for deep backtracking
//if (parentUrl[parentProtocol.length] !== '/')
// throw Error('Cannot resolve');
// read pathname from parent URL
// pathname taken to be part after leading "/"
var pathname;
if (parentUrl[parentProtocol.length + 1] === '/') {
// resolving to a :// so we need to read out the auth and host
if (parentProtocol !== 'file:') {
pathname = parentUrl.slice(parentProtocol.length + 2);
pathname = pathname.slice(pathname.indexOf('/') + 1);
}
else {
pathname = parentUrl.slice(8);
}
}
else {
// resolving to :/ so pathname is the /... part
pathname = parentUrl.slice(parentProtocol.length + (parentUrl[parentProtocol.length] === '/'));
}
if (relUrl[0] === '/')
return parentUrl.slice(0, parentUrl.length - pathname.length - 1) + relUrl;
// join together and split for removal of .. and . segments
// looping the string instead of anything fancy for perf reasons
// '../../../../../z' resolved to 'x/y' is just 'z'
var segmented = pathname.slice(0, pathname.lastIndexOf('/') + 1) + relUrl;
var output = [];
var segmentIndex = -1;
for (var i = 0; i < segmented.length; i++) {
// busy reading a segment - only terminate on '/'
if (segmentIndex !== -1) {
if (segmented[i] === '/') {
output.push(segmented.slice(segmentIndex, i + 1));
segmentIndex = -1;
}
}
// new segment - check if it is relative
else if (segmented[i] === '.') {
// ../ segment
if (segmented[i + 1] === '.' && (segmented[i + 2] === '/' || i + 2 === segmented.length)) {
output.pop();
i += 2;
}
// ./ segment
else if (segmented[i + 1] === '/' || i + 1 === segmented.length) {
i += 1;
}
else {
// the start of a new segment as below
segmentIndex = i;
}
}
// it is the start of a new segment
else {
segmentIndex = i;
}
}
// finish reading out the last segment
if (segmentIndex !== -1)
output.push(segmented.slice(segmentIndex));
return parentUrl.slice(0, parentUrl.length - pathname.length) + output.join('');
}
}
/*
* Import maps implementation
*
* To make lookups fast we pre-resolve the entire import map
* and then match based on backtracked hash lookups
*
*/
function resolveUrl (relUrl, parentUrl) {
return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (relUrl.indexOf(':') !== -1 ? relUrl : resolveIfNotPlainOrUrl('./' + relUrl, parentUrl));
}
function resolveAndComposePackages (packages, outPackages, baseUrl, parentMap, parentUrl) {
for (var p in packages) {
var resolvedLhs = resolveIfNotPlainOrUrl(p, baseUrl) || p;
var rhs = packages[p];
// package fallbacks not currently supported
if (typeof rhs !== 'string')
continue;
var mapped = resolveImportMap(parentMap, resolveIfNotPlainOrUrl(rhs, baseUrl) || rhs, parentUrl);
if (!mapped) {
targetWarning('W1', p, rhs, 'bare specifier did not resolve');
}
else
outPackages[resolvedLhs] = mapped;
}
}
function resolveAndComposeImportMap (json, baseUrl, outMap) {
if (json.imports)
resolveAndComposePackages(json.imports, outMap.imports, baseUrl, outMap, null);
var u;
for (u in json.scopes || {}) {
var resolvedScope = resolveUrl(u, baseUrl);
resolveAndComposePackages(json.scopes[u], outMap.scopes[resolvedScope] || (outMap.scopes[resolvedScope] = {}), baseUrl, outMap, resolvedScope);
}
for (u in json.depcache || {})
outMap.depcache[resolveUrl(u, baseUrl)] = json.depcache[u];
for (u in json.integrity || {})
outMap.integrity[resolveUrl(u, baseUrl)] = json.integrity[u];
}
function getMatch (path, matchObj) {
if (matchObj[path])
return path;
var sepIndex = path.length;
do {
var segment = path.slice(0, sepIndex + 1);
if (segment in matchObj)
return segment;
} while ((sepIndex = path.lastIndexOf('/', sepIndex - 1)) !== -1)
}
function applyPackages (id, packages) {
var pkgName = getMatch(id, packages);
if (pkgName) {
var pkg = packages[pkgName];
if (pkg === null) return;
if (id.length > pkgName.length && pkg[pkg.length - 1] !== '/') {
targetWarning('W2', pkgName, pkg, "should have a trailing '/'");
}
else
return pkg + id.slice(pkgName.length);
}
}
function targetWarning (code, match, target, msg) {
console.warn(errMsg(code, "Package target " + msg + ", resolving target '" + target + "' for " + match));
}
function resolveImportMap (importMap, resolvedOrPlain, parentUrl) {
var scopes = importMap.scopes;
var scopeUrl = parentUrl && getMatch(parentUrl, scopes);
while (scopeUrl) {
var packageResolution = applyPackages(resolvedOrPlain, scopes[scopeUrl]);
if (packageResolution)
return packageResolution;
scopeUrl = getMatch(scopeUrl.slice(0, scopeUrl.lastIndexOf('/')), scopes);
}
return applyPackages(resolvedOrPlain, importMap.imports) || resolvedOrPlain.indexOf(':') !== -1 && resolvedOrPlain;
}
/*
* SystemJS Core
*
* Provides
* - System.import
* - System.register support for
* live bindings, function hoisting through circular references,
* reexports, dynamic import, import.meta.url, top-level await
* - System.getRegister to get the registration
* - Symbol.toStringTag support in Module objects
* - Hookable System.createContext to customize import.meta
* - System.onload(err, id, deps) handler for tracing / hot-reloading
*
* Core comes with no System.prototype.resolve or
* System.prototype.instantiate implementations
*/
var toStringTag = hasSymbol && Symbol.toStringTag;
var REGISTRY = hasSymbol ? Symbol() : '@';
function SystemJS () {
this[REGISTRY] = {};
}
var systemJSPrototype = SystemJS.prototype;
systemJSPrototype.import = function (id, parentUrl) {
var loader = this;
return Promise.resolve(loader.prepareImport())
.then(function() {
return loader.resolve(id, parentUrl);
})
.then(function (id) {
var load = getOrCreateLoad(loader, id);
return load.C || topLevelLoad(loader, load);
});
};
/
没有合适的资源?快使用搜索试试~ 我知道了~
CocosCreator框架设计Demo,内容在这篇文章介绍:
共618个文件
json:327个
png:58个
meta:55个
需积分: 1 30 下载量 195 浏览量
2022-09-17
10:52:41
上传
评论
收藏 10.75MB ZIP 举报
温馨提示
https://blog.csdn.net/u012861978/article/details/124113400
资源详情
资源评论
资源推荐
收起资源包目录
CocosCreator框架设计Demo,内容在这篇文章介绍: (618个子文件)
0359b2f1-3a37-43fa-9c1c-bbe2b353ea1f 4KB
0d616966-045d-4cc8-8d77-c9305c0e9730 4KB
1f505ca8-b164-4d35-b697-504d100015e4 511B
22a135d0-b2ef-4c1b-86d2-5bbbd88e4875 853B
2583f00a-26e6-4f94-a316-6aaec715f9c7 3KB
2c657d26-de3b-4070-9cad-2ca3a33bbd72 108B
3a587990-6a62-422d-a82b-fa90ac306ad9 4KB
3b7550e2-beea-4079-ad8d-dfef104086bd 5KB
3e7d59d5-5478-474a-bb27-6eddb22dc614 1KB
400f1cd3-9a46-4349-b3c1-f451e22a219b 342B
4584ab47-6c1b-44fc-a41d-e32ba87e9660 373B
6338846d-bff9-45c2-b4d4-33db38dc4536 4KB
6d6e5880-acb2-4d11-9e31-3f0f53058e60 4KB
865b04b2-bc79-40fc-9bdf-a7557665b27c 124B
8c76e1e2-a206-4662-aa79-42c0c858d647 293B
8f8bba83-df9c-4afe-8450-e12d0dbe71b7 225B
91d50ce0-702d-47fd-b540-447a0de3471d 521B
95ca8a5e-1b33-4ed0-b087-39554c7ad01c 722B
a40789b4-985d-4619-8f44-4c4fdbfa789e@6e70c 4KB
a40789b4-985d-4619-8f44-4c4fdbfa789e@8eb48 4KB
aa709c4b-426b-46f3-a856-4a0f22f52d6d 455B
ad05fddb-302f-40f5-81d2-27f671ddf0b6 109B
buffer.bin 577KB
1c0c9d75-1931-445b-9163-82ef927c2743@8f486.bin 275KB
buffer.bin 210KB
buffer.bin 190KB
62541965-d00a-47ae-939c-1d8d8c5bbbb8@f6dd3.bin 184KB
buffer.bin 143KB
a40789b4-985d-4619-8f44-4c4fdbfa789e@dda6b.bin 97KB
1263d74c-8167-4928-91a6-4e2672411f47@801ec.bin 84KB
1263d74c-8167-4928-91a6-4e2672411f47@40ece.bin 83KB
1263d74c-8167-4928-91a6-4e2672411f47@17020.bin 80KB
1263d74c-8167-4928-91a6-4e2672411f47@8abdc.bin 15KB
a40789b4-985d-4619-8f44-4c4fdbfa789e@d3034.bin 12KB
62541965-d00a-47ae-939c-1d8d8c5bbbb8@d2f47.bin 9KB
1263d74c-8167-4928-91a6-4e2672411f47@2e76e.bin 8KB
1263d74c-8167-4928-91a6-4e2672411f47@38fd2.bin 8KB
62541965-d00a-47ae-939c-1d8d8c5bbbb8@a099b.bin 2KB
1263d74c-8167-4928-91a6-4e2672411f47@a804a.bin 1KB
1263d74c-8167-4928-91a6-4e2672411f47@fc873.bin 236B
c3dd770e-f74d-491f-85f7-4607add32858 2KB
c7e748e8-be82-4f6f-b2c0-085b604e40e5 123B
c9bbaedb-125a-4942-a8eb-6952f9f2a00f 1KB
__original-animation-0.cconb 688KB
a40789b4-985d-4619-8f44-4c4fdbfa789e@e681f.cconb 203KB
a40789b4-985d-4619-8f44-4c4fdbfa789e@965ed.cconb 108KB
a40789b4-985d-4619-8f44-4c4fdbfa789e@7f3dc.cconb 82KB
__original-animation-0.cconb 16KB
62541965-d00a-47ae-939c-1d8d8c5bbbb8@73b7f.cconb 16KB
config 148B
d9956a56-5622-44a1-8b50-42449f24ecdd 1KB
db917041-ca75-46f7-867f-083c93dcb048 4KB
description 73B
e220b271-6a70-47c0-8d12-850150694608 40B
e28a2375-6a8a-42ee-908d-0896628e0cfb 4KB
e7e9f9b7-58f3-44b4-b31c-7e7b0f601e92 110B
efc759fa-fcea-4490-bce4-85685b990940 2KB
exclude 240B
jing_ling_nan_001_ty.FBX 1.54MB
wang_ling_jian_zhu_001.FBX 116KB
jing_ling_fang_yu_ta_001.FBX 104KB
.gitignore 357B
out.gltf 84KB
out.gltf 22KB
out.gltf 15KB
out.gltf 4KB
HEAD 23B
52ef29ed-bd92-4e94-ab2f-0ebc91bf3a60.jpg 372KB
80aabd92-9942-4765-b685-8577a1c88b4e.jpg 9KB
86eb75aa-3b2f-4c7b-b59e-bdc2e3984665.jpg 9KB
61ac0181-00bd-4c17-97f0-5fc7f4bafb3d.jpg 9KB
6c895e98-967e-4a6d-8c08-bf6b035fa2c1.jpg 9KB
e049bea9-db6b-463b-8502-61bf426357a1.jpg 9KB
03721795-84b1-4dcd-8eb3-c8e6b88ee535.jpg 8KB
system.js 35KB
cc.js 6KB
CharactorCtrl.js 6KB
cc.js 6KB
FightMgr.js 5KB
CharactorCtrl.js 5KB
ResMgr.js 4KB
FightMgr.js 4KB
migrate-canvas.js 4KB
migrate-canvas.js 4KB
AttackAction.js 3KB
ResMgr.js 3KB
GameApp.js 3KB
PlayerOpt.js 3KB
AnimAction.js 3KB
AIOpt.js 3KB
GameApp.js 2KB
AttackAction.js 2KB
GameLanch.js 2KB
PlayerOpt.js 2KB
AnimAction.js 2KB
AIOpt.js 2KB
GameLanch.js 2KB
prerequisite-imports.js 934B
cr.js 865B
cr.js 848B
共 618 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
泡泡茶壶Wending
- 粉丝: 186
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0