(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小游戏源码
共357个文件
json:134个
js:73个
map:72个
5星 · 超过95%的资源 需积分: 0 118 下载量 201 浏览量
2023-04-23
19:40:10
上传
评论 5
收藏 1.75MB ZIP 举报
温馨提示
本项目源码是一款参考[羊了个羊]制作的一款微信小游戏,感兴趣的朋友可以下载来玩玩或者学习。
资源推荐
资源详情
资源评论
收起资源包目录
CocosCreator小游戏源码 (357个子文件)
087bcb3c-9d8c-4ea9-8486-420b58e9b03a 638B
087bcb3c-9d8c-4ea9-8486-420b58e9b03a@6c48a 638B
087bcb3c-9d8c-4ea9-8486-420b58e9b03a@f9941 638B
30fd9aad-5099-4528-a610-0d6d36880888 934B
3498919b-7117-4987-a96d-6d397ee170e4 862B
376260c0-3ffd-4d21-941f-fce04128a090 850B
81ee6586-4817-48ed-a440-9cc0f978b276 402B
89105b45-39b5-4d55-a252-c08a48f76b65 0B
89105b45-39b5-4d55-a252-c08a48f76b65 0B
89105b45-39b5-4d55-a252-c08a48f76b65 0B
89105b45-39b5-4d55-a252-c08a48f76b65 0B
9422e32c-8807-483c-b993-4704c5acd15c 722B
out.bin 255KB
settings.dat 40B
e3453f43-81a6-4d09-b725-fa07bb0c87d1 334B
f553203c-d8d2-4f40-bed8-fb7dad3df7bd 1KB
.gitignore 357B
out.gltf 14KB
system.js 40KB
938e6e3348ed25626d1c38a11329a13ca4c133a1.js 13KB
4c2ab1166b14f7e1c56d2478a88b12e8e1087dfb.js 13KB
0e2b97dc3b605e88c84008380fe06a17c7aa834e.js 13KB
72337887762a7200eba4ced4351ca4d643622e22.js 13KB
15550aff411c90d5c81e32cc1adf6047598615ef.js 13KB
5c38676274f6462ed4be1d7f9fbcf48f09664758.js 13KB
76cd8944c5ce7e913d8bbec37a0ce4bbd9b3ec8c.js 13KB
166175daca5cc03722dc94cf66f4f43c12360a14.js 13KB
c45b04e02a95bb4685fd0ca6e1dd31cc4b186f35.js 13KB
7fe4c6cefee9f8e04aa2218e2551e1bcaf772f3f.js 13KB
26b7fdd6bee931169c3dc47b71c145127b287db2.js 13KB
c56f4f1bd305924abdc921f901084f843fdddf1c.js 13KB
4660f2e5fcd533c32a9e2dc3a03e12bb809b958c.js 13KB
cef732fe2db1c092f560a649c997d44321f3d598.js 13KB
756f7a43d79ab1f5ff7d8f2f990a57e5be8b61bd.js 13KB
bc769ca192c408d8b4bbcf3f7af4a9b012c3eeb4.js 13KB
aa9361e802b67663d68c08a6a278da7c49cad591.js 13KB
afdcfd26843ee83d1540128267d601e0e7f17a99.js 13KB
a3e59f52afee6748c765c9fb087c73f4a6eac852.js 13KB
c007eb14ec23abd3d2dcb05ee8fe99400f076c57.js 13KB
309008cee7ecd99957dc78ae8f1357e67e136510.js 12KB
4d36a8819a845b6723d21f6bce5d182c3289194c.js 12KB
3ce82f30f0efd6f9dd3998d5db7adde8160e8707.js 12KB
8e611af3c3c10944063ee652f9f05510d5be3224.js 12KB
03664597f8fbf6ecf0f5628102ad8258b08c5752.js 8KB
618200e4aa12ed321a17a989a5963a2b100ce91b.js 8KB
1fbee7251d75c6eb695a09b53f2f6b16e18e6d31.js 6KB
bf80b81e2392114b75edffcbce0ce35194ada710.js 6KB
06905a76530cf57ee019d9d8bcfb507c2d037fd3.js 6KB
3286ded4be0423f8efb78928dc136b3c5aab5d0b.js 5KB
e4423bd229ebfee9f87b06f1f9c0ddcc862e4209.js 5KB
909f786ffe128f06f5aa1b4e1e3fbbd65262915e.js 5KB
68d99eb2bd5ac449d443d1d23e7119c95c84ec84.js 5KB
11ba03b43fd625f7eab23dca546fb5ed3a559449.js 5KB
39bcbda6753bfcb1a7a85f4cfa14fc56f5021b1e.js 4KB
14a0563fcdf062021f367474b973c4d861ba5acb.js 4KB
48f72f1095cf1d7559e4d31db0ed8a451ef9b598.js 4KB
37a5d97db6937de598a4118c1e3bb922a695097d.js 4KB
7ab09bd36be11f50a6d6fd7bad2b575860618931.js 4KB
6921b0470f7133eaec2eb766a922107990e051ff.js 4KB
24da15e04e82e6a8c330e4cf358e73f916919fc1.js 3KB
1f3113f98f690e69fabb9473b8bf1334232acc37.js 3KB
8b916831b5c647133e5762a81c54142ff755aa28.js 3KB
d04b83ac1d002343d042dbf4e73aa05e32c8b564.js 3KB
7f54020a4d37a0b0c7e37f73ae05aad76ff2e063.js 3KB
90c8e01ad28a7699b10092fbbcd75daa0ade6544.js 2KB
944f39c144b0a2ceda12f426fc64f433ff94e706.js 2KB
f5d14fb54cf2a38267cd876625c85d425212e929.js 2KB
c32553549ebef5378c9f67b15e28531b8572330d.js 2KB
c32553549ebef5378c9f67b15e28531b8572330d.js 2KB
a62b81f90045e7e8f6c28d0ed173682986ee36fd.js 2KB
4337760cc1f4aa74df8ad4fdde6943c1a3f669c2.js 2KB
5cff4904445b307db5e7057a71cc54a77d67bef9.js 2KB
078d5336e56a991252ed50b26eb542253101f821.js 932B
078d5336e56a991252ed50b26eb542253101f821.js 932B
3a1fd7b13056478820ebedd306d3446d1aa408cc.js 895B
84741ad843cea9a440c5d8c2d379669b6551400d.js 878B
62490595b4e99b773d7f9dda79610c0b751b9281.js 858B
62490595b4e99b773d7f9dda79610c0b751b9281.js 858B
455698e5b90a6b31601502c1c298c5ad53f0e9fd.js 844B
455698e5b90a6b31601502c1c298c5ad53f0e9fd.js 844B
cf6c1f974c470723070f93ec99cefe6833fb05d6.js 832B
cf6c1f974c470723070f93ec99cefe6833fb05d6.js 832B
b04882f6528f528d23c15a1a07354592145c07ab.js 667B
6324fd7f2a6a90bef45040fcb7ce34af0ba6a7d3.js 626B
48925ed89f58b0eff72f0ddf69b47c4b5e8f623a.js 585B
051e512bc19ae273b1b08b612b292a731729aa05.js 546B
341ab3341f38daa5d6eb502f45f16e9d150576f5.js 337B
6cea9118b313aa76b67e6fd6577a4a82aae4c9d4.js 290B
6b8f85b7feaee65395ce6b5e8080983e7f56d534.js 243B
d0b5187750a9b5b49aadedeaf74328dc3edecc1c.js 201B
custom-macro.js 144B
release.json 31KB
main-record.json 17KB
release.json 14KB
main-record.json 9KB
assembly-record.json 7KB
pac-info.json 5KB
release.json 5KB
assembly-record.json 4KB
import-map.json 3KB
共 357 条
- 1
- 2
- 3
- 4
资源评论
- 拥2024-04-24不错 #运行顺畅
- pkyong692024-04-10#运行顺畅 #内容详尽
麦迪尔
- 粉丝: 601
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 3122080306 邹子轩 实验报告二.docx
- 基于STM32 NUCLEO板设计彩色LED照明灯(纯cubeMX开发)(大赛作品,文档完整,可直接运行)
- 发那科工业机器人保养大全
- Sphere.h
- REMD固有时间尺度分解信号分量可视化(Matlab完整源码和数据)
- 嵌入式系统双单片机STC89C52+STC15W104多功能学习板电路图可扩展 适用于单片机初学者和教学
- 基于STM32蓝牙控制小车系统设计(硬件+源代码+论文)大赛作品
- XILINXFPGA源码基于Spartan3火龙刀系列FPGA开发板VGA测试例程
- Java聊天室的设计与实现【尚学堂·百战程序员】
- python中matplotlib教程
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功