diff --git a/build/kiwi.js b/build/kiwi.js
index 9abe9b2..afa7e54 100644
--- a/build/kiwi.js
+++ b/build/kiwi.js
@@ -34510,7 +34510,7 @@ var Kiwi;
     * @type string
     * @public
     */
-    Kiwi.VERSION = "1.3.1";
+    Kiwi.VERSION = "1.4.0";
     //DIFFERENT RENDERER STATIC VARIABLES
     /**
     * A Static property that contains the number associated with the CANVAS RENDERER.
diff --git a/build/kiwi.min.js b/build/kiwi.min.js
index 5a91a5a..3e547c6 100644
--- a/build/kiwi.min.js
+++ b/build/kiwi.min.js
@@ -8,4 +8,4 @@ return d}return a.Log.log("No renderer with id "+b+" exists","#renderer","#webgl
 f.x2<=g&&f.x2>=h&&f.y2<=i&&f.y2>=j?e.result=!0:(c.circleContainsPoint(d,{x:a.x1,y:a.y1}).result||c.circleContainsPoint(d,{x:a.x2,y:a.y2}).result)&&(e.result=!0)}return e},c.lineSegmentToRectangle=function(a,d,e){if(void 0===e&&(e=new b.IntersectResult),e.result=!1,d.contains(a.x1,a.y1)&&d.contains(a.x2,a.y2))e.x=(a.x1+a.x2)/2,e.y=(a.y1+a.y2)/2,e.result=!0;else{if(c.lineSegmentToRawSegment(a,d.x,d.y,d.right,d.y,e),e.result===!0)return e;if(c.lineSegmentToRawSegment(a,d.x,d.y,d.x,d.bottom,e),e.result===!0)return e;if(c.lineSegmentToRawSegment(a,d.x,d.bottom,d.right,d.bottom,e),e.result===!0)return e;c.lineSegmentToRawSegment(a,d.right,d.y,d.right,d.bottom,e)}return e},c.rayToCircle=function(d,e,f){void 0===f&&(f=new b.IntersectResult);var g=e.x-d.x1,h=e.y-d.y1;return f.result=!1,Math.sqrt(g*g+h*h)<=e.radius?(f.result=!0,f):Math.abs(a.Utils.GameMath.nearestAngleBetween(d.angle,Math.atan2(h,g)))>=Math.PI/2?f:(c.lineToCircle(d,e,f),f)},c.rayToRectangle=function(a,d,e){return void 0===e&&(e=new b.IntersectResult),e.result=!1,c.lineToRectangle(a,d,e),e},c.rayToLineSegment=function(a,c,d,e,f,g,h,i,j){void 0===j&&(j=new b.IntersectResult),j.result=!1;var k,l,m;return(e-c)/(d-a)!=(i-g)/(h-f)&&(m=(d-a)*(i-g)-(e-c)*(h-f),0!=m&&(k=((c-g)*(h-f)-(a-f)*(i-g))/m,l=((c-g)*(d-a)-(a-f)*(e-c))/m,k>=0&&l>=0&&1>=l&&(j.result=!0,j.x=a+k*(d-a),c+k*(e-c)))),j},c.circleToCircle=function(a,d,e){return void 0===e&&(e=new b.IntersectResult),e.result=!1,e.result=(a.radius+d.radius)*(a.radius+d.radius)>=c.distanceSquared(a.x,a.y,d.x,d.y),e},c.circleToRectangle=function(a,c,d){void 0===d&&(d=new b.IntersectResult),d.result=!1;var e,f,g,h,i,j,k,l;return i=c.width/2,g=Math.abs(a.x-c.x-i),k=a.radius+i,g>k?(d.result=!1,d):(j=c.height/2,h=Math.abs(a.y-c.y-j),l=a.radius+j,h>l?(d.result=!1,d):i>=g||h<=c.height/2?(d.result=!0,d):(e=g-i,f=h-j,d.result=e*e+f*f<=a.radius*a.radius,d))},c.circleContainsPoint=function(a,d,e){return void 0===e&&(e=new b.IntersectResult),e.result=!1,e.result=a.radius*a.radius>=c.distanceSquared(a.x,a.y,d.x,d.y),e},c.pointToRectangle=function(a,c,d){return void 0===d&&(d=new b.IntersectResult),d.result=!1,d.setTo(a.x,a.y),d.result=c.containsPoint(a),d},c.rectangleToRectangle=function(a,c,d){void 0===d&&(d=new b.IntersectResult),d.result=!1;var e=Math.max(a.x,c.x),f=Math.min(a.right,c.right),g=Math.max(a.y,c.y),h=Math.min(a.bottom,c.bottom);d.setTo(e,g,f-e,h-g,f-e,h-g);var i=d.x+.5*d.width,j=d.y+.5*d.height;return i>a.x&&i<a.right&&j>a.y&&j<a.bottom&&(d.result=!0),d},c}();b.Intersect=c}(b=a.Geom||(a.Geom={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(a){var b=function(){function a(){this.result=!1}return a.prototype.objType=function(){return"IntersectResult"},a.prototype.setTo=function(a,b,c,d,e,f){void 0===c&&(c=0),void 0===d&&(d=0),void 0===e&&(e=0),void 0===f&&(f=0),this.x=a,this.y=b,this.x1=a,this.y1=b,this.x2=c,this.y2=d,this.width=e,this.height=f},a}();a.IntersectResult=b}(b=a.Geom||(a.Geom={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function b(a,b,c,d,e,f){void 0===a&&(a=1),void 0===b&&(b=0),void 0===c&&(c=0),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0),this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this.setTo(a,b,c,d,e,f)}return b.prototype.objType=function(){return"Matrix"},b.prototype.setTo=function(a,b,c,d,e,f){return void 0===a&&(a=1),void 0===b&&(b=0),void 0===c&&(c=0),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0),this.a=a,this.b=b,this.c=c,this.d=d,this.tx=e,this.ty=f,this},b.prototype.setFromTransform=function(a,b,c,d,e){this.identity();var f=Math.cos(e),g=Math.sin(e);return this.append(f*c,g*c,-g*d,f*d,a,b),this},b.prototype.setFromOffsetTransform=function(a,b,c,d,e,f,g){this.identity();var h=Math.cos(e),i=Math.sin(e);return this.append(h*c,i*c,-i*d,h*d,a+f,b+g),this},b.prototype.prepend=function(a,b,c,d,e,f){void 0===a&&(a=1),void 0===b&&(b=0),void 0===c&&(c=0),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0);var g=this.tx,h=this.a,i=this.c;return this.a=h*a+this.b*c,this.b=h*b+this.b*d,this.c=i*a+this.d*c,this.d=i*b+this.d*d,this.tx=g*a+this.ty*c+e,this.ty=g*b+this.ty*d+f,this},b.prototype.prependMatrix=function(a){var b=this.tx,c=this.a,d=this.c;return this.a=c*a.a+this.b*a.c,this.b=c*a.b+this.b*a.d,this.c=d*a.a+this.d*a.c,this.d=d*a.b+this.d*a.d,this.tx=b*a.a+this.ty*a.c+a.tx,this.ty=b*a.b+this.ty*a.d+a.ty,this},b.prototype.append=function(a,b,c,d,e,f){void 0===a&&(a=1),void 0===b&&(b=0),void 0===c&&(c=0),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0);var g=this.a,h=this.b,i=this.c,j=this.d;return this.a=a*g+b*i,this.b=a*h+b*j,this.c=c*g+d*i,this.d=c*h+d*j,this.tx=e*g+f*i+this.tx,this.ty=e*h+f*j+this.ty,this},b.prototype.appendMatrix=function(a){var b=this.a,c=this.b,d=this.c,e=this.d;return this.a=a.a*b+a.b*d,this.b=a.a*c+a.b*e,this.c=a.c*b+a.d*d,this.d=a.c*c+a.d*e,this.tx=a.tx*b+a.ty*d+this.tx,this.ty=a.tx*c+a.ty*e+this.ty,this},b.prototype.setPosition=function(a,b){return this.tx=a,this.ty=b,this},b.prototype.setPositionPoint=function(a){return this.tx=a.x,this.ty=a.y,this},b.prototype.getPosition=function(b){return void 0===b&&(b=new a.Geom.Point),b.setTo(this.tx,this.ty)},b.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},b.prototype.rotate=function(a){var b=Math.cos(a),c=Math.sin(a),d=this.a,e=this.c,f=this.tx;return this.a=d*b-this.b*c,this.b=d*c+this.b*b,this.c=e*b-this.d*c,this.d=e*c+this.d*b,this.tx=f*b-this.ty*c,this.ty=f*c+this.ty*b,this},b.prototype.translate=function(a,b){return this.tx+=a,this.ty+=b,this},b.prototype.scale=function(a,b){return this.a*=a,this.d*=b,this},b.prototype.transformPoint=function(a){var b=a.x,c=a.y;return a.x=this.a*b+this.c*c+this.tx,a.y=this.b*b+this.d*c+this.ty,a},b.prototype.invert=function(){var a=this.a,b=this.b,c=this.c,d=this.d,e=this.tx,f=a*d-b*c;return this.a=d/f,this.b=-b/f,this.c=-c/f,this.d=a/f,this.tx=(c*this.ty-d*e)/f,this.ty=-(a*this.ty-b*e)/f,this},b.prototype.copyFrom=function(a){return this.a=a.a,this.b=a.b,this.c=a.c,this.d=a.d,this.tx=a.tx,this.ty=a.ty,this},b.prototype.copyTo=function(a){return a.a=this.a,a.b=this.b,a.c=this.c,a.d=this.d,a.tx=this.tx,a.ty=this.ty,this},b.prototype.clone=function(){return new a.Geom.Matrix(this.a,this.b,this.c,this.d,this.tx,this.ty)},Object.defineProperty(b.prototype,"toString",{get:function(){return"[{Matrix (a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+")}]"},enumerable:!0,configurable:!0}),b.prototype.equals=function(a){return this.a===a.a&&this.b===a.b&&this.c===a.c&&this.d===a.d&&this.tx===a.tx&&this.ty===a.ty},b}();b.Matrix=c}(b=a.Geom||(a.Geom={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(a){var b=function(){function a(a,b){void 0===a&&(a=0),void 0===b&&(b=0),this.setTo(a,b)}return a.prototype.objType=function(){return"Point"},a.prototype.polar=function(a,b){return this.x=a*Math.cos(b),this.y=a*Math.sin(b),this},a.prototype.add=function(b,c){return void 0===c&&(c=new a),c.setTo(this.x+b.x,this.y+b.y)},a.prototype.addTo=function(a,b){return void 0===a&&(a=0),void 0===b&&(b=0),this.setTo(this.x+a,this.y+b)},a.prototype.subtractFrom=function(a,b){return void 0===a&&(a=0),void 0===b&&(b=0),this.setTo(this.x-a,this.y-b)},a.prototype.invert=function(){return this.setTo(this.y,this.x)},a.prototype.clamp=function(a,b){return this.clampX(a,b),this.clampY(a,b),this},a.prototype.clampX=function(a,b){return this.x=Math.max(Math.min(this.x,b),a),this},a.prototype.clampY=function(a,b){return this.x=Math.max(Math.min(this.x,b),a),this.y=Math.max(Math.min(this.y,b),a),this},a.prototype.clone=function(b){return void 0===b&&(b=new a),b.setTo(this.x,this.y)},a.prototype.copyFrom=function(a){return this.setTo(a.x,a.y)},a.prototype.copyTo=function(a){return a.setTo(this.x,this.y)},a.prototype.angleTo=function(a){return Math.atan2(a.y-this.y,a.x-this.x)},a.prototype.angleToXY=function(a,b){return Math.atan2(b-this.y,a-this.x)},a.prototype.distanceTo=function(a,b){void 0===b&&(b=!1);var c=this.x-a.x,d=this.y-a.y;return b===!0?Math.round(Math.sqrt(c*c+d*d)):Math.sqrt(c*c+d*d)},a.prototype.distanceToXY=function(a,b,c){void 0===c&&(c=!1);var d=this.x-a,e=this.y-b;return c===!0?Math.round(Math.sqrt(d*d+e*e)):Math.sqrt(d*d+e*e)},a.distanceBetween=function(a,b,c){void 0===c&&(c=!1);var d=a.x-b.x,e=a.y-b.y;return c===!0?Math.round(Math.sqrt(d*d+e*e)):Math.sqrt(d*d+e*e)},a.polar=function(b,c){return new a(b*Math.cos(c),b*Math.sin(c))},a.prototype.distanceCompare=function(a,b){return this.distanceTo(a)>=b?!0:!1},a.prototype.equals=function(a){return this.x===a.x&&this.y===a.y?!0:!1},a.interpolate=function(b,c,d){var e=c.x-b.x,f=c.y-b.y;return new a(c.x-e*d,c.y-f*d)},a.prototype.offset=function(a,b){return this.x+=a,this.y+=b,this},a.prototype.setTo=function(a,b){return this.x=a,this.y=b,this},a.prototype.subtract=function(b,c){return void 0===c&&(c=new a),c.setTo(this.x-b.x,this.y-b.y)},a.prototype.getCSS=function(){return this.x+"px "+this.y+"px"},a.prototype.toString=function(){return"[{Point (x="+this.x+" y="+this.y+")}]"},a}();a.Point=b}(b=a.Geom||(a.Geom={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function c(a,b,c,d){void 0===a&&(a=0),void 0===b&&(b=0),void 0===c&&(c=0),void 0===d&&(d=0),this.x=0,this.y=0,this.width=0,this.height=0,this.setTo(a,b,c,d)}return c.prototype.objType=function(){return"Rectangle"},Object.defineProperty(c.prototype,"bottom",{get:function(){return this.y+this.height},set:function(a){a&&(this.height=a<this.y?0:a)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"center",{get:function(){var a=new b.Point;return a.setTo(Math.round(this.width/2),Math.round(this.height/2))},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"bottomRight",{get:function(){var a=new b.Point;return a.setTo(this.right,this.bottom)},set:function(a){a&&(this.right=a.x,this.bottom=a.y)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"left",{get:function(){return this.x},set:function(a){if(a){var b=this.x-a;this.width+b<0?(this.width=0,this.x=a):(this.width+=b,this.x=a)}},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"right",{get:function(){return this.x+this.width},set:function(a){a&&(this.width=a<this.x?0:a-this.x)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"size",{get:function(){var a=new b.Point;return a.setTo(this.width,this.height)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"volume",{get:function(){return this.width*this.height},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"perimeter",{get:function(){return 2*this.width+2*this.height},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"top",{get:function(){return this.y},set:function(a){if(a){var b=this.y-a;this.height+b<0?(this.height=0,this.y=a):(this.height+=b,this.y=a)}},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"topLeft",{get:function(){var a=new b.Point;return a.setTo(this.x,this.y)},set:function(a){a&&(this.x=a.x,this.y=a.y)},enumerable:!0,configurable:!0}),c.prototype.clone=function(a){return void 0===a&&(a=new c),a.setTo(this.x,this.y,this.width,this.height)},c.prototype.contains=function(a,b){return a>=this.x&&a<=this.right&&b>=this.y&&b<=this.bottom?!0:!1},c.prototype.containsPoint=function(a){return this.contains(a.x,a.y)},c.prototype.containsRect=function(a){return a.volume>this.volume?!1:a.x>=this.x&&a.y>=this.y&&a.right<=this.right&&a.bottom<=this.bottom?!0:!1},c.prototype.copyFrom=function(a){return this.setTo(a.x,a.y,a.width,a.height)},c.prototype.copyTo=function(a){return void 0===a&&(a=new c),a.copyFrom(this)},c.prototype.equals=function(a){return this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height?!0:!1},c.prototype.inflate=function(a,b){return isNaN(a)||isNaN(b)||(this.x-=a,this.width+=2*a,this.y-=b,this.height+=2*b),this},c.prototype.inflatePoint=function(a){return this.inflate(a.x,a.y)},c.prototype.intersection=function(a,b){return void 0===b&&(b=new c),this.intersects(a)===!0&&(b.x=Math.max(a.x,this.x),b.y=Math.max(a.y,this.y),b.width=Math.min(a.right,this.right)-b.x,b.height=Math.min(a.bottom,this.bottom)-b.y),b},c.prototype.intersects=function(a){return a.x>this.right-1?!1:a.right-1<this.x?!1:a.bottom-1<this.y?!1:a.y>this.bottom-1?!1:!0},c.prototype.overlap=function(a){var b={top:!1,bottom:!1,left:!1,right:!1,contains:!1,contained:!1},c=this.intersection(a);return c.isEmpty?b:(this.containsRect(a)&&(b.contains=!0),a.containsRect(this)&&(b.contained=!0),this.top<a.top&&(b.top=!0),this.bottom>a.bottom&&(b.bottom=!0),this.left<a.left&&(b.left=!0),this.right>a.right&&(b.right=!0),b)},c.prototype.isEmpty=function(){return this.width<1||this.height<1?!0:!1},c.prototype.offset=function(a,b){return isNaN(a)||isNaN(b)||(this.x+=a,this.y+=b),this},c.prototype.offsetPoint=function(a){return this.offset(a.x,a.y)},c.prototype.setEmpty=function(){return this.setTo(0,0,0,0)},c.prototype.setTo=function(a,b,c,d){return isNaN(a)||isNaN(b)||isNaN(c)||isNaN(d)||(this.x=a,this.y=b,c>=0&&(this.width=c),d>=0&&(this.height=d)),this},c.prototype.union=function(a,b){return void 0===b&&(b=new c),b.setTo(Math.min(a.x,this.x),Math.min(a.y,this.y),Math.max(a.right,this.right),Math.max(a.bottom,this.bottom))},c.prototype.scale=function(b,c,d){var e=new a.Geom.Transform;e.scaleX=b,e.scaleY=c,e.x=d.x,e.y=d.y;var f=this.topLeft;return e.transformPoint(f),this.topLeft=f,this.width*=b,this.height*=c,this},c.prototype.toString=function(){return"[{Rectangle (x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+" isEmpty="+this.isEmpty()+")}]"},c}();b.Rectangle=c}(b=a.Geom||(a.Geom={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function c(a,c,d,e,f,g,h){void 0===a&&(a=0),void 0===c&&(c=0),void 0===d&&(d=1),void 0===e&&(e=1),void 0===f&&(f=0),void 0===g&&(g=0),void 0===h&&(h=0),this._x=0,this._y=0,this._scaleX=1,this._scaleY=1,this._rotation=0,this._rotPointX=0,this._rotPointY=0,this._parent=null,this._locked=!1,this._ignoreParent=!1,this._ignoreChild=!1,this._dirty=!0,this.setTransform(a,c,d,e,f,g,h),this._matrix=new b.Matrix,this._cachedConcatenatedMatrix=new b.Matrix,this._matrix.setFromOffsetTransform(this._x,this._y,this._scaleX,this._scaleY,this._rotation,this._rotPointX,this._rotPointY)}return c.prototype.objType=function(){return"Transform"},Object.defineProperty(c.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._dirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._dirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"scaleX",{get:function(){return this._scaleX},set:function(a){this._scaleX=a,this._dirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"scaleY",{get:function(){return this._scaleY},set:function(a){this._scaleY=a,this._dirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rotation",{get:function(){return this._rotation},set:function(a){this._rotation=a,this._dirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rotPointX",{get:function(){return this._rotPointX},set:function(a){this._rotPointX=a,this._dirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rotPointY",{get:function(){return this._rotPointY},set:function(a){this._rotPointY=a,this._dirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"anchorPointX",{get:function(){return this.rotPointX},set:function(a){this.rotPointX=a},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"anchorPointY",{get:function(){return this.rotPointY},set:function(a){this.rotPointY=a},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"matrix",{get:function(){return this._matrix},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"worldX",{get:function(){return this.getConcatenatedMatrix().tx-this._rotPointX},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"worldY",{get:function(){return this.getConcatenatedMatrix().ty-this._rotPointY},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"parent",{get:function(){return this._parent},set:function(a){this.checkAncestor(a)||(this._parent=a,this._dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"locked",{get:function(){return this._locked},set:function(a){this._locked=a,this._locked&&this._matrix.setFromOffsetTransform(this.x,this.y,this.scaleX,this.scaleY,this.rotation,this.anchorPointX,this.anchorPointY)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"ignoreParent",{get:function(){return this._ignoreParent},set:function(a){this._ignoreParent=a},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"ignoreChild",{get:function(){return this._ignoreChild},set:function(a){this._ignoreChild=a},enumerable:!0,configurable:!0}),c.prototype.setPosition=function(a,b){return this._x=a,this._y=b,this._dirty=!0,this},c.prototype.setPositionFromPoint=function(a){return this._x=a.x,this._y=a.y,this._dirty=!0,this},c.prototype.translatePositionFromPoint=function(a){return this._x+=a.x,this._y+=a.y,this._dirty=!0,this},c.prototype.getPositionPoint=function(b){return void 0===b&&(b=new a.Geom.Point),b.setTo(this._x,this._y)},Object.defineProperty(c.prototype,"scale",{set:function(a){this._scaleX=a,this._scaleY=a,this._dirty=!0},enumerable:!0,configurable:!0}),c.prototype.setTransform=function(a,b,c,d,e,f,g){return void 0===a&&(a=0),void 0===b&&(b=0),void 0===c&&(c=1),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0),void 0===g&&(g=0),this._x=a,this._y=b,this._scaleX=c,this._scaleY=d,this._rotation=e,this._rotPointX=f,this._rotPointY=g,this._dirty=!0,this},c.prototype.getParentMatrix=function(){return this._parent?this._parent.getConcatenatedMatrix():null},c.prototype.getConcatenatedMatrix=function(){return this._dirty&&!this.locked&&this._matrix.setFromOffsetTransform(this.x,this.y,this.scaleX,this.scaleY,this.rotation,this.anchorPointX,this.anchorPointY),this._cachedConcatenatedMatrix.copyFrom(this._matrix),!this._parent||this._parent.ignoreChild||this.ignoreParent||(this._cachedConcatenatedMatrix.tx-=this._parent.anchorPointX,this._cachedConcatenatedMatrix.ty-=this._parent.anchorPointY,this._cachedConcatenatedMatrix.prependMatrix(this.getParentMatrix())),this._dirty=!1,this._cachedConcatenatedMatrix},c.prototype.transformPoint=function(a){var b=this.getConcatenatedMatrix();return b.transformPoint(a)},c.prototype.copyFrom=function(a){return this.setTransform(a.x,a.y,a.scaleX,a.scaleY,a.rotation,a.rotPointX,a.rotPointY),this.parent=a.parent,this._matrix=a.matrix.clone(),this},c.prototype.copyTo=function(a){return a.copyFrom(this),this},c.prototype.clone=function(a){return void 0===a&&(a=new c),a.copyFrom(this),a},c.prototype.checkAncestor=function(){return!1},Object.defineProperty(c.prototype,"toString",{get:function(){return"[{Transform (x="+this._x+" y="+this._y+" scaleX="+this._scaleX+" scaleY="+this._scaleY+" rotation="+this._rotation+" regX="+this._rotPointX+" regY="+this.rotPointY+" matrix="+this._matrix+")}]"},enumerable:!0,configurable:!0}),c}();b.Transform=c}(b=a.Geom||(a.Geom={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function c(a,b){void 0===a&&(a=0),void 0===b&&(b=0),this.setTo(a,b)}return c.prototype.objType=function(){return"Vector2"},c.fromAngle=function(a){return new c(Math.cos(a),Math.sin(a))},c.randomRadius=function(a){return new c(2*Math.random()-1,2*Math.random()-1).multiplyScalar(a)},c.fromPoint=function(a){return new c(a.x,a.y)},c.prototype.add=function(a){return new c(this.x+a.x,this.y+a.y)},c.prototype.addX=function(a){return new c(this.x+a.x,this.y)},c.prototype.addY=function(a){return new c(this.x,this.y+a.y)},c.prototype.subtract=function(b){return new a.Geom.Vector2(this.x-b.x,this.y-b.y)},c.prototype.multiply=function(b){return new a.Geom.Vector2(this.x*b.x,this.y*b.y)},c.prototype.multiplyScalar=function(b){return new a.Geom.Vector2(this.x*b,this.y*b)},c.prototype.dot=function(a){return this.x*a.x+this.y*a.y},c.prototype.lenSqr=function(){return this.x*this.x+this.y*this.y},c.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},c.prototype.unit=function(){var a=1/this.len();return this.multiplyScalar(a)},c.prototype.floor=function(){return new c(Math.floor(this.x),Math.floor(this.y))},c.prototype.ceil=function(){return new c(Math.ceil(this.x),Math.ceil(this.y))},c.prototype.round=function(){return new c(Math.round(this.x),Math.round(this.y))},c.prototype.clamp=function(a,b){return new c(Math.max(Math.min(this.x,b.x),a.x),Math.max(Math.min(this.y,b.y),a.y))},c.prototype.perp=function(){return new c(-this.y,this.x)},c.prototype.neg=function(){return new c(-this.x,-this.y)},c.prototype.equal=function(a){return this.x===a.x&&this.y===a.y},c.prototype.point=function(){return new b.Point(this.x,this.y)},c.prototype.clear=function(){return this.x=0,this.y=0,this},c.prototype.clone=function(a){return void 0===a&&(a=new c),a.setTo(this.x,this.y)},c.prototype.copyFrom=function(a){return this.x=a.x,this.y=a.y,this},c.prototype.copyTo=function(a){return a.x=this.x,a.y=this.y,a},c.prototype.setTo=function(a,b){return this.x=a,this.y=b,this},c.prototype.toString=function(){return"[{Vector2 (x="+this.x+" y="+this.y+")}]"},c}();b.Vector2=c}(b=a.Geom||(a.Geom={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function b(b,c){if(this._game=b,this.name=c,this._manager=this._game.huds,this._device=this._game.deviceTargetOption,this._manager.supported){switch(this._device){case a.TARGET_BROWSER:this.container=document.createElement("div"),this.container.id="HUD-layer-"+b.rnd.uuid(),this.container.style.width="100%",this.container.style.height="100%",this.container.style.position="absolute",this._widgets=new Array}this["class"]="kiwi-display"}}return b.prototype.objType=function(){return"HUDDisplay"},b.prototype.addWidget=function(b){return this._manager.supported&&(this._widgets.push(b),this._device==a.TARGET_BROWSER)?(this.container.appendChild(b.container),!0):!1},b.prototype.removeWidget=function(a){if(this._manager.supported&&this.removeFromContainer(a)){var b=this._widgets.indexOf(a);if(-1!==b)return this._widgets.splice(b,1),!0}return!1},b.prototype.removeAllWidgets=function(){for(var a=0;a<this._widgets.length;a++)this.removeFromContainer(this._widgets[a]);this._widgets=[]},b.prototype.removeFromContainer=function(b){return this._manager.supported&&this._device==a.TARGET_BROWSER&&this.container.contains(b.container)?(this.container.removeChild(b.container),!0):!1},b.prototype.update=function(){for(var a=0;a<this._widgets.length;a++)this._widgets[a].update()},b.prototype.show=function(){this.container.style.display="block"},b.prototype.hide=function(){this.container.style.display="none"},Object.defineProperty(b.prototype,"class",{get:function(){return this._device==a.TARGET_BROWSER?this.container.className:void 0},set:function(b){this._device==a.TARGET_BROWSER&&(this.container.className=b)},enumerable:!0,configurable:!0}),b}();b.HUDDisplay=c}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function b(a){this._game=a,this._device=this._game.deviceTargetOption}return Object.defineProperty(b.prototype,"supported",{get:function(){return this._supported},enumerable:!0,configurable:!0}),b.prototype.boot=function(){this._device===a.TARGET_BROWSER?(this._supported=!0,this._hudContainer=document.createElement("div"),this._hudContainer.id="HUDContainer",this._hudContainer.style.position="absolute",this._hudContainer.style.width="100%",this._hudContainer.style.height="100%",this._hudContainer.style.top="0",this._hudContainer.style.left="0",this._game.stage.container.appendChild(this._hudContainer),this._huds=new Array,this._defaultHUD=this.createHUD("defaultHUD"),this._currentHUD=this._defaultHUD,this.setHUD(this._defaultHUD)):this._supported=!1},b.prototype.objType=function(){return"HUDManager"},Object.defineProperty(b.prototype,"defaultHUD",{get:function(){return this._defaultHUD},set:function(a){this._currentHUD===this._defaultHUD&&(this._currentHUD=a,this.setHUD(this._currentHUD)),this._defaultHUD=a},enumerable:!0,configurable:!0}),b.prototype.setHUD=function(a){this.supported&&(this.hideHUD(),this._currentHUD=a,this.showHUD())},b.prototype.showHUD=function(a){void 0===a&&(a=this._currentHUD),a.show()},b.prototype.hideHUD=function(a){void 0===a&&(a=this._currentHUD),a.hide()},b.prototype.createHUD=function(b,c){if(void 0===c&&(c=!1),this.supported){var d=new a.HUD.HUDDisplay(this._game,b);return d.hide(),this.addToContainer(d),this._huds.push(d),c===!0&&this.setHUD(d),d}},b.prototype.removeHUD=function(a){if(this.supported){if(a===this._defaultHUD)return!1;this._currentHUD===a&&this.setHUD(this._defaultHUD),this.removeFromContainer(a);var b=this._huds.indexOf(a);return-1!==b&&this._huds.splice(b,1),!0}},b.prototype.addToContainer=function(b){this._device==a.TARGET_BROWSER&&this._hudContainer.appendChild(b.container)},b.prototype.removeFromContainer=function(b){this._device==a.TARGET_BROWSER&&this._hudContainer.contains(b.container)&&this._hudContainer.removeChild(b.container)},b.prototype.update=function(){if(this._supported)for(var a=0;a<this._huds.length;a++)this._huds[a].update()},b}();b.HUDManager=c}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function b(c,d,e,f){this._horizontalOrigin=b.LEFT,this._verticalOrigin=b.TOP,this.name=d,this.game=c,this._manager=this.game.huds,this._device=this.game.deviceTargetOption,this.components=new a.ComponentManager(a.HUD_WIDGET,this),this._manager.supported&&(this._device===a.TARGET_BROWSER&&(this.container=document.createElement("div"),this.container.id="HUD-widget-"+this.game.rnd.uuid(),this.container.className="HUD-widget",this.container.style.position="absolute"),this.onCoordsUpdate=new a.Signal,this.x=e,this.y=f)}return b.prototype.objType=function(){return"HUDWidget"},Object.defineProperty(b.prototype,"style",{get:function(){return this._device===a.TARGET_BROWSER?this.container.style:void 0},set:function(b){this._device===a.TARGET_BROWSER&&(this.container.style=b)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"x",{get:function(){return this._x},set:function(b){this._manager.supported&&(this._x=b,this._device==a.TARGET_BROWSER&&(this.container.style[this._horizontalOrigin]=this.x+"px"),this.onCoordsUpdate.dispatch(this.x,this.y))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"y",{get:function(){return this._y},set:function(b){this._manager.supported&&(this._y=b,this._device==a.TARGET_BROWSER&&(this.container.style[this._verticalOrigin]=this.y+"px"),this.onCoordsUpdate.dispatch(this.x,this.y))},enumerable:!0,configurable:!0}),b.prototype.setTemplate=function(b,c){for(var d=[],e=2;e<arguments.length;e++)d[e-2]=arguments[e];if(this._device==a.TARGET_BROWSER){var f=document.getElementById(b);if(void 0===f)return;if(void 0===c)var g=f;else{var g=document.getElementById(c);if(void 0===g||f.contains(g)===!1)return}this.tempElement=g,this._tempContainer=f,this._tempParent=f.parentElement,this._tempParent.removeChild(f),this.container.appendChild(f)}},b.prototype.removeTemplate=function(){this._device==a.TARGET_BROWSER&&void 0!==this.tempElement&&(this.container.removeChild(this._tempContainer),this._tempParent.appendChild(this._tempContainer),this.tempElement=null,this._tempParent=null,this._tempContainer=null)},Object.defineProperty(b.prototype,"class",{get:function(){return this._device==a.TARGET_BROWSER?this.container.className:void 0},set:function(b){this._device==a.TARGET_BROWSER&&(this.container.className=b)},enumerable:!0,configurable:!0}),b.prototype.update=function(){this.components.update()},Object.defineProperty(b.prototype,"horizontalOrigin",{get:function(){return this._horizontalOrigin},set:function(a){this.container.style[this._horizontalOrigin]="auto",this._horizontalOrigin=a,this.container.style[this._horizontalOrigin]=this.x+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"verticalOrigin",{get:function(){return this._verticalOrigin},set:function(a){this.container.style[this._verticalOrigin]="auto",this._verticalOrigin=a,this.container.style[this._verticalOrigin]=this.y+"px"},enumerable:!0,configurable:!0}),b.prototype.destroy=function(){delete this.game,delete this._manager,delete this._device,this.onCoordsUpdate&&this.onCoordsUpdate.dispose(),delete this.onCoordsUpdate},b.TOP="top",b.BOTTOM="bottom",b.LEFT="left",b.RIGHT="right",b}();b.HUDWidget=c}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c;!function(b){var c=function(b){function c(c,d,e,f){b.call(this,c,"textField",e,f),this._prefix="",this._suffix="",this["class"]="kiwi-textfield-widget kiwi-widget",this._manager.supported&&this._device===a.TARGET_BROWSER&&(this._textField=this.container,this._textField.innerHTML=d)}return __extends(c,b),c.prototype.objType=function(){return"TextFieldWidget"},c.prototype.setTemplate=function(c,d){this._device===a.TARGET_BROWSER&&(this._textField.innerText="",b.prototype.setTemplate.call(this,c,d),void 0!==this.tempElement&&(this._textField=this.tempElement),this._textField.innerHTML=this._text)},c.prototype.removeTemplate=function(){this._device===a.TARGET_BROWSER&&(b.prototype.removeTemplate.call(this),this._device===a.TARGET_BROWSER&&(this._textField=this.container,this._textField.innerHTML=this._text))},Object.defineProperty(c.prototype,"text",{get:function(){return this._text},set:function(b){this._manager.supported&&this._device===a.TARGET_BROWSER&&(""!==this._prefix&&(b=this._prefix+b),""!==this._suffix&&(b+=this._suffix),this._text=b,this._textField.innerHTML=this._text)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"suffix",{get:function(){return this._suffix},set:function(a){this._suffix=a,this._updateText()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"prefix",{get:function(){return this._prefix},set:function(a){this._prefix=a,this._updateText()},enumerable:!0,configurable:!0}),c.prototype._updateText=function(){this.text=this._text},c}(a.HUD.HUDWidget);b.TextField=c}(c=b.Widget||(b.Widget={}))}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c;!function(b){var c=function(b){function c(c,d,e,f,g,h,i,j){void 0===h&&(h=120),void 0===i&&(i=20),void 0===j&&(j="#000"),b.call(this,c,"bar",f,g),this._horizontal=!0,this["class"]="kiwi-bar-widget kiwi-widget",this._manager.supported&&(this._device==a.TARGET_BROWSER&&(this._bar=document.createElement("div"),this._bar.className="kiwi-innerbar-widget",this._bar.style.backgroundColor=j,this.bar=this._bar,this.container.appendChild(this.bar)),this.counter=this.components.add(new a.HUD.HUDComponents.Counter(this,d,e,0)),this.counter.updated.add(this.updateCSS,this),this.width=h,this.height=i,this._bar.style.height="100%",this._bar.style.width="100%",this.updateCSS())}return __extends(c,b),c.prototype.objType=function(){return"BarWidget"},Object.defineProperty(c.prototype,"width",{get:function(){return this._width},set:function(b){this._device==a.TARGET_BROWSER&&(this.container.style.width=b+"px"),this._width=b},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"height",{get:function(){return this._height},set:function(b){this._device==a.TARGET_BROWSER&&(this.container.style.height=b+"px"),this._height=b},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"horizontal",{get:function(){return this._horizontal},set:function(a){this._horizontal=a,this.updateCSS()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"vertical",{get:function(){return!this._horizontal},set:function(a){this._horizontal=!a,this.updateCSS()},enumerable:!0,configurable:!0}),c.prototype.setTemplate=function(c,d){this._device==a.TARGET_BROWSER&&(b.prototype.setTemplate.call(this,c,d),void 0!==this.tempElement&&(this.bar=this.tempElement))
 },c.prototype.removeTemplate=function(){this._device==a.TARGET_BROWSER&&(b.prototype.removeTemplate.call(this),this.bar=this._bar,this.container.appendChild(this.bar),this.updateCSS())},c.prototype.updateCSS=function(){this.horizontal===!0?(this.bar.style.width=String(this.counter.currentPercent())+"%",this.bar.style.height="100%"):(this.bar.style.height=String(this.counter.currentPercent())+"%",this.bar.style.width="100%")},c}(a.HUD.HUDWidget);b.Bar=c}(c=b.Widget||(b.Widget={}))}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c;!function(b){var c=function(b){function c(a,c,d,e){b.call(this,a,"Icon",d,e),this._cellIndex=0,this["class"]="kiwi-icon-widget kiwi-widget",this.atlas=c,this.icon=this.container,this._applyCSS()}return __extends(c,b),Object.defineProperty(c.prototype,"cellIndex",{get:function(){return this._cellIndex},set:function(a){this._cellIndex=a,this.width=this.atlas.cells[this.cellIndex].w,this.height=this.atlas.cells[this.cellIndex].h,this._applyCSS()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"width",{get:function(){return this.atlas.cells[this.cellIndex].w},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"height",{get:function(){return this.atlas.cells[this.cellIndex].h},enumerable:!0,configurable:!0}),c.prototype._removeCSS=function(){this.icon.style.width="",this.icon.style.height="",this.icon.style.backgroundImage="",this.icon.style.backgroundRepeat=""},c.prototype._applyCSS=function(){this.icon.style.width=this.width+"px",this.icon.style.height=this.height+"px",this.icon.style.backgroundPositionX=-this.atlas.cells[this.cellIndex].x+"px",this.icon.style.backgroundPositionY=-this.atlas.cells[this.cellIndex].y+"px",this.icon.style.backgroundRepeat="no-repeat",this.icon.style.backgroundImage=0==a.Utils.Common.isUndefined(this.atlas.image.src)?'url("'+this.atlas.image.src+'")':'url("'+this.atlas.image.toDataURL("image/png")+'")'},c.prototype.setTemplate=function(c,d){this._device==a.TARGET_BROWSER&&(this._removeCSS(),b.prototype.setTemplate.call(this,c,d),void 0!==this.tempElement&&(this.icon=this.tempElement),this._applyCSS())},c.prototype.removeTemplate=function(){this._device==a.TARGET_BROWSER&&(b.prototype.removeTemplate.call(this),this._removeCSS(),this.icon=this.container,this._applyCSS())},c}(a.HUD.HUDWidget);b.Icon=c}(c=b.Widget||(b.Widget={}))}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c;!function(b){var c=function(b){function c(c,d,e,f,g,h){b.call(this,c,"IconBar",g,h),this.iconGap=0,this["class"]="kiwi-iconbar-widget kiwi-widget",this.atlas=d,this.width=this.atlas.cells[0].w,this.height=this.atlas.cells[0].h,this._horizontal=!0,this.counter=this.components.add(new a.HUD.HUDComponents.Counter(this,e,f,0)),this.counter.updated.add(this._amountChanged,this),this._icons=[],this._amountChanged()}return __extends(c,b),c.prototype.objType=function(){return"IconBarWidget"},c.prototype._amountChanged=function(){if(this.counter.max!==this._icons.length)if(this.counter.max>this._icons.length)for(var a=this.counter.max-this._icons.length,b=0;a>b;b++)this._addIcon();else for(var b=this.counter.max;b<this._icons.length;b++)this._removeIcon(this._icons[b]),this._icons[b].destroy(),this._icons.splice(b,1),b--;for(var b=0;b<this._icons.length;b++)this._icons[b].style.display=b>this.counter.current-1?"none":"block"},c.prototype._addIcon=function(){if(this.horizontal)var b=new a.HUD.Widget.Icon(this.game,this.atlas,this.x+(this.width+this.iconGap)*(this._icons.length-1),0);else var b=new a.HUD.Widget.Icon(this.game,this.atlas,this.x,(this.height+this.iconGap)*(this._icons.length-1));b.horizontalOrigin=this.horizontalOrigin,b.verticalOrigin=this.verticalOrigin,this._icons.push(b),this._device==a.TARGET_BROWSER&&this.container.appendChild(b.container)},c.prototype._removeIcon=function(b){this._device==a.TARGET_BROWSER&&this.container.removeChild(b.container)},Object.defineProperty(c.prototype,"horizontal",{get:function(){return this._horizontal},set:function(a){this._horizontal=a,this._amountChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"vertical",{get:function(){return!this._horizontal},set:function(a){this._horizontal=!a,this._amountChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"horizontalOrigin",{get:function(){return this._horizontalOrigin},set:function(a){this.container.style[this._horizontalOrigin]="auto",this._horizontalOrigin=a,this.container.style[this._horizontalOrigin]=this.x+"px";for(var b=0;b<this._icons.length;)this._icons[b].horizontalOrigin=a,b++},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"verticalOrigin",{get:function(){return this._verticalOrigin},set:function(a){this.container.style[this._verticalOrigin]="auto",this._verticalOrigin=a,this.container.style[this._verticalOrigin]=this.y+"px";for(var b=0;b<this._icons.length;)this._icons[b].verticalOrigin=a,b++},enumerable:!0,configurable:!0}),c}(a.HUD.HUDWidget);b.IconBar=c}(c=b.Widget||(b.Widget={}))}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c;!function(b){var c=function(b){function c(c,d,e,f){void 0===f&&(f=0),b.call(this,c,"basicScore",d,e),this.name="basicScore",this["class"]="kiwi-basicscore-widget kiwi-widget",this.counter=this.components.add(new a.HUD.HUDComponents.Counter(this,f)),this.counter.updated.add(this._updateText,this),this._updateText()}return __extends(c,b),c.prototype.objType=function(){return"BasicScoreWidget"},c.prototype._updateText=function(){this.text=String(this.counter.current)},c}(a.HUD.Widget.TextField);b.BasicScore=c}(c=b.Widget||(b.Widget={}))}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c;!function(b){var c=function(b){function c(c,d,e,f){b.call(this,c,d,e,f),this.name="button",this["class"]="kiwi-button-widget kiwi-widget",this.input=this.components.add(new a.HUD.HUDComponents.WidgetInput(this,this.container))}return __extends(c,b),c.prototype.objType=function(){return"ButtonWidget"},c}(a.HUD.Widget.TextField);b.Button=c}(c=b.Widget||(b.Widget={}))}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c;!function(b){var c=function(b){function c(c,d,e,f){b.call(this,c,"time",e,f),this.name="time",this["class"]="kiwi-time-widget kiwi-widget",this.time=this.components.add(new a.HUD.HUDComponents.Time(this,d))}return __extends(c,b),c.prototype.objType=function(){return"TimeWidget"},c.prototype.pause=function(){this.time.pause()},c.prototype.stop=function(){this.time.stop()},c.prototype.start=function(){this.time.start()},c.prototype.resume=function(){this.time.resume()},c.prototype.update=function(){b.prototype.update.call(this),this.time.isRunning&&(this.text=this.time.getTime())},c}(a.HUD.Widget.TextField);b.Time=c}(c=b.Widget||(b.Widget={}))}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c;!function(b){var c=function(b){function c(a,c,d){b.call(this,a,"menu",c,d),this._menuItems=[],this._styles=[],this["class"]="kiwi-menu-widget kiwi-widget"}return __extends(c,b),c.prototype.objType=function(){return"MenuWidget"},c.prototype.setIconStyle=function(a,b){this._styles.push({index:a,value:b});for(var c=0;c<this._menuItems.length;c++)this._menuItems[c].style[a]=b},Object.defineProperty(c.prototype,"menuItems",{get:function(){return this._menuItems},enumerable:!0,configurable:!0}),c.prototype.createMenuItem=function(b,c,d){return this.addMenuItem(new a.HUD.Widget.MenuItem(this.game,b,c,d))},c.prototype.addMenuItem=function(b){this._menuItems.push(b),b.menu=this;for(var c=0;c<this._styles.length;c++)b.style[this._styles[c].index]=this._styles[c].value;return b.verticalOrigin=this.verticalOrigin,b.horizontalOrigin=this.horizontalOrigin,this._device==a.TARGET_BROWSER&&this.container.appendChild(b.container),b},c.prototype.addMenuItems=function(a){for(var b=0;b<a.length;b++)this.addMenuItem(a[b])},c.prototype.getMenuItem=function(a){return this._menuItems[a]},c.prototype.setTemplate=function(a,b){},c.prototype.removeTemplate=function(){},c.prototype.update=function(){for(var a=0;a<this._menuItems.length;a++)this._menuItems[a].update();b.prototype.update.call(this)},Object.defineProperty(c.prototype,"horizontalOrigin",{get:function(){return this._horizontalOrigin},set:function(a){this.container.style[this._horizontalOrigin]="auto",this._horizontalOrigin=a,this.container.style[this._horizontalOrigin]=this.x+"px";for(var b=0;b<this._menuItems.length;)this._menuItems[b].horizontalOrigin=a,b++},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"verticalOrigin",{get:function(){return this._verticalOrigin},set:function(a){this.container.style[this._verticalOrigin]="auto",this._verticalOrigin=a,this.container.style[this._verticalOrigin]=this.y+"px";for(var b=0;b<this._menuItems.length;)this._menuItems[b].verticalOrigin=a,b++},enumerable:!0,configurable:!0}),c}(a.HUD.HUDWidget);b.Menu=c}(c=b.Widget||(b.Widget={}))}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c;!function(b){var c=function(a){function b(b,c,d,e){a.call(this,b,c,d,e),this.name="menuItem",this["class"]="kiwi-menuitem-widget kiwi-widget"}return __extends(b,a),b.prototype.objType=function(){return"MenuItem"},b}(a.HUD.Widget.Button);b.MenuItem=c}(c=b.Widget||(b.Widget={}))}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c;!function(b){var c=function(b){function c(c,d,e,f){void 0===e&&(e=null),void 0===f&&(f=null),b.call(this,c,"counter"),this._current=d,this._max=e,this._min=f,this.updated=new a.Signal}return __extends(c,b),c.prototype.objType=function(){return"CounterComponent"},Object.defineProperty(c.prototype,"max",{get:function(){return this._max},set:function(a){this._max=a,this.updated.dispatch(this._current,this._max,this._min)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"min",{get:function(){return this._min},set:function(a){this._min=a,this.updated.dispatch(this._current,this._max,this._min)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"current",{get:function(){return this._current},set:function(a){this._current=null!==this._max&&a>this._max?this._max:null!==this._min&&a<this._min?this._min:a,this.updated.dispatch(this._current,this._max,this._min)},enumerable:!0,configurable:!0}),c.prototype.decrease=function(a){return void 0===a&&(a=1),(null===this._min||this._current>this._min)&&(null!==this._min&&this._current-a<this._min?this._current=this._min:this._current-=a,this.updated.dispatch(this._current,this._max,this._min)),this._current},c.prototype.increase=function(a){return void 0===a&&(a=1),(null===this._max||this._current<this._max)&&(null!==this._max&&this._current+a>this._max?this._current=this._max:this._current+=a,this.updated.dispatch(this._current,this._max,this._min)),this._current},c.prototype.currentPercent=function(){return null!==this.max?this.current/this.max*100:void 0},c}(a.Component);b.Counter=c}(c=b.HUDComponents||(b.HUDComponents={}))}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c;!function(b){var c=function(b){function c(c,d){b.call(this,c,"WidgetInput"),this._active=!1,this._container=d,this.onUp=new a.Signal,this.onDown=new a.Signal,this.onOver=new a.Signal,this.onOut=new a.Signal,this._addEvents()}return __extends(c,b),c.prototype.objType=function(){return"WidgetInputComponent"},c.prototype.setElement=function(a){this._removeEvents(),this._container=a,this._addEvents()},c.prototype._addEvents=function(){if(!this._active){this._binds=[],this._binds.push({event:"mouseup","function":this._up.bind(this)}),this._binds.push({event:"mousedown","function":this._down.bind(this)}),this._binds.push({event:"mouseover","function":this._over.bind(this)}),this._binds.push({event:"mouseout","function":this._out.bind(this)});for(var a=0;a<this._binds.length;a++)this._container.addEventListener(this._binds[a].event,this._binds[a]["function"],!1);this._active=!0}},c.prototype._removeEvents=function(){if(this._active){for(var a=0;a<this._binds.length;a++)this._container.removeEventListener(this._binds[a].event,this._binds[a]["function"],!1);this._binds=[],this._active=!1}},c.prototype._up=function(a){this.onUp.dispatch(a)},c.prototype._down=function(a){this.onDown.dispatch(a)},c.prototype._over=function(a){this.onOver.dispatch(a)},c.prototype._out=function(a){this.onOut.dispatch(a)},c}(a.Component);b.WidgetInput=c}(c=b.HUDComponents||(b.HUDComponents={}))}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c;!function(b){var c=function(a){function b(b,c){void 0===c&&(c=""),a.call(this,b,"time"),this.countDown=!1,this._displayString="",this._currentTime=0,this._timeBefore=0,this.speed=1,this.clock=this.game.time.addClock(name+"-clock",1e3),this.format=c}return __extends(b,a),b.prototype.objType=function(){return"TimeComponent"},Object.defineProperty(b.prototype,"isRunning",{get:function(){return this.clock.isRunning()},enumerable:!0,configurable:!0}),b.prototype.pause=function(){this.clock.pause()},b.prototype.stop=function(){this.clock.stop()},b.prototype.start=function(){this.clock.start(),this._timeBefore=this.clock.elapsed()},b.prototype.resume=function(){this.clock.resume()},Object.defineProperty(b.prototype,"format",{get:function(){return this._format},set:function(a){this._format=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"currentTime",{get:function(){return this._currentTime},enumerable:!0,configurable:!0}),b.prototype.setTime=function(a,b,c){void 0===b&&(b=0),void 0===c&&(c=0),this._currentTime=a,0!=b&&(this._currentTime+=1e3*b),0!=c&&(this._currentTime+=60*c*1e3)},b.prototype.addTime=function(a,b,c){void 0===b&&(b=0),void 0===c&&(c=0),this._currentTime+=a,0!=b&&(this._currentTime+=1e3*b),0!=c&&(this._currentTime+=60*c*1e3)},b.prototype.removeTime=function(a,b,c){void 0===b&&(b=0),void 0===c&&(c=0),this._currentTime-=a,0!=b&&(this._currentTime-=1e3*b),0!=c&&(this._currentTime-=60*c*1e3)},b.prototype.getTime=function(){if(this.countDown?this._currentTime-=(this.clock.elapsed()-this._timeBefore)*this.speed:this._currentTime+=(this.clock.elapsed()-this._timeBefore)*this.speed,this._timeBefore=this.clock.elapsed(),""!==this._format){if(this._displayString=this._format,-1!==this._displayString.indexOf("ms")){var a=String(Math.floor(1e3*this._currentTime)%1e3);this._displayString=this._displayString.replace("ms",a)}if(-1!=this._displayString.indexOf("ss")){var a=String(Math.floor(this._currentTime)%60);a.length<2&&(a="0"+a),this._displayString=this._displayString.replace("ss",a)}if(-1!==this._displayString.indexOf("mm")){var a=String(Math.floor(this._currentTime/60)%60);a.length<2&&(a="0"+a),this._displayString=this._displayString.replace("mm",a)}if(-1!=this._displayString.indexOf("s")){var a=String(Math.floor(this._currentTime)%60);this._displayString=this._displayString.replace("s",a)}if(-1!==this._displayString.indexOf("m")){var a=String(Math.floor(this._currentTime/60)%60);this._displayString=this._displayString.replace("m",a)}return this._displayString}return String(this._currentTime.toFixed(2))},b}(a.Component);b.Time=c}(c=b.HUDComponents||(b.HUDComponents={}))}(b=a.HUD||(a.HUD={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function b(a){this.noAudio=!1,this.usingWebAudio=!1,this.usingAudioTag=!1,this.context=null,this.masterGain=null,this._unlockedSource=null,this._game=a}return b.prototype.objType=function(){return"AudioManager"},Object.defineProperty(b.prototype,"locked",{get:function(){return this._locked},enumerable:!0,configurable:!0}),b.prototype.boot=function(){this._volume=1,this._muted=!1,this._sounds=[],a.DEVICE.iOS&&0==a.DEVICE.webaudio&&(this.channels=1),a.DEVICE.iOS&&this._game.deviceTargetOption!==a.TARGET_COCOON?(this._locked=!0,this._game.input.onUp.addOnce(this._unlocked,this),a.Log.log("Kiwi.AudioManager: Audio is currently Locked until at touch event.","#audio","#locked")):this._locked=!1,this.usingWebAudio=!0,this.usingAudioTag=!1,window.AudioContext?this.context=new window.AudioContext:window.webkitAudioContext?this.context=new window.webkitAudioContext:window.Audio?(this.usingWebAudio=!1,this.usingAudioTag=!0):(this.usingWebAudio=!1,this.noAudio=!0),null!==this.context&&(this.masterGain=void 0===this.context.createGain?this.context.createGainNode():this.context.createGain(),this.masterGain.gain.value=1,this.masterGain.connect(this.context.destination))},b.prototype._unlocked=function(){if(a.Log.log("Kiwi.AudioManager: Audio now Unlocked.","#audio","#unlocked"),this.usingAudioTag){this._locked=!1;for(var b=0;b<this._sounds.length;b++)this._sounds[b].playable=!0}else{var c=this.context.createBuffer(1,1,22050);this._unlockedSource=this.context.createBufferSource(),this._unlockedSource.buffer=c,this._unlockedSource.connect(this.context.destination),void 0===this._unlockedSource.start?this._unlockedSource.noteOn(0):this._unlockedSource.start(0)}},Object.defineProperty(b.prototype,"mute",{get:function(){return this._muted},set:function(a){if(a===!0){if(this._muted)return;if(this._muted=!0,this.usingWebAudio)this._muteVolume=this.masterGain.gain.value,this.masterGain.gain.value=0;else if(this.usingAudioTag)for(var b=0;b<this._sounds.length;b++)this._sounds[b].mute=!0}else{if(0==this._muted)return;if(this._muted=!1,this.usingWebAudio)this.masterGain.gain.value=this._muteVolume;else if(this.usingAudioTag)for(var b=0;b<this._sounds.length;b++)this._sounds[b].mute=!1}},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"volume",{get:function(){return this._volume},set:function(b){if(void 0!==b)if(b=a.Utils.GameMath.clamp(b,1,0),this._volume=b,this._muted&&(this._muteVolume=this._volume),this.usingWebAudio)this.masterGain.gain.value=b;else if(this.usingAudioTag)for(var c=0;c<this._sounds.length;c++)this._sounds[c].volume=this._sounds[c].volume},enumerable:!0,configurable:!0}),b.prototype.isRegistered=function(a){return this.noAudio?void 0:-1!==this._sounds.indexOf(a)?!0:!1},b.prototype.registerSound=function(a){return this.isRegistered(a)===!1?(a.id=this._game.rnd.uuid(),this._sounds.push(a),!0):!1},b.prototype.add=function(b,c,d){if(void 0===c&&(c=1),void 0===d&&(d=!1),!this.noAudio){var e=new a.Sound.Audio(this._game,b,c,d);return e}},b.prototype.remove=function(a,b){void 0===b&&(b=!0);for(var c=0;c<this._sounds.length;c++)if(a.id==this._sounds[c].id)return this.usingWebAudio&&a.gainNode&&a.gainNode.disconnect(),1==b&&a.destroy(),void this._sounds.splice(c,1)},b.prototype.playAll=function(){for(var a=0;a<this._sounds.length;a++)this._sounds[a]&&this._sounds[a].play()},b.prototype.stopAll=function(){for(var a=0;a<this._sounds.length;a++)this._sounds[a]&&this._sounds[a].stop()},b.prototype.pauseAll=function(){for(var a=0;a<this._sounds.length;a++)this._sounds[a]&&this._sounds[a].pause()},b.prototype.resumeAll=function(){for(var a=0;a<this._sounds.length;a++)this._sounds[a]&&this._sounds[a].resume()},b.prototype.update=function(){if(this._locked&&this.usingWebAudio&&null!==this._unlockedSource&&(this._unlockedSource.playbackState===this._unlockedSource.PLAYING_STATE||this._unlockedSource.playbackState===this._unlockedSource.FINISHED_STATE)){this._locked=!1,this._unlockedSource=null;for(var a=0;a<this._sounds.length;a++)this._sounds[a].playable=!0}if(!this.noAudio)for(var a=0;a<this._sounds.length;a++)this._sounds[a].update()},b}();b.AudioManager=c}(b=a.Sound||(a.Sound={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function b(b,c,d,e){return this._muted=!1,this.totalDuration=0,this._buffer=null,this._decoded=!1,this._markers={},this._currentMarker="default",this.ready=!1,this._game=b,this._game.audio.registerSound(this),this._usingAudioTag=this._game.audio.usingAudioTag,this._usingWebAudio=this._game.audio.usingWebAudio,this._playable=1==this._game.audio.locked?!1:!0,this.duration=0,this._volume=d,this._muteVolume=d,this._muted=this._game.audio.mute,this._loop=e,this.key=c,!a.Utils.Common.isString(this.key)&&this.key.isAudio&&(this.key=this.key.key),this._game.audio.noAudio||this._game.fileStore.exists(this.key)===!1?void a.Log.log("Could not play Audio. Either the browser doesn't support audio or the Audio file was not found on the filestore.","#audio","#notfound"):(this._usingWebAudio?(this._setAudio(),this.ready&&(this.context=this._game.audio.context,this.masterGainNode=this._game.audio.masterGain,this.gainNode="undefined"==typeof this.context.createGain?this.context.createGainNode():this.context.createGain(),this._decode(),this.gainNode.gain.value=this.volume*this._game.audio.volume,this.gainNode.connect(this.masterGainNode))):this._usingAudioTag&&this._playable===!0&&(this._setAudio(),this.ready&&(this.totalDuration=this._sound.duration,this._sound.volume=this.volume*this._game.audio.volume,(isNaN(this.totalDuration)||0==this.totalDuration)&&(this._pending=!0))),this.addMarker("default",0,this.totalDuration,this._loop),this._currentMarker="default",this.onPlay=new a.Signal,this.onStop=new a.Signal,this.onPause=new a.Signal,this.onResume=new a.Signal,this.onLoop=new a.Signal,this.onMute=new a.Signal,void(this.onComplete=new a.Signal))}return Object.defineProperty(b.prototype,"playable",{get:function(){return this._playable},set:function(a){this._playable!==!0&&1==a&&(this._playable=a,this._setAudio(),this.ready&&this._usingAudioTag&&(this.totalDuration=this._sound.duration,this._sound.volume=this.volume*this._game.audio.volume))},enumerable:!0,configurable:!0}),b.prototype.objType=function(){return"Audio"},Object.defineProperty(b.prototype,"loop",{get:function(){return this._loop},enumerable:!0,configurable:!0}),b.prototype._setAudio=function(){this._file=this._game.fileStore.getFile(this.key),"undefined"!=typeof this._file.data&&(this._usingAudioTag?(this._sound=this._file.data.cloneNode(!0),this._game.deviceTargetOption==a.TARGET_BROWSER&&(this._sound.play(),this._sound.pause())):this._sound=this._file.data,this.ready=!0)},b.prototype._decode=function(){if(0!=this.ready&&!this._usingAudioTag){if(this._file.data.decoded===!0&&null!==this._file.data.buffer)return this._buffer=this._file.data.buffer,void(this._decoded=!0);var a=this;this.context.decodeAudioData(this._file.data.raw,function(b){a._buffer=b,a._decoded=!0})}},Object.defineProperty(b.prototype,"volume",{get:function(){return this._volume},set:function(b){this._game.audio.noAudio||this.ready===!1||(b=a.Utils.GameMath.clamp(b,1,0),this._volume=b,this._muted&&(this._muteVolume=this._volume),this._playable&&(this._usingWebAudio?this.gainNode.gain.value=this._volume*this._game.audio.volume:this._usingAudioTag&&(this._sound.volume=this._volume*this._game.audio.volume)))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"mute",{get:function(){return this._muted},set:function(a){this._game.audio.noAudio||void 0!==a&&this._muted!==a&&(a===!0?(this._muteVolume=this._volume,this.volume=0,this._muted=!0):(this._muted=!1,this.volume=this._muteVolume),this.onMute.dispatch(this._muted))},enumerable:!0,configurable:!0}),b.prototype.addMarker=function(a,b,c,d){void 0===d&&(d=!1),this._markers[a]={start:b,stop:c,duration:c-b,loop:d}},b.prototype.removeMarker=function(a){"default"!==a&&(this.isPlaying&&this._currentMarker==a&&(this.stop(),this._currentMarker="default"),delete this._markers[a])},b.prototype.play=function(b,c){return void 0===b&&(b=this._currentMarker),void 0===c&&(c=!1),this.isPlaying&&!c||this._game.audio.noAudio||(c&&!this._pending&&this.stop(),"undefined"==typeof this._markers[b]||this._currentMarker===b&&this.isPlaying&&0==c)?void 0:(this.paused=!1,this._currentMarker=b,this.duration=1e3*this._markers[this._currentMarker].duration,this._loop=this._markers[this._currentMarker].loop,this._playable===!1?void(this._pending=!0):void(this._usingWebAudio?this._decoded===!0?(null==this._buffer&&(this._buffer=this._file.data.buffer),this._sound=this.context.createBufferSource(),this._sound.buffer=this._buffer,this._sound.connect(this.gainNode),this.totalDuration=this._sound.buffer.duration,0==this.duration&&(this.duration=1e3*this.totalDuration),void 0===this._sound.start?this._sound.noteGrainOn(0,this._markers[this._currentMarker].start,this.duration/1e3):this._sound.start(0,this._markers[this._currentMarker].start,this.duration/1e3),this.isPlaying=!0,this._startTime=this._game.time.now(),this._currentTime=0,this.onPlay.dispatch()):(this._pending=!0,this._decode()):this._usingAudioTag&&(this._sound&&4==this._sound.readyState||this._game.deviceTargetOption==a.TARGET_COCOON?((0==this.duration||isNaN(this.duration))&&(this.duration=1e3*this.totalDuration),this._sound.volume=this._muted?0:this._volume,this._sound.currentTime=this._markers[this._currentMarker].start,this._sound.play(),this.isPlaying=!0,this._startTime=this._game.time.now(),this._currentTime=0,this.paused||this.onPlay.dispatch()):this._pending=!0)))},b.prototype.stop=function(){this.isPlaying&&this._sound&&(this._usingWebAudio?void 0===this._sound.stop?this._sound.noteOff(0):this._sound.stop(0):this._usingAudioTag&&(this._sound.pause(),this._sound.currentTime=0),this.isPlaying=!1,0==this.paused&&this.onStop.dispatch())},b.prototype.pause=function(){this.isPlaying&&(this.paused=!0,this.stop(),this.onPause.dispatch())},b.prototype.resume=function(){this.paused&&0==this.isPlaying&&(this._usingWebAudio?(null==this._buffer&&(this._buffer=this._file.data.buffer),this._sound=this.context.createBufferSource(),this._sound.buffer=this._buffer,this._sound.connect(this.gainNode),void 0===this._sound.start?this._sound.noteGrainOn(0,this._markers[this._currentMarker].start+this._currentTime/1e3,this.duration/1e3):this._sound.start(0,this._markers[this._currentMarker].start+this._currentTime/1e3,this.duration/1e3)):(this._sound.currentTime=this._markers[this._currentMarker].start+this._currentTime/1e3,this._sound.play()),this.paused=!1,this.isPlaying=!0,this.onResume.dispatch())},b.prototype.update=function(){this.ready&&(this._playable&&this._pending&&(this._decoded===!0||this._file.data&&this._file.data.decoded?(this._pending=!1,this.play()):this._usingAudioTag&&!isNaN(this._sound.duration)&&0!==this._sound.duration&&(this.totalDuration=this._sound.duration,this._markers["default"].duration=this.totalDuration,this._pending=!1,this.isPlaying&&"default"==this._currentMarker&&(this.duration=1e3*this.totalDuration))),this.isPlaying&&(this._currentTime=this._game.time.now()-this._startTime,this._currentTime>=this.duration&&(this._loop?(this.play(this._currentMarker,!0),this.onLoop.dispatch()):(this.onComplete.dispatch(),this.stop()))))},b.prototype.destroy=function(){this._game&&this._game.audio.remove(this,!1),this.onLoop&&this.onLoop.dispose(),this.onStop&&this.onStop.dispose(),this.onPlay&&this.onPlay.dispose(),this.onMute&&this.onMute.dispose(),this.onPause&&this.onPause.dispose(),this.onResume&&this.onResume.dispose(),delete this.onLoop,delete this.onStop,delete this.onPause,delete this.onMute,delete this.onPlay,delete this.onResume,delete this._game,delete this._sound,delete this._currentTime,delete this._startTime,delete this._pending,delete this.masterGainNode,delete this.gainNode,delete this.totalDuration,delete this.duration,delete this._file,delete this._buffer,delete this._decoded},b}();b.Audio=c}(b=a.Sound||(a.Sound={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function b(a){this._game=a,this.audio={}}return b.prototype.objType=function(){return"AudioLibrary"},b.prototype.clear=function(){for(var a in this.audio)delete this.audio[a]},b.prototype.rebuild=function(b,c){this.clear(),a.Log.log("Kiwi.AudioLibrary: Rebuilding Audio Library.","#audio","#rebuild");for(var d=b.keys,e=0;e<d.length;e++){var f=this._game.fileStore.getFile(d[e]);f.isAudio&&(a.Log.log("  Kiwi.AudioLibrary: Adding Audio: "+f.name,"#audio","#added"),c.audioLibrary.add(f))}},b.prototype.add=function(b){switch(b.dataType){case a.Files.File.AUDIO:this.audio[b.key]=b}},b}();b.AudioLibrary=c}(b=a.Sound||(a.Sound={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function c(b,c,d,e){void 0===e&&(e=1e3),this._timeFirstStarted=null,this._timeLastStarted=null,this.timeScale=1,this._elapsed=0,this.rate=1,this._maxFrameDuration=-1,this._timeLastStopped=null,this._timeLastPaused=null,this._timeLastUnpaused=null,this._totalPaused=0,this._isRunning=!1,this._isStopped=!0,this._isPaused=!1,this._elapsedState=a.Time.Clock._RUNNING,this.manager=null,this.master=null,this.delta=0,this.name=null,this.units=0,this.manager=b,this.master=c,this.name=d,this.units=e,this.timers=[],this.units<1&&(this.units=1),this._lastMasterElapsed=this.master.elapsed(),this._currentMasterElapsed=this.master.elapsed()}return c.prototype.objType=function(){return"Clock"},c.prototype.elapsedSinceFirstStarted=function(){return this._timeLastStarted?(this.master.elapsed()-this._timeFirstStarted)/this.units:null},c.prototype.started=function(){return this._timeLastStarted},Object.defineProperty(c.prototype,"maxFrameDuration",{get:function(){return this._maxFrameDuration},set:function(a){this._maxFrameDuration=a},enumerable:!0,configurable:!0}),c.prototype.elapsed=function(){return this._elapsed},c.prototype.elapsedSinceLastStopped=function(){return this._timeLastStarted?(this.master.elapsed()-this._timeLastStopped)/this.units:null},c.prototype.elapsedSinceLastPaused=function(){return this._timeLastStarted?(this.master.elapsed()-this._timeLastPaused)/this.units:null},c.prototype.elapsedSinceLastUnpaused=function(){return this._timeLastStarted?(this.master.elapsed()-this._timeLastUnpaused)/this.units:null},c.prototype.isRunning=function(){return this._isRunning},c.prototype.isStopped=function(){return this._isStopped},c.prototype.isPaused=function(){return this._isPaused},c.prototype.addTimer=function(a){return this.timers.push(a),this},c.prototype.createTimer=function(a,c,d,e){return void 0===c&&(c=1),void 0===d&&(d=0),void 0===e&&(e=!0),this.timers.push(new b.Timer(a,this,c,d)),e===!0&&this.timers[this.timers.length-1].start(),this.timers[this.timers.length-1]},c.prototype.removeTimer=function(a,b){void 0===a&&(a=null),void 0===b&&(b="");var c;if(null!==a){if(c=this.timers.indexOf(a),-1!==c)return this.timers.splice(c,1),!0}else if(""!==b)for(c=0;c<this.timers.length;c++)if(this.timers[c].name===b)return this.timers.splice(c,1),!0;return!1},c.prototype.checkExists=function(a){return this.timers[a]?!0:!1},c.prototype.stopAllTimers=function(){for(var a=0;a<this.timers.length;a++)this.timers[a].stop();return this},c.prototype.convertToMilliseconds=function(a){return a*this.units},c.prototype.update=function(){var b=this._currentMasterElapsed-this._lastMasterElapsed;this._maxFrameDuration>0&&(b=Math.min(b,this._maxFrameDuration));for(var c=0;c<this.timers.length;c++)this.timers[c].update();this._lastMasterElapsed=this._currentMasterElapsed,this._currentMasterElapsed=this.master.elapsed(),this.delta=0,this._elapsedState===a.Time.Clock._RUNNING||this._elapsedState===a.Time.Clock._RESUMED?(this.delta=this.timeScale*b/this.units,this._elapsed+=this.delta,this.rate=this.timeScale*b/this.master.idealDelta):this._elapsedState===a.Time.Clock._PAUSED?(this._totalPaused+=b,this.rate=0):this._elapsedState===a.Time.Clock._STOPPED&&(this.rate=0)},c.prototype.start=function(){return this._timeLastStarted=this.master.elapsed(),this._totalPaused=0,this._timeFirstStarted||(this._timeFirstStarted=this._timeLastStarted),this._isRunning=!0,this._isPaused=!1,this._isStopped=!1,this._elapsedState=a.Time.Clock._RUNNING,this._elapsed=0,this._lastMasterElapsed=this.master.elapsed(),this._currentMasterElapsed=this.master.elapsed(),this},c.prototype.pause=function(){return this._isRunning===!0&&(this._timeLastPaused=this.master.elapsed(),this._isRunning=!1,this._isPaused=!0,this._isStopped=!1,this._elapsedState=a.Time.Clock._PAUSED),this},c.prototype.resume=function(){return this._isPaused===!0&&(this._timeLastUnpaused=this.master.elapsed(),this._totalPaused+=this._timeLastUnpaused-this._timeLastPaused,this._isRunning=!0,this._isPaused=!1,this._isStopped=!1,this._elapsedState=a.Time.Clock._RESUMED),this
 },c.prototype.stop=function(){return this._isStopped===!1&&(this._timeLastStopped=this.master.elapsed(),this._isPaused===!0&&(this._totalPaused+=this._timeLastStopped-this._timeLastPaused),this._isRunning=!1,this._isPaused=!1,this._isStopped=!0,this._elapsedState=a.Time.Clock._STOPPED),this},c.prototype.toString=function(){return"[{Clock (name="+this.name+" units="+this.units+" running="+this._isRunning+")}]"},c.prototype.setTimeout=function(a,c,d){for(var e=[],f=3;f<arguments.length;f++)e[f-3]=arguments[f];var g=this,h=this.createTimer("timeoutTimer",c/this.units);return d||(d=this),h.createTimerEvent(b.TimerEvent.TIMER_STOP,function(){a.apply(d,e),g.removeTimer(h)},d),h.start(),h},c.prototype.setInterval=function(a,c,d){for(var e=[],f=3;f<arguments.length;f++)e[f-3]=arguments[f];var g=this.createTimer("intervalTimer",c/this.units,-1);return d||(d=this),g.createTimerEvent(b.TimerEvent.TIMER_COUNT,function(){a.apply(d,e)},d),g.start(),g},c._RUNNING=0,c._PAUSED=1,c._RESUMED=2,c._STOPPED=3,c}();b.Clock=c}(b=a.Time||(a.Time={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function c(a){this._clocks=[],this.rate=1,this._game=a}return c.prototype.objType=function(){return"ClockManager"},c.prototype.boot=function(){this.master=new a.Time.MasterClock,this.clock=new b.Clock(this,this.master,"default",1e3),this.clock.start()},c.prototype.addClock=function(a,c){return void 0===c&&(c=1e3),this._clocks.push(new b.Clock(this,this.master,a,c)),this._clocks[this._clocks.length-1]},c.prototype.getClock=function(a){for(var b=0;b<this._clocks.length;b++)if(this._clocks[b].name===a)return this._clocks[b]},c.prototype.update=function(){this.master.update(),this.clock.update();for(var a=0;a<this._clocks.length;a++)this._clocks[a].update();this.rate=this.master.rate},c.prototype.now=function(){return this.master.now},c.prototype.elapsed=function(){return this.master.elapsed()},c.prototype.delta=function(){return this.master.delta},c.prototype.setMasterInterval=function(a){this.master.idealDelta=a},c}();b.ClockManager=c}(b=a.Time||(a.Time={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(a){var b=function(){function a(){this.time=0,this.now=0,this.delta=0,this.rate=1,this.idealDelta=1e3/60,this._started=Date.now(),this.now=Date.now(),this.time=this._started}return a.prototype.objType=function(){return"MasterClock"},a.prototype.elapsed=function(){return this.now-this._started},a.prototype.totalElapsedSeconds=function(){return.001*(this.now-this._started)},a.prototype.update=function(){this.now=Date.now(),this.delta=this.now-this.time,this.time=this.now,this.rate=this.delta/this.idealDelta},a.prototype.elapsedSince=function(a){return this.now-a},a.prototype.elapsedSecondsSince=function(a){return.001*(this.now-a)},a.prototype.reset=function(){this._started=this.now},a}();a.MasterClock=b}(b=a.Time||(a.Time={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function c(a,b,c,d){void 0===d&&(d=0),this._currentCount=0,this._startEvents=null,this._countEvents=null,this._stopEvents=null,this._clock=null,this._timeLastCount=null,this._isRunning=!1,this._isStopped=!0,this._isPaused=!1,this.name=null,this._delay=.016,this.repeatCount=0,this._elapsed=0,this._clock=b,this._startEvents=[],this._countEvents=[],this._stopEvents=[],this.name=a,this.delay=c,this.repeatCount=d}return c.prototype.objType=function(){return"Timer"},c.prototype.currentCount=function(){return this._currentCount},c.prototype.isRunning=function(){return this._isRunning},c.prototype.isStopped=function(){return this._isStopped},c.prototype.isPaused=function(){return this._isPaused},Object.defineProperty(c.prototype,"delay",{get:function(){return this._delay},set:function(b){b>0?this._delay=b:a.Log.error("Attempted to set timer delay",b,"but value must be greater than 0","#timer")},enumerable:!0,configurable:!0}),c.prototype.processEvents=function(a){if(a===b.TimerEvent.TIMER_START)for(var c=0;c<this._startEvents.length;c++)this._startEvents[c].run();else if(a===b.TimerEvent.TIMER_COUNT)for(var c=0;c<this._countEvents.length;c++)this._countEvents[c].run();else if(a===b.TimerEvent.TIMER_STOP)for(var c=0;c<this._stopEvents.length;c++)this._stopEvents[c].run()},c.prototype.update=function(){var a=this._clock.elapsed()-this._lastElapsed;for(this._lastElapsed=this._clock.elapsed(),this._isRunning&&(this._elapsed+=a);this._elapsed>=this.delay;)this._currentCount++,this.processEvents(b.TimerEvent.TIMER_COUNT),this._elapsed-=this.delay,-1!==this.repeatCount&&this._currentCount>=this.repeatCount&&this.stop();for(;this._elapsed<0;)this._currentCount--,this._elapsed+=this.delay,this._currentCount<0&&(this.clear(),this.stop())},c.prototype.start=function(){return this._isStopped===!0&&(this._isRunning=!0,this._isPaused=!1,this._isStopped=!1,this._currentCount=0,this._elapsed=0,this._lastElapsed=this._clock.elapsed()||0,this.processEvents(b.TimerEvent.TIMER_START)),this},c.prototype.stop=function(){return(this._isRunning===!0||this._isPaused===!0)&&(this._isRunning=!1,this._isPaused=!1,this._isStopped=!0,this.processEvents(b.TimerEvent.TIMER_STOP)),this},c.prototype.pause=function(){return this._isRunning===!0&&(this._isRunning=!1,this._isPaused=!0),this},c.prototype.resume=function(){return this._isPaused===!0&&(this._isRunning=!0,this._isPaused=!1),this},c.prototype.addTimerEvent=function(a){return a.type===b.TimerEvent.TIMER_START?this._startEvents.push(a):a.type===b.TimerEvent.TIMER_COUNT?this._countEvents.push(a):a.type===b.TimerEvent.TIMER_STOP&&this._stopEvents.push(a),a},c.prototype.createTimerEvent=function(a,c,d){return a===b.TimerEvent.TIMER_START?(this._startEvents.push(new b.TimerEvent(a,c,d)),this._startEvents[this._startEvents.length-1]):a===b.TimerEvent.TIMER_COUNT?(this._countEvents.push(new b.TimerEvent(a,c,d)),this._countEvents[this._countEvents.length-1]):a===b.TimerEvent.TIMER_STOP?(this._stopEvents.push(new b.TimerEvent(a,c,d)),this._stopEvents[this._stopEvents.length-1]):null},c.prototype.removeTimerEvent=function(a){var c=[];return a.type===b.TimerEvent.TIMER_START?c=this._startEvents.splice(this._startEvents.indexOf(a),1):a.type===b.TimerEvent.TIMER_COUNT?c=this._countEvents.splice(this._countEvents.indexOf(a),1):a.type===b.TimerEvent.TIMER_STOP&&(c=this._stopEvents.splice(this._stopEvents.indexOf(a),1)),1===c.length?!0:!1},c.prototype.clear=function(a){void 0===a&&(a=0),0===a?(this._startEvents.length=0,this._countEvents.length=0,this._stopEvents.length=0):a===b.TimerEvent.TIMER_START?this._startEvents.length=0:a===b.TimerEvent.TIMER_COUNT?this._countEvents.length=0:a===b.TimerEvent.TIMER_STOP&&(this._stopEvents.length=0)},c.prototype.toString=function(){return"[{Timer (name="+this.name+" delay="+this.delay+" repeatCount="+this.repeatCount+" running="+this._isRunning+")}]"},c}();b.Timer=c}(b=a.Time||(a.Time={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(a){var b=function(){function a(a,b,c){this._callback=null,this.type=0,this.type=a,this._callback=b,this._callbackContext=c}return a.prototype.objType=function(){return"TimerEvent"},a.prototype.run=function(){this._callback&&this._callback.apply(this._callbackContext)},a.TIMER_START=1,a.TIMER_COUNT=2,a.TIMER_STOP=3,a}();a.TimerEvent=b}(b=a.Time||(a.Time={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function b(b,c,d,e){void 0===d&&(d=!0),void 0===e&&(e=!1),this.domElement=null,this.context=null,this._visible=!0,this._offScreen=!1,this._clearMode=1,this.domElement=document.createElement("canvas"),this.domElement.width=b,this.domElement.height=c,this._width=b,this._height=c,this.context=this.domElement.getContext("2d"),this._offScreen=e,this._visible=d,d===!1&&(this.domElement.style.display="none"),this._bgColor=new a.Utils.Color(0,0,0)}return Object.defineProperty(b.prototype,"width",{get:function(){return this._width},set:function(a){this._width=a,this._updatedSize()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"height",{get:function(){return this._height},set:function(a){this._height=a,this._updatedSize()},enumerable:!0,configurable:!0}),b.prototype.objType=function(){return"Canvas"},Object.defineProperty(b.prototype,"bgColor",{get:function(){return"#"+this._bgColor.getHex()},set:function(b){a.Utils.Common.isArray(b)||(b=[b]),this._bgColor.set.apply(this._bgColor,b)},enumerable:!0,configurable:!0}),b.prototype._updatedSize=function(){this.domElement.width=this._width,this.domElement.height=this._height},b.prototype.destroy=function(){this._offScreen===!1&&(this.domElement.style.display="none")},Object.defineProperty(b.prototype,"visible",{get:function(){return this._visible},set:function(a){null!==a&&a!==this._visible&&(this._visible=a,this.domElement.style.display=a===!0?"block":"none")},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"clearMode",{get:function(){return this._clearMode},set:function(b){null!==b&&b!==this._clearMode&&b>=a.Utils.Canvas.CLEARMODE_NONE&&b<=a.Utils.Canvas.CLEARMODE_FILLRECT_ALPHA&&(this._clearMode=b)},enumerable:!0,configurable:!0}),b.prototype.clear=function(){this._clearMode===b.CLEARMODE_NONE||(this._clearMode===b.CLEARMODE_CLEARRECT?this.context.clearRect(0,0,this.domElement.width,this.domElement.height):this._clearMode===b.CLEARMODE_FILLRECT?(this.context.fillStyle=this.bgColor,this.context.fillRect(0,0,this.domElement.width,this.domElement.height)):this._clearMode===b.CLEARMODE_FILLRECT_ALPHA&&(this.context.clearRect(0,0,this.domElement.width,this.domElement.height),this.context.fillStyle=this.bgColor,this.context.fillRect(0,0,this.domElement.width,this.domElement.height)))},b.prototype.saveAsPNG=function(){return this.domElement.toDataURL()},b.prototype.toString=function(){return"[{Canvas (width="+this.width+" height="+this.height+" visible="+this.visible+" offScreen="+this._offScreen+" clearMode="+this.clearMode+")}]"},b.CLEARMODE_NONE=0,b.CLEARMODE_CLEARRECT=1,b.CLEARMODE_FILLRECT=2,b.CLEARMODE_FILLRECT_ALPHA=3,b}();b.Canvas=c}(b=a.Utils||(a.Utils={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(a){var b=function(){function a(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return this._r=.5,this._g=.5,this._b=.5,this._a=1,this.set.apply(this,a),this}return a.prototype.set=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return 3===a.length?(this.r=a[0],this.g=a[1],this.b=a[2]):4===a.length?isNaN(a[3])?"hsv"===a[3]?this.parseHsv(a[0],a[1],a[2]):"hsl"===a[3]&&this.parseHsl(a[0],a[1],a[2]):(this.r=a[0],this.g=a[1],this.b=a[2],this.a=a[3]):5===a.length?"hsv"===a[4]?this.parseHsv(a[0],a[1],a[2],a[3]):"hsl"===a[4]&&this.parseHsl(a[0],a[1],a[2],a[3]):1===a.length?"string"==typeof a[0]?this.parseString(a[0]):isNaN(a[0])||(this.r=a[0],this.g=a[0],this.b=a[0]):2===a.length&&(this.r=a[0],this.g=a[0],this.b=a[0],this.a=a[1]),this},Object.defineProperty(a.prototype,"rNorm",{get:function(){return this._r},set:function(a){isNaN(a)||(this._r=a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"gNorm",{get:function(){return this._g},set:function(a){isNaN(a)||(this._g=a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"bNorm",{get:function(){return this._b},set:function(a){isNaN(a)||(this._b=a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"aNorm",{get:function(){return this._a},set:function(a){isNaN(a)||(this._a=a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"r",{get:function(){return this._r},set:function(a){a>1?this.r255=a:this.rNorm=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"g",{get:function(){return this._g},set:function(a){a>1?this.g255=a:this.gNorm=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"b",{get:function(){return this._b},set:function(a){a>1?this.b255=a:this.bNorm=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"a",{get:function(){return this._a},set:function(a){a>1?this.a255=a:this.aNorm=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"r255",{get:function(){return Math.round(255*this._r)},set:function(a){isNaN(a)||(this._r=a/255)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"g255",{get:function(){return Math.round(255*this._g)},set:function(a){isNaN(a)||(this._g=a/255)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"b255",{get:function(){return Math.round(255*this._b)},set:function(a){isNaN(a)||(this._b=a/255)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"a255",{get:function(){return Math.round(255*this._a)},set:function(a){isNaN(a)||(this._a=a/255)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"red",{get:function(){return this.r},set:function(a){this.r=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"green",{get:function(){return this.g},set:function(a){this.g=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"blue",{get:function(){return this.b},set:function(a){this.b=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"alpha",{get:function(){return this.a},set:function(a){this.a=a},enumerable:!0,configurable:!0}),a.prototype.parseString=function(a){var b;return a=a.toLowerCase(),"rgba"===a.slice(0,4)?(a=a.replace("rgba",""),a=a.replace("(",""),a=a.replace(")",""),b=a.split(","),this.r=+b[0],this.g=+b[1],this.b=+b[2],this.a=+b[3]):"rgb"===a.slice(0,3)?(a=a.replace("rgb",""),a=a.replace("(",""),a=a.replace(")",""),b=a.split(","),this.r=+b[0],this.g=+b[1],this.b=+b[2]):"hsla"===a.slice(0,4)?(a=a.replace("hsla",""),a=a.replace("(",""),a=a.replace(")",""),b=a.split(","),this.parseHsl(+b[0],+b[1],+b[2],+b[3])):"hsl"===a.slice(0,3)?(a=a.replace("hsl",""),a=a.replace("(",""),a=a.replace(")",""),b=a.split(","),this.parseHsl(+b[0],+b[1],+b[2])):this.parseHex(a),this},a.prototype.parseHex=function(a){var b,c=this.r255,d=this.g255,e=this.b255,f=this.a255;return"#"===a.charAt(0)&&(a=a.slice(1)),"0x"===a.slice(0,2)&&(a=a.slice(2)),b=parseInt(a,16),3===a.length?(c=17*(b>>8&15),d=17*(b>>4&15),e=17*(15&b)):4===a.length?(c=17*(b>>12&15),d=17*(b>>8&15),e=17*(b>>4&15),f=17*(15&b)):6===a.length?(c=b>>16&255,d=b>>8&255,e=255&b,f=255):8===a.length&&(c=b>>24&255,d=b>>16&255,e=b>>8&255,f=255&b),this.r255=c,this.g255=d,this.b255=e,this.a255=f,this},a.prototype.getHex=function(a){void 0===a&&(a=!0);var b,c="";for(b=this.r255.toString(16);b.length<2;)b="0"+b;for(c+=b,b=this.g255.toString(16);b.length<2;)b="0"+b;for(c+=b,b=this.b255.toString(16);b.length<2;)b="0"+b;if(c+=b,a){for(b=this.a255.toString(16);b.length<2;)b="0"+b;c+=b}return c},a.prototype.parseHsv=function(a,b,c,d){void 0===d&&(d=1);var e,f,g,h,i,j,k,l;if(isNaN(a)||isNaN(b)||isNaN(c)||isNaN(d))return this;switch(a>1&&(a/=360),b>1&&(b/=100),c>1&&(c/=100),d>1&&(d/=255),h=Math.floor(6*a),i=6*a-h,j=c*(1-b),k=c*(1-i*b),l=c*(1-(1-i)*b),h%6){case 0:e=c,f=l,g=j;break;case 1:e=k,f=c,g=j;break;case 2:e=j,f=c,g=l;break;case 3:e=j,f=k,g=c;break;case 4:e=l,f=j,g=c;break;case 5:e=c,f=j,g=k}return this._r=e,this._g=f,this._b=g,this._a=d,this},a.prototype.getHsva=function(){var a,b,c,d,e=this._r,f=this._g,g=this._b,h=Math.max(e,f,g),i=Math.min(e,f,g);if(a=h,b=h,c=h,d=h-i,b=0===h?0:d/h,h===i)a=0;else{switch(h){case e:a=(f-g)/d+(g>f?6:0);break;case f:a=(g-e)/d+2;break;case g:a=(e-f)/d+4}a/=6}return{h:a,s:b,v:c,a:this._a}},a.prototype.parseHsl=function(a,b,c,d){void 0===d&&(d=1);var e,f,g=this._r,h=this._g,i=this._b;return isNaN(a)||isNaN(b)||isNaN(c)||isNaN(d)?this:(a>1&&(a/=360),b>1&&(b/=100),c>1&&(c/=100),d>1&&(d/=255),0===b?(g=c,h=c,i=c):(e=.5>c?c*(1+b):c+b-c*b,f=2*c-e,g=this._hue2rgb(f,e,a+1/3),h=this._hue2rgb(f,e,a),i=this._hue2rgb(f,e,a-1/3)),this._r=g,this._g=h,this._b=i,this._a=d,this)},a.prototype.getHsla=function(){var a,b=this._r,c=this._g,d=this._b,e=Math.max(b,c,d),f=Math.min(b,c,d),g=(e+f)/2,h=(e+f)/2,i=(e+f)/2;if(e==f)g=0,h=0;else{switch(a=e-f,h=i>.5?a/(2-e-f):a/(e+f),e){case b:g=(c-d)/a+(d>c?6:0);break;case c:g=(d-b)/a+2;break;case d:g=(b-c)/a+4}g/=6}return{h:g,s:h,l:i,a:this._a}},a.prototype._hue2rgb=function(a,b,c){return 0>c&&(c+=1),c>1&&(c-=1),1/6>c?a+6*(b-a)*c:.5>c?b:2/3>c?a+(b-a)*(2/3-c)*6:a},a}();a.Color=b}(b=a.Utils||(a.Utils={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function b(){}return b.defaultCompare=function(a,b){return b>a?-1:a===b?0:1},b.prototype.objType=function(){return"Common"},b.defaultEquals=function(a,b){return a===b},b.defaultToString=function(b){return null===b?"KIWI_NULL":a.Utils.Common.isUndefined(b)?"KIWI_UNDEFINED":a.Utils.Common.isString(b)?b:b.toString()},b.isBetween=function(a,b,c){return a>b&&c>a},b.isFunction=function(a){return"function"==typeof a},b.isNumeric=function(a){return!isNaN(a)},b.isUndefined=function(a){return"undefined"==typeof a},b.isString=function(a){return"[object String]"===Object.prototype.toString.call(a)},b.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)},b.isObject=function(a){return"[object Object]"===Object.prototype.toString.call(a)},b.reverseCompareFunction=function(b){return a.Utils.Common.isFunction(b)?function(a,c){return-1*b(a,c)}:function(a,b){return b>a?1:a===b?0:-1}},b.compareToEquals=function(a){return function(b,c){return 0===a(b,c)}},b.shuffleArray=function(a){for(var b=a.length-1;b>0;b--){var c=Math.floor(Math.random()*(b+1)),d=a[b];a[b]=a[c],a[c]=d}return a},b.convertToBase2=function(a){var b=a.width,c=a.height;if(-1==this.base2Sizes.indexOf(b)){for(var d=0;b>this.base2Sizes[d];)d++;b=this.base2Sizes[d]}if(-1==this.base2Sizes.indexOf(c)){for(var d=0;c>this.base2Sizes[d];)d++;c=this.base2Sizes[d]}if(a.width!==b||a.height!==c){var e=document.createElement("canvas");return e.width=b,e.height=c,e.getContext("2d").drawImage(a,0,0),e}return a},b.base2Sizes=[2,4,16,32,64,128,256,512,1024,2048,4096],b}();b.Common=c}(b=a.Utils||(a.Utils={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function b(){}return b.prototype.objType=function(){return"GameMath"},b.computeMachineEpsilon=function(){var a=4/3,b=a-1,c=b+b+b;return Math.abs(1-c)},b.fuzzyEqual=function(a,b,c){return void 0===c&&(c=1e-4),Math.abs(a-b)<c},b.fuzzyLessThan=function(a,b,c){return void 0===c&&(c=1e-4),b+c>a},b.fuzzyGreaterThan=function(a,b,c){return void 0===c&&(c=1e-4),a>b-c},b.fuzzyCeil=function(a,b){return void 0===b&&(b=1e-4),Math.ceil(a-b)},b.fuzzyFloor=function(a,b){return void 0===b&&(b=1e-4),Math.floor(a+b)},b.average=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c=0,d=0;d<a.length;d++)c+=a[d];return c/a.length},b.slam=function(a,b,c){return void 0===c&&(c=1e-4),Math.abs(a-b)<c?b:a},b.percentageMinMax=function(a,b,c){return void 0===c&&(c=0),a-=c,b-=c,b?a/b:0},b.sign=function(a){return a?a/Math.abs(a):0},b.truncate=function(a){return a>0?Math.floor(a):Math.ceil(a)},b.shear=function(a){return a%1},b.wrap=function(a,b,c){if(void 0===c&&(c=0),a-=c,b-=c,0==b)return c;for(a%=b,a+=c;c>a;)a+=b;return a},b.arithWrap=function(a,b,c){return void 0===c&&(c=0),b-=c,0==b?c:a-b*Math.floor((a-c)/b)},b.clamp=function(a,b,c){return void 0===c&&(c=0),Math.max(c,Math.min(b,a))},b.snapTo=function(a,b,c){return void 0===c&&(c=0),0==b?a:(a-=c,a=b*Math.round(a/b),c+a)},b.snapToFloor=function(a,b,c){return void 0===c&&(c=0),0==b?a:(a-=c,a=b*Math.floor(a/b),c+a)},b.snapToCeil=function(a,b,c){return void 0===c&&(c=0),0==b?a:(a-=c,a=b*Math.ceil(a/b),c+a)},b.snapToInArray=function(a,b,c){if(void 0===c&&(c=!0),c&&b.sort(),a<b[0])return b[0];for(var d=1;b[d]<a;)d++;var e=b[d-1],f=d<b.length?b[d]:Number.POSITIVE_INFINITY;return a-e>=f-a?f:e},b.roundTo=function(a,b,c){void 0===b&&(b=0),void 0===c&&(c=10);var d=Math.pow(c,-b);return Math.round(a*d)/d},b.floorTo=function(a,b,c){void 0===b&&(b=0),void 0===c&&(c=10);var d=Math.pow(c,-b);return Math.floor(a*d)/d},b.ceilTo=function(a,b,c){void 0===b&&(b=0),void 0===c&&(c=10);var d=Math.pow(c,-b);return Math.ceil(a*d)/d},b.interpolateFloat=function(a,b,c){return(b-a)*c+a},b.radiansToDegrees=function(a){return a*b.RAD_TO_DEG},b.degreesToRadians=function(a){return a*b.DEG_TO_RAD},b.angleBetween=function(a,b,c,d){return Math.atan2(d-b,c-a)},b.normalizeAngle=function(a,c){void 0===c&&(c=!0);var d=c?b.PI:180;return b.wrap(a,d,-d)},b.nearestAngleBetween=function(a,c,d){void 0===d&&(d=!0);var e=d?b.PI:180;return a=b.normalizeAngle(a,d),c=b.normalizeAngle(c,d),-e/2>a&&c>e/2&&(a+=2*e),-e/2>c&&a>e/2&&(c+=2*e),b.normalizeAngle(c-a,d)},b.normalizeAngleToAnother=function(b,c,d){return void 0===d&&(d=!0),c+a.Utils.GameMath.nearestAngleBetween(c,b,d)},b.normalizeAngleAfterAnother=function(b,c,d){return void 0===d&&(d=!0),b=a.Utils.GameMath.normalizeAngle(b-c,d),c+b},b.normalizeAngleBeforeAnother=function(b,c,d){return void 0===d&&(d=!0),b=a.Utils.GameMath.normalizeAngle(c-b,d),c-b},b.interpolateAngles=function(b,c,d,e,f){return void 0===e&&(e=!0),void 0===f&&(f=null),b=a.Utils.GameMath.normalizeAngle(b,e),c=a.Utils.GameMath.normalizeAngleToAnother(c,b,e),"function"==typeof f?f(d,b,c-b,1):a.Utils.GameMath.interpolateFloat(b,c,d)},b.logBaseOf=function(a,b){return Math.log(a)/Math.log(b)},b.GCD=function(a,b){var c;for(a=Math.abs(a),b=Math.abs(b),b>a&&(c=a,a=b,b=c);;){if(c=a%b,!c)return b;a=b,b=c}return 1},b.LCM=function(b,c){return b*c/a.Utils.GameMath.GCD(b,c)},b.factorial=function(a){if(0==a)return 1;for(var b=a;--a;)b*=a;return b},b.gammaFunction=function(b){return a.Utils.GameMath.factorial(b-1)},b.fallingFactorial=function(b,c){return a.Utils.GameMath.factorial(b)/a.Utils.GameMath.factorial(b-c)},b.risingFactorial=function(b,c){return a.Utils.GameMath.factorial(b+c-1)/a.Utils.GameMath.factorial(b-1)},b.binCoef=function(b,c){return a.Utils.GameMath.fallingFactorial(b,c)/a.Utils.GameMath.factorial(c)},b.risingBinCoef=function(b,c){return a.Utils.GameMath.risingFactorial(b,c)/a.Utils.GameMath.factorial(c)},b.chanceRoll=function(a){return void 0===a&&(a=50),0>=a?!1:a>=100?!0:100*Math.random()>=a?!1:!0},b.maxAdd=function(a,b,c){return a+=b,a>c&&(a=c),a},b.minSub=function(a,b,c){return a-=b,c>a&&(a=c),a},b.wrapValue=function(a,b,c){var d;return a=Math.abs(a),b=Math.abs(b),c=Math.abs(c),d=(a+b)%c},b.randomSign=function(){return Math.random()>.5?1:-1},b.isOdd=function(a){return 1&a?!0:!1},b.isEven=function(a){return 1&a?!1:!0},b.wrapAngle=function(a){var b=a;return a>=-180&&180>=a?a:(b=(a+180)%360,0>b&&(b+=360),b-180)},b.angleLimit=function(a,b,c){var d=a;return a>c?d=c:b>a&&(d=b),d},b.linearInterpolation=function(b,c){var d=b.length-1,e=d*c,f=Math.floor(e);return 0>c?a.Utils.GameMath.linear(b[0],b[1],e):c>1?a.Utils.GameMath.linear(b[d],b[d-1],d-e):a.Utils.GameMath.linear(b[f],b[f+1>d?d:f+1],e-f)},b.bezierInterpolation=function(b,c){for(var d=0,e=b.length-1,f=0;e>=f;f++)d+=Math.pow(1-c,e-f)*Math.pow(c,f)*b[f]*a.Utils.GameMath.bernstein(e,f);return d},b.catmullRomInterpolation=function(b,c){var d=b.length-1,e=d*c,f=Math.floor(e);return b[0]===b[d]?(0>c&&(f=Math.floor(e=d*(1+c))),a.Utils.GameMath.catmullRom(b[(f-1+d)%d],b[f],b[(f+1)%d],b[(f+2)%d],e-f)):0>c?b[0]-(a.Utils.GameMath.catmullRom(b[0],b[0],b[1],b[1],-e)-b[0]):c>1?b[d]-(a.Utils.GameMath.catmullRom(b[d],b[d],b[d-1],b[d-1],e-d)-b[d]):a.Utils.GameMath.catmullRom(b[f?f-1:0],b[f],b[f+1>d?d:f+1],b[f+2>d?d:f+2],e-f)},b.linear=function(a,b,c){return(b-a)*c+a},b.bernstein=function(b,c){return a.Utils.GameMath.factorial(b)/a.Utils.GameMath.factorial(c)/a.Utils.GameMath.factorial(b-c)},b.catmullRom=function(a,b,c,d,e){var f=.5*(c-a),g=.5*(d-b),h=e*e,i=e*h;return(2*b-2*c+f+g)*i+(-3*b+3*c-2*f-g)*h+f*e+b},b.difference=function(a,b){return Math.abs(a-b)},b.PI=3.141592653589793,b.PI_2=1.5707963267948966,b.PI_4=.7853981633974483,b.PI_8=.39269908169872414,b.PI_16=.19634954084936207,b.TWO_PI=6.283185307179586,b.THREE_PI_2=4.71238898038469,b.E=2.71828182845905,b.LN10=2.302585092994046,b.LN2=.6931471805599453,b.LOG10E=.4342944819032518,b.LOG2E=1.4426950408889634,b.SQRT1_2=.7071067811865476,b.SQRT2=1.4142135623730951,b.DEG_TO_RAD=.017453292519943295,b.RAD_TO_DEG=57.29577951308232,b.B_16=65536,b.B_31=2147483648,b.B_32=4294967296,b.B_48=281474976710656,b.B_53=9007199254740992,b.B_64=0x10000000000000000,b.ONE_THIRD=.3333333333333333,b.TWO_THIRDS=.6666666666666666,b.ONE_SIXTH=.16666666666666666,b.COS_PI_3=.8660254037844386,b.SIN_2PI_3=.03654595,b.CIRCLE_ALPHA=.5522847498307935,b.ON=!0,b.OFF=!1,b.SHORT_EPSILON=.1,b.PERC_EPSILON=.001,b.EPSILON=1e-4,b.LONG_EPSILON=1e-8,b}();b.GameMath=c}(b=a.Utils||(a.Utils={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(a){var b=function(){function a(a){void 0===a&&(a=[]),this.c=1,this._data={lipsum:["lorem","ipsum","dolor","sit","amet","consectetur","adipiscing","elit","nunc","sagittis","tortor","ac","mi","pretium","sed","convallis","massa","pulvinar","curabitur","non","turpis","velit","vitae","rutrum","odio","aliquam","sapien","orci","tempor","sed","elementum","sit","amet","tincidunt","sed","risus","etiam","nec","lacus","id","ante","hendrerit","malesuada","donec","porttitor","magna","eget","libero","pharetra","sollicitudin","aliquam","mattis","mattis","massa","et","porta","morbi","vitae","magna","augue","vestibulum","at","lectus","sed","tellus","facilisis","tincidunt","suspendisse","eros","magna","consequat","at","sollicitudin","ac","vestibulum","vel","dolor","in","egestas","lacus","quis","lacus","placerat","et","molestie","ipsum","scelerisque","nullam","sit","amet","tortor","dui","aenean","pulvinar","odio","nec","placerat","fringilla","neque","dolor"]},this.sow(a)}return a.prototype.objType=function(){return"RandomDataGenerator"},a.prototype.uint32=function(){return 4294967296*this.rnd.apply(this)},a.prototype.fract32=function(){return this.rnd.apply(this)+1.1102230246251565e-16*(2097152*this.rnd.apply(this)|0)},a.prototype.rnd=function(){var a=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|a,this.s0=this.s1,this.s1=this.s2,this.s2=a-this.c,this.s2},a.prototype.hash=function(a){var b,c,d;for(d=4022871197,a=a.toString(),c=0;c<a.length;c++)d+=a.charCodeAt(c),b=.02519603282416938*d,d=b>>>0,b-=d,b*=d,d=b>>>0,b-=d,d+=4294967296*b;return 2.3283064365386963e-10*(d>>>0)},a.prototype.sow=function(a){void 0===a&&(a=[]),this.s0=this.hash(" "),this.s1=this.hash(this.s0),this.s2=this.hash(this.s1);for(var b,c=0;b=a[c++];)this.s0-=this.hash(b),this.s0+=~~(this.s0<0),this.s1-=this.hash(b),this.s1+=~~(this.s1<0),this.s2-=this.hash(b),this.s2+=~~(this.s2<0)},a.prototype.integer=function(){return this.uint32()},a.prototype.frac=function(){return this.fract32()},a.prototype.real=function(){return this.uint32()+this.fract32()},a.prototype.integerInRange=function(a,b){return Math.floor(this.realInRange(a,b))},a.prototype.realInRange=function(a,b){return a=a||0,b=b||0,this.frac()*(b-a)+a},a.prototype.normal=function(){return 1-2*this.frac()},a.prototype.uuid=function(){var a,b;for(b=a="";a++<36;b+=~a%5|3*a&4?(15^a?8^this.frac()*(20^a?16:4):4).toString(16):"-");return b},a.prototype.pick=function(a){return a[this.integerInRange(0,a.length)]},a.prototype.weightedPick=function(a){return a[~~(Math.pow(this.frac(),2)*a.length)]},a.prototype.word=function(){return this.pick(this._data.lipsum)},a.prototype.words=function(a){void 0===a&&(a=3);for(var b=[],c=0;a>c;c++)b.push(this.pick(this._data.lipsum));return b.join(" ")},a.prototype.sentence=function(){var a;return a=this.words(this.integerInRange(2,16)).replace(/[a-z]/,function(a){return a.toUpperCase()}),a+"."},a.prototype.sentences=function(a){void 0===a&&(a=3);for(var b=[],c=0;a>c;c++)b.push(this.sentence());return b.join(" ")},a.prototype.timestamp=function(a,b){return void 0===a&&(a=9466848e5),void 0===b&&(b=1577862e6),this.realInRange(a,b)},a.prototype.angle=function(){return this.integerInRange(-180,180)},a}();a.RandomDataGenerator=b}(b=a.Utils||(a.Utils={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(a){var b=function(){function a(a){this._isSetTimeOut=!1,this.lastTime=0,this.currentTime=0,this.isRunning=!1,this._rafId=null,this._callback=a;for(var b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;c++)window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]}return a.prototype.objType=function(){return"RequestAnimationFrame"},a.prototype.setCallback=function(a){this._callback=a},a.prototype.isUsingSetTimeOut=function(){return this._isSetTimeOut},a.prototype.isUsingRAF=function(){return this._isSetTimeOut===!0?!1:!0},a.prototype.start=function(a){var b=this;void 0===a&&(a=null),a&&(this._callback=a),window.requestAnimationFrame?(this._isSetTimeOut=!1,this._rafId=window.requestAnimationFrame(function(){return b.RAFUpdate()})):(this._isSetTimeOut=!0,this._timeOutID=window.setTimeout(function(){return b.SetTimeoutUpdate()},0)),this.isRunning=!0},a.prototype.stop=function(){this._isSetTimeOut?clearTimeout(this._timeOutID):window.cancelAnimationFrame(this._rafId),this.isRunning=!1},a.prototype.RAFUpdate=function(){var a=this;this.currentTime=Date.now(),this._callback&&this._callback();var b=Math.max(0,16-(this.currentTime-this.lastTime));this._rafId=window.requestAnimationFrame(function(){return a.RAFUpdate()}),this.lastTime=this.currentTime+b},a.prototype.SetTimeoutUpdate=function(){var a=this;this.currentTime=Date.now(),this._callback&&this._callback();var b=Math.max(0,16-(this.currentTime-this.lastTime));this._timeOutID=window.setTimeout(function(){return a.SetTimeoutUpdate()},b),this.lastTime=this.currentTime+b},a}();a.RequestAnimationFrame=b}(b=a.Utils||(a.Utils={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(){function b(a){void 0===a&&(a={}),this.enabled=!0,this.recording=!0,this.display=!0,this.tagFilters=[],this.maxRecordings=1/0,this.recordings=[],this.setDefaultsFromParams(a)}return b.prototype.setDefaultsFromParams=function(b){void 0===b&&(b={}),a.Utils.Common.isUndefined(b.enabled)||(this.enabled=b.enabled),a.Utils.Common.isUndefined(b.recording)||(this.recording=b.recording),a.Utils.Common.isUndefined(b.display)||(this.display=b.display),a.Utils.Common.isUndefined(b.maxRecordings)||(this.maxRecordings=b.maxRecordings),a.Utils.Common.isArray(b.tagFilters)&&(this.tagFilters=b.tagFilters)},Object.defineProperty(b.prototype,"lastMessageTime",{get:function(){return this.recordings.length>0?this.recordings[this.recordings.length-1].time:0},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"numRecordings",{get:function(){return this.recordings.length},enumerable:!0,configurable:!0}),b.prototype.record=function(a,b,c){if(void 0===b&&(b=[]),void 0===c&&(c=console.log),this.recording){var d={messages:a,time:Date.now(),tags:b,logMethod:c};this.recordings.push(d)>this.maxRecordings&&this.recordings.shift()}},b.prototype.clearRecordings=function(a,b){void 0===a&&(a=0),void 0===b&&(b=this.recordings.length),this.recordings.splice(a,b)},b.prototype._execute=function(a,b,c,d){void 0===d&&(d=!1),(this.display||d)&&a.apply(b,c)},b.prototype.getTagsFromArray=function(a){for(var b=0,c=[];b<a.length;)"string"==typeof a[b]&&"#"===a[b].charAt(0)&&c.push(a[b]),b++;return c},b.prototype._filterTags=function(a,b){if(void 0===b&&(b=this.tagFilters),0===b.length)return!0;if(0==a.length)return!1;for(var c=0;c<a.length;){if(-1===b.indexOf(a[c]))return!1;c++}return!0},b.prototype.log=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];if(this.enabled){var c=this.getTagsFromArray(a);this.record(a,c,console.log),this._filterTags(c)&&this._execute(console.log,console,a)}},b.prototype.warn=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];if(this.enabled){var c=this.getTagsFromArray(a);this.record(a,c,console.warn),this._filterTags(c)&&this._execute(console.warn,console,a)}},b.prototype.error=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];if(this.enabled){var c=this.getTagsFromArray(a);this.record(a,c,console.error),this._filterTags(c)&&this._execute(console.error,console,a)}},b.prototype._show=function(a,b){if(!a.logMethod)return!1;for(var c=b.length;c--;)if(-1==a.tags.indexOf(b[c]))return!1;
-return this._execute(a.logMethod,console,a.messages,!0),!0},b.prototype.showLast=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c=this.recordings.length;c--;)if(this._show(this.recordings[c],a))return},b.prototype.showAll=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c=0;c<this.recordings.length;c++)this._show(this.recordings[c],a)},b.prototype.showLogs=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c=0;c<this.recordings.length;c++)this.recordings[c].logMethod===console.log&&this._show(this.recordings[c],a)},b.prototype.showErrors=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c=0;c<this.recordings.length;c++)this.recordings[c].logMethod===console.error&&this._show(this.recordings[c],a)},b.prototype.showWarnings=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c=0;c<this.recordings.length;c++)this.recordings[c].logMethod===console.warn&&this._show(this.recordings[c],a)},b.prototype.showTimePeriod=function(a,b,c){void 0===a&&(a=0),void 0===b&&(b=1/0),void 0===c&&(c=[]);for(var d,e=0;e<this.recordings.length;e++)d=this.recordings[e],a<d.time&&b>d.time&&this._show(d,c)},b.prototype.addFilter=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];this.tagFilters=this.tagFilters.concat(a)},b.prototype.removeFilter=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c,d=0;d<a.length;)c=this.tagFilters.indexOf(a[d]),-1!==c&&this.tagFilters.splice(c,1),d++},b}();b.Log=c}(b=a.Utils||(a.Utils={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(a){var b=function(){function a(){}return a.parseVersion=function(a){var b=a.split(".");return{majorVersion:parseInt(b[0]),minorVersion:parseInt(b[1]),patchVersion:parseInt(b[2])}},a.compareVersions=function(b,c){var d=a.parseVersion(b),e=a.parseVersion(c);return d.majorVersion>e.majorVersion?"greater":d.majorVersion<e.majorVersion?"less":d.minorVersion>e.minorVersion?"greater":d.minorVersion<e.minorVersion?"less":d.patchVersion>e.patchVersion?"greater":d.patchVersion<e.patchVersion?"less":"equal"},a.greaterOrEqual=function(b,c){var d=a.compareVersions(b,c);return"greater"==d||"equal"==d},a}();a.Version=b}(b=a.Utils||(a.Utils={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){a.Log=new a.Utils.Log,a.VERSION="1.3.1",a.RENDERER_CANVAS=0,a.RENDERER_WEBGL=1,a.RENDERER_AUTO=2,a.TARGET_BROWSER=0,a.TARGET_COCOON=1,a.DEBUG_ON=0,a.DEBUG_OFF=1,a.DEVICE=null,a.STATE=0,a.GROUP=2,a.ENTITY=3,a.CAMERA=4,a.HUD_WIDGET=5,a.TILE_LAYER=6;var b=function(){function b(){}return b.prototype.objType=function(){return"GameManager"},b.register=function(b){return a.GameManager._games.push(b)},b.total=function(){return a.GameManager._games.length},b._games=[],b}();a.GameManager=b;var c;!function(){}(c=a.Plugins||(a.Plugins={})),a.extend=function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);c.prototype=b.prototype,a.prototype=new c}}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(b){function c(c,d){void 0===d&&(d={}),b.call(this,c,d),this.crossOrigin="",this.game.audio.usingAudioTag?(this.useTagLoader=!0,this._loadInParallel=!0):this.useTagLoader=!1,a.Utils.Common.isUndefined(d.crossOrigin)||(this.crossOrigin=d.crossOrigin)}return __extends(c,b),c.prototype.objType=function(){return"AudioFile"},c.prototype._load=function(){this.attemptCounter++,this.useTagLoader?this.tagLoader():this.xhrLoader("GET","arraybuffer")},c.prototype.tagLoader=function(){if(this.data=document.createElement("audio"),this.data.src=this.URL,this.data.preload="auto",this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.game.audio.locked)this.loadSuccess();else{var b=this,c=function(){b.data.removeEventListener("canplaythrough",c,!1),b.data.pause(),b.data.currentTime=0,b.data.volume=1,b.loadSuccess()};this.data.addEventListener("canplaythrough",c,!1),this.game.deviceTargetOption==a.TARGET_COCOON?this.data.load():(this.data.volume=0,this.data.play())}},c.prototype.processXhr=function(a){this.data={raw:a,decoded:!1,buffer:null},this._decodeAudio()},c.prototype._decodeAudio=function(){var b=this;this.game.audio.context.decodeAudioData(this.data.raw,function(a){a&&(b.data.buffer=a,b.data.decoded=!0,b.loadSuccess())},function(c){a.Log.error("Kiwi.Files.AudioFile: Error decoding audio data.","#loading","#decoding"),b.loadError(c)})},c}(a.Files.File);b.AudioFile=c}(b=a.Files||(a.Files={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(b){function c(a,c){void 0===c&&(c={}),b.call(this,a,c),this.useTagLoader=!1,this._loadInParallel=!1}return __extends(c,b),c.prototype.parseParams=function(c){b.prototype.parseParams.call(this,c),this.parse=a.Utils.Common.isUndefined(c.parse)?!1:c.parse},c.prototype.objType=function(){return"DataFile"},c.prototype._load=function(){this.attemptCounter++,this.dataType===a.Files.File.BINARY_DATA?this.xhrLoader("GET","arraybuffer"):this.xhrLoader("GET","text")},c.prototype.processXhr=function(b){if(!this.parse)return this.data=b,void this.loadSuccess();switch(this.dataType){case a.Files.File.JSON:this.processJSON(b);break;case a.Files.File.XML:this.parseXML(b);break;case a.Files.File.TEXT_DATA:case a.Files.File.BINARY_DATA:default:this.data=b}},c.prototype.parseXML=function(b){if(a.Log.log("Kiwi.Files.DataFile: Data loaded is being parsed as XML.","#loading","#parsing"),window.DOMParser){var c=new DOMParser;this.data=c.parseFromString(b,"text/xml")}else this.data=new ActiveXObject("Microsoft.XMLDOM"),this.data.async="false",this.data.loadXML(b);this.data&&this.data.documentElement&&!this.data.getElementsByTagName("parsererror").length?this.loadSuccess():this.loadError("XML parse error.")},c.prototype.processJSON=function(b){a.Log.log("Kiwi.Files.DataFile: Data loaded is being parsed as JSON.","#loading","#parsing");try{this.data=JSON.parse(b)}catch(c){return void this.loadError(c)}this.loadSuccess()},c}(a.Files.File);b.DataFile=c}(b=a.Files||(a.Files={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(b){function c(c,d){void 0===d&&(d={}),b.call(this,c,d),this.crossOrigin="",d.xhrLoading?(this.useTagLoader=!1,this._loadInParallel=!1):(this.useTagLoader=!0,this._loadInParallel=!0),a.Utils.Common.isUndefined(d.crossOrigin)||(this.crossOrigin=d.crossOrigin)}return __extends(c,b),c.prototype.objType=function(){return"TextureFile"},c.prototype._load=function(){this.attemptCounter++,this.useTagLoader?this.tagLoader():this.xhrLoader("GET","arraybuffer")},c.prototype.tagLoader=function(){var a=this;this.data=new Image,this.data.src=this.URL,this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.data.onload=function(){return a.loadSuccess()},this.data.onerror=function(b){return a.loadError(b)}},c.prototype.processXhr=function(a){this.data=document.createElement("img");var b=new Blob([a],{type:this.type}),c=this;this.data.addEventListener("load",function(){c.loadSuccess()}),window.URL?this.data.src=window.URL.createObjectURL(b):window.webkitURL&&(this.data.src=window.webkitURL.createObjectURL(b))},c.prototype.revoke=function(){window.URL?window.URL.revokeObjectURL(this.data.src):window.webkitURL&&window.webkitURL.revokeObjectURL(this.data.src)},c.prototype.destroy=function(){this.useTagLoader||this.revoke(),b.prototype.destroy.call(this)},c}(a.Files.File);b.TextureFile=c}(b=a.Files||(a.Files={}))}(Kiwi||(Kiwi={}));
\ No newline at end of file
+return this._execute(a.logMethod,console,a.messages,!0),!0},b.prototype.showLast=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c=this.recordings.length;c--;)if(this._show(this.recordings[c],a))return},b.prototype.showAll=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c=0;c<this.recordings.length;c++)this._show(this.recordings[c],a)},b.prototype.showLogs=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c=0;c<this.recordings.length;c++)this.recordings[c].logMethod===console.log&&this._show(this.recordings[c],a)},b.prototype.showErrors=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c=0;c<this.recordings.length;c++)this.recordings[c].logMethod===console.error&&this._show(this.recordings[c],a)},b.prototype.showWarnings=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c=0;c<this.recordings.length;c++)this.recordings[c].logMethod===console.warn&&this._show(this.recordings[c],a)},b.prototype.showTimePeriod=function(a,b,c){void 0===a&&(a=0),void 0===b&&(b=1/0),void 0===c&&(c=[]);for(var d,e=0;e<this.recordings.length;e++)d=this.recordings[e],a<d.time&&b>d.time&&this._show(d,c)},b.prototype.addFilter=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];this.tagFilters=this.tagFilters.concat(a)},b.prototype.removeFilter=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c,d=0;d<a.length;)c=this.tagFilters.indexOf(a[d]),-1!==c&&this.tagFilters.splice(c,1),d++},b}();b.Log=c}(b=a.Utils||(a.Utils={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(a){var b=function(){function a(){}return a.parseVersion=function(a){var b=a.split(".");return{majorVersion:parseInt(b[0]),minorVersion:parseInt(b[1]),patchVersion:parseInt(b[2])}},a.compareVersions=function(b,c){var d=a.parseVersion(b),e=a.parseVersion(c);return d.majorVersion>e.majorVersion?"greater":d.majorVersion<e.majorVersion?"less":d.minorVersion>e.minorVersion?"greater":d.minorVersion<e.minorVersion?"less":d.patchVersion>e.patchVersion?"greater":d.patchVersion<e.patchVersion?"less":"equal"},a.greaterOrEqual=function(b,c){var d=a.compareVersions(b,c);return"greater"==d||"equal"==d},a}();a.Version=b}(b=a.Utils||(a.Utils={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){a.Log=new a.Utils.Log,a.VERSION="1.4.0",a.RENDERER_CANVAS=0,a.RENDERER_WEBGL=1,a.RENDERER_AUTO=2,a.TARGET_BROWSER=0,a.TARGET_COCOON=1,a.DEBUG_ON=0,a.DEBUG_OFF=1,a.DEVICE=null,a.STATE=0,a.GROUP=2,a.ENTITY=3,a.CAMERA=4,a.HUD_WIDGET=5,a.TILE_LAYER=6;var b=function(){function b(){}return b.prototype.objType=function(){return"GameManager"},b.register=function(b){return a.GameManager._games.push(b)},b.total=function(){return a.GameManager._games.length},b._games=[],b}();a.GameManager=b;var c;!function(){}(c=a.Plugins||(a.Plugins={})),a.extend=function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);c.prototype=b.prototype,a.prototype=new c}}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(b){function c(c,d){void 0===d&&(d={}),b.call(this,c,d),this.crossOrigin="",this.game.audio.usingAudioTag?(this.useTagLoader=!0,this._loadInParallel=!0):this.useTagLoader=!1,a.Utils.Common.isUndefined(d.crossOrigin)||(this.crossOrigin=d.crossOrigin)}return __extends(c,b),c.prototype.objType=function(){return"AudioFile"},c.prototype._load=function(){this.attemptCounter++,this.useTagLoader?this.tagLoader():this.xhrLoader("GET","arraybuffer")},c.prototype.tagLoader=function(){if(this.data=document.createElement("audio"),this.data.src=this.URL,this.data.preload="auto",this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.game.audio.locked)this.loadSuccess();else{var b=this,c=function(){b.data.removeEventListener("canplaythrough",c,!1),b.data.pause(),b.data.currentTime=0,b.data.volume=1,b.loadSuccess()};this.data.addEventListener("canplaythrough",c,!1),this.game.deviceTargetOption==a.TARGET_COCOON?this.data.load():(this.data.volume=0,this.data.play())}},c.prototype.processXhr=function(a){this.data={raw:a,decoded:!1,buffer:null},this._decodeAudio()},c.prototype._decodeAudio=function(){var b=this;this.game.audio.context.decodeAudioData(this.data.raw,function(a){a&&(b.data.buffer=a,b.data.decoded=!0,b.loadSuccess())},function(c){a.Log.error("Kiwi.Files.AudioFile: Error decoding audio data.","#loading","#decoding"),b.loadError(c)})},c}(a.Files.File);b.AudioFile=c}(b=a.Files||(a.Files={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(b){function c(a,c){void 0===c&&(c={}),b.call(this,a,c),this.useTagLoader=!1,this._loadInParallel=!1}return __extends(c,b),c.prototype.parseParams=function(c){b.prototype.parseParams.call(this,c),this.parse=a.Utils.Common.isUndefined(c.parse)?!1:c.parse},c.prototype.objType=function(){return"DataFile"},c.prototype._load=function(){this.attemptCounter++,this.dataType===a.Files.File.BINARY_DATA?this.xhrLoader("GET","arraybuffer"):this.xhrLoader("GET","text")},c.prototype.processXhr=function(b){if(!this.parse)return this.data=b,void this.loadSuccess();switch(this.dataType){case a.Files.File.JSON:this.processJSON(b);break;case a.Files.File.XML:this.parseXML(b);break;case a.Files.File.TEXT_DATA:case a.Files.File.BINARY_DATA:default:this.data=b}},c.prototype.parseXML=function(b){if(a.Log.log("Kiwi.Files.DataFile: Data loaded is being parsed as XML.","#loading","#parsing"),window.DOMParser){var c=new DOMParser;this.data=c.parseFromString(b,"text/xml")}else this.data=new ActiveXObject("Microsoft.XMLDOM"),this.data.async="false",this.data.loadXML(b);this.data&&this.data.documentElement&&!this.data.getElementsByTagName("parsererror").length?this.loadSuccess():this.loadError("XML parse error.")},c.prototype.processJSON=function(b){a.Log.log("Kiwi.Files.DataFile: Data loaded is being parsed as JSON.","#loading","#parsing");try{this.data=JSON.parse(b)}catch(c){return void this.loadError(c)}this.loadSuccess()},c}(a.Files.File);b.DataFile=c}(b=a.Files||(a.Files={}))}(Kiwi||(Kiwi={}));var Kiwi;!function(a){var b;!function(b){var c=function(b){function c(c,d){void 0===d&&(d={}),b.call(this,c,d),this.crossOrigin="",d.xhrLoading?(this.useTagLoader=!1,this._loadInParallel=!1):(this.useTagLoader=!0,this._loadInParallel=!0),a.Utils.Common.isUndefined(d.crossOrigin)||(this.crossOrigin=d.crossOrigin)}return __extends(c,b),c.prototype.objType=function(){return"TextureFile"},c.prototype._load=function(){this.attemptCounter++,this.useTagLoader?this.tagLoader():this.xhrLoader("GET","arraybuffer")},c.prototype.tagLoader=function(){var a=this;this.data=new Image,this.data.src=this.URL,this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.data.onload=function(){return a.loadSuccess()},this.data.onerror=function(b){return a.loadError(b)}},c.prototype.processXhr=function(a){this.data=document.createElement("img");var b=new Blob([a],{type:this.type}),c=this;this.data.addEventListener("load",function(){c.loadSuccess()}),window.URL?this.data.src=window.URL.createObjectURL(b):window.webkitURL&&(this.data.src=window.webkitURL.createObjectURL(b))},c.prototype.revoke=function(){window.URL?window.URL.revokeObjectURL(this.data.src):window.webkitURL&&window.webkitURL.revokeObjectURL(this.data.src)},c.prototype.destroy=function(){this.useTagLoader||this.revoke(),b.prototype.destroy.call(this)},c}(a.Files.File);b.TextureFile=c}(b=a.Files||(a.Files={}))}(Kiwi||(Kiwi={}));
\ No newline at end of file
diff --git a/docs/classes/Kiwi.Animations.Animation.html b/docs/classes/Kiwi.Animations.Animation.html
index 5ce965c..cd93ecb 100644
--- a/docs/classes/Kiwi.Animations.Animation.html
+++ b/docs/classes/Kiwi.Animations.Animation.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Sequence.html b/docs/classes/Kiwi.Animations.Sequence.html
index 404321b..9e746f7 100644
--- a/docs/classes/Kiwi.Animations.Sequence.html
+++ b/docs/classes/Kiwi.Animations.Sequence.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Tween.html b/docs/classes/Kiwi.Animations.Tween.html
index 485ca5d..72a141e 100644
--- a/docs/classes/Kiwi.Animations.Tween.html
+++ b/docs/classes/Kiwi.Animations.Tween.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Tweens.Easing.Back.html b/docs/classes/Kiwi.Animations.Tweens.Easing.Back.html
index 9656f8c..1e8f1b2 100644
--- a/docs/classes/Kiwi.Animations.Tweens.Easing.Back.html
+++ b/docs/classes/Kiwi.Animations.Tweens.Easing.Back.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Tweens.Easing.Bounce.html b/docs/classes/Kiwi.Animations.Tweens.Easing.Bounce.html
index 7b22019..2687841 100644
--- a/docs/classes/Kiwi.Animations.Tweens.Easing.Bounce.html
+++ b/docs/classes/Kiwi.Animations.Tweens.Easing.Bounce.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Tweens.Easing.Circular.html b/docs/classes/Kiwi.Animations.Tweens.Easing.Circular.html
index a51d3ae..dbcac54 100644
--- a/docs/classes/Kiwi.Animations.Tweens.Easing.Circular.html
+++ b/docs/classes/Kiwi.Animations.Tweens.Easing.Circular.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Tweens.Easing.Cubic.html b/docs/classes/Kiwi.Animations.Tweens.Easing.Cubic.html
index 2376546..95ac8d9 100644
--- a/docs/classes/Kiwi.Animations.Tweens.Easing.Cubic.html
+++ b/docs/classes/Kiwi.Animations.Tweens.Easing.Cubic.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Tweens.Easing.Elastic.html b/docs/classes/Kiwi.Animations.Tweens.Easing.Elastic.html
index 0e8b2bc..309db34 100644
--- a/docs/classes/Kiwi.Animations.Tweens.Easing.Elastic.html
+++ b/docs/classes/Kiwi.Animations.Tweens.Easing.Elastic.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Tweens.Easing.Exponential.html b/docs/classes/Kiwi.Animations.Tweens.Easing.Exponential.html
index 8cf138c..3fbade9 100644
--- a/docs/classes/Kiwi.Animations.Tweens.Easing.Exponential.html
+++ b/docs/classes/Kiwi.Animations.Tweens.Easing.Exponential.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Tweens.Easing.Linear.html b/docs/classes/Kiwi.Animations.Tweens.Easing.Linear.html
index 20a14b3..23e31e2 100644
--- a/docs/classes/Kiwi.Animations.Tweens.Easing.Linear.html
+++ b/docs/classes/Kiwi.Animations.Tweens.Easing.Linear.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Tweens.Easing.Quadratic.html b/docs/classes/Kiwi.Animations.Tweens.Easing.Quadratic.html
index a0a07b7..bb212a7 100644
--- a/docs/classes/Kiwi.Animations.Tweens.Easing.Quadratic.html
+++ b/docs/classes/Kiwi.Animations.Tweens.Easing.Quadratic.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Tweens.Easing.Quartic.html b/docs/classes/Kiwi.Animations.Tweens.Easing.Quartic.html
index b9613ee..b81ef2a 100644
--- a/docs/classes/Kiwi.Animations.Tweens.Easing.Quartic.html
+++ b/docs/classes/Kiwi.Animations.Tweens.Easing.Quartic.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Tweens.Easing.Quintic.html b/docs/classes/Kiwi.Animations.Tweens.Easing.Quintic.html
index f503b6f..8c7affe 100644
--- a/docs/classes/Kiwi.Animations.Tweens.Easing.Quintic.html
+++ b/docs/classes/Kiwi.Animations.Tweens.Easing.Quintic.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Tweens.Easing.Sinusoidal.html b/docs/classes/Kiwi.Animations.Tweens.Easing.Sinusoidal.html
index 4f3df8d..ed51533 100644
--- a/docs/classes/Kiwi.Animations.Tweens.Easing.Sinusoidal.html
+++ b/docs/classes/Kiwi.Animations.Tweens.Easing.Sinusoidal.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Animations.Tweens.TweenManager.html b/docs/classes/Kiwi.Animations.Tweens.TweenManager.html
index 4ab7049..9153cc3 100644
--- a/docs/classes/Kiwi.Animations.Tweens.TweenManager.html
+++ b/docs/classes/Kiwi.Animations.Tweens.TweenManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Camera.html b/docs/classes/Kiwi.Camera.html
index 97982bc..724d0a4 100644
--- a/docs/classes/Kiwi.Camera.html
+++ b/docs/classes/Kiwi.Camera.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.CameraManager.html b/docs/classes/Kiwi.CameraManager.html
index 22733f5..395ff11 100644
--- a/docs/classes/Kiwi.CameraManager.html
+++ b/docs/classes/Kiwi.CameraManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Component.html b/docs/classes/Kiwi.Component.html
index 9815491..4079215 100644
--- a/docs/classes/Kiwi.Component.html
+++ b/docs/classes/Kiwi.Component.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.ComponentManager.html b/docs/classes/Kiwi.ComponentManager.html
index cdb227f..68d846c 100644
--- a/docs/classes/Kiwi.ComponentManager.html
+++ b/docs/classes/Kiwi.ComponentManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Components.AnimationManager.html b/docs/classes/Kiwi.Components.AnimationManager.html
index 40de620..97f5a30 100644
--- a/docs/classes/Kiwi.Components.AnimationManager.html
+++ b/docs/classes/Kiwi.Components.AnimationManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Components.ArcadePhysics.html b/docs/classes/Kiwi.Components.ArcadePhysics.html
index 1317715..061bbfa 100644
--- a/docs/classes/Kiwi.Components.ArcadePhysics.html
+++ b/docs/classes/Kiwi.Components.ArcadePhysics.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Components.Box.html b/docs/classes/Kiwi.Components.Box.html
index ded6fb8..a016682 100644
--- a/docs/classes/Kiwi.Components.Box.html
+++ b/docs/classes/Kiwi.Components.Box.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Components.Input.html b/docs/classes/Kiwi.Components.Input.html
index 55185f7..fc3490b 100644
--- a/docs/classes/Kiwi.Components.Input.html
+++ b/docs/classes/Kiwi.Components.Input.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Components.Sound.html b/docs/classes/Kiwi.Components.Sound.html
index b15798b..6f099ac 100644
--- a/docs/classes/Kiwi.Components.Sound.html
+++ b/docs/classes/Kiwi.Components.Sound.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Entity.html b/docs/classes/Kiwi.Entity.html
index 308d0de..cb82a71 100644
--- a/docs/classes/Kiwi.Entity.html
+++ b/docs/classes/Kiwi.Entity.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Files.AudioFile.html b/docs/classes/Kiwi.Files.AudioFile.html
index 975a49a..b96cb20 100644
--- a/docs/classes/Kiwi.Files.AudioFile.html
+++ b/docs/classes/Kiwi.Files.AudioFile.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Files.DataFile.html b/docs/classes/Kiwi.Files.DataFile.html
index 9aa259e..0130121 100644
--- a/docs/classes/Kiwi.Files.DataFile.html
+++ b/docs/classes/Kiwi.Files.DataFile.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Files.DataLibrary.html b/docs/classes/Kiwi.Files.DataLibrary.html
index 0b26f28..5137871 100644
--- a/docs/classes/Kiwi.Files.DataLibrary.html
+++ b/docs/classes/Kiwi.Files.DataLibrary.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Files.File.html b/docs/classes/Kiwi.Files.File.html
index 788b54e..6293296 100644
--- a/docs/classes/Kiwi.Files.File.html
+++ b/docs/classes/Kiwi.Files.File.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Files.FileStore.html b/docs/classes/Kiwi.Files.FileStore.html
index 8980cc1..580eaf8 100644
--- a/docs/classes/Kiwi.Files.FileStore.html
+++ b/docs/classes/Kiwi.Files.FileStore.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Files.Loader.html b/docs/classes/Kiwi.Files.Loader.html
index 5312cf2..badc963 100644
--- a/docs/classes/Kiwi.Files.Loader.html
+++ b/docs/classes/Kiwi.Files.Loader.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
@@ -992,7 +992,7 @@ <h3 class="name"><code>_attemptToAddAudio</code></h3>
             
         
         
-        <a href="../files/src_file_Loader.ts.html#l1038"><code>src\file\Loader.ts:1038</code></a>
+        <a href="../files/src_file_Loader.ts.html#l1039"><code>src\file\Loader.ts:1039</code></a>
         
         </p>
 
@@ -2229,7 +2229,7 @@ <h3 class="name"><code>addBinaryFile</code></h3>
             
         
         
-        <a href="../files/src_file_Loader.ts.html#l1170"><code>src\file\Loader.ts:1170</code></a>
+        <a href="../files/src_file_Loader.ts.html#l1171"><code>src\file\Loader.ts:1171</code></a>
         
         </p>
 
@@ -2742,7 +2742,7 @@ <h3 class="name"><code>addJSON</code></h3>
             
         
         
-        <a href="../files/src_file_Loader.ts.html#l1086"><code>src\file\Loader.ts:1086</code></a>
+        <a href="../files/src_file_Loader.ts.html#l1087"><code>src\file\Loader.ts:1087</code></a>
         
         </p>
 
@@ -3254,7 +3254,7 @@ <h3 class="name"><code>addTextFile</code></h3>
             
         
         
-        <a href="../files/src_file_Loader.ts.html#l1212"><code>src\file\Loader.ts:1212</code></a>
+        <a href="../files/src_file_Loader.ts.html#l1213"><code>src\file\Loader.ts:1213</code></a>
         
         </p>
 
@@ -3606,7 +3606,7 @@ <h3 class="name"><code>addXML</code></h3>
             
         
         
-        <a href="../files/src_file_Loader.ts.html#l1128"><code>src\file\Loader.ts:1128</code></a>
+        <a href="../files/src_file_Loader.ts.html#l1129"><code>src\file\Loader.ts:1129</code></a>
         
         </p>
 
@@ -3805,7 +3805,7 @@ <h3 class="name"><code>calculateBytes</code></h3>
             
         
         
-        <a href="../files/src_file_Loader.ts.html#l1363"><code>src\file\Loader.ts:1363</code></a>
+        <a href="../files/src_file_Loader.ts.html#l1364"><code>src\file\Loader.ts:1364</code></a>
         
         </p>
 
@@ -4079,7 +4079,7 @@ <h3 class="name"><code>complete</code></h3>
             
         
         
-        <a href="../files/src_file_Loader.ts.html#l1352"><code>src\file\Loader.ts:1352</code></a>
+        <a href="../files/src_file_Loader.ts.html#l1353"><code>src\file\Loader.ts:1353</code></a>
         
         </p>
 
@@ -4150,7 +4150,7 @@ <h3 class="name"><code>destroy</code></h3>
             
         
         
-        <a href="../files/src_file_Loader.ts.html#l1254"><code>src\file\Loader.ts:1254</code></a>
+        <a href="../files/src_file_Loader.ts.html#l1255"><code>src\file\Loader.ts:1255</code></a>
         
         </p>
 
@@ -4214,7 +4214,7 @@ <h3 class="name"><code>getBytesLoaded</code></h3>
             
         
         
-        <a href="../files/src_file_Loader.ts.html#l1380"><code>src\file\Loader.ts:1380</code></a>
+        <a href="../files/src_file_Loader.ts.html#l1381"><code>src\file\Loader.ts:1381</code></a>
         
         </p>
 
@@ -4291,7 +4291,7 @@ <h3 class="name"><code>getPercentLoaded</code></h3>
             
         
         
-        <a href="../files/src_file_Loader.ts.html#l1340"><code>src\file\Loader.ts:1340</code></a>
+        <a href="../files/src_file_Loader.ts.html#l1341"><code>src\file\Loader.ts:1341</code></a>
         
         </p>
 
@@ -4386,7 +4386,7 @@ <h3 class="name"><code>init</code></h3>
             
         
         
-        <a href="../files/src_file_Loader.ts.html#l1303"><code>src\file\Loader.ts:1303</code></a>
+        <a href="../files/src_file_Loader.ts.html#l1304"><code>src\file\Loader.ts:1304</code></a>
         
         </p>
 
@@ -4977,7 +4977,7 @@ <h3 class="name"><code>startLoad</code></h3>
             
         
         
-        <a href="../files/src_file_Loader.ts.html#l1330"><code>src\file\Loader.ts:1330</code></a>
+        <a href="../files/src_file_Loader.ts.html#l1331"><code>src\file\Loader.ts:1331</code></a>
         
         </p>
 
diff --git a/docs/classes/Kiwi.Files.TextureFile.html b/docs/classes/Kiwi.Files.TextureFile.html
index 4781dff..2006f67 100644
--- a/docs/classes/Kiwi.Files.TextureFile.html
+++ b/docs/classes/Kiwi.Files.TextureFile.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Game.html b/docs/classes/Kiwi.Game.html
index 74a0f8d..e0ba9ec 100644
--- a/docs/classes/Kiwi.Game.html
+++ b/docs/classes/Kiwi.Game.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.GameManager.html b/docs/classes/Kiwi.GameManager.html
index b790d03..28a0583 100644
--- a/docs/classes/Kiwi.GameManager.html
+++ b/docs/classes/Kiwi.GameManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.GameObjects.Sprite.html b/docs/classes/Kiwi.GameObjects.Sprite.html
index 90f5216..b067cb3 100644
--- a/docs/classes/Kiwi.GameObjects.Sprite.html
+++ b/docs/classes/Kiwi.GameObjects.Sprite.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.GameObjects.StaticImage.html b/docs/classes/Kiwi.GameObjects.StaticImage.html
index 69c8797..5508e17 100644
--- a/docs/classes/Kiwi.GameObjects.StaticImage.html
+++ b/docs/classes/Kiwi.GameObjects.StaticImage.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.GameObjects.Textfield.html b/docs/classes/Kiwi.GameObjects.Textfield.html
index 532b543..97111ce 100644
--- a/docs/classes/Kiwi.GameObjects.Textfield.html
+++ b/docs/classes/Kiwi.GameObjects.Textfield.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.GameObjects.Tilemap.TileMap.html b/docs/classes/Kiwi.GameObjects.Tilemap.TileMap.html
index 6c090f5..520e232 100644
--- a/docs/classes/Kiwi.GameObjects.Tilemap.TileMap.html
+++ b/docs/classes/Kiwi.GameObjects.Tilemap.TileMap.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayer.html b/docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayer.html
index 19a585e..49ad7b5 100644
--- a/docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayer.html
+++ b/docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayer.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayerIsometric.html b/docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayerIsometric.html
index d1439e4..399f757 100644
--- a/docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayerIsometric.html
+++ b/docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayerIsometric.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayerOrthogonal.html b/docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayerOrthogonal.html
index 89f14d1..5ed59bb 100644
--- a/docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayerOrthogonal.html
+++ b/docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayerOrthogonal.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.GameObjects.Tilemap.TileType.html b/docs/classes/Kiwi.GameObjects.Tilemap.TileType.html
index cf9ee66..0acfd64 100644
--- a/docs/classes/Kiwi.GameObjects.Tilemap.TileType.html
+++ b/docs/classes/Kiwi.GameObjects.Tilemap.TileType.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Geom.AABB.html b/docs/classes/Kiwi.Geom.AABB.html
index f7f02e9..760292e 100644
--- a/docs/classes/Kiwi.Geom.AABB.html
+++ b/docs/classes/Kiwi.Geom.AABB.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Geom.Circle.html b/docs/classes/Kiwi.Geom.Circle.html
index 60ccec6..4ad6b22 100644
--- a/docs/classes/Kiwi.Geom.Circle.html
+++ b/docs/classes/Kiwi.Geom.Circle.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Geom.Intersect.html b/docs/classes/Kiwi.Geom.Intersect.html
index 1a5f6e6..cb44f66 100644
--- a/docs/classes/Kiwi.Geom.Intersect.html
+++ b/docs/classes/Kiwi.Geom.Intersect.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Geom.IntersectResult.html b/docs/classes/Kiwi.Geom.IntersectResult.html
index f4495a0..b3b7078 100644
--- a/docs/classes/Kiwi.Geom.IntersectResult.html
+++ b/docs/classes/Kiwi.Geom.IntersectResult.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Geom.Line.html b/docs/classes/Kiwi.Geom.Line.html
index ab01449..f479ee1 100644
--- a/docs/classes/Kiwi.Geom.Line.html
+++ b/docs/classes/Kiwi.Geom.Line.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Geom.Matrix.html b/docs/classes/Kiwi.Geom.Matrix.html
index e901458..4cadeb5 100644
--- a/docs/classes/Kiwi.Geom.Matrix.html
+++ b/docs/classes/Kiwi.Geom.Matrix.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Geom.Point.html b/docs/classes/Kiwi.Geom.Point.html
index 5c51a85..37af539 100644
--- a/docs/classes/Kiwi.Geom.Point.html
+++ b/docs/classes/Kiwi.Geom.Point.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Geom.Ray.html b/docs/classes/Kiwi.Geom.Ray.html
index e76b702..37035e7 100644
--- a/docs/classes/Kiwi.Geom.Ray.html
+++ b/docs/classes/Kiwi.Geom.Ray.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Geom.Rectangle.html b/docs/classes/Kiwi.Geom.Rectangle.html
index 082dfeb..0fdf2c7 100644
--- a/docs/classes/Kiwi.Geom.Rectangle.html
+++ b/docs/classes/Kiwi.Geom.Rectangle.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Geom.Transform.html b/docs/classes/Kiwi.Geom.Transform.html
index bdb7d72..4856555 100644
--- a/docs/classes/Kiwi.Geom.Transform.html
+++ b/docs/classes/Kiwi.Geom.Transform.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Geom.Vector2.html b/docs/classes/Kiwi.Geom.Vector2.html
index d7a8817..ad520cf 100644
--- a/docs/classes/Kiwi.Geom.Vector2.html
+++ b/docs/classes/Kiwi.Geom.Vector2.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Group.html b/docs/classes/Kiwi.Group.html
index 57dc0ab..c513773 100644
--- a/docs/classes/Kiwi.Group.html
+++ b/docs/classes/Kiwi.Group.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.HUDComponents.Counter.html b/docs/classes/Kiwi.HUD.HUDComponents.Counter.html
index f1e06b1..c4c3279 100644
--- a/docs/classes/Kiwi.HUD.HUDComponents.Counter.html
+++ b/docs/classes/Kiwi.HUD.HUDComponents.Counter.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.HUDComponents.Time.html b/docs/classes/Kiwi.HUD.HUDComponents.Time.html
index 3e2fb9e..4d3f945 100644
--- a/docs/classes/Kiwi.HUD.HUDComponents.Time.html
+++ b/docs/classes/Kiwi.HUD.HUDComponents.Time.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.HUDComponents.WidgetInput.html b/docs/classes/Kiwi.HUD.HUDComponents.WidgetInput.html
index 35900e1..60f29be 100644
--- a/docs/classes/Kiwi.HUD.HUDComponents.WidgetInput.html
+++ b/docs/classes/Kiwi.HUD.HUDComponents.WidgetInput.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.HUDDisplay.html b/docs/classes/Kiwi.HUD.HUDDisplay.html
index f0bb41a..c080856 100644
--- a/docs/classes/Kiwi.HUD.HUDDisplay.html
+++ b/docs/classes/Kiwi.HUD.HUDDisplay.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.HUDManager.html b/docs/classes/Kiwi.HUD.HUDManager.html
index 8555a37..0663234 100644
--- a/docs/classes/Kiwi.HUD.HUDManager.html
+++ b/docs/classes/Kiwi.HUD.HUDManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.HUDWidget.html b/docs/classes/Kiwi.HUD.HUDWidget.html
index e5eaf53..6b76a8c 100644
--- a/docs/classes/Kiwi.HUD.HUDWidget.html
+++ b/docs/classes/Kiwi.HUD.HUDWidget.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.Widget.Bar.html b/docs/classes/Kiwi.HUD.Widget.Bar.html
index b7c334b..75e3b0d 100644
--- a/docs/classes/Kiwi.HUD.Widget.Bar.html
+++ b/docs/classes/Kiwi.HUD.Widget.Bar.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.Widget.BasicScore.html b/docs/classes/Kiwi.HUD.Widget.BasicScore.html
index 9942dae..1add897 100644
--- a/docs/classes/Kiwi.HUD.Widget.BasicScore.html
+++ b/docs/classes/Kiwi.HUD.Widget.BasicScore.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.Widget.Button.html b/docs/classes/Kiwi.HUD.Widget.Button.html
index 67e220f..fb3295d 100644
--- a/docs/classes/Kiwi.HUD.Widget.Button.html
+++ b/docs/classes/Kiwi.HUD.Widget.Button.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.Widget.Icon.html b/docs/classes/Kiwi.HUD.Widget.Icon.html
index a19288c..31295c0 100644
--- a/docs/classes/Kiwi.HUD.Widget.Icon.html
+++ b/docs/classes/Kiwi.HUD.Widget.Icon.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.Widget.IconBar.html b/docs/classes/Kiwi.HUD.Widget.IconBar.html
index 2fd3389..d6bdb05 100644
--- a/docs/classes/Kiwi.HUD.Widget.IconBar.html
+++ b/docs/classes/Kiwi.HUD.Widget.IconBar.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.Widget.Menu.html b/docs/classes/Kiwi.HUD.Widget.Menu.html
index d80b02e..3d6c870 100644
--- a/docs/classes/Kiwi.HUD.Widget.Menu.html
+++ b/docs/classes/Kiwi.HUD.Widget.Menu.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.Widget.MenuItem.html b/docs/classes/Kiwi.HUD.Widget.MenuItem.html
index 84bf17a..af0f596 100644
--- a/docs/classes/Kiwi.HUD.Widget.MenuItem.html
+++ b/docs/classes/Kiwi.HUD.Widget.MenuItem.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.Widget.TextField.html b/docs/classes/Kiwi.HUD.Widget.TextField.html
index b5a45d9..11c6419 100644
--- a/docs/classes/Kiwi.HUD.Widget.TextField.html
+++ b/docs/classes/Kiwi.HUD.Widget.TextField.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.HUD.Widget.Time.html b/docs/classes/Kiwi.HUD.Widget.Time.html
index 6bfd06d..346dfe2 100644
--- a/docs/classes/Kiwi.HUD.Widget.Time.html
+++ b/docs/classes/Kiwi.HUD.Widget.Time.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.IChild.html b/docs/classes/Kiwi.IChild.html
index 4c168e4..b42313f 100644
--- a/docs/classes/Kiwi.IChild.html
+++ b/docs/classes/Kiwi.IChild.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Input.Finger.html b/docs/classes/Kiwi.Input.Finger.html
index 2e1dc1e..7559b27 100644
--- a/docs/classes/Kiwi.Input.Finger.html
+++ b/docs/classes/Kiwi.Input.Finger.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Input.InputManager.html b/docs/classes/Kiwi.Input.InputManager.html
index 1bd01f3..9830f32 100644
--- a/docs/classes/Kiwi.Input.InputManager.html
+++ b/docs/classes/Kiwi.Input.InputManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Input.Key.html b/docs/classes/Kiwi.Input.Key.html
index f879e57..2c00b6a 100644
--- a/docs/classes/Kiwi.Input.Key.html
+++ b/docs/classes/Kiwi.Input.Key.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Input.Keyboard.html b/docs/classes/Kiwi.Input.Keyboard.html
index 35842f0..c03aad5 100644
--- a/docs/classes/Kiwi.Input.Keyboard.html
+++ b/docs/classes/Kiwi.Input.Keyboard.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Input.Keycodes.html b/docs/classes/Kiwi.Input.Keycodes.html
index 5681670..8f187a8 100644
--- a/docs/classes/Kiwi.Input.Keycodes.html
+++ b/docs/classes/Kiwi.Input.Keycodes.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Input.Mouse.html b/docs/classes/Kiwi.Input.Mouse.html
index 069d1a5..789306f 100644
--- a/docs/classes/Kiwi.Input.Mouse.html
+++ b/docs/classes/Kiwi.Input.Mouse.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Input.MouseCursor.html b/docs/classes/Kiwi.Input.MouseCursor.html
index 968a2b6..7eb5807 100644
--- a/docs/classes/Kiwi.Input.MouseCursor.html
+++ b/docs/classes/Kiwi.Input.MouseCursor.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Input.Pointer.html b/docs/classes/Kiwi.Input.Pointer.html
index fdfbd93..462b7f8 100644
--- a/docs/classes/Kiwi.Input.Pointer.html
+++ b/docs/classes/Kiwi.Input.Pointer.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Input.Touch.html b/docs/classes/Kiwi.Input.Touch.html
index d8f77cf..523500a 100644
--- a/docs/classes/Kiwi.Input.Touch.html
+++ b/docs/classes/Kiwi.Input.Touch.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.PluginManager.html b/docs/classes/Kiwi.PluginManager.html
index 7b24876..5428d0a 100644
--- a/docs/classes/Kiwi.PluginManager.html
+++ b/docs/classes/Kiwi.PluginManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Renderers.CanvasRenderer.html b/docs/classes/Kiwi.Renderers.CanvasRenderer.html
index 9c8c556..88d81e1 100644
--- a/docs/classes/Kiwi.Renderers.CanvasRenderer.html
+++ b/docs/classes/Kiwi.Renderers.CanvasRenderer.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Renderers.GLArrayBuffer.html b/docs/classes/Kiwi.Renderers.GLArrayBuffer.html
index c51b5ed..a358372 100644
--- a/docs/classes/Kiwi.Renderers.GLArrayBuffer.html
+++ b/docs/classes/Kiwi.Renderers.GLArrayBuffer.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Renderers.GLBlendMode.html b/docs/classes/Kiwi.Renderers.GLBlendMode.html
index a0a4162..1e4547a 100644
--- a/docs/classes/Kiwi.Renderers.GLBlendMode.html
+++ b/docs/classes/Kiwi.Renderers.GLBlendMode.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Renderers.GLElementArrayBuffer.html b/docs/classes/Kiwi.Renderers.GLElementArrayBuffer.html
index f1da251..2c2b537 100644
--- a/docs/classes/Kiwi.Renderers.GLElementArrayBuffer.html
+++ b/docs/classes/Kiwi.Renderers.GLElementArrayBuffer.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Renderers.GLRenderManager.html b/docs/classes/Kiwi.Renderers.GLRenderManager.html
index 6a0274b..c715962 100644
--- a/docs/classes/Kiwi.Renderers.GLRenderManager.html
+++ b/docs/classes/Kiwi.Renderers.GLRenderManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Renderers.GLTextureManager.html b/docs/classes/Kiwi.Renderers.GLTextureManager.html
index 2745e98..9210277 100644
--- a/docs/classes/Kiwi.Renderers.GLTextureManager.html
+++ b/docs/classes/Kiwi.Renderers.GLTextureManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Renderers.GLTextureWrapper.html b/docs/classes/Kiwi.Renderers.GLTextureWrapper.html
index 469731e..0faa6fe 100644
--- a/docs/classes/Kiwi.Renderers.GLTextureWrapper.html
+++ b/docs/classes/Kiwi.Renderers.GLTextureWrapper.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Renderers.Renderer.html b/docs/classes/Kiwi.Renderers.Renderer.html
index 3c9251c..dd9f994 100644
--- a/docs/classes/Kiwi.Renderers.Renderer.html
+++ b/docs/classes/Kiwi.Renderers.Renderer.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Renderers.TextureAtlasRenderer.html b/docs/classes/Kiwi.Renderers.TextureAtlasRenderer.html
index 24261f5..3b77251 100644
--- a/docs/classes/Kiwi.Renderers.TextureAtlasRenderer.html
+++ b/docs/classes/Kiwi.Renderers.TextureAtlasRenderer.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Shaders.ShaderManager.html b/docs/classes/Kiwi.Shaders.ShaderManager.html
index e02d39e..152cae3 100644
--- a/docs/classes/Kiwi.Shaders.ShaderManager.html
+++ b/docs/classes/Kiwi.Shaders.ShaderManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Shaders.ShaderPair.html b/docs/classes/Kiwi.Shaders.ShaderPair.html
index daf4035..4308d4a 100644
--- a/docs/classes/Kiwi.Shaders.ShaderPair.html
+++ b/docs/classes/Kiwi.Shaders.ShaderPair.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Shaders.TextureAtlasShader.html b/docs/classes/Kiwi.Shaders.TextureAtlasShader.html
index d43ee2b..32b0fef 100644
--- a/docs/classes/Kiwi.Shaders.TextureAtlasShader.html
+++ b/docs/classes/Kiwi.Shaders.TextureAtlasShader.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Signal.html b/docs/classes/Kiwi.Signal.html
index e85beb8..910e4e9 100644
--- a/docs/classes/Kiwi.Signal.html
+++ b/docs/classes/Kiwi.Signal.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.SignalBinding.html b/docs/classes/Kiwi.SignalBinding.html
index a762dd7..a8a18dd 100644
--- a/docs/classes/Kiwi.SignalBinding.html
+++ b/docs/classes/Kiwi.SignalBinding.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Sound.Audio.html b/docs/classes/Kiwi.Sound.Audio.html
index 5e27f49..9dc52cd 100644
--- a/docs/classes/Kiwi.Sound.Audio.html
+++ b/docs/classes/Kiwi.Sound.Audio.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Sound.AudioLibrary.html b/docs/classes/Kiwi.Sound.AudioLibrary.html
index 96c68ed..ee5ae8e 100644
--- a/docs/classes/Kiwi.Sound.AudioLibrary.html
+++ b/docs/classes/Kiwi.Sound.AudioLibrary.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Sound.AudioManager.html b/docs/classes/Kiwi.Sound.AudioManager.html
index 99589e4..5cad982 100644
--- a/docs/classes/Kiwi.Sound.AudioManager.html
+++ b/docs/classes/Kiwi.Sound.AudioManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Stage.html b/docs/classes/Kiwi.Stage.html
index 976f891..a90d0fc 100644
--- a/docs/classes/Kiwi.Stage.html
+++ b/docs/classes/Kiwi.Stage.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.State.html b/docs/classes/Kiwi.State.html
index 5e65e1d..7ac193f 100644
--- a/docs/classes/Kiwi.State.html
+++ b/docs/classes/Kiwi.State.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.StateConfig.html b/docs/classes/Kiwi.StateConfig.html
index 643ba80..79dcc03 100644
--- a/docs/classes/Kiwi.StateConfig.html
+++ b/docs/classes/Kiwi.StateConfig.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.StateManager.html b/docs/classes/Kiwi.StateManager.html
index ec4b527..90425fb 100644
--- a/docs/classes/Kiwi.StateManager.html
+++ b/docs/classes/Kiwi.StateManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.System.Bootstrap.html b/docs/classes/Kiwi.System.Bootstrap.html
index 438940e..cf98ea1 100644
--- a/docs/classes/Kiwi.System.Bootstrap.html
+++ b/docs/classes/Kiwi.System.Bootstrap.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.System.Device.html b/docs/classes/Kiwi.System.Device.html
index bfe9f54..c182d18 100644
--- a/docs/classes/Kiwi.System.Device.html
+++ b/docs/classes/Kiwi.System.Device.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Textures.SingleImage.html b/docs/classes/Kiwi.Textures.SingleImage.html
index 36fae04..629f509 100644
--- a/docs/classes/Kiwi.Textures.SingleImage.html
+++ b/docs/classes/Kiwi.Textures.SingleImage.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Textures.SpriteSheet.html b/docs/classes/Kiwi.Textures.SpriteSheet.html
index 885d14e..9995020 100644
--- a/docs/classes/Kiwi.Textures.SpriteSheet.html
+++ b/docs/classes/Kiwi.Textures.SpriteSheet.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Textures.TextureAtlas.html b/docs/classes/Kiwi.Textures.TextureAtlas.html
index abe0384..1bd1cea 100644
--- a/docs/classes/Kiwi.Textures.TextureAtlas.html
+++ b/docs/classes/Kiwi.Textures.TextureAtlas.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Textures.TextureLibrary.html b/docs/classes/Kiwi.Textures.TextureLibrary.html
index 649e699..8cbb45f 100644
--- a/docs/classes/Kiwi.Textures.TextureLibrary.html
+++ b/docs/classes/Kiwi.Textures.TextureLibrary.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Time.Clock.html b/docs/classes/Kiwi.Time.Clock.html
index 475b71e..a5efbb4 100644
--- a/docs/classes/Kiwi.Time.Clock.html
+++ b/docs/classes/Kiwi.Time.Clock.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Time.ClockManager.html b/docs/classes/Kiwi.Time.ClockManager.html
index 6d40cef..6543b68 100644
--- a/docs/classes/Kiwi.Time.ClockManager.html
+++ b/docs/classes/Kiwi.Time.ClockManager.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Time.MasterClock.html b/docs/classes/Kiwi.Time.MasterClock.html
index f25958b..daca2a8 100644
--- a/docs/classes/Kiwi.Time.MasterClock.html
+++ b/docs/classes/Kiwi.Time.MasterClock.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Time.Timer.html b/docs/classes/Kiwi.Time.Timer.html
index 75c1a97..5698a94 100644
--- a/docs/classes/Kiwi.Time.Timer.html
+++ b/docs/classes/Kiwi.Time.Timer.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Time.TimerEvent.html b/docs/classes/Kiwi.Time.TimerEvent.html
index 785afa9..18b47ef 100644
--- a/docs/classes/Kiwi.Time.TimerEvent.html
+++ b/docs/classes/Kiwi.Time.TimerEvent.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Utils.Canvas.html b/docs/classes/Kiwi.Utils.Canvas.html
index dbd0e44..f0f558a 100644
--- a/docs/classes/Kiwi.Utils.Canvas.html
+++ b/docs/classes/Kiwi.Utils.Canvas.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Utils.Color.html b/docs/classes/Kiwi.Utils.Color.html
index eeb8269..d55b555 100644
--- a/docs/classes/Kiwi.Utils.Color.html
+++ b/docs/classes/Kiwi.Utils.Color.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Utils.Common.html b/docs/classes/Kiwi.Utils.Common.html
index 35eae74..011ff7f 100644
--- a/docs/classes/Kiwi.Utils.Common.html
+++ b/docs/classes/Kiwi.Utils.Common.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Utils.GameMath.html b/docs/classes/Kiwi.Utils.GameMath.html
index cf85d93..28e32b6 100644
--- a/docs/classes/Kiwi.Utils.GameMath.html
+++ b/docs/classes/Kiwi.Utils.GameMath.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Utils.Log.html b/docs/classes/Kiwi.Utils.Log.html
index aa3b34a..0d8bdf8 100644
--- a/docs/classes/Kiwi.Utils.Log.html
+++ b/docs/classes/Kiwi.Utils.Log.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Utils.RandomDataGenerator.html b/docs/classes/Kiwi.Utils.RandomDataGenerator.html
index f1fa6a6..4db9e94 100644
--- a/docs/classes/Kiwi.Utils.RandomDataGenerator.html
+++ b/docs/classes/Kiwi.Utils.RandomDataGenerator.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Utils.RequestAnimationFrame.html b/docs/classes/Kiwi.Utils.RequestAnimationFrame.html
index 28b8b1d..fae66aa 100644
--- a/docs/classes/Kiwi.Utils.RequestAnimationFrame.html
+++ b/docs/classes/Kiwi.Utils.RequestAnimationFrame.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/classes/Kiwi.Utils.Version.html b/docs/classes/Kiwi.Utils.Version.html
index 9bac454..6187eaf 100644
--- a/docs/classes/Kiwi.Utils.Version.html
+++ b/docs/classes/Kiwi.Utils.Version.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/data.json b/docs/data.json
index c3e8b43..748d466 100644
--- a/docs/data.json
+++ b/docs/data.json
@@ -2,7 +2,7 @@
     "project": {
         "name": "Kiwi.js",
         "description": "Kiwi.js is a Javascript/Typescript library for creating HTML5 games.",
-        "version": "1.3.1",
+        "version": "1.4.0",
         "url": "http://kiwijs.org/"
     },
     "files": {
@@ -22491,7 +22491,7 @@
         },
         {
             "file": "src\\file\\Loader.ts",
-            "line": 1038,
+            "line": 1039,
             "description": "This method firstly checks to see if the AUDIO file being loaded is supported or not by the browser/device before adding it to the loading queue.\nReturns a boolean if the audio file was successfully added or not to the file directory.",
             "itemtype": "method",
             "name": "_attemptToAddAudio",
@@ -22547,7 +22547,7 @@
         },
         {
             "file": "src\\file\\Loader.ts",
-            "line": 1086,
+            "line": 1087,
             "description": "Creates a new File to store JSON and adds it to the loading queue.",
             "itemtype": "method",
             "name": "addJSON",
@@ -22583,7 +22583,7 @@
         },
         {
             "file": "src\\file\\Loader.ts",
-            "line": 1128,
+            "line": 1129,
             "description": "Creates a new File to store XML and adds it to the loading queue.",
             "itemtype": "method",
             "name": "addXML",
@@ -22619,7 +22619,7 @@
         },
         {
             "file": "src\\file\\Loader.ts",
-            "line": 1170,
+            "line": 1171,
             "description": "Creates a new File for a Binary file and adds it to the loading queue.",
             "itemtype": "method",
             "name": "addBinaryFile",
@@ -22655,7 +22655,7 @@
         },
         {
             "file": "src\\file\\Loader.ts",
-            "line": 1212,
+            "line": 1213,
             "description": "Creates a new File to store a text file and adds it to the loading queue.",
             "itemtype": "method",
             "name": "addTextFile",
@@ -22691,7 +22691,7 @@
         },
         {
             "file": "src\\file\\Loader.ts",
-            "line": 1254,
+            "line": 1255,
             "description": "Flags this loader for garbage collection. Only use this method if you are SURE you will no longer need it. \nOtherwise it is best to leave it alone.",
             "itemtype": "method",
             "name": "destroy",
@@ -22704,7 +22704,7 @@
         },
         {
             "file": "src\\file\\Loader.ts",
-            "line": 1296,
+            "line": 1297,
             "description": "-----------------------\nDeprecated - Functionality exists. Maps to its equalvent\n-----------------------",
             "class": "Kiwi.Files.Loader",
             "module": "Kiwi",
@@ -22713,7 +22713,7 @@
         },
         {
             "file": "src\\file\\Loader.ts",
-            "line": 1303,
+            "line": 1304,
             "description": "Initialise the properities that are needed on this loader.\nRecommended you use the 'onQueueProgress' / 'onQueueComplete' signals instead.",
             "itemtype": "method",
             "name": "init",
@@ -22751,7 +22751,7 @@
         },
         {
             "file": "src\\file\\Loader.ts",
-            "line": 1330,
+            "line": 1331,
             "description": "Loops through all of the files that need to be loaded and start the load event on them.",
             "itemtype": "method",
             "name": "startLoad",
@@ -22766,7 +22766,7 @@
         },
         {
             "file": "src\\file\\Loader.ts",
-            "line": 1340,
+            "line": 1341,
             "description": "Returns a percentage of the amount that has been loaded so far.",
             "itemtype": "method",
             "name": "getPercentLoaded",
@@ -22785,7 +22785,7 @@
         },
         {
             "file": "src\\file\\Loader.ts",
-            "line": 1352,
+            "line": 1353,
             "description": "Returns a boolean indicating if everything in the loading que has been loaded or not.",
             "itemtype": "method",
             "name": "complete",
@@ -22804,7 +22804,7 @@
         },
         {
             "file": "src\\file\\Loader.ts",
-            "line": 1363,
+            "line": 1364,
             "description": "Quick way of getting / setting the private variable 'calculateBytes'\nTo be made into a public variable once removed.",
             "itemtype": "method",
             "name": "calculateBytes",
@@ -22829,7 +22829,7 @@
         },
         {
             "file": "src\\file\\Loader.ts",
-            "line": 1380,
+            "line": 1381,
             "description": "Returns the total number of bytes that have been loaded so far from files in the file queue.",
             "itemtype": "method",
             "name": "getBytesLoaded",
@@ -53144,7 +53144,7 @@
         },
         {
             "message": "Missing item type\n-----------------------\nDeprecated - Functionality exists. Maps to its equalvent\n-----------------------",
-            "line": " src\\file\\Loader.ts:1296"
+            "line": " src\\file\\Loader.ts:1297"
         },
         {
             "message": "Missing item type\n-----------------------\n Creation of Tile Types\n-----------------------",
diff --git a/docs/files/src_Kiwi.ts.html b/docs/files/src_Kiwi.ts.html
index 89cf347..0e018fe 100644
--- a/docs/files/src_Kiwi.ts.html
+++ b/docs/files/src_Kiwi.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
@@ -527,7 +527,7 @@ <h1 class="file-heading">File: src\Kiwi.ts</h1>
 	* @type string
 	* @public
 	*/
