Commit 36e2ca2a authored by 邱旭's avatar 邱旭

更新,3D模型骨骼使用纹理贴图的形式传数据,提升骨骼数量上限

parent 76d01296
This diff is collapsed.
This diff is collapsed.
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Tween=e():t.Tween=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(1),e);var o=n(2);Object.defineProperty(e,"Tween",{enumerable:!0,get:function(){return o.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Ease=void 0;var i=function(){function t(){}return t.get=function(t){return t<-1&&(t=-1),t>1&&(t=1),function(e){return 0==t?e:t<0?e*(e*-t+1+t):e*((2-e)*t+(1-t))}},t.getPowIn=function(t){return function(e){return Math.pow(e,t)}},t.getPowOut=function(t){return function(e){return 1-Math.pow(1-e,t)}},t.getPowInOut=function(t){return function(e){return(e*=2)<1?.5*Math.pow(e,t):1-.5*Math.abs(Math.pow(2-e,t))}},t.sineIn=function(t){return 1-Math.cos(t*Math.PI/2)},t.sineOut=function(t){return Math.sin(t*Math.PI/2)},t.sineInOut=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getBackIn=function(t){return function(e){return e*e*((t+1)*e-t)}},t.getBackOut=function(t){return function(e){return--e*e*((t+1)*e+t)+1}},t.getBackInOut=function(t){return t*=1.525,function(e){return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},t.circIn=function(t){return-(Math.sqrt(1-t*t)-1)},t.circOut=function(t){return Math.sqrt(1- --t*t)},t.circInOut=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},t.bounceIn=function(e){return 1-t.bounceOut(1-e)},t.bounceOut=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},t.bounceInOut=function(e){return e<.5?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5},t.getElasticIn=function(t,e){var n=2*Math.PI;return function(i){if(0==i||1==i)return i;var r=e/n*Math.asin(1/t);return-t*Math.pow(2,10*(i-=1))*Math.sin((i-r)*n/e)}},t.getElasticOut=function(t,e){var n=2*Math.PI;return function(i){if(0==i||1==i)return i;var r=e/n*Math.asin(1/t);return t*Math.pow(2,-10*i)*Math.sin((i-r)*n/e)+1}},t.getElasticInOut=function(t,e){var n=2*Math.PI;return function(i){var r=e/n*Math.asin(1/t);return(i*=2)<1?t*Math.pow(2,10*(i-=1))*Math.sin((i-r)*n/e)*-.5:t*Math.pow(2,-10*(i-=1))*Math.sin((i-r)*n/e)*.5+1}},t.quadIn=t.getPowIn(2),t.quadOut=t.getPowOut(2),t.quadInOut=t.getPowInOut(2),t.cubicIn=t.getPowIn(3),t.cubicOut=t.getPowOut(3),t.cubicInOut=t.getPowInOut(3),t.quartIn=t.getPowIn(4),t.quartOut=t.getPowOut(4),t.quartInOut=t.getPowInOut(4),t.quintIn=t.getPowIn(5),t.quintOut=t.getPowOut(5),t.quintInOut=t.getPowInOut(5),t.backIn=t.getBackIn(1.7),t.backOut=t.getBackOut(1.7),t.backInOut=t.getBackInOut(1.7),t.elasticIn=t.getElasticIn(1,.3),t.elasticOut=t.getElasticOut(1,.3),t.elasticInOut=t.getElasticInOut(1,.3*1.5),t}();e.Ease=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e,n){this._target=null,this._useTicks=!1,this.ignoreGlobalPause=!1,this.loop=!1,this.pluginData=null,this._steps=null,this.paused=!1,this.duration=0,this._prevPos=-1,this.position=null,this._prevPosition=0,this._stepPosition=0,this.passive=!1,this.initialize(t,e,n)}return t.get=function(e,n,i,r){return void 0===i&&(i=null),void 0===r&&(r=!1),r&&t.removeTweens(e),new t(e,n,i)},t.removeTweens=function(e){if(e.tween_count){for(var n=t._tweens,i=n.length-1;i>=0;i--)n[i]._target==e&&(n[i].paused=!0,n.splice(i,1));e.tween_count=0}},t.removeTweenSelf=function(e){if(e&&e._target&&e._target.tween_count){e.paused=!0;var n=t._tweens,i=n.indexOf(e);i>-1&&n.splice(i,1),e._target.tween_count--}},t.pauseTweens=function(e){if(e.tween_count)for(var n=t._tweens,i=n.length-1;i>=0;i--)n[i]._target==e&&(n[i].paused=!0)},t.resumeTweens=function(e){if(e.tween_count)for(var n=t._tweens,i=n.length-1;i>=0;i--)n[i]._target==e&&(n[i].paused=!1)},t.tick=function(e,n){void 0===n&&(n=!1);var i=e-t._lastTime;t._lastTime=e;for(var r=t._tweens.concat(),o=r.length-1;o>=0;o--){var u=r[o];n&&!u.ignoreGlobalPause||u.paused||u.$tick(u._useTicks?1:i)}return!1},t.flush=function(){var e=Date.now(),n=t._lastTime?e-t._lastTime:16.67;t._lastTime=e;for(var i=t._tweens.concat(),r=i.length-1;r>=0;r--){var o=i[r];o.paused||o.$tick(o._useTicks?1:n)}},t._register=function(e,n){var i=e._target,r=t._tweens;if(n)i&&(i.tween_count=i.tween_count>0?i.tween_count+1:1),r.push(e),t._inited||(t._inited=!0);else{i&&i.tween_count--;for(var o=r.length;o--;)if(r[o]==e)return void r.splice(o,1)}},t.removeAllTweens=function(){for(var e=t._tweens,n=0,i=e.length;n<i;n++){var r=e[n];r.paused=!0,r._target.tween_count=0}e.length=0},t.prototype.initialize=function(e,n,i){this._target=e,n&&(this._useTicks=n.useTicks,this.ignoreGlobalPause=n.ignoreGlobalPause,this.loop=n.loop,n.onChange?this.onChange=n.onChange.bind(n.onChangeObj):this.onChange=null,n.override&&t.removeTweens(e)),this.pluginData=i||{},this._curQueueProps={},this._initQueueProps={},this._steps=[],n&&n.paused?this.paused=!0:t._register(this,!0),n&&null!=n.position&&this.setPosition(n.position,t.NONE)},t.prototype.setPosition=function(t,e){void 0===e&&(e=1),t<0&&(t=0);var n=t,i=!1;if(n>=this.duration)if(this.loop){var r=n%this.duration;n=n>0&&0===r?this.duration:r}else n=this.duration,i=!0;if(n==this._prevPos)return i;i&&this.setPaused(!0);var o=this._prevPos;if(this.position=this._prevPos=n,this._prevPosition=t,this._target&&this._steps.length>0){for(var u=this._steps.length,s=-1,a=0;a<u&&!("step"==this._steps[a].type&&(s=a,this._steps[a].t<=n&&this._steps[a].t+this._steps[a].d>=n));a++);for(a=0;a<u;a++)if("action"==this._steps[a].type)0!=e&&(this._useTicks?this._runAction(this._steps[a],n,n):1==e&&n<o?(o!=this.duration&&this._runAction(this._steps[a],o,this.duration),this._runAction(this._steps[a],0,n,!0)):this._runAction(this._steps[a],o,n));else if("step"==this._steps[a].type&&s==a){var p=this._steps[s];this._updateTargetProps(p,Math.min((this._stepPosition=n-p.t)/p.d,1))}}return this.onChange&&this.onChange(),i},t.prototype._runAction=function(t,e,n,i){void 0===i&&(i=!1);var r=e,o=n;e>n&&(r=n,o=e);var u=t.t;(u==o||u>r&&u<o||i&&u==e)&&t.f.apply(t.o,t.p)},t.prototype._updateTargetProps=function(e,n){var i,r,o,u,s,a;if(e||1!=n){if(this.passive=!!e.v,this.passive)return;e.e&&(n=e.e(n,0,1,1)),i=e.p0,r=e.p1}else this.passive=!1,i=r=this._curQueueProps;for(var p in this._initQueueProps){null==(u=i[p])&&(i[p]=u=this._initQueueProps[p]),null==(s=r[p])&&(r[p]=s=u),o=u==s||0==n||1==n||"number"!=typeof u?1==n?s:u:u+(s-u)*n;var c=!1;if(a=t._plugins[p])for(var h=0,f=a.length;h<f;h++){var _=a[h].tween(this,p,o,i,r,n,!!e&&i==r,!e);_==t.IGNORE?c=!0:o=_}c||(this._target[p]=o)}},t.prototype.setPaused=function(e){return this.paused==e||(this.paused=e,t._register(this,!e)),this},t.prototype._cloneProps=function(t){var e={};for(var n in t)e[n]=t[n];return e},t.prototype._addStep=function(t){return t.d>0&&(t.type="step",this._steps.push(t),t.t=this.duration,this.duration+=t.d),this},t.prototype._appendQueueProps=function(e){var n,i,r,o,u;for(var s in e)if(void 0===this._initQueueProps[s]){if(i=this._target[s],n=t._plugins[s])for(r=0,o=n.length;r<o;r++)i=n[r].init(this,s,i);this._initQueueProps[s]=this._curQueueProps[s]=void 0===i?null:i}else i=this._curQueueProps[s];for(var s in e){if(i=this._curQueueProps[s],n=t._plugins[s])for(u=u||{},r=0,o=n.length;r<o;r++)n[r].step&&n[r].step(this,s,i,e[s],u);this._curQueueProps[s]=e[s]}return u&&this._appendQueueProps(u),this._curQueueProps},t.prototype._addAction=function(t){return t.t=this.duration,t.type="action",this._steps.push(t),this},t.prototype._set=function(t,e){for(var n in t)e[n]=t[n]},t.prototype.wait=function(t,e){if(null==t||t<=0)return this;var n=this._cloneProps(this._curQueueProps);return this._addStep({d:t,p0:n,p1:n,v:e})},t.prototype.to=function(t,e,n){return void 0===n&&(n=void 0),(isNaN(e)||e<0)&&(e=0),this._addStep({d:e||0,p0:this._cloneProps(this._curQueueProps),e:n,p1:this._cloneProps(this._appendQueueProps(t))}),this.set(t)},t.prototype.by=function(t,e,n){for(var i in void 0===e&&(e=0),void 0===n&&(n=void 0),t)t[i]+=this._curQueueProps[i]||this._target[i];return this.to(t,e,n)},t.prototype.call=function(t,e,n){return void 0===e&&(e=void 0),void 0===n&&(n=void 0),this._addAction({f:t,p:n||[],o:e||this._target})},t.prototype.set=function(t,e){return void 0===e&&(e=null),this._appendQueueProps(t),this._addAction({f:this._set,o:this,p:[t,e||this._target]})},t.prototype.play=function(t){return t||(t=this),this.call(t.setPaused,t,[!1])},t.prototype.pause=function(t){return t||(t=this),this.call(t.setPaused,t,[!0])},t.prototype.$tick=function(t){this.paused||this.setPosition(this._prevPosition+t)},t.NONE=0,t.LOOP=1,t.REVERSE=2,t._tweens=[],t.IGNORE={},t._plugins={},t._inited=!1,t._lastTime=0,t}();e.default=i}])}));
//# sourceMappingURL=tween.min.js.map
\ No newline at end of file
This diff is collapsed.
小招喵换装.png
size: 1024,1024
format: RGBA8888
filter: Linear,Linear
repeat: none
erdy
rotate: false
xy: 579, 740
size: 98, 97
orig: 98, 99
offset: 0, 2
index: -1
erdz
rotate: false
xy: 679, 740
size: 98, 97
orig: 98, 99
offset: 0, 2
index: -1
huziy
rotate: true
xy: 950, 987
size: 34, 37
orig: 34, 37
offset: 0, 0
index: -1
huziz
rotate: false
xy: 130, 960
size: 37, 37
orig: 37, 37
offset: 0, 0
index: -1
kuzd
rotate: false
xy: 2, 882
size: 155, 76
orig: 155, 76
offset: 0, 0
index: -1
kuziaa
rotate: false
xy: 322, 768
size: 157, 93
orig: 158, 93
offset: 0, 0
index: -1
kuzibb
rotate: false
xy: 163, 787
size: 157, 88
orig: 157, 88
offset: 0, 0
index: -1
kuzicc
rotate: false
xy: 2, 787
size: 159, 88
orig: 159, 88
offset: 0, 0
index: -1
kuzie
rotate: false
xy: 619, 839
size: 158, 86
orig: 158, 86
offset: 0, 0
index: -1
maof
rotate: false
xy: 478, 946
size: 57, 44
orig: 57, 44
offset: 0, 0
index: -1
moj
rotate: false
xy: 159, 877
size: 225, 68
orig: 225, 68
offset: 0, 0
index: -1
saihxiao
rotate: false
xy: 27, 999
size: 196, 22
orig: 196, 22
offset: 0, 0
index: -1
shangyiaa
rotate: false
xy: 157, 644
size: 154, 141
orig: 154, 141
offset: 0, 0
index: -1
shentibb
rotate: false
xy: 779, 681
size: 160, 116
orig: 161, 116
offset: 1, 0
index: -1
shiwu
rotate: false
xy: 221, 948
size: 46, 42
orig: 46, 42
offset: 0, 0
index: -1
shou
rotate: false
xy: 386, 863
size: 131, 81
orig: 131, 112
offset: 0, 30
index: -1
stcc
rotate: false
xy: 313, 619
size: 152, 147
orig: 152, 147
offset: 0, 0
index: -1
std
rotate: false
xy: 2, 669
size: 153, 116
orig: 153, 116
offset: 0, 0
index: -1
ste
rotate: false
xy: 467, 605
size: 196, 133
orig: 196, 133
offset: 0, 0
index: -1
tou
rotate: false
xy: 665, 462
size: 259, 217
orig: 259, 217
offset: 0, 0
index: -1
xiaoy
rotate: false
xy: 2, 963
size: 62, 34
orig: 68, 40
offset: 3, 3
index: -1
xiaoz
rotate: false
xy: 66, 963
size: 62, 34
orig: 68, 40
offset: 3, 3
index: -1
xieybb
rotate: false
xy: 225, 992
size: 71, 29
orig: 77, 35
offset: 3, 3
index: -1
xieyd
rotate: false
xy: 298, 992
size: 70, 29
orig: 76, 35
offset: 3, 3
index: -1
xieye
rotate: false
xy: 370, 992
size: 70, 29
orig: 76, 35
offset: 3, 3
index: -1
xiezbb
rotate: false
xy: 442, 992
size: 71, 29
orig: 77, 35
offset: 3, 3
index: -1
xiezd
rotate: false
xy: 515, 992
size: 70, 29
orig: 76, 35
offset: 3, 3
index: -1
xieze
rotate: false
xy: 587, 992
size: 71, 29
orig: 77, 35
offset: 3, 3
index: -1
xiezizaa
rotate: false
xy: 660, 992
size: 70, 29
orig: 76, 35
offset: 3, 3
index: -1
xiezyaa
rotate: false
xy: 732, 992
size: 71, 29
orig: 77, 35
offset: 3, 3
index: -1
yanjdy
rotate: false
xy: 537, 932
size: 63, 58
orig: 69, 64
offset: 3, 3
index: -1
yanjdz
rotate: false
xy: 602, 932
size: 63, 58
orig: 69, 64
offset: 3, 3
index: -1
yanjy
rotate: true
xy: 2, 1010
size: 11, 23
orig: 17, 29
offset: 3, 3
index: -1
yingzi
rotate: false
xy: 269, 947
size: 207, 43
orig: 215, 53
offset: 4, 5
index: -1
youxiec
rotate: false
xy: 805, 992
size: 71, 29
orig: 77, 35
offset: 3, 3
index: -1
zsaa
rotate: true
xy: 481, 750
size: 93, 96
orig: 93, 96
offset: 0, 0
index: -1
zssc
rotate: true
xy: 779, 834
size: 86, 99
orig: 86, 99
offset: 0, 0
index: -1
zssd
rotate: false
xy: 936, 887
size: 85, 98
orig: 85, 98
offset: 0, 0
index: -1
zsse
rotate: true
xy: 519, 845
size: 85, 98
orig: 85, 98
offset: 0, 0
index: -1
zuexiec
rotate: false
xy: 878, 992
size: 70, 29
orig: 76, 35
offset: 3, 3
index: -1
zuichi
rotate: false
xy: 667, 927
size: 113, 63
orig: 113, 63
offset: 0, 0
index: -1
zuidai
rotate: false
xy: 169, 959
size: 50, 38
orig: 56, 44
offset: 3, 3
index: -1
zuixiao
rotate: false
xy: 782, 922
size: 152, 68
orig: 158, 74
offset: 3, 3
index: -1
zuossbb
rotate: true
xy: 880, 799
size: 86, 99
orig: 86, 99
offset: 0, 0
index: -1
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment