mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2026-04-02 20:52:18 +00:00
Deploy website - based on 96076c7733
This commit is contained in:
98
demo/v1.0.0/web-desktop/assets/spine/config.ed69a.json
Normal file
98
demo/v1.0.0/web-desktop/assets/spine/config.ed69a.json
Normal file
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"paths": {
|
||||
"76ZjeTsCNJMYn7/rwRXCpD": [
|
||||
"batch/spine-batch",
|
||||
"cc.Prefab"
|
||||
],
|
||||
"03EprhmOVCZKUbb5XyPXQq": [
|
||||
"skin/spine-skin",
|
||||
"cc.Prefab"
|
||||
]
|
||||
},
|
||||
"uuids": [
|
||||
"03EprhmOVCZKUbb5XyPXQq",
|
||||
"09o3P/9gBP/Yc7AnxUBZ+Q",
|
||||
"29FYIk+N1GYaeWH/q1NxQO",
|
||||
"5cO7kybDxGj4ipyMYdRYZB",
|
||||
"5f5dyqtRNNxaFmVzYns6FZ",
|
||||
"70VXjGE0JMUqGli0jmCmTF",
|
||||
"71VhFCTINJM6/Ky3oX9nBT",
|
||||
"76ZjeTsCNJMYn7/rwRXCpD",
|
||||
"7a/QZLET9IDreTiBfRn2PD",
|
||||
"85yTK+9shIo7RQfQ1TDEUi",
|
||||
"87/8ZHBEVIkKeNxmalrn9r",
|
||||
"93dM6KrkZCf5dgNpQwf7T6",
|
||||
"a2MjXRFdtLlYQ5ouAFv/+R",
|
||||
"a7ZscqX+JCIZRS157bMyhq",
|
||||
"b4P/PCArtIdIH38t6mlw8Y",
|
||||
"d0Bu8c2MBCKJc+mKBWzjsJ",
|
||||
"e8Ueib+qJEhL6mXAHdnwbi",
|
||||
"e97GVMl6JHh5Ml5qEDdSGa",
|
||||
"ecpdLyjvZBwrvm+cedCcQy",
|
||||
"f0BIwQ8D5Ml7nTNQbh1YlS"
|
||||
],
|
||||
"scenes": {},
|
||||
"redirect": [
|
||||
"09o3P/9gBP/Yc7AnxUBZ+Q",
|
||||
0,
|
||||
"5cO7kybDxGj4ipyMYdRYZB",
|
||||
1,
|
||||
"5f5dyqtRNNxaFmVzYns6FZ",
|
||||
1,
|
||||
"70VXjGE0JMUqGli0jmCmTF",
|
||||
0,
|
||||
"7a/QZLET9IDreTiBfRn2PD",
|
||||
2,
|
||||
"85yTK+9shIo7RQfQ1TDEUi",
|
||||
0,
|
||||
"87/8ZHBEVIkKeNxmalrn9r",
|
||||
0,
|
||||
"93dM6KrkZCf5dgNpQwf7T6",
|
||||
0,
|
||||
"a2MjXRFdtLlYQ5ouAFv/+R",
|
||||
1,
|
||||
"a7ZscqX+JCIZRS157bMyhq",
|
||||
0,
|
||||
"d0Bu8c2MBCKJc+mKBWzjsJ",
|
||||
0,
|
||||
"ecpdLyjvZBwrvm+cedCcQy",
|
||||
2
|
||||
],
|
||||
"deps": [
|
||||
"common",
|
||||
"main",
|
||||
"internal"
|
||||
],
|
||||
"packs": {
|
||||
"05fa2ad10": [
|
||||
"03EprhmOVCZKUbb5XyPXQq",
|
||||
"29FYIk+N1GYaeWH/q1NxQO",
|
||||
"71VhFCTINJM6/Ky3oX9nBT",
|
||||
"76ZjeTsCNJMYn7/rwRXCpD",
|
||||
"b4P/PCArtIdIH38t6mlw8Y",
|
||||
"e8Ueib+qJEhL6mXAHdnwbi",
|
||||
"e97GVMl6JHh5Ml5qEDdSGa",
|
||||
"f0BIwQ8D5Ml7nTNQbh1YlS"
|
||||
]
|
||||
},
|
||||
"name": "spine",
|
||||
"importBase": "import",
|
||||
"nativeBase": "native",
|
||||
"debug": true,
|
||||
"isZip": false,
|
||||
"encrypted": false,
|
||||
"versions": {
|
||||
"import": [
|
||||
"05fa2ad10",
|
||||
"b4dad"
|
||||
],
|
||||
"native": [
|
||||
"71VhFCTINJM6/Ky3oX9nBT",
|
||||
"c06a9",
|
||||
"b4P/PCArtIdIH38t6mlw8Y",
|
||||
"83fcc",
|
||||
"e8Ueib+qJEhL6mXAHdnwbi",
|
||||
"90cf4"
|
||||
]
|
||||
}
|
||||
}
|
||||
3259
demo/v1.0.0/web-desktop/assets/spine/import/05/05fa2ad10.b4dad.json
Normal file
3259
demo/v1.0.0/web-desktop/assets/spine/import/05/05fa2ad10.b4dad.json
Normal file
File diff suppressed because it is too large
Load Diff
155
demo/v1.0.0/web-desktop/assets/spine/index.ed69a.js
Normal file
155
demo/v1.0.0/web-desktop/assets/spine/index.ed69a.js
Normal file
@@ -0,0 +1,155 @@
|
||||
window.__require = function e(t, n, r) {
|
||||
function s(o, u) {
|
||||
if (!n[o]) {
|
||||
if (!t[o]) {
|
||||
var b = o.split("/");
|
||||
b = b[b.length - 1];
|
||||
if (!t[b]) {
|
||||
var a = "function" == typeof __require && __require;
|
||||
if (!u && a) return a(b, !0);
|
||||
if (i) return i(b, !0);
|
||||
throw new Error("Cannot find module '" + o + "'");
|
||||
}
|
||||
o = b;
|
||||
}
|
||||
var f = n[o] = {
|
||||
exports: {}
|
||||
};
|
||||
t[o][0].call(f.exports, function(e) {
|
||||
var n = t[o][1][e];
|
||||
return s(n || e);
|
||||
}, f, f.exports, e, t, n, r);
|
||||
}
|
||||
return n[o].exports;
|
||||
}
|
||||
var i = "function" == typeof __require && __require;
|
||||
for (var o = 0; o < r.length; o++) s(r[o]);
|
||||
return s;
|
||||
}({
|
||||
"spine-skin": [ function(require, module, exports) {
|
||||
"use strict";
|
||||
cc._RF.push(module, "27990QihT9DxaLHUpAMue3v", "spine-skin");
|
||||
"use strict";
|
||||
var __extends = this && this.__extends || function() {
|
||||
var extendStatics = function(d, b) {
|
||||
extendStatics = Object.setPrototypeOf || {
|
||||
__proto__: []
|
||||
} instanceof Array && function(d, b) {
|
||||
d.__proto__ = b;
|
||||
} || function(d, b) {
|
||||
for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]);
|
||||
};
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function(d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() {
|
||||
this.constructor = d;
|
||||
}
|
||||
d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
}();
|
||||
var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if ("object" === typeof Reflect && "function" === typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __values = this && this.__values || function(o) {
|
||||
var s = "function" === typeof Symbol && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && "number" === typeof o.length) return {
|
||||
next: function() {
|
||||
o && i >= o.length && (o = void 0);
|
||||
return {
|
||||
value: o && o[i++],
|
||||
done: !o
|
||||
};
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
|
||||
var SpineSkin = function(_super) {
|
||||
__extends(SpineSkin, _super);
|
||||
function SpineSkin() {
|
||||
var _this = null !== _super && _super.apply(this, arguments) || this;
|
||||
_this.addBoyBtn = null;
|
||||
_this.removeBoyBtn = null;
|
||||
_this.randomChangeBtn = null;
|
||||
_this.boy = null;
|
||||
_this.heads = [];
|
||||
_this.boys = [];
|
||||
_this.datas = [];
|
||||
return _this;
|
||||
}
|
||||
SpineSkin.prototype.start = function() {
|
||||
var _this = this;
|
||||
var boySpine = this.boy.getComponentInChildren(sp.Skeleton);
|
||||
var newSkeletonData = boySpine.skeletonData.clone();
|
||||
boySpine.skeletonData = newSkeletonData;
|
||||
boySpine.animation = "attack";
|
||||
this.datas.push(newSkeletonData);
|
||||
this.boys.push(this.boy);
|
||||
this.addBoyBtn.on("click", function() {
|
||||
var newBoy = cc.instantiate(_this.boy);
|
||||
var newBoySpine = newBoy.getComponentInChildren(sp.Skeleton);
|
||||
newBoySpine.skeletonData = boySpine.skeletonData.clone();
|
||||
newBoySpine.animation = "attack";
|
||||
_this.boy.parent.addChild(newBoy);
|
||||
newBoy.setPosition(_this.boys[_this.boys.length - 1].position);
|
||||
newBoy.x += 100;
|
||||
if (_this.boys.length % 2 === 1) {
|
||||
newBoy.getComponentInChildren(sp.Skeleton).setAnimationCacheMode(sp.Skeleton.AnimationCacheMode.PRIVATE_CACHE);
|
||||
newBoy.getComponentInChildren(cc.Label).string = "Spine - Cache";
|
||||
}
|
||||
_this.datas.push(newBoySpine.skeletonData);
|
||||
_this.boys.push(newBoy);
|
||||
});
|
||||
this.removeBoyBtn.on("click", function() {
|
||||
if (_this.boys.length > 1) {
|
||||
_this.datas[_this.datas.length - 1].destroy();
|
||||
_this.boys[_this.boys.length - 1].destroy();
|
||||
_this.datas.length -= 1;
|
||||
_this.boys.length -= 1;
|
||||
}
|
||||
});
|
||||
this.randomChangeBtn.on("click", function() {
|
||||
var boy = _this.boys[_this.boys.length - 1].getComponentInChildren(sp.Skeleton);
|
||||
boy.setRegionData("Head", "Head", new sp.RegionData(_this.heads[Math.floor(Math.random() * _this.heads.length)]));
|
||||
});
|
||||
};
|
||||
SpineSkin.prototype.onDestroy = function() {
|
||||
var e_1, _a;
|
||||
try {
|
||||
for (var _b = __values(this.datas), _c = _b.next(); !_c.done; _c = _b.next()) {
|
||||
var data = _c.value;
|
||||
data.destroy();
|
||||
}
|
||||
} catch (e_1_1) {
|
||||
e_1 = {
|
||||
error: e_1_1
|
||||
};
|
||||
} finally {
|
||||
try {
|
||||
_c && !_c.done && (_a = _b.return) && _a.call(_b);
|
||||
} finally {
|
||||
if (e_1) throw e_1.error;
|
||||
}
|
||||
}
|
||||
};
|
||||
__decorate([ property(cc.Node) ], SpineSkin.prototype, "addBoyBtn", void 0);
|
||||
__decorate([ property(cc.Node) ], SpineSkin.prototype, "removeBoyBtn", void 0);
|
||||
__decorate([ property(cc.Node) ], SpineSkin.prototype, "randomChangeBtn", void 0);
|
||||
__decorate([ property(cc.Node) ], SpineSkin.prototype, "boy", void 0);
|
||||
__decorate([ property([ cc.SpriteFrame ]) ], SpineSkin.prototype, "heads", void 0);
|
||||
SpineSkin = __decorate([ ccclass ], SpineSkin);
|
||||
return SpineSkin;
|
||||
}(cc.Component);
|
||||
exports.default = SpineSkin;
|
||||
cc._RF.pop();
|
||||
}, {} ]
|
||||
}, {}, [ "spine-skin" ]);
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
demo/v1.0.0/web-desktop/assets/spine/index.js.map
Normal file
1
demo/v1.0.0/web-desktop/assets/spine/index.js.map
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user