-	export var VERSION: string = &quot;1.3.1&quot;;
+	export var VERSION: string = &quot;1.4.0&quot;;
 
 	//DIFFERENT RENDERER STATIC VARIABLES
 	/**
diff --git a/docs/files/src_animations_Animation.ts.html b/docs/files/src_animations_Animation.ts.html
index 5496ab5..c3118fc 100644
--- a/docs/files/src_animations_Animation.ts.html
+++ b/docs/files/src_animations_Animation.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_Sequence.ts.html b/docs/files/src_animations_Sequence.ts.html
index 742e4c4..cf9cce1 100644
--- a/docs/files/src_animations_Sequence.ts.html
+++ b/docs/files/src_animations_Sequence.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_tweens_Tween.ts.html b/docs/files/src_animations_tweens_Tween.ts.html
index 4509b69..bb53f8f 100644
--- a/docs/files/src_animations_tweens_Tween.ts.html
+++ b/docs/files/src_animations_tweens_Tween.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_tweens_TweenManager.ts.html b/docs/files/src_animations_tweens_TweenManager.ts.html
index 8005eef..bfefc3d 100644
--- a/docs/files/src_animations_tweens_TweenManager.ts.html
+++ b/docs/files/src_animations_tweens_TweenManager.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_tweens_easing_Back.ts.html b/docs/files/src_animations_tweens_easing_Back.ts.html
index fac5e8b..6fd0a00 100644
--- a/docs/files/src_animations_tweens_easing_Back.ts.html
+++ b/docs/files/src_animations_tweens_easing_Back.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_tweens_easing_Bounce.ts.html b/docs/files/src_animations_tweens_easing_Bounce.ts.html
index 0799b3d..851d1eb 100644
--- a/docs/files/src_animations_tweens_easing_Bounce.ts.html
+++ b/docs/files/src_animations_tweens_easing_Bounce.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_tweens_easing_Circular.ts.html b/docs/files/src_animations_tweens_easing_Circular.ts.html
index b7b07f5..be7eb42 100644
--- a/docs/files/src_animations_tweens_easing_Circular.ts.html
+++ b/docs/files/src_animations_tweens_easing_Circular.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_tweens_easing_Cubic.ts.html b/docs/files/src_animations_tweens_easing_Cubic.ts.html
index e3b2e55..0d88cf3 100644
--- a/docs/files/src_animations_tweens_easing_Cubic.ts.html
+++ b/docs/files/src_animations_tweens_easing_Cubic.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_tweens_easing_Elastic.ts.html b/docs/files/src_animations_tweens_easing_Elastic.ts.html
index 54a0dfe..c3b9b0f 100644
--- a/docs/files/src_animations_tweens_easing_Elastic.ts.html
+++ b/docs/files/src_animations_tweens_easing_Elastic.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_tweens_easing_Exponential.ts.html b/docs/files/src_animations_tweens_easing_Exponential.ts.html
index 7a1a8a3..e6e50a3 100644
--- a/docs/files/src_animations_tweens_easing_Exponential.ts.html
+++ b/docs/files/src_animations_tweens_easing_Exponential.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_tweens_easing_Linear.ts.html b/docs/files/src_animations_tweens_easing_Linear.ts.html
index b9203ad..fbbed80 100644
--- a/docs/files/src_animations_tweens_easing_Linear.ts.html
+++ b/docs/files/src_animations_tweens_easing_Linear.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_tweens_easing_Quadratic.ts.html b/docs/files/src_animations_tweens_easing_Quadratic.ts.html
index 8d1adc7..950062c 100644
--- a/docs/files/src_animations_tweens_easing_Quadratic.ts.html
+++ b/docs/files/src_animations_tweens_easing_Quadratic.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_tweens_easing_Quartic.ts.html b/docs/files/src_animations_tweens_easing_Quartic.ts.html
index c2ac712..3d39547 100644
--- a/docs/files/src_animations_tweens_easing_Quartic.ts.html
+++ b/docs/files/src_animations_tweens_easing_Quartic.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_tweens_easing_Quintic.ts.html b/docs/files/src_animations_tweens_easing_Quintic.ts.html
index 598543e..afef6b2 100644
--- a/docs/files/src_animations_tweens_easing_Quintic.ts.html
+++ b/docs/files/src_animations_tweens_easing_Quintic.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_animations_tweens_easing_Sinusoidal.ts.html b/docs/files/src_animations_tweens_easing_Sinusoidal.ts.html
index 06d8de7..5d7e078 100644
--- a/docs/files/src_animations_tweens_easing_Sinusoidal.ts.html
+++ b/docs/files/src_animations_tweens_easing_Sinusoidal.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_components_AnimationManager.ts.html b/docs/files/src_components_AnimationManager.ts.html
index 09ba161..19bf12e 100644
--- a/docs/files/src_components_AnimationManager.ts.html
+++ b/docs/files/src_components_AnimationManager.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_components_ArcadePhysics.ts.html b/docs/files/src_components_ArcadePhysics.ts.html
index 90fa050..a4d067d 100644
--- a/docs/files/src_components_ArcadePhysics.ts.html
+++ b/docs/files/src_components_ArcadePhysics.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_components_Box.ts.html b/docs/files/src_components_Box.ts.html
index 403d95e..55546ad 100644
--- a/docs/files/src_components_Box.ts.html
+++ b/docs/files/src_components_Box.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_components_Input.ts.html b/docs/files/src_components_Input.ts.html
index c390be5..b59ad54 100644
--- a/docs/files/src_components_Input.ts.html
+++ b/docs/files/src_components_Input.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_components_Sound.ts.html b/docs/files/src_components_Sound.ts.html
index 7f9125b..9ffdc60 100644
--- a/docs/files/src_components_Sound.ts.html
+++ b/docs/files/src_components_Sound.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_Camera.ts.html b/docs/files/src_core_Camera.ts.html
index a472650..aceeb65 100644
--- a/docs/files/src_core_Camera.ts.html
+++ b/docs/files/src_core_Camera.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_CameraManager.ts.html b/docs/files/src_core_CameraManager.ts.html
index 0367613..254e5db 100644
--- a/docs/files/src_core_CameraManager.ts.html
+++ b/docs/files/src_core_CameraManager.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_Component.ts.html b/docs/files/src_core_Component.ts.html
index 6d46864..3c85bc0 100644
--- a/docs/files/src_core_Component.ts.html
+++ b/docs/files/src_core_Component.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_ComponentManager.ts.html b/docs/files/src_core_ComponentManager.ts.html
index 97ca27b..a1b6763 100644
--- a/docs/files/src_core_ComponentManager.ts.html
+++ b/docs/files/src_core_ComponentManager.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_Entity.ts.html b/docs/files/src_core_Entity.ts.html
index e5cda3d..9cfe077 100644
--- a/docs/files/src_core_Entity.ts.html
+++ b/docs/files/src_core_Entity.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_Game.ts.html b/docs/files/src_core_Game.ts.html
index dc206ef..3f11aa4 100644
--- a/docs/files/src_core_Game.ts.html
+++ b/docs/files/src_core_Game.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_Group.ts.html b/docs/files/src_core_Group.ts.html
index f7427eb..b806d49 100644
--- a/docs/files/src_core_Group.ts.html
+++ b/docs/files/src_core_Group.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_IChild.ts.html b/docs/files/src_core_IChild.ts.html
index 4068803..e0f678a 100644
--- a/docs/files/src_core_IChild.ts.html
+++ b/docs/files/src_core_IChild.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_PluginManager.ts.html b/docs/files/src_core_PluginManager.ts.html
index d0cd9c5..8f65d18 100644
--- a/docs/files/src_core_PluginManager.ts.html
+++ b/docs/files/src_core_PluginManager.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_Signal.ts.html b/docs/files/src_core_Signal.ts.html
index c5e5c81..7c34809 100644
--- a/docs/files/src_core_Signal.ts.html
+++ b/docs/files/src_core_Signal.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_SignalBinding.ts.html b/docs/files/src_core_SignalBinding.ts.html
index 25a07db..fd55140 100644
--- a/docs/files/src_core_SignalBinding.ts.html
+++ b/docs/files/src_core_SignalBinding.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_Stage.ts.html b/docs/files/src_core_Stage.ts.html
index 7cd613f..a17cb61 100644
--- a/docs/files/src_core_Stage.ts.html
+++ b/docs/files/src_core_Stage.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_State.ts.html b/docs/files/src_core_State.ts.html
index 07ea31b..927f746 100644
--- a/docs/files/src_core_State.ts.html
+++ b/docs/files/src_core_State.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_StateConfig.ts.html b/docs/files/src_core_StateConfig.ts.html
index 6d155e4..d78ec72 100644
--- a/docs/files/src_core_StateConfig.ts.html
+++ b/docs/files/src_core_StateConfig.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_core_StateManager.ts.html b/docs/files/src_core_StateManager.ts.html
index 9b541a2..6459963 100644
--- a/docs/files/src_core_StateManager.ts.html
+++ b/docs/files/src_core_StateManager.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_file_AudioFile.ts.html b/docs/files/src_file_AudioFile.ts.html
index 9cbecad..13fae92 100644
--- a/docs/files/src_file_AudioFile.ts.html
+++ b/docs/files/src_file_AudioFile.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_file_DataFile.ts.html b/docs/files/src_file_DataFile.ts.html
index d8c0748..2c6e460 100644
--- a/docs/files/src_file_DataFile.ts.html
+++ b/docs/files/src_file_DataFile.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_file_DataLibrary.ts.html b/docs/files/src_file_DataLibrary.ts.html
index 0e5ec9e..8f68eb8 100644
--- a/docs/files/src_file_DataLibrary.ts.html
+++ b/docs/files/src_file_DataLibrary.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_file_File.ts.html b/docs/files/src_file_File.ts.html
index 3266f8c..a238a5c 100644
--- a/docs/files/src_file_File.ts.html
+++ b/docs/files/src_file_File.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_file_FileStore.ts.html b/docs/files/src_file_FileStore.ts.html
index 66b5491..1d6ccc3 100644
--- a/docs/files/src_file_FileStore.ts.html
+++ b/docs/files/src_file_FileStore.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_file_Loader.ts.html b/docs/files/src_file_Loader.ts.html
index 5a313ef..54af97d 100644
--- a/docs/files/src_file_Loader.ts.html
+++ b/docs/files/src_file_Loader.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
@@ -1367,6 +1367,7 @@ <h1 class="file-heading">File: src\file\Loader.ts</h1>
 
 			if (Kiwi.Utils.Common.isObject(key)) {
 				params = (&lt;any&gt;key);
+				params.type = Kiwi.Files.File.AUDIO;
 				params.fileStore = this.game.fileStore;
 
 			} else {
diff --git a/docs/files/src_file_TextureFile.ts.html b/docs/files/src_file_TextureFile.ts.html
index 56f7c60..f3e86a8 100644
--- a/docs/files/src_file_TextureFile.ts.html
+++ b/docs/files/src_file_TextureFile.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_gameobjects_Sprite.ts.html b/docs/files/src_gameobjects_Sprite.ts.html
index ff3a490..347ed28 100644
--- a/docs/files/src_gameobjects_Sprite.ts.html
+++ b/docs/files/src_gameobjects_Sprite.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_gameobjects_StaticImage.ts.html b/docs/files/src_gameobjects_StaticImage.ts.html
index 540d1f9..bbff9c2 100644
--- a/docs/files/src_gameobjects_StaticImage.ts.html
+++ b/docs/files/src_gameobjects_StaticImage.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_gameobjects_Textfield.ts.html b/docs/files/src_gameobjects_Textfield.ts.html
index 6b69f23..0b340c2 100644
--- a/docs/files/src_gameobjects_Textfield.ts.html
+++ b/docs/files/src_gameobjects_Textfield.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_gameobjects_tilemap_TileMap.ts.html b/docs/files/src_gameobjects_tilemap_TileMap.ts.html
index d6139a7..5158893 100644
--- a/docs/files/src_gameobjects_tilemap_TileMap.ts.html
+++ b/docs/files/src_gameobjects_tilemap_TileMap.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_gameobjects_tilemap_TileMapLayer.ts.html b/docs/files/src_gameobjects_tilemap_TileMapLayer.ts.html
index b2410e6..a96bb94 100644
--- a/docs/files/src_gameobjects_tilemap_TileMapLayer.ts.html
+++ b/docs/files/src_gameobjects_tilemap_TileMapLayer.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_gameobjects_tilemap_TileMapLayerIsometric.ts.html b/docs/files/src_gameobjects_tilemap_TileMapLayerIsometric.ts.html
index f80e9c4..fbb63cf 100644
--- a/docs/files/src_gameobjects_tilemap_TileMapLayerIsometric.ts.html
+++ b/docs/files/src_gameobjects_tilemap_TileMapLayerIsometric.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_gameobjects_tilemap_TileMapLayerOrthogonal.ts.html b/docs/files/src_gameobjects_tilemap_TileMapLayerOrthogonal.ts.html
index 354a6fa..529ba28 100644
--- a/docs/files/src_gameobjects_tilemap_TileMapLayerOrthogonal.ts.html
+++ b/docs/files/src_gameobjects_tilemap_TileMapLayerOrthogonal.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_gameobjects_tilemap_TileType.ts.html b/docs/files/src_gameobjects_tilemap_TileType.ts.html
index e1afb05..336e35b 100644
--- a/docs/files/src_gameobjects_tilemap_TileType.ts.html
+++ b/docs/files/src_gameobjects_tilemap_TileType.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_geom_AABB.ts.html b/docs/files/src_geom_AABB.ts.html
index 6b97a81..356899b 100644
--- a/docs/files/src_geom_AABB.ts.html
+++ b/docs/files/src_geom_AABB.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_geom_Circle.ts.html b/docs/files/src_geom_Circle.ts.html
index 2b19810..3007a4e 100644
--- a/docs/files/src_geom_Circle.ts.html
+++ b/docs/files/src_geom_Circle.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_geom_Intersect.ts.html b/docs/files/src_geom_Intersect.ts.html
index c09bada..4cc6687 100644
--- a/docs/files/src_geom_Intersect.ts.html
+++ b/docs/files/src_geom_Intersect.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_geom_IntersectResult.ts.html b/docs/files/src_geom_IntersectResult.ts.html
index 3801971..1d7f649 100644
--- a/docs/files/src_geom_IntersectResult.ts.html
+++ b/docs/files/src_geom_IntersectResult.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_geom_Line.ts.html b/docs/files/src_geom_Line.ts.html
index d5dce12..a89ca65 100644
--- a/docs/files/src_geom_Line.ts.html
+++ b/docs/files/src_geom_Line.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_geom_Matrix.ts.html b/docs/files/src_geom_Matrix.ts.html
index 8a6cc46..b169e44 100644
--- a/docs/files/src_geom_Matrix.ts.html
+++ b/docs/files/src_geom_Matrix.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_geom_Point.ts.html b/docs/files/src_geom_Point.ts.html
index df240b2..3dc041c 100644
--- a/docs/files/src_geom_Point.ts.html
+++ b/docs/files/src_geom_Point.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_geom_Ray.ts.html b/docs/files/src_geom_Ray.ts.html
index c95b1ef..111ef64 100644
--- a/docs/files/src_geom_Ray.ts.html
+++ b/docs/files/src_geom_Ray.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_geom_Rectangle.ts.html b/docs/files/src_geom_Rectangle.ts.html
index 34777c0..f31211d 100644
--- a/docs/files/src_geom_Rectangle.ts.html
+++ b/docs/files/src_geom_Rectangle.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_geom_Transform.ts.html b/docs/files/src_geom_Transform.ts.html
index dd6ffac..c5d8ed6 100644
--- a/docs/files/src_geom_Transform.ts.html
+++ b/docs/files/src_geom_Transform.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_geom_Vector2.ts.html b/docs/files/src_geom_Vector2.ts.html
index 4912e64..44f7cf6 100644
--- a/docs/files/src_geom_Vector2.ts.html
+++ b/docs/files/src_geom_Vector2.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_HUDDisplay.ts.html b/docs/files/src_hud_HUDDisplay.ts.html
index 97505c7..f8c0493 100644
--- a/docs/files/src_hud_HUDDisplay.ts.html
+++ b/docs/files/src_hud_HUDDisplay.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_HUDManager.ts.html b/docs/files/src_hud_HUDManager.ts.html
index f3a76ee..9c20e18 100644
--- a/docs/files/src_hud_HUDManager.ts.html
+++ b/docs/files/src_hud_HUDManager.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_HUDWidget.ts.html b/docs/files/src_hud_HUDWidget.ts.html
index bc31b01..0973643 100644
--- a/docs/files/src_hud_HUDWidget.ts.html
+++ b/docs/files/src_hud_HUDWidget.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_components_Counter.ts.html b/docs/files/src_hud_components_Counter.ts.html
index f0ae3e5..ce68b58 100644
--- a/docs/files/src_hud_components_Counter.ts.html
+++ b/docs/files/src_hud_components_Counter.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_components_Time.ts.html b/docs/files/src_hud_components_Time.ts.html
index 82a91ab..c16c325 100644
--- a/docs/files/src_hud_components_Time.ts.html
+++ b/docs/files/src_hud_components_Time.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_components_WidgetInput.ts.html b/docs/files/src_hud_components_WidgetInput.ts.html
index 3be20a1..c6034ea 100644
--- a/docs/files/src_hud_components_WidgetInput.ts.html
+++ b/docs/files/src_hud_components_WidgetInput.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_widgets_Bar.ts.html b/docs/files/src_hud_widgets_Bar.ts.html
index a92166b..5eea60b 100644
--- a/docs/files/src_hud_widgets_Bar.ts.html
+++ b/docs/files/src_hud_widgets_Bar.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_widgets_BasicScore.ts.html b/docs/files/src_hud_widgets_BasicScore.ts.html
index f0ca59b..900c2ce 100644
--- a/docs/files/src_hud_widgets_BasicScore.ts.html
+++ b/docs/files/src_hud_widgets_BasicScore.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_widgets_Button.ts.html b/docs/files/src_hud_widgets_Button.ts.html
index d90d811..69560e7 100644
--- a/docs/files/src_hud_widgets_Button.ts.html
+++ b/docs/files/src_hud_widgets_Button.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_widgets_Icon.ts.html b/docs/files/src_hud_widgets_Icon.ts.html
index 9cf1b9b..7a5fabd 100644
--- a/docs/files/src_hud_widgets_Icon.ts.html
+++ b/docs/files/src_hud_widgets_Icon.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_widgets_IconBar.ts.html b/docs/files/src_hud_widgets_IconBar.ts.html
index ceff264..5051097 100644
--- a/docs/files/src_hud_widgets_IconBar.ts.html
+++ b/docs/files/src_hud_widgets_IconBar.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_widgets_Menu.ts.html b/docs/files/src_hud_widgets_Menu.ts.html
index 6699583..0bdbfcb 100644
--- a/docs/files/src_hud_widgets_Menu.ts.html
+++ b/docs/files/src_hud_widgets_Menu.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_widgets_MenuItem.ts.html b/docs/files/src_hud_widgets_MenuItem.ts.html
index 307380b..d40f6d0 100644
--- a/docs/files/src_hud_widgets_MenuItem.ts.html
+++ b/docs/files/src_hud_widgets_MenuItem.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_widgets_TextField.ts.html b/docs/files/src_hud_widgets_TextField.ts.html
index 6a5d2dc..143c23e 100644
--- a/docs/files/src_hud_widgets_TextField.ts.html
+++ b/docs/files/src_hud_widgets_TextField.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_hud_widgets_Time.ts.html b/docs/files/src_hud_widgets_Time.ts.html
index 73feb16..bbd1130 100644
--- a/docs/files/src_hud_widgets_Time.ts.html
+++ b/docs/files/src_hud_widgets_Time.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_input_Finger.ts.html b/docs/files/src_input_Finger.ts.html
index 718af86..962e9af 100644
--- a/docs/files/src_input_Finger.ts.html
+++ b/docs/files/src_input_Finger.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_input_InputManager.ts.html b/docs/files/src_input_InputManager.ts.html
index ed863bc..ce4cc92 100644
--- a/docs/files/src_input_InputManager.ts.html
+++ b/docs/files/src_input_InputManager.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_input_Key.ts.html b/docs/files/src_input_Key.ts.html
index f59f56a..1b05d74 100644
--- a/docs/files/src_input_Key.ts.html
+++ b/docs/files/src_input_Key.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_input_Keyboard.ts.html b/docs/files/src_input_Keyboard.ts.html
index c5ea30d..d17f2be 100644
--- a/docs/files/src_input_Keyboard.ts.html
+++ b/docs/files/src_input_Keyboard.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_input_Keycodes.ts.html b/docs/files/src_input_Keycodes.ts.html
index 87a4a48..51aadb7 100644
--- a/docs/files/src_input_Keycodes.ts.html
+++ b/docs/files/src_input_Keycodes.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_input_Mouse.ts.html b/docs/files/src_input_Mouse.ts.html
index 6e8dfc5..f081f73 100644
--- a/docs/files/src_input_Mouse.ts.html
+++ b/docs/files/src_input_Mouse.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_input_MouseCursor.ts.html b/docs/files/src_input_MouseCursor.ts.html
index 12495ab..5f68c52 100644
--- a/docs/files/src_input_MouseCursor.ts.html
+++ b/docs/files/src_input_MouseCursor.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_input_Pointer.ts.html b/docs/files/src_input_Pointer.ts.html
index 9389983..8e13d3b 100644
--- a/docs/files/src_input_Pointer.ts.html
+++ b/docs/files/src_input_Pointer.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_input_Touch.ts.html b/docs/files/src_input_Touch.ts.html
index b1f3db4..768f66c 100644
--- a/docs/files/src_input_Touch.ts.html
+++ b/docs/files/src_input_Touch.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_render_CanvasRenderer.ts.html b/docs/files/src_render_CanvasRenderer.ts.html
index 1938430..ccc3948 100644
--- a/docs/files/src_render_CanvasRenderer.ts.html
+++ b/docs/files/src_render_CanvasRenderer.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_render_GLArrayBuffer.ts.html b/docs/files/src_render_GLArrayBuffer.ts.html
index c2fa28b..22e49f7 100644
--- a/docs/files/src_render_GLArrayBuffer.ts.html
+++ b/docs/files/src_render_GLArrayBuffer.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_render_GLBlendMode.ts.html b/docs/files/src_render_GLBlendMode.ts.html
index 73f6774..ea63a32 100644
--- a/docs/files/src_render_GLBlendMode.ts.html
+++ b/docs/files/src_render_GLBlendMode.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_render_GLElementArrayBuffer.ts.html b/docs/files/src_render_GLElementArrayBuffer.ts.html
index cb4f058..ecb6537 100644
--- a/docs/files/src_render_GLElementArrayBuffer.ts.html
+++ b/docs/files/src_render_GLElementArrayBuffer.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_render_GLRenderManager.ts.html b/docs/files/src_render_GLRenderManager.ts.html
index 889cc6f..533ad54 100644
--- a/docs/files/src_render_GLRenderManager.ts.html
+++ b/docs/files/src_render_GLRenderManager.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_render_GLShaderManager.ts.html b/docs/files/src_render_GLShaderManager.ts.html
index ec4dd37..7c8de0e 100644
--- a/docs/files/src_render_GLShaderManager.ts.html
+++ b/docs/files/src_render_GLShaderManager.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_render_GLTextureManager.ts.html b/docs/files/src_render_GLTextureManager.ts.html
index 2bb71ca..f2e5535 100644
--- a/docs/files/src_render_GLTextureManager.ts.html
+++ b/docs/files/src_render_GLTextureManager.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_render_GLTextureWrapper.ts.html b/docs/files/src_render_GLTextureWrapper.ts.html
index 7d0a21e..7f7c90d 100644
--- a/docs/files/src_render_GLTextureWrapper.ts.html
+++ b/docs/files/src_render_GLTextureWrapper.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_render_renderers_Renderer.ts.html b/docs/files/src_render_renderers_Renderer.ts.html
index 88a0d01..2a6a558 100644
--- a/docs/files/src_render_renderers_Renderer.ts.html
+++ b/docs/files/src_render_renderers_Renderer.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_render_renderers_TextureAtlasRenderer.ts.html b/docs/files/src_render_renderers_TextureAtlasRenderer.ts.html
index ef1042d..d14d7d5 100644
--- a/docs/files/src_render_renderers_TextureAtlasRenderer.ts.html
+++ b/docs/files/src_render_renderers_TextureAtlasRenderer.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_render_shaders_ShaderPair.ts.html b/docs/files/src_render_shaders_ShaderPair.ts.html
index a67220d..32f942c 100644
--- a/docs/files/src_render_shaders_ShaderPair.ts.html
+++ b/docs/files/src_render_shaders_ShaderPair.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_render_shaders_TextureAtlasShader.ts.html b/docs/files/src_render_shaders_TextureAtlasShader.ts.html
index 44387b0..975a9e0 100644
--- a/docs/files/src_render_shaders_TextureAtlasShader.ts.html
+++ b/docs/files/src_render_shaders_TextureAtlasShader.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_sound_Audio.ts.html b/docs/files/src_sound_Audio.ts.html
index 248808d..8233007 100644
--- a/docs/files/src_sound_Audio.ts.html
+++ b/docs/files/src_sound_Audio.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_sound_AudioLibrary.ts.html b/docs/files/src_sound_AudioLibrary.ts.html
index dfc75ae..6669402 100644
--- a/docs/files/src_sound_AudioLibrary.ts.html
+++ b/docs/files/src_sound_AudioLibrary.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_sound_AudioManager.ts.html b/docs/files/src_sound_AudioManager.ts.html
index 61519e2..3dc781f 100644
--- a/docs/files/src_sound_AudioManager.ts.html
+++ b/docs/files/src_sound_AudioManager.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_system_Bootstrap.ts.html b/docs/files/src_system_Bootstrap.ts.html
index fd88f74..42798fa 100644
--- a/docs/files/src_system_Bootstrap.ts.html
+++ b/docs/files/src_system_Bootstrap.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_system_Device.ts.html b/docs/files/src_system_Device.ts.html
index 62fe9e5..b101bab 100644
--- a/docs/files/src_system_Device.ts.html
+++ b/docs/files/src_system_Device.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_textures_SingleImage.ts.html b/docs/files/src_textures_SingleImage.ts.html
index c48ce5c..546fb89 100644
--- a/docs/files/src_textures_SingleImage.ts.html
+++ b/docs/files/src_textures_SingleImage.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_textures_SpriteSheet.ts.html b/docs/files/src_textures_SpriteSheet.ts.html
index 4e39e21..3ef9422 100644
--- a/docs/files/src_textures_SpriteSheet.ts.html
+++ b/docs/files/src_textures_SpriteSheet.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_textures_TextureAtlas.ts.html b/docs/files/src_textures_TextureAtlas.ts.html
index cf8f405..e04b551 100644
--- a/docs/files/src_textures_TextureAtlas.ts.html
+++ b/docs/files/src_textures_TextureAtlas.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_textures_TextureLibrary.ts.html b/docs/files/src_textures_TextureLibrary.ts.html
index 505d009..49df734 100644
--- a/docs/files/src_textures_TextureLibrary.ts.html
+++ b/docs/files/src_textures_TextureLibrary.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_time_Clock.ts.html b/docs/files/src_time_Clock.ts.html
index 9423b13..da6db1a 100644
--- a/docs/files/src_time_Clock.ts.html
+++ b/docs/files/src_time_Clock.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_time_ClockManager.ts.html b/docs/files/src_time_ClockManager.ts.html
index f0bf29c..2628c62 100644
--- a/docs/files/src_time_ClockManager.ts.html
+++ b/docs/files/src_time_ClockManager.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_time_MasterClock.ts.html b/docs/files/src_time_MasterClock.ts.html
index 6a39bc7..e6779f0 100644
--- a/docs/files/src_time_MasterClock.ts.html
+++ b/docs/files/src_time_MasterClock.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_time_Timer.ts.html b/docs/files/src_time_Timer.ts.html
index 4f3ba3d..9671562 100644
--- a/docs/files/src_time_Timer.ts.html
+++ b/docs/files/src_time_Timer.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_time_TimerEvent.ts.html b/docs/files/src_time_TimerEvent.ts.html
index 76dab54..c74173d 100644
--- a/docs/files/src_time_TimerEvent.ts.html
+++ b/docs/files/src_time_TimerEvent.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_utils_Canvas.ts.html b/docs/files/src_utils_Canvas.ts.html
index d7493f2..dafda1d 100644
--- a/docs/files/src_utils_Canvas.ts.html
+++ b/docs/files/src_utils_Canvas.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_utils_Color.ts.html b/docs/files/src_utils_Color.ts.html
index 7cfcb4e..01b5490 100644
--- a/docs/files/src_utils_Color.ts.html
+++ b/docs/files/src_utils_Color.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_utils_Common.ts.html b/docs/files/src_utils_Common.ts.html
index 2dba498..d26b10b 100644
--- a/docs/files/src_utils_Common.ts.html
+++ b/docs/files/src_utils_Common.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_utils_GameMath.ts.html b/docs/files/src_utils_GameMath.ts.html
index 492a2c7..88c6def 100644
--- a/docs/files/src_utils_GameMath.ts.html
+++ b/docs/files/src_utils_GameMath.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_utils_Log.ts.html b/docs/files/src_utils_Log.ts.html
index 98d0a92..12c093b 100644
--- a/docs/files/src_utils_Log.ts.html
+++ b/docs/files/src_utils_Log.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_utils_RandomDataGenerator.ts.html b/docs/files/src_utils_RandomDataGenerator.ts.html
index 1d5085c..57bc696 100644
--- a/docs/files/src_utils_RandomDataGenerator.ts.html
+++ b/docs/files/src_utils_RandomDataGenerator.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_utils_RequestAnimationFrame.ts.html b/docs/files/src_utils_RequestAnimationFrame.ts.html
index 10344c0..dc56762 100644
--- a/docs/files/src_utils_RequestAnimationFrame.ts.html
+++ b/docs/files/src_utils_RequestAnimationFrame.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/files/src_utils_Version.ts.html b/docs/files/src_utils_Version.ts.html
index 9f00bad..ee66373 100644
--- a/docs/files/src_utils_Version.ts.html
+++ b/docs/files/src_utils_Version.ts.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/index.html b/docs/index.html
index 34096d4..ee8e47a 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Animations.html b/docs/modules/Animations.html
index 90aec12..1cd081b 100644
--- a/docs/modules/Animations.html
+++ b/docs/modules/Animations.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Components.html b/docs/modules/Components.html
index 7795c0e..e1db0b8 100644
--- a/docs/modules/Components.html
+++ b/docs/modules/Components.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Easing.html b/docs/modules/Easing.html
index 49c621b..f272937 100644
--- a/docs/modules/Easing.html
+++ b/docs/modules/Easing.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Files.html b/docs/modules/Files.html
index 250ee48..b8f0973 100644
--- a/docs/modules/Files.html
+++ b/docs/modules/Files.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/GameObjects.html b/docs/modules/GameObjects.html
index e803a79..65c764c 100644
--- a/docs/modules/GameObjects.html
+++ b/docs/modules/GameObjects.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Geom.html b/docs/modules/Geom.html
index 4783fbe..91b91bf 100644
--- a/docs/modules/Geom.html
+++ b/docs/modules/Geom.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/HUD.html b/docs/modules/HUD.html
index e69fb41..0b084f4 100644
--- a/docs/modules/HUD.html
+++ b/docs/modules/HUD.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/HUDComponents.html b/docs/modules/HUDComponents.html
index 05ef799..617c531 100644
--- a/docs/modules/HUDComponents.html
+++ b/docs/modules/HUDComponents.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Input.html b/docs/modules/Input.html
index 54d8302..1fbfeb6 100644
--- a/docs/modules/Input.html
+++ b/docs/modules/Input.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Kiwi.html b/docs/modules/Kiwi.html
index 1ed1cf4..278f37b 100644
--- a/docs/modules/Kiwi.html
+++ b/docs/modules/Kiwi.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Renderers.html b/docs/modules/Renderers.html
index 5bb8304..72b6306 100644
--- a/docs/modules/Renderers.html
+++ b/docs/modules/Renderers.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Shaders.html b/docs/modules/Shaders.html
index d43e32a..01ef645 100644
--- a/docs/modules/Shaders.html
+++ b/docs/modules/Shaders.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Sound.html b/docs/modules/Sound.html
index dc7449f..1432f06 100644
--- a/docs/modules/Sound.html
+++ b/docs/modules/Sound.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/System.html b/docs/modules/System.html
index a8d8a19..d069be6 100644
--- a/docs/modules/System.html
+++ b/docs/modules/System.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Textures.html b/docs/modules/Textures.html
index 545853a..ca5ed01 100644
--- a/docs/modules/Textures.html
+++ b/docs/modules/Textures.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Tilemap.html b/docs/modules/Tilemap.html
index 31c5a0c..fae5582 100644
--- a/docs/modules/Tilemap.html
+++ b/docs/modules/Tilemap.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Time.html b/docs/modules/Time.html
index 1c8f58d..0d1e253 100644
--- a/docs/modules/Time.html
+++ b/docs/modules/Time.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Tweens.html b/docs/modules/Tweens.html
index 6c9aa8f..a9ac121 100644
--- a/docs/modules/Tweens.html
+++ b/docs/modules/Tweens.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Utils..html b/docs/modules/Utils..html
index 35b1442..9b2b0dd 100644
--- a/docs/modules/Utils..html
+++ b/docs/modules/Utils..html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Utils.html b/docs/modules/Utils.html
index 98cc706..459506a 100644
--- a/docs/modules/Utils.html
+++ b/docs/modules/Utils.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/docs/modules/Widget.html b/docs/modules/Widget.html
index 6427ed0..1295649 100644
--- a/docs/modules/Widget.html
+++ b/docs/modules/Widget.html
@@ -19,7 +19,7 @@
             
         </div>
         <div class="yui3-u-1-4 version">
-            <em>API Docs for: 1.3.1</em>
+            <em>API Docs for: 1.4.0</em>
         </div>
     </div>
     <div id="bd" class="yui3-g">
diff --git a/templateGame/lib/kiwi.js b/templateGame/lib/kiwi.js
index 9abe9b2..afa7e54 100644
--- a/templateGame/lib/kiwi.js
+++ b/templateGame/lib/kiwi.js
@@ -34510,7 +34510,7 @@ var Kiwi;
     * @type string
     * @public
     */
-    Kiwi.VERSION = "1.3.1";
+    Kiwi.VERSION = "1.4.0";
     //DIFFERENT RENDERER STATIC VARIABLES
     /**
     * A Static property that contains the number associated with the CANVAS RENDERER.
