Skip to content
Browse files

Reformat source to use tabs for greater visual clarity

Also fix a couple of orphaned, undocumented properties
  • Loading branch information...
1 parent 86767ad commit 52091d9dff9b213dc653b4fca7f991b0f9f8fcb7 @BenjaminDRichards BenjaminDRichards committed
Showing with 3,493 additions and 3,267 deletions.
  1. +23 −23 bower.json
  2. +39 −23 build/kiwi.d.ts
  3. +34 −25 build/kiwi.js
  4. +6 −6 docs/classes/Kiwi.CameraManager.html
  5. +2 −2 docs/classes/Kiwi.ComponentManager.html
  6. +29 −29 docs/classes/Kiwi.Components.ArcadePhysics.html
  7. +12 −12 docs/classes/Kiwi.Components.Box.html
  8. +1 −1 docs/classes/Kiwi.Components.Input.html
  9. +5 −5 docs/classes/Kiwi.GameManager.html
  10. +1 −1 docs/classes/Kiwi.GameObjects.Sprite.html
  11. +13 −13 docs/classes/Kiwi.GameObjects.Textfield.html
  12. +13 −13 docs/classes/Kiwi.GameObjects.Tilemap.TileMap.html
  13. +13 −13 docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayer.html
  14. +7 −7 docs/classes/Kiwi.GameObjects.Tilemap.TileType.html
  15. +1 −1 docs/classes/Kiwi.Geom.Ray.html
  16. +1 −1 docs/classes/Kiwi.Group.html
  17. +19 −19 docs/classes/Kiwi.Input.Touch.html
  18. +12 −12 docs/classes/Kiwi.PluginManager.html
  19. +89 −35 docs/classes/Kiwi.Renderers.GLRenderManager.html
  20. +17 −17 docs/classes/Kiwi.Renderers.GLTextureManager.html
  21. +66 −12 docs/classes/Kiwi.Renderers.GLTextureWrapper.html
  22. +15 −15 docs/classes/Kiwi.Renderers.Renderer.html
  23. +23 −23 docs/classes/Kiwi.Renderers.TextureAtlasRenderer.html
  24. +10 −10 docs/classes/Kiwi.Shaders.ShaderManager.html
  25. +16 −16 docs/classes/Kiwi.Shaders.ShaderPair.html
  26. +12 −12 docs/classes/Kiwi.Shaders.TextureAtlasShader.html
  27. +9 −9 docs/classes/Kiwi.Sound.Audio.html
  28. +68 −14 docs/classes/Kiwi.Sound.AudioManager.html
  29. +6 −6 docs/classes/Kiwi.Stage.html
  30. +23 −23 docs/classes/Kiwi.State.html
  31. +4 −4 docs/classes/Kiwi.StateManager.html
  32. +372 −330 docs/data.json
  33. +226 −228 docs/files/src_Kiwi.ts.html
  34. +494 −494 docs/files/src_animations_Animation.ts.html
  35. +55 −54 docs/files/src_animations_Sequence.ts.html
  36. +559 −559 docs/files/src_animations_tweens_Tween.ts.html
  37. +184 −184 docs/files/src_animations_tweens_TweenManager.ts.html
  38. +54 −54 docs/files/src_animations_tweens_easing_Back.ts.html
  39. +66 −66 docs/files/src_animations_tweens_easing_Bounce.ts.html
  40. +49 −49 docs/files/src_animations_tweens_easing_Circular.ts.html
  41. +51 −51 docs/files/src_animations_tweens_easing_Cubic.ts.html
  42. +66 −66 docs/files/src_animations_tweens_easing_Elastic.ts.html
  43. +54 −54 docs/files/src_animations_tweens_easing_Exponential.ts.html
  44. +27 −27 docs/files/src_animations_tweens_easing_Linear.ts.html
  45. +52 −52 docs/files/src_animations_tweens_easing_Quadratic.ts.html
  46. +51 −51 docs/files/src_animations_tweens_easing_Quartic.ts.html
  47. +51 −51 docs/files/src_animations_tweens_easing_Quintic.ts.html
  48. +50 −50 docs/files/src_animations_tweens_easing_Sinusoidal.ts.html
  49. +443 −445 docs/files/src_components_AnimationManager.ts.html
Sorry, we could not display the entire diff because it was too big.
View
46 bower.json
@@ -1,25 +1,25 @@
{
- "name": "Kiwi.js",
- "version": "1.1.1",
- "homepage": "git://github.com:gamelab/kiwi.js.git",
- "authors": [
- "GameLab"
- ],
- "description": "Kiwi.js is a Javascript/Typescript library for creating HTML5 games.",
- "main": "build/kiwi.min.js",
- "keywords": [
- "game",
- "library",
- "html5",
- "typescript",
- "javascript"
- ],
- "license": "MIT",
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "test",
- "tests"
- ]
+ "name": "Kiwi.js",
+ "version": "1.1.1",
+ "homepage": "git://github.com:gamelab/kiwi.js.git",
+ "authors": [
+ "GameLab"
+ ],
+ "description": "Kiwi.js is a Javascript/Typescript library for creating HTML5 games.",
+ "main": "build/kiwi.min.js",
+ "keywords": [
+ "game",
+ "library",
+ "html5",
+ "typescript",
+ "javascript"
+ ],
+ "license": "MIT",
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components",
+ "test",
+ "tests"
+ ]
}
View
62 build/kiwi.d.ts
@@ -10044,8 +10044,6 @@ declare module Kiwi.Renderers {
}
declare var mat2d: any, mat3: any, vec2: any, vec3: any, mat4: any;
/**
-*
-*
* @module Kiwi
* @submodule Renderers
* @main Renderers
@@ -10147,6 +10145,12 @@ declare module Kiwi.Renderers {
* @private
*/
private _maxItems;
+ /**
+ * Camera matrix used on graphics card
+ * @property camMatrix
+ * @type Float32Array
+ * @public
+ */
camMatrix: Float32Array;
/**
* The most recently bound texture atlas.
@@ -10379,11 +10383,11 @@ declare module Kiwi.Shaders {
class ShaderManager {
constructor();
/**
- * An object containing a set of properties each of which references a ShaderPair.
- * @property _shaderPairs
- * @type Object
- * @private
- */
+ * An object containing a set of properties each of which references a ShaderPair.
+ * @property _shaderPairs
+ * @type Object
+ * @private
+ */
private _shaderPairs;
/**
* The shader program that is currently set to be used useing gl.useProgram.
@@ -10506,11 +10510,17 @@ declare module Kiwi.Renderers {
texture: WebGLTexture;
/**
* The image wrapped by this wrapper.
+ * @property _image
+ * @type HTMLImageElement
+ * @private
+ */
+ private _image;
+ /**
+ * The image wrapped by this wrapper.
* @property image
* @type HTMLImageElement
* @public
*/
- private _image;
image: HTMLImageElement;
/**
* Creates a webgl texture object
@@ -11044,15 +11054,15 @@ declare module Kiwi.Renderers {
declare module Kiwi.Renderers {
class Renderer {
/**
- * Base class for WebGL Renderers. Not for instantiation.
- * @class Renderer
- * @constructor
- * @namespace Kiwi.Renderers
- * @param gl {WebGLRenderingContext}
- * @param shaderManager {Kiwi.Shaders.ShaderManager}
- * @param [params=null] {object}
- * @return {Kiwi.Renderers.Renderer}
- */
+ * Base class for WebGL Renderers. Not for instantiation.
+ * @class Renderer
+ * @constructor
+ * @namespace Kiwi.Renderers
+ * @param gl {WebGLRenderingContext}
+ * @param shaderManager {Kiwi.Shaders.ShaderManager}
+ * @param [params=null] {object}
+ * @return {Kiwi.Renderers.Renderer}
+ */
constructor(gl: WebGLRenderingContext, shaderManager: Kiwi.Shaders.ShaderManager, isBatchRenderer?: boolean);
/**
* Identifier for this renderer
@@ -11421,12 +11431,12 @@ declare module Kiwi.Shaders {
*/
applyUniforms(gl: WebGLRenderingContext): void;
/**
- * Applies a single uniforms to the uploaded program
- * @method applyUniform
- * @param gl {WebGLRenderingCotext}
- * @param name {string}
- * @public
- */
+ * Applies a single uniforms to the uploaded program
+ * @method applyUniform
+ * @param gl {WebGLRenderingCotext}
+ * @param name {string}
+ * @public
+ */
applyUniform(gl: WebGLRenderingContext, name: string): void;
/**
* Initialises all uniforms
@@ -18732,6 +18742,12 @@ declare module Kiwi.Sound {
* @private
*/
private _locked;
+ /**
+ * Sound buffer
+ * @property _unlockedSource
+ * @type {any}
+ * @private
+ */
private _unlockedSource;
/**
* Returns a boolean indicating whether the device has been touched or not. READ ONLY.
View
59 build/kiwi.js
@@ -14663,8 +14663,6 @@ var Kiwi;
})(Renderers = Kiwi.Renderers || (Kiwi.Renderers = {}));
})(Kiwi || (Kiwi = {}));
/**
-*
-*
* @module Kiwi
* @submodule Renderers
* @main Renderers
@@ -14928,8 +14926,8 @@ var Kiwi;
}
}, this);
/* if (this.filtersEnabled && !this.filters.isEmpty) {
- this.filters.enableFrameBuffers(gl);
- }*/
+ this.filters.enableFrameBuffers(gl);
+ }*/
};
/**
* Scales the viewport according to a scale mode and space dimensions.
@@ -15255,11 +15253,11 @@ var Kiwi;
var ShaderManager = (function () {
function ShaderManager() {
/**
- * An object containing a set of properties each of which references a ShaderPair.
- * @property _shaderPairs
- * @type Object
- * @private
- */
+ * An object containing a set of properties each of which references a ShaderPair.
+ * @property _shaderPairs
+ * @type Object
+ * @private
+ */
this._shaderPairs = {};
}
Object.defineProperty(ShaderManager.prototype, "currentShader", {
@@ -15442,6 +15440,12 @@ var Kiwi;
configurable: true
});
Object.defineProperty(GLTextureWrapper.prototype, "image", {
+ /**
+ * The image wrapped by this wrapper.
+ * @property image
+ * @type HTMLImageElement
+ * @public
+ */
get: function () {
return (this._image);
},
@@ -15453,7 +15457,6 @@ var Kiwi;
enumerable: true,
configurable: true
});
- //force : if true then other textures will be removed until there is room.
/**
* Creates a webgl texture object
* @method createTexture
@@ -16273,15 +16276,15 @@ var Kiwi;
(function (Renderers) {
var Renderer = (function () {
/**
- * Base class for WebGL Renderers. Not for instantiation.
- * @class Renderer
- * @constructor
- * @namespace Kiwi.Renderers
- * @param gl {WebGLRenderingContext}
- * @param shaderManager {Kiwi.Shaders.ShaderManager}
- * @param [params=null] {object}
- * @return {Kiwi.Renderers.Renderer}
- */
+ * Base class for WebGL Renderers. Not for instantiation.
+ * @class Renderer
+ * @constructor
+ * @namespace Kiwi.Renderers
+ * @param gl {WebGLRenderingContext}
+ * @param shaderManager {Kiwi.Shaders.ShaderManager}
+ * @param [params=null] {object}
+ * @return {Kiwi.Renderers.Renderer}
+ */
function Renderer(gl, shaderManager, isBatchRenderer) {
if (isBatchRenderer === void 0) { isBatchRenderer = false; }
/**
@@ -16664,12 +16667,12 @@ var Kiwi;
}
};
/**
- * Applies a single uniforms to the uploaded program
- * @method applyUniform
- * @param gl {WebGLRenderingCotext}
- * @param name {string}
- * @public
- */
+ * Applies a single uniforms to the uploaded program
+ * @method applyUniform
+ * @param gl {WebGLRenderingCotext}
+ * @param name {string}
+ * @public
+ */
ShaderPair.prototype.applyUniform = function (gl, name) {
var u = this.uniforms[name];
if (this.uniforms[name].dirty) {
@@ -26686,6 +26689,12 @@ var Kiwi;
* @public
*/
this.masterGain = null;
+ /**
+ * Sound buffer
+ * @property _unlockedSource
+ * @type {any}
+ * @private
+ */
this._unlockedSource = null;
this._game = game;
}
View
12 docs/classes/Kiwi.CameraManager.html
@@ -809,7 +809,7 @@ <h3 class="name"><code>remove</code></h3>
- <a href="../files/src_core_CameraManager.ts.html#l105"><code>src&#x2F;core&#x2F;CameraManager.ts:105</code></a>
+ <a href="../files/src_core_CameraManager.ts.html#l103"><code>src&#x2F;core&#x2F;CameraManager.ts:103</code></a>
</p>
@@ -903,7 +903,7 @@ <h3 class="name"><code>removeAll</code></h3>
- <a href="../files/src_core_CameraManager.ts.html#l160"><code>src&#x2F;core&#x2F;CameraManager.ts:160</code></a>
+ <a href="../files/src_core_CameraManager.ts.html#l157"><code>src&#x2F;core&#x2F;CameraManager.ts:157</code></a>
</p>
@@ -960,7 +960,7 @@ <h3 class="name"><code>render</code></h3>
- <a href="../files/src_core_CameraManager.ts.html#l142"><code>src&#x2F;core&#x2F;CameraManager.ts:142</code></a>
+ <a href="../files/src_core_CameraManager.ts.html#l139"><code>src&#x2F;core&#x2F;CameraManager.ts:139</code></a>
</p>
@@ -1017,7 +1017,7 @@ <h3 class="name"><code>update</code></h3>
- <a href="../files/src_core_CameraManager.ts.html#l125"><code>src&#x2F;core&#x2F;CameraManager.ts:125</code></a>
+ <a href="../files/src_core_CameraManager.ts.html#l122"><code>src&#x2F;core&#x2F;CameraManager.ts:122</code></a>
</p>
@@ -1074,7 +1074,7 @@ <h3 class="name"><code>zeroAllCameras</code></h3>
- <a href="../files/src_core_CameraManager.ts.html#l169"><code>src&#x2F;core&#x2F;CameraManager.ts:169</code></a>
+ <a href="../files/src_core_CameraManager.ts.html#l166"><code>src&#x2F;core&#x2F;CameraManager.ts:166</code></a>
</p>
@@ -1143,7 +1143,7 @@ <h3 class="name"><code>zeroCamera</code></h3>
- <a href="../files/src_core_CameraManager.ts.html#l183"><code>src&#x2F;core&#x2F;CameraManager.ts:183</code></a>
+ <a href="../files/src_core_CameraManager.ts.html#l180"><code>src&#x2F;core&#x2F;CameraManager.ts:180</code></a>
</p>
View
4 docs/classes/Kiwi.ComponentManager.html
@@ -1341,7 +1341,7 @@ <h3 class="name"><code>postRender</code></h3>
- <a href="../files/src_core_ComponentManager.ts.html#l285"><code>src&#x2F;core&#x2F;ComponentManager.ts:285</code></a>
+ <a href="../files/src_core_ComponentManager.ts.html#l283"><code>src&#x2F;core&#x2F;ComponentManager.ts:283</code></a>
</p>
@@ -1925,7 +1925,7 @@ <h3 class="name"><code>render</code></h3>
- <a href="../files/src_core_ComponentManager.ts.html#l270"><code>src&#x2F;core&#x2F;ComponentManager.ts:270</code></a>
+ <a href="../files/src_core_ComponentManager.ts.html#l269"><code>src&#x2F;core&#x2F;ComponentManager.ts:269</code></a>
</p>
View
58 docs/classes/Kiwi.Components.ArcadePhysics.html
@@ -1146,7 +1146,7 @@ <h3 class="name"><code>collide</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1113"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1113</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1111"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1111</code></a>
</p>
@@ -1300,7 +1300,7 @@ <h3 class="name"><code>collideGroup</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1129"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1129</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1127"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1127</code></a>
</p>
@@ -1453,7 +1453,7 @@ <h3 class="name"><code>collideGroupGroup</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1147"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1147</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1145"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1145</code></a>
</p>
@@ -1612,7 +1612,7 @@ <h3 class="name"><code>computeVelocity</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l982"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:982</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l980"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:980</code></a>
</p>
@@ -1758,7 +1758,7 @@ <h3 class="name"><code>destroy</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1073"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1073</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1071"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1071</code></a>
</p>
@@ -1819,7 +1819,7 @@ <h3 class="name"><code>objType</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1088"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1088</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1086"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1086</code></a>
</p>
@@ -1918,7 +1918,7 @@ <h3 class="name"><code>overlaps</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1171"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1171</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1169"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1169</code></a>
</p>
@@ -2071,7 +2071,7 @@ <h3 class="name"><code>overlaps</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1207"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1207</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1205"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1205</code></a>
</p>
@@ -2217,7 +2217,7 @@ <h3 class="name"><code>overlaps</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l865"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:865</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l863"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:863</code></a>
</p>
@@ -2348,7 +2348,7 @@ <h3 class="name"><code>overlapsArray</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l935"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:935</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l933"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:933</code></a>
</p>
@@ -2486,7 +2486,7 @@ <h3 class="name"><code>overlapsArrayGroup</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1239"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1239</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1237"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1237</code></a>
</p>
@@ -2632,7 +2632,7 @@ <h3 class="name"><code>overlapsGroup</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l900"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:900</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l898"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:898</code></a>
</p>
@@ -2770,7 +2770,7 @@ <h3 class="name"><code>overlapsObjectGroup</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1189"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1189</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1187"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1187</code></a>
</p>
@@ -2920,7 +2920,7 @@ <h3 class="name"><code>overlapsTiles</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l835"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:835</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l833"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:833</code></a>
</p>
@@ -3344,7 +3344,7 @@ <h3 class="name"><code>separateTilesX</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l654"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:654</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l652"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:652</code></a>
</p>
@@ -3499,7 +3499,7 @@ <h3 class="name"><code>separateTilesY</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l742"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:742</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l740"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:740</code></a>
</p>
@@ -4366,7 +4366,7 @@ <h3 class="name"><code>update</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1051"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1051</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1049"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1049</code></a>
</p>
@@ -4423,7 +4423,7 @@ <h3 class="name"><code>updateMotion</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1016"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1016</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1014"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1014</code></a>
</p>
@@ -4909,7 +4909,7 @@ <h3 class="name"><code>ANY</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1379"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1379</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1377"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1377</code></a>
</p>
@@ -5008,7 +5008,7 @@ <h3 class="name"><code>CEILING</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1346"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1346</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1344"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1344</code></a>
</p>
@@ -5107,7 +5107,7 @@ <h3 class="name"><code>DOWN</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1324"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1324</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1322"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1322</code></a>
</p>
@@ -5253,7 +5253,7 @@ <h3 class="name"><code>FLOOR</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1357"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1357</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1355"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1355</code></a>
</p>
@@ -5443,7 +5443,7 @@ <h3 class="name"><code>LEFT</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1291"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1291</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1289"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1289</code></a>
</p>
@@ -5731,7 +5731,7 @@ <h3 class="name"><code>NONE</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1335"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1335</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1333"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1333</code></a>
</p>
@@ -5782,7 +5782,7 @@ <h3 class="name"><code>OVERLAP_BIAS</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1390"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1390</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1388"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1388</code></a>
</p>
@@ -5924,7 +5924,7 @@ <h3 class="name"><code>RIGHT</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1302"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1302</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1300"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1300</code></a>
</p>
@@ -6071,7 +6071,7 @@ <h3 class="name"><code>UP</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1313"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1313</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1311"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1311</code></a>
</p>
@@ -6122,7 +6122,7 @@ <h3 class="name"><code>updateInterval</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1280"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1280</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1278"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1278</code></a>
</p>
@@ -6221,7 +6221,7 @@ <h3 class="name"><code>WALL</code></h3>
- <a href="../files/src_components_ArcadePhysics.ts.html#l1368"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1368</code></a>
+ <a href="../files/src_components_ArcadePhysics.ts.html#l1366"><code>src&#x2F;components&#x2F;ArcadePhysics.ts:1366</code></a>
</p>
View
24 docs/classes/Kiwi.Components.Box.html
@@ -943,7 +943,7 @@ <h3 class="name"><code>_rotateHitbox</code></h3>
- <a href="../files/src_components_Box.ts.html#l394"><code>src&#x2F;components&#x2F;Box.ts:394</code></a>
+ <a href="../files/src_components_Box.ts.html#l393"><code>src&#x2F;components&#x2F;Box.ts:393</code></a>
</p>
@@ -1071,7 +1071,7 @@ <h3 class="name"><code>_rotateRect</code></h3>
- <a href="../files/src_components_Box.ts.html#l364"><code>src&#x2F;components&#x2F;Box.ts:364</code></a>
+ <a href="../files/src_components_Box.ts.html#l363"><code>src&#x2F;components&#x2F;Box.ts:363</code></a>
</p>
@@ -1179,7 +1179,7 @@ <h3 class="name"><code>destroy</code></h3>
- <a href="../files/src_components_Box.ts.html#l488"><code>src&#x2F;components&#x2F;Box.ts:488</code></a>
+ <a href="../files/src_components_Box.ts.html#l487"><code>src&#x2F;components&#x2F;Box.ts:487</code></a>
</p>
@@ -1252,7 +1252,7 @@ <h3 class="name"><code>draw</code></h3>
- <a href="../files/src_components_Box.ts.html#l425"><code>src&#x2F;components&#x2F;Box.ts:425</code></a>
+ <a href="../files/src_components_Box.ts.html#l424"><code>src&#x2F;components&#x2F;Box.ts:424</code></a>
</p>
@@ -1380,7 +1380,7 @@ <h3 class="name"><code>extents</code></h3>
- <a href="../files/src_components_Box.ts.html#l464"><code>src&#x2F;components&#x2F;Box.ts:464</code></a>
+ <a href="../files/src_components_Box.ts.html#l463"><code>src&#x2F;components&#x2F;Box.ts:463</code></a>
</p>
@@ -1900,7 +1900,7 @@ <h3 class="name"><code>_transformedBounds</code></h3>
- <a href="../files/src_components_Box.ts.html#l320"><code>src&#x2F;components&#x2F;Box.ts:320</code></a>
+ <a href="../files/src_components_Box.ts.html#l319"><code>src&#x2F;components&#x2F;Box.ts:319</code></a>
</p>
@@ -1947,7 +1947,7 @@ <h3 class="name"><code>_transformedCenter</code></h3>
- <a href="../files/src_components_Box.ts.html#l290"><code>src&#x2F;components&#x2F;Box.ts:290</code></a>
+ <a href="../files/src_components_Box.ts.html#l289"><code>src&#x2F;components&#x2F;Box.ts:289</code></a>
</p>
@@ -2041,7 +2041,7 @@ <h3 class="name"><code>_worldBounds</code></h3>
- <a href="../files/src_components_Box.ts.html#l329"><code>src&#x2F;components&#x2F;Box.ts:329</code></a>
+ <a href="../files/src_components_Box.ts.html#l328"><code>src&#x2F;components&#x2F;Box.ts:328</code></a>
</p>
@@ -2232,7 +2232,7 @@ <h3 class="name"><code>bounds</code></h3>
- <a href="../files/src_components_Box.ts.html#l338"><code>src&#x2F;components&#x2F;Box.ts:338</code></a>
+ <a href="../files/src_components_Box.ts.html#l337"><code>src&#x2F;components&#x2F;Box.ts:337</code></a>
</p>
@@ -2280,7 +2280,7 @@ <h3 class="name"><code>center</code></h3>
- <a href="../files/src_components_Box.ts.html#l299"><code>src&#x2F;components&#x2F;Box.ts:299</code></a>
+ <a href="../files/src_components_Box.ts.html#l298"><code>src&#x2F;components&#x2F;Box.ts:298</code></a>
</p>
@@ -2750,7 +2750,7 @@ <h3 class="name"><code>rawCenter</code></h3>
- <a href="../files/src_components_Box.ts.html#l275"><code>src&#x2F;components&#x2F;Box.ts:275</code></a>
+ <a href="../files/src_components_Box.ts.html#l274"><code>src&#x2F;components&#x2F;Box.ts:274</code></a>
</p>
@@ -2847,7 +2847,7 @@ <h3 class="name"><code>worldBounds</code></h3>
- <a href="../files/src_components_Box.ts.html#l351"><code>src&#x2F;components&#x2F;Box.ts:351</code></a>
+ <a href="../files/src_components_Box.ts.html#l350"><code>src&#x2F;components&#x2F;Box.ts:350</code></a>
</p>
View
2 docs/classes/Kiwi.Components.Input.html
@@ -1336,7 +1336,7 @@ <h3 class="name"><code>destory</code></h3>
- <a href="../files/src_components_Input.ts.html#l756"><code>src&#x2F;components&#x2F;Input.ts:756</code></a>
+ <a href="../files/src_components_Input.ts.html#l755"><code>src&#x2F;components&#x2F;Input.ts:755</code></a>
</p>
View
10 docs/classes/Kiwi.GameManager.html
@@ -368,7 +368,7 @@ <h2 class="off-left">APIs</h2>
<div class="foundat">
- Defined in: <a href="../files/src_Kiwi.ts.html#l307"><code>src&#x2F;Kiwi.ts:307</code></a>
+ Defined in: <a href="../files/src_Kiwi.ts.html#l306"><code>src&#x2F;Kiwi.ts:306</code></a>
</div>
@@ -650,7 +650,7 @@ <h3 class="name"><code>objType</code></h3>
- <a href="../files/src_Kiwi.ts.html#l316"><code>src&#x2F;Kiwi.ts:316</code></a>
+ <a href="../files/src_Kiwi.ts.html#l315"><code>src&#x2F;Kiwi.ts:315</code></a>
</p>
@@ -735,7 +735,7 @@ <h3 class="name"><code>register</code></h3>
- <a href="../files/src_Kiwi.ts.html#l335"><code>src&#x2F;Kiwi.ts:335</code></a>
+ <a href="../files/src_Kiwi.ts.html#l334"><code>src&#x2F;Kiwi.ts:334</code></a>
</p>
@@ -832,7 +832,7 @@ <h3 class="name"><code>total</code></h3>
- <a href="../files/src_Kiwi.ts.html#l348"><code>src&#x2F;Kiwi.ts:348</code></a>
+ <a href="../files/src_Kiwi.ts.html#l347"><code>src&#x2F;Kiwi.ts:347</code></a>
</p>
@@ -904,7 +904,7 @@ <h3 class="name"><code>_games</code></h3>
- <a href="../files/src_Kiwi.ts.html#l326"><code>src&#x2F;Kiwi.ts:326</code></a>
+ <a href="../files/src_Kiwi.ts.html#l325"><code>src&#x2F;Kiwi.ts:325</code></a>
</p>
View
2 docs/classes/Kiwi.GameObjects.Sprite.html
@@ -1699,7 +1699,7 @@ <h3 class="name"><code>renderGL</code></h3>
- <a href="../files/src_gameobjects_Sprite.ts.html#l164"><code>src&#x2F;gameobjects&#x2F;Sprite.ts:164</code></a>
+ <a href="../files/src_gameobjects_Sprite.ts.html#l162"><code>src&#x2F;gameobjects&#x2F;Sprite.ts:162</code></a>
</p>
View
26 docs/classes/Kiwi.GameObjects.Textfield.html
@@ -372,7 +372,7 @@ <h2 class="off-left">APIs</h2>
<div class="foundat">
- Defined in: <a href="../files/src_gameobjects_Textfield.ts.html#l493"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:493</code></a>
+ Defined in: <a href="../files/src_gameobjects_Textfield.ts.html#l486"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:486</code></a>
</div>
@@ -983,7 +983,7 @@ <h3 class="name"><code>_renderText</code></h3>
- <a href="../files/src_gameobjects_Textfield.ts.html#l306"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:306</code></a>
+ <a href="../files/src_gameobjects_Textfield.ts.html#l304"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:304</code></a>
</p>
@@ -1560,7 +1560,7 @@ <h3 class="name"><code>render</code></h3>
- <a href="../files/src_gameobjects_Textfield.ts.html#l379"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:379</code></a>
+ <a href="../files/src_gameobjects_Textfield.ts.html#l377"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:377</code></a>
</p>
@@ -1662,7 +1662,7 @@ <h3 class="name"><code>renderGL</code></h3>
- <a href="../files/src_gameobjects_Textfield.ts.html#l429"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:429</code></a>
+ <a href="../files/src_gameobjects_Textfield.ts.html#l425"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:425</code></a>
</p>
@@ -2185,7 +2185,7 @@ <h3 class="name"><code>_canvas</code></h3>
- <a href="../files/src_gameobjects_Textfield.ts.html#l272"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:272</code></a>
+ <a href="../files/src_gameobjects_Textfield.ts.html#l270"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:270</code></a>
</p>
@@ -2319,7 +2319,7 @@ <h3 class="name"><code>_ctx</code></h3>
- <a href="../files/src_gameobjects_Textfield.ts.html#l280"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:280</code></a>
+ <a href="../files/src_gameobjects_Textfield.ts.html#l278"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:278</code></a>
</p>
@@ -2768,7 +2768,7 @@ <h3 class="name"><code>_tempDirty</code></h3>
- <a href="../files/src_gameobjects_Textfield.ts.html#l288"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:288</code></a>
+ <a href="../files/src_gameobjects_Textfield.ts.html#l286"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:286</code></a>
</p>
@@ -3223,7 +3223,7 @@ <h3 class="name"><code>box</code></h3>
- <a href="../files/src_gameobjects_Textfield.ts.html#l296"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:296</code></a>
+ <a href="../files/src_gameobjects_Textfield.ts.html#l294"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:294</code></a>
</p>
@@ -3539,7 +3539,7 @@ <h3 class="name"><code>fontFamily</code></h3>
- <a href="../files/src_gameobjects_Textfield.ts.html#l212"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:212</code></a>
+ <a href="../files/src_gameobjects_Textfield.ts.html#l211"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:211</code></a>
</p>
@@ -4314,7 +4314,7 @@ <h3 class="name"><code>textAlign</code></h3>
- <a href="../files/src_gameobjects_Textfield.ts.html#l257"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:257</code></a>
+ <a href="../files/src_gameobjects_Textfield.ts.html#l255"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:255</code></a>
</p>
@@ -4733,7 +4733,7 @@ <h3 class="name"><code>y</code></h3>
- <a href="../files/src_gameobjects_Textfield.ts.html#l247"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:247</code></a>
+ <a href="../files/src_gameobjects_Textfield.ts.html#l245"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:245</code></a>
</p>
@@ -4784,7 +4784,7 @@ <h3 class="name"><code>TEXT_ALIGN_RIGHT</code></h3>
- <a href="../files/src_gameobjects_Textfield.ts.html#l237"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:237</code></a>
+ <a href="../files/src_gameobjects_Textfield.ts.html#l235"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:235</code></a>
</p>
@@ -4831,7 +4831,7 @@ <h3 class="name"><code>textAlign</code></h3>
- <a href="../files/src_gameobjects_Textfield.ts.html#l257"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:257</code></a>
+ <a href="../files/src_gameobjects_Textfield.ts.html#l255"><code>src&#x2F;gameobjects&#x2F;Textfield.ts:255</code></a>
</p>
View
26 docs/classes/Kiwi.GameObjects.Tilemap.TileMap.html
@@ -855,7 +855,7 @@ <h3 class="name"><code>_generateTypesFromTileset</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l238"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:238</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l237"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:237</code></a>
</p>
@@ -1170,7 +1170,7 @@ <h3 class="name"><code>createNewLayer</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l401"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:401</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l400"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:400</code></a>
</p>
@@ -1402,7 +1402,7 @@ <h3 class="name"><code>createNewObjectLayer</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l441"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:441</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l440"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:440</code></a>
</p>
@@ -1459,7 +1459,7 @@ <h3 class="name"><code>createNewObjectLayer</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l451"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:451</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l450"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:450</code></a>
</p>
@@ -1530,7 +1530,7 @@ <h3 class="name"><code>createTileType</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l312"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:312</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l311"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:311</code></a>
</p>
@@ -1640,7 +1640,7 @@ <h3 class="name"><code>createTileTypes</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l326"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:326</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l325"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:325</code></a>
</p>
@@ -1753,7 +1753,7 @@ <h3 class="name"><code>createTileTypesByRange</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l343"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:343</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l342"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:342</code></a>
</p>
@@ -1878,7 +1878,7 @@ <h3 class="name"><code>getLayer</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l483"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:483</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l482"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:482</code></a>
</p>
@@ -1985,7 +1985,7 @@ <h3 class="name"><code>getLayerByName</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l466"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:466</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l465"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:465</code></a>
</p>
@@ -2085,7 +2085,7 @@ <h3 class="name"><code>objType</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l495"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:495</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l494"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:494</code></a>
</p>
@@ -2172,7 +2172,7 @@ <h3 class="name"><code>setCell</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l367"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:367</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l366"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:366</code></a>
</p>
@@ -2291,7 +2291,7 @@ <h3 class="name"><code>setCellsByRange</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l378"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:378</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l377"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:377</code></a>
</p>
@@ -2432,7 +2432,7 @@ <h3 class="name"><code>setTo</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l290"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:290</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMap.ts.html#l289"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMap.ts:289</code></a>
</p>
View
26 docs/classes/Kiwi.GameObjects.Tilemap.TileMapLayer.html
@@ -1432,7 +1432,7 @@ <h3 class="name"><code>_calculateBoundaries</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l693"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:693</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l692"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:692</code></a>
</p>
@@ -1701,7 +1701,7 @@ <h3 class="name"><code>chartToScreen</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l757"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:757</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l756"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:756</code></a>
</p>
@@ -3653,7 +3653,7 @@ <h3 class="name"><code>render</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l792"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:792</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l791"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:791</code></a>
</p>
@@ -4277,7 +4277,7 @@ <h3 class="name"><code>screenToChart</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l774"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:774</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l773"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:773</code></a>
</p>
@@ -5294,7 +5294,7 @@ <h3 class="name"><code>_maxX</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l616"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:616</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l615"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:615</code></a>
</p>
@@ -5342,7 +5342,7 @@ <h3 class="name"><code>_maxY</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l625"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:625</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l624"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:624</code></a>
</p>
@@ -5434,7 +5434,7 @@ <h3 class="name"><code>_startX</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l634"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:634</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l633"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:633</code></a>
</p>
@@ -5482,7 +5482,7 @@ <h3 class="name"><code>_startY</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l643"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:643</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l642"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:642</code></a>
</p>
@@ -5577,7 +5577,7 @@ <h3 class="name"><code>_temptype</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l652"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:652</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l651"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:651</code></a>
</p>
@@ -6090,7 +6090,7 @@ <h3 class="name"><code>corner1</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l660"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:660</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l659"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:659</code></a>
</p>
@@ -6139,7 +6139,7 @@ <h3 class="name"><code>corner2</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l668"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:668</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l667"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:667</code></a>
</p>
@@ -6188,7 +6188,7 @@ <h3 class="name"><code>corner3</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l676"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:676</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l675"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:675</code></a>
</p>
@@ -6237,7 +6237,7 @@ <h3 class="name"><code>corner4</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l684"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:684</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileMapLayer.ts.html#l683"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileMapLayer.ts:683</code></a>
</p>
View
14 docs/classes/Kiwi.GameObjects.Tilemap.TileType.html
@@ -682,7 +682,7 @@ <h3 class="name"><code>objType</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l89"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:89</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l88"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:88</code></a>
</p>
@@ -752,7 +752,7 @@ <h3 class="name"><code>allowCollisions</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l34"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:34</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l33"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:33</code></a>
</p>
@@ -802,7 +802,7 @@ <h3 class="name"><code>cellIndex</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l80"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:80</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l79"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:79</code></a>
</p>
@@ -850,7 +850,7 @@ <h3 class="name"><code>index</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l71"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:71</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l70"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:70</code></a>
</p>
@@ -898,7 +898,7 @@ <h3 class="name"><code>offset</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l53"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:53</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l52"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:52</code></a>
</p>
@@ -946,7 +946,7 @@ <h3 class="name"><code>properties</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l44"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:44</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l43"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:43</code></a>
</p>
@@ -994,7 +994,7 @@ <h3 class="name"><code>tilemap</code></h3>
- <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l63"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:63</code></a>
+ <a href="../files/src_gameobjects_tilemap_TileType.ts.html#l62"><code>src&#x2F;gameobjects&#x2F;tilemap&#x2F;TileType.ts:62</code></a>
</p>
View
2 docs/classes/Kiwi.Geom.Ray.html
@@ -1449,7 +1449,7 @@ <h3 class="name"><code>toString</code></h3>
- <a href="../files/src_geom_Ray.ts.html#l200"><code>src&#x2F;geom&#x2F;Ray.ts:200</code></a>
+ <a href="../files/src_geom_Ray.ts.html#l197"><code>src&#x2F;geom&#x2F;Ray.ts:197</code></a>
</p>
View
2 docs/classes/Kiwi.Group.html
@@ -5346,7 +5346,7 @@ <h3 class="name"><code>_destroyRemoveChildren</code></h3>
- <a href="../files/src_core_Group.ts.html#l1302"><code>src&#x2F;core&#x2F;Group.ts:1302</code></a>
+ <a href="../files/src_core_Group.ts.html#l1301"><code>src&#x2F;core&#x2F;Group.ts:1301</code></a>
</p>
View
38 docs/classes/Kiwi.Input.Touch.html
@@ -968,7 +968,7 @@ <h3 class="name"><code>_cancelFinger</code></h3>
- <a href="../files/src_input_Touch.ts.html#l468"><code>src&#x2F;input&#x2F;Touch.ts:468</code></a>
+ <a href="../files/src_input_Touch.ts.html#l467"><code>src&#x2F;input&#x2F;Touch.ts:467</code></a>
</p>
@@ -1192,7 +1192,7 @@ <h3 class="name"><code>_enterFinger</code></h3>
- <a href="../files/src_input_Touch.ts.html#l495"><code>src&#x2F;input&#x2F;Touch.ts:495</code></a>
+ <a href="../files/src_input_Touch.ts.html#l493"><code>src&#x2F;input&#x2F;Touch.ts:493</code></a>
</p>
@@ -1304,7 +1304,7 @@ <h3 class="name"><code>_leaveFinger</code></h3>
- <a href="../files/src_input_Touch.ts.html#l516"><code>src&#x2F;input&#x2F;Touch.ts:516</code></a>
+ <a href="../files/src_input_Touch.ts.html#l514"><code>src&#x2F;input&#x2F;Touch.ts:514</code></a>
</p>
@@ -1416,7 +1416,7 @@ <h3 class="name"><code>_moveFinger</code></h3>
- <a href="../files/src_input_Touch.ts.html#l533"><code>src&#x2F;input&#x2F;Touch.ts:533</code></a>
+ <a href="../files/src_input_Touch.ts.html#l531"><code>src&#x2F;input&#x2F;Touch.ts:531</code></a>
</p>
@@ -1856,7 +1856,7 @@ <h3 class="name"><code>onPointerCancel</code></h3>
- <a href="../files/src_input_Touch.ts.html#l686"><code>src&#x2F;input&#x2F;Touch.ts:686</code></a>
+ <a href="../files/src_input_Touch.ts.html#l683"><code>src&#x2F;input&#x2F;Touch.ts:683</code></a>
</p>
@@ -1946,7 +1946,7 @@ <h3 class="name"><code>onPointerEnd</code></h3>
- <a href="../files/src_input_Touch.ts.html#l733"><code>src&#x2F;input&#x2F;Touch.ts:733</code></a>
+ <a href="../files/src_input_Touch.ts.html#l730"><code>src&#x2F;input&#x2F;Touch.ts:730</code></a>
</p>
@@ -2036,7 +2036,7 @@ <h3 class="name"><code>onPointerEnter</code></h3>
- <a href="../files/src_input_Touch.ts.html#l698"><code>src&#x2F;input&#x2F;Touch.ts:698</code></a>
+ <a href="../files/src_input_Touch.ts.html#l695"><code>src&#x2F;input&#x2F;Touch.ts:695</code></a>
</p>
@@ -2126,7 +2126,7 @@ <h3 class="name"><code>onPointerLeave</code></h3>
- <a href="../files/src_input_Touch.ts.html#l710"><code>src&#x2F;input&#x2F;Touch.ts:710</code></a>
+ <a href="../files/src_input_Touch.ts.html#l707"><code>src&#x2F;input&#x2F;Touch.ts:707</code></a>
</p>
@@ -2214,7 +2214,7 @@ <h3 class="name"><code>onPointerMove</code></h3>
- <a href="../files/src_input_Touch.ts.html#l722"><code>src&#x2F;input&#x2F;Touch.ts:722</code></a>
+ <a href="../files/src_input_Touch.ts.html#l719"><code>src&#x2F;input&#x2F;Touch.ts:719</code></a>
</p>
@@ -2304,7 +2304,7 @@ <h3 class="name"><code>onPointerStart</code></h3>
- <a href="../files/src_input_Touch.ts.html#l674"><code>src&#x2F;input&#x2F;Touch.ts:674</code></a>
+ <a href="../files/src_input_Touch.ts.html#l671"><code>src&#x2F;input&#x2F;Touch.ts:671</code></a>
</p>
@@ -2394,7 +2394,7 @@ <h3 class="name"><code>onTouchCancel</code></h3>
- <a href="../files/src_input_Touch.ts.html#l577"><code>src&#x2F;input&#x2F;Touch.ts:577</code></a>
+ <a href="../files/src_input_Touch.ts.html#l575"><code>src&#x2F;input&#x2F;Touch.ts:575</code></a>
</p>
@@ -2485,7 +2485,7 @@ <h3 class="name"><code>onTouchEnd</code></h3>
- <a href="../files/src_input_Touch.ts.html#l648"><code>src&#x2F;input&#x2F;Touch.ts:648</code></a>
+ <a href="../files/src_input_Touch.ts.html#l646"><code>src&#x2F;input&#x2F;Touch.ts:646</code></a>
</p>
@@ -2576,7 +2576,7 @@ <h3 class="name"><code>onTouchEnter</code></h3>
- <a href="../files/src_input_Touch.ts.html#l594"><code>src&#x2F;input&#x2F;Touch.ts:594</code></a>
+ <a href="../files/src_input_Touch.ts.html#l592"><code>src&#x2F;input&#x2F;Touch.ts:592</code></a>
</p>
@@ -2666,7 +2666,7 @@ <h3 class="name"><code>onTouchLeave</code></h3>
- <a href="../files/src_input_Touch.ts.html#l612"><code>src&#x2F;input&#x2F;Touch.ts:612</code></a>
+ <a href="../files/src_input_Touch.ts.html#l610"><code>src&#x2F;input&#x2F;Touch.ts:610</code></a>
</p>
@@ -2756,7 +2756,7 @@ <h3 class="name"><code>onTouchMove</code></h3>
- <a href="../files/src_input_Touch.ts.html#l631"><code>src&#x2F;input&#x2F;Touch.ts:631</code></a>
+ <a href="../files/src_input_Touch.ts.html#l629"><code>src&#x2F;input&#x2F;Touch.ts:629</code></a>
</p>
@@ -2846,7 +2846,7 @@ <h3 class="name"><code>onTouchStart</code></h3>
- <a href="../files/src_input_Touch.ts.html#l559"><code>src&#x2F;input&#x2F;Touch.ts:559</code></a>
+ <a href="../files/src_input_Touch.ts.html#l557"><code>src&#x2F;input&#x2F;Touch.ts:557</code></a>
</p>
@@ -2927,7 +2927,7 @@ <h3 class="name"><code>reset</code></h3>
- <a href="../files/src_input_Touch.ts.html#l800"><code>src&#x2F;input&#x2F;Touch.ts:800</code></a>
+ <a href="../files/src_input_Touch.ts.html#l797"><code>src&#x2F;input&#x2F;Touch.ts:797</code></a>
</p>
@@ -3041,7 +3041,7 @@ <h3 class="name"><code>stop</code></h3>
- <a href="../files/src_input_Touch.ts.html#l771"><code>src&#x2F;input&#x2F;Touch.ts:771</code></a>
+ <a href="../files/src_input_Touch.ts.html#l768"><code>src&#x2F;input&#x2F;Touch.ts:768</code></a>
</p>
@@ -3098,7 +3098,7 @@ <h3 class="name"><code>update</code></h3>
- <a href="../files/src_input_Touch.ts.html#l753"><code>src&#x2F;input&#x2F;Touch.ts:753</code></a>
+ <a href="../files/src_input_Touch.ts.html#l750"><code>src&#x2F;input&#x2F;Touch.ts:750</code></a>
</p>
View
24 docs/classes/Kiwi.PluginManager.html
@@ -707,7 +707,7 @@ <h3 class="name"><code>_createPlugins</code></h3>
- <a href="../files/src_core_PluginManager.ts.html#l241"><code>src&#x2F;core&#x2F;PluginManager.ts:241</code></a>
+ <a href="../files/src_core_PluginManager.ts.html#l239"><code>src&#x2F;core&#x2F;PluginManager.ts:239</code></a>
</p>
@@ -766,7 +766,7 @@ <h3 class="name"><code>boot</code></h3>
- <a href="../files/src_core_PluginManager.ts.html#l261"><code>src&#x2F;core&#x2F;PluginManager.ts:261</code></a>
+ <a href="../files/src_core_PluginManager.ts.html#l256"><code>src&#x2F;core&#x2F;PluginManager.ts:256</code></a>
</p>
@@ -833,7 +833,7 @@ <h3 class="name"><code>pluginIsRegistered</code></h3>
- <a href="../files/src_core_PluginManager.ts.html#l225"><code>src&#x2F;core&#x2F;PluginManager.ts:225</code></a>
+ <a href="../files/src_core_PluginManager.ts.html#l223"><code>src&#x2F;core&#x2F;PluginManager.ts:223</code></a>
</p>
@@ -925,7 +925,7 @@ <h3 class="name"><code>register</code></h3>
- <a href="../files/src_core_PluginManager.ts.html#l63"><code>src&#x2F;core&#x2F;PluginManager.ts:63</code></a>
+ <a href="../files/src_core_PluginManager.ts.html#l61"><code>src&#x2F;core&#x2F;PluginManager.ts:61</code></a>
</p>
@@ -1007,7 +1007,7 @@ <h3 class="name"><code>update</code></h3>
- <a href="../files/src_core_PluginManager.ts.html#l277"><code>src&#x2F;core&#x2F;PluginManager.ts:277</code></a>
+ <a href="../files/src_core_PluginManager.ts.html#l272"><code>src&#x2F;core&#x2F;PluginManager.ts:272</code></a>
</p>
@@ -1064,7 +1064,7 @@ <h3 class="name"><code>validatePlugins</code></h3>
- <a href="../files/src_core_PluginManager.ts.html#l130"><code>src&#x2F;core&#x2F;PluginManager.ts:130</code></a>
+ <a href="../files/src_core_PluginManager.ts.html#l128"><code>src&#x2F;core&#x2F;PluginManager.ts:128</code></a>
</p>
@@ -1142,7 +1142,7 @@ <h3 class="name"><code>validMinimumPluginVersionExists</code></h3>
- <a href="../files/src_core_PluginManager.ts.html#l208"><code>src&#x2F;core&#x2F;PluginManager.ts:208</code></a>
+ <a href="../files/src_core_PluginManager.ts.html#l206"><code>src&#x2F;core&#x2F;PluginManager.ts:206</code></a>
</p>
@@ -1299,7 +1299,7 @@ <h3 class="name"><code>_bootObjects</code></h3>
- <a href="../files/src_core_PluginManager.ts.html#l122"><code>src&#x2F;core&#x2F;PluginManager.ts:122</code></a>
+ <a href="../files/src_core_PluginManager.ts.html#l120"><code>src&#x2F;core&#x2F;PluginManager.ts:120</code></a>
</p>
@@ -1346,7 +1346,7 @@ <h3 class="name"><code>_plugins</code></h3>
- <a href="../files/src_core_PluginManager.ts.html#l114"><code>src&#x2F;core&#x2F;PluginManager.ts:114</code></a>
+ <a href="../files/src_core_PluginManager.ts.html#l112"><code>src&#x2F;core&#x2F;PluginManager.ts:112</code></a>
</p>
@@ -1395,7 +1395,7 @@ <h3 class="name"><code>getAvailablePlugins</code></h3>
- <a href="../files/src_core_PluginManager.ts.html#l46"><code>src&#x2F;core&#x2F;PluginManager.ts:46</code></a>
+ <a href="../files/src_core_PluginManager.ts.html#l45"><code>src&#x2F;core&#x2F;PluginManager.ts:45</code></a>
</p>
@@ -1442,7 +1442,7 @@ <h3 class="name"><code>objType</code></h3>
- <a href="../files/src_core_PluginManager.ts.html#l96"><code>src&#x2F;core&#x2F;PluginManager.ts:96</code></a>
+ <a href="../files/src_core_PluginManager.ts.html#l94"><code>src&#x2F;core&#x2F;PluginManager.ts:94</code></a>
</p>
@@ -1489,7 +1489,7 @@ <h3 class="name"><code>objType</code></h3>
- <a href="../files/src_core_PluginManager.ts.html#l106"><code>src&#x2F;core&#x2F;PluginManager.ts:106</code></a>
+ <a href="../files/src_core_PluginManager.ts.html#l104"><code>src&#x2F;core&#x2F;PluginManager.ts:104</code></a>
</p>
View
124 docs/classes/Kiwi.Renderers.GLRenderManager.html
@@ -372,7 +372,7 @@ <h2 class="off-left">APIs</h2>
<div class="foundat">
- Defined in: <a href="../files/src_render_GLRenderManager.ts.html#l18"><code>src&#x2F;render&#x2F;GLRenderManager.ts:18</code></a>
+ Defined in: <a href="../files/src_render_GLRenderManager.ts.html#l13"><code>src&#x2F;render&#x2F;GLRenderManager.ts:13</code></a>
</div>
@@ -446,7 +446,7 @@ <h3 class="name"><code>Kiwi.Renderers.GLRenderManager</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l18"><code>src&#x2F;render&#x2F;GLRenderManager.ts:18</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l13"><code>src&#x2F;render&#x2F;GLRenderManager.ts:13</code></a>
</p>
@@ -769,6 +769,13 @@ <h2 class="off-left">Item Index</h2>
</li>
<li class="index-item property public">
+ <a href="#property_camMatrix">camMatrix</a>
+
+
+
+ </li>
+
+ <li class="index-item property public">
<a href="#property_numDrawCalls">numDrawCalls</a>
@@ -823,7 +830,7 @@ <h3 class="name"><code>_init</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l294"><code>src&#x2F;render&#x2F;GLRenderManager.ts:294</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l292"><code>src&#x2F;render&#x2F;GLRenderManager.ts:292</code></a>
</p>
@@ -899,7 +906,7 @@ <h3 class="name"><code>_switchBlendMode</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l655"><code>src&#x2F;render&#x2F;GLRenderManager.ts:655</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l653"><code>src&#x2F;render&#x2F;GLRenderManager.ts:653</code></a>
</p>
@@ -1012,7 +1019,7 @@ <h3 class="name"><code>_switchRenderer</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l630"><code>src&#x2F;render&#x2F;GLRenderManager.ts:630</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l628"><code>src&#x2F;render&#x2F;GLRenderManager.ts:628</code></a>
</p>
@@ -1123,7 +1130,7 @@ <h3 class="name"><code>_switchTexture</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l643"><code>src&#x2F;render&#x2F;GLRenderManager.ts:643</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l641"><code>src&#x2F;render&#x2F;GLRenderManager.ts:641</code></a>
</p>
@@ -1238,7 +1245,7 @@ <h3 class="name"><code>addSharedRenderer</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l182"><code>src&#x2F;render&#x2F;GLRenderManager.ts:182</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l180"><code>src&#x2F;render&#x2F;GLRenderManager.ts:180</code></a>
</p>
@@ -1374,7 +1381,7 @@ <h3 class="name"><code>addSharedRendererClone</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l206"><code>src&#x2F;render&#x2F;GLRenderManager.ts:206</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l204"><code>src&#x2F;render&#x2F;GLRenderManager.ts:204</code></a>
</p>
@@ -1518,7 +1525,7 @@ <h3 class="name"><code>addTexture</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l156"><code>src&#x2F;render&#x2F;GLRenderManager.ts:156</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l154"><code>src&#x2F;render&#x2F;GLRenderManager.ts:154</code></a>
</p>
@@ -1613,7 +1620,7 @@ <h3 class="name"><code>boot</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l41"><code>src&#x2F;render&#x2F;GLRenderManager.ts:41</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l35"><code>src&#x2F;render&#x2F;GLRenderManager.ts:35</code></a>
</p>
@@ -1670,7 +1677,7 @@ <h3 class="name"><code>collateBatches</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l528"><code>src&#x2F;render&#x2F;GLRenderManager.ts:528</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l526"><code>src&#x2F;render&#x2F;GLRenderManager.ts:526</code></a>
</p>
@@ -1727,7 +1734,7 @@ <h3 class="name"><code>collateChild</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l503"><code>src&#x2F;render&#x2F;GLRenderManager.ts:503</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l501"><code>src&#x2F;render&#x2F;GLRenderManager.ts:501</code></a>
</p>
@@ -1784,7 +1791,7 @@ <h3 class="name"><code>collateRenderSequence</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l492"><code>src&#x2F;render&#x2F;GLRenderManager.ts:492</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l490"><code>src&#x2F;render&#x2F;GLRenderManager.ts:490</code></a>
</p>
@@ -1851,7 +1858,7 @@ <h3 class="name"><code>endState</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l407"><code>src&#x2F;render&#x2F;GLRenderManager.ts:407</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l405"><code>src&#x2F;render&#x2F;GLRenderManager.ts:405</code></a>
</p>
@@ -1931,7 +1938,7 @@ <h3 class="name"><code>initState</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l395"><code>src&#x2F;render&#x2F;GLRenderManager.ts:395</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l393"><code>src&#x2F;render&#x2F;GLRenderManager.ts:393</code></a>
</p>
@@ -1993,7 +2000,7 @@ <h3 class="name"><code>objType</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l54"><code>src&#x2F;render&#x2F;GLRenderManager.ts:54</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l48"><code>src&#x2F;render&#x2F;GLRenderManager.ts:48</code></a>
</p>
@@ -2074,7 +2081,7 @@ <h3 class="name"><code>render</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l419"><code>src&#x2F;render&#x2F;GLRenderManager.ts:419</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l417"><code>src&#x2F;render&#x2F;GLRenderManager.ts:417</code></a>
</p>
@@ -2179,7 +2186,7 @@ <h3 class="name"><code>renderBatch</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l569"><code>src&#x2F;render&#x2F;GLRenderManager.ts:569</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l567"><code>src&#x2F;render&#x2F;GLRenderManager.ts:567</code></a>
</p>
@@ -2305,7 +2312,7 @@ <h3 class="name"><code>renderBatches</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l557"><code>src&#x2F;render&#x2F;GLRenderManager.ts:557</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l555"><code>src&#x2F;render&#x2F;GLRenderManager.ts:555</code></a>
</p>
@@ -2424,7 +2431,7 @@ <h3 class="name"><code>renderEntity</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l605"><code>src&#x2F;render&#x2F;GLRenderManager.ts:605</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l603"><code>src&#x2F;render&#x2F;GLRenderManager.ts:603</code></a>
</p>
@@ -2556,7 +2563,7 @@ <h3 class="name"><code>requestRendererInstance</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l261"><code>src&#x2F;render&#x2F;GLRenderManager.ts:261</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l259"><code>src&#x2F;render&#x2F;GLRenderManager.ts:259</code></a>
</p>
@@ -2689,7 +2696,7 @@ <h3 class="name"><code>requestSharedRenderer</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l235"><code>src&#x2F;render&#x2F;GLRenderManager.ts:235</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l233"><code>src&#x2F;render&#x2F;GLRenderManager.ts:233</code></a>
</p>
@@ -2826,7 +2833,7 @@ <h3 class="name"><code>scaleViewport</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l347"><code>src&#x2F;render&#x2F;GLRenderManager.ts:347</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l345"><code>src&#x2F;render&#x2F;GLRenderManager.ts:345</code></a>
</p>
@@ -2969,7 +2976,7 @@ <h3 class="name"><code>setupGLState</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l618"><code>src&#x2F;render&#x2F;GLRenderManager.ts:618</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l616"><code>src&#x2F;render&#x2F;GLRenderManager.ts:616</code></a>
</p>
@@ -3050,7 +3057,7 @@ <h3 class="name"><code>_currentBlendMode</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l107"><code>src&#x2F;render&#x2F;GLRenderManager.ts:107</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l101"><code>src&#x2F;render&#x2F;GLRenderManager.ts:101</code></a>
</p>
@@ -3099,7 +3106,7 @@ <h3 class="name"><code>_currentRenderer</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l99"><code>src&#x2F;render&#x2F;GLRenderManager.ts:99</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l93"><code>src&#x2F;render&#x2F;GLRenderManager.ts:93</code></a>
</p>
@@ -3146,7 +3153,7 @@ <h3 class="name"><code>_currentTextureAtlas</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l148"><code>src&#x2F;render&#x2F;GLRenderManager.ts:148</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l146"><code>src&#x2F;render&#x2F;GLRenderManager.ts:146</code></a>
</p>
@@ -3193,7 +3200,7 @@ <h3 class="name"><code>_entityCount</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l116"><code>src&#x2F;render&#x2F;GLRenderManager.ts:116</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l110"><code>src&#x2F;render&#x2F;GLRenderManager.ts:110</code></a>
</p>
@@ -3242,7 +3249,7 @@ <h3 class="name"><code>_game</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l64"><code>src&#x2F;render&#x2F;GLRenderManager.ts:64</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l58"><code>src&#x2F;render&#x2F;GLRenderManager.ts:58</code></a>
</p>
@@ -3289,7 +3296,7 @@ <h3 class="name"><code>_maxItems</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l134"><code>src&#x2F;render&#x2F;GLRenderManager.ts:134</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l128"><code>src&#x2F;render&#x2F;GLRenderManager.ts:128</code></a>
</p>
@@ -3339,7 +3346,7 @@ <h3 class="name"><code>_shaderManager</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l80"><code>src&#x2F;render&#x2F;GLRenderManager.ts:80</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l74"><code>src&#x2F;render&#x2F;GLRenderManager.ts:74</code></a>
</p>
@@ -3386,7 +3393,7 @@ <h3 class="name"><code>_sharedRenderers</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l167"><code>src&#x2F;render&#x2F;GLRenderManager.ts:167</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l165"><code>src&#x2F;render&#x2F;GLRenderManager.ts:165</code></a>
</p>
@@ -3439,7 +3446,7 @@ <h3 class="name"><code>_stageResolution</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l91"><code>src&#x2F;render&#x2F;GLRenderManager.ts:91</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l85"><code>src&#x2F;render&#x2F;GLRenderManager.ts:85</code></a>
</p>
@@ -3486,7 +3493,7 @@ <h3 class="name"><code>_textureManager</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l72"><code>src&#x2F;render&#x2F;GLRenderManager.ts:72</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l66"><code>src&#x2F;render&#x2F;GLRenderManager.ts:66</code></a>
</p>
@@ -3508,6 +3515,53 @@ <h3 class="name"><code>_textureManager</code></h3>
</div>
+ <div id="property_camMatrix" class="property item public">
+ <h3 class="name"><code>camMatrix</code></h3>
+ <span class="type">Float32Array</span>
+
+
+
+
+ <span class="flag public">public</span>
+
+
+
+
+
+
+ <div class="meta">
+
+
+
+ <p>
+
+ Defined in
+
+
+
+
+ <a href="../files/src_render_GLRenderManager.ts.html#l138"><code>src&#x2F;render&#x2F;GLRenderManager.ts:138</code></a>
+
+ </p>
+
+
+
+
+ </div>
+
+ <div class="description">
+ <p>Camera matrix used on graphics card</p>
+
+ </div>
+
+
+
+
+
+
+</div>
+
+
<div id="property_numDrawCalls" class="property item public">
<h3 class="name"><code>numDrawCalls</code></h3>
<span class="type">Number</span>
@@ -3533,7 +3587,7 @@ <h3 class="name"><code>numDrawCalls</code></h3>
- <a href="../files/src_render_GLRenderManager.ts.html#l125"><code>src&#x2F;render&#x2F;GLRenderManager.ts:125</code></a>
+ <a href="../files/src_render_GLRenderManager.ts.html#l119"><code>src&#x2F;render&#x2F;GLRenderManager.ts:119</code></a>
</p>
View
34 docs/classes/Kiwi.Renderers.GLTextureManager.html
@@ -368,7 +368,7 @@ <h2 class="off-left">APIs</h2>
<div class="foundat">
- Defined in: <a href="../files/src_render_GLTextureManager.ts.html#l13"><code>src&#x2F;render&#x2F;GLTextureManager.ts:13</code></a>
+ Defined in: <a href="../files/src_render_GLTextureManager.ts.html#l12"><code>src&#x2F;render&#x2F;GLTextureManager.ts:12</code></a>
</div>
@@ -428,7 +428,7 @@ <h3 class="name"><code>Kiwi.Renderers.GLTextureManager</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l13"><code>src&#x2F;render&#x2F;GLTextureManager.ts:13</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l12"><code>src&#x2F;render&#x2F;GLTextureManager.ts:12</code></a>
</p>
@@ -663,7 +663,7 @@ <h3 class="name"><code>_addTextureToCache</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l84"><code>src&#x2F;render&#x2F;GLTextureManager.ts:84</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l83"><code>src&#x2F;render&#x2F;GLTextureManager.ts:83</code></a>
</p>
@@ -759,7 +759,7 @@ <h3 class="name"><code>_deleteTexture</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l94"><code>src&#x2F;render&#x2F;GLTextureManager.ts:94</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l93"><code>src&#x2F;render&#x2F;GLTextureManager.ts:93</code></a>
</p>
@@ -874,7 +874,7 @@ <h3 class="name"><code>_freeSpace</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l230"><code>src&#x2F;render&#x2F;GLTextureManager.ts:230</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l228"><code>src&#x2F;render&#x2F;GLTextureManager.ts:228</code></a>
</p>
@@ -1004,7 +1004,7 @@ <h3 class="name"><code>_uploadTexture</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l108"><code>src&#x2F;render&#x2F;GLTextureManager.ts:108</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l107"><code>src&#x2F;render&#x2F;GLTextureManager.ts:107</code></a>
</p>
@@ -1121,7 +1121,7 @@ <h3 class="name"><code>clearTextures</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l171"><code>src&#x2F;render&#x2F;GLTextureManager.ts:171</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l170"><code>src&#x2F;render&#x2F;GLTextureManager.ts:170</code></a>
</p>
@@ -1217,7 +1217,7 @@ <h3 class="name"><code>registerTextureWrapper</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l155"><code>src&#x2F;render&#x2F;GLTextureManager.ts:155</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l154"><code>src&#x2F;render&#x2F;GLTextureManager.ts:154</code></a>
</p>
@@ -1330,7 +1330,7 @@ <h3 class="name"><code>uploadTexture</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l144"><code>src&#x2F;render&#x2F;GLTextureManager.ts:144</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l143"><code>src&#x2F;render&#x2F;GLTextureManager.ts:143</code></a>
</p>
@@ -1441,7 +1441,7 @@ <h3 class="name"><code>uploadTextureLibrary</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l129"><code>src&#x2F;render&#x2F;GLTextureManager.ts:129</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l128"><code>src&#x2F;render&#x2F;GLTextureManager.ts:128</code></a>
</p>
@@ -1562,7 +1562,7 @@ <h3 class="name"><code>useTexture</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l189"><code>src&#x2F;render&#x2F;GLTextureManager.ts:189</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l187"><code>src&#x2F;render&#x2F;GLTextureManager.ts:187</code></a>
</p>
@@ -1685,7 +1685,7 @@ <h3 class="name"><code>_textureWrapperCache</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l76"><code>src&#x2F;render&#x2F;GLTextureManager.ts:76</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l75"><code>src&#x2F;render&#x2F;GLTextureManager.ts:75</code></a>
</p>
@@ -1734,7 +1734,7 @@ <h3 class="name"><code>DEFAULT_MAX_TEX_MEM_MB</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l28"><code>src&#x2F;render&#x2F;GLTextureManager.ts:28</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l27"><code>src&#x2F;render&#x2F;GLTextureManager.ts:27</code></a>
</p>
@@ -1781,7 +1781,7 @@ <h3 class="name"><code>maxTextureMem</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l37"><code>src&#x2F;render&#x2F;GLTextureManager.ts:37</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l36"><code>src&#x2F;render&#x2F;GLTextureManager.ts:36</code></a>
</p>
@@ -1828,7 +1828,7 @@ <h3 class="name"><code>numTextureWrites</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l67"><code>src&#x2F;render&#x2F;GLTextureManager.ts:67</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l66"><code>src&#x2F;render&#x2F;GLTextureManager.ts:66</code></a>
</p>
@@ -1875,7 +1875,7 @@ <h3 class="name"><code>usedTextureMem</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l45"><code>src&#x2F;render&#x2F;GLTextureManager.ts:45</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l44"><code>src&#x2F;render&#x2F;GLTextureManager.ts:44</code></a>
</p>
@@ -1922,7 +1922,7 @@ <h3 class="name"><code>usedTextureMem</code></h3>
- <a href="../files/src_render_GLTextureManager.ts.html#l56"><code>src&#x2F;render&#x2F;GLTextureManager.ts:56</code></a>
+ <a href="../files/src_render_GLTextureManager.ts.html#l55"><code>src&#x2F;render&#x2F;GLTextureManager.ts:55</code></a>
</p>
View
78 docs/classes/Kiwi.Renderers.GLTextureWrapper.html
@@ -368,7 +368,7 @@ <h2 class="off-left">APIs</h2>
<div class="foundat">
- Defined in: <a href="../files/src_render_GLTextureWrapper.ts.html#l13"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:13</code></a>
+ Defined in: <a href="../files/src_render_GLTextureWrapper.ts.html#l11"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:11</code></a>
</div>
@@ -444,7 +444,7 @@ <h3 class="name"><code>Kiwi.Renderers.GLTextureWrapper</code></h3>
- <a href="../files/src_render_GLTextureWrapper.ts.html#l13"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:13</code></a>
+ <a href="../files/src_render_GLTextureWrapper.ts.html#l11"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:11</code></a>
</p>
@@ -581,6 +581,13 @@ <h2 class="off-left">Item Index</h2>
<ul class="index-list properties">
+ <li class="index-item property private">
+ <a href="#property__image">_image</a>
+
+
+
+ </li>
+
<li class="index-item property">
<a href="#property_created">created</a>
@@ -681,7 +688,7 @@ <h3 class="name"><code>createTexture</code></h3>
- <a href="../files/src_render_GLTextureWrapper.ts.html#l98"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:98</code></a>
+ <a href="../files/src_render_GLTextureWrapper.ts.html#l101"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:101</code></a>
</p>
@@ -771,7 +778,7 @@ <h3 class="name"><code>deleteTexture</code></h3>
- <a href="../files/src_render_GLTextureWrapper.ts.html#l156"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:156</code></a>
+ <a href="../files/src_render_GLTextureWrapper.ts.html#l159"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:159</code></a>
</p>
@@ -861,7 +868,7 @@ <h3 class="name"><code>refreshTexture</code></h3>
- <a href="../files/src_render_GLTextureWrapper.ts.html#l145"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:145</code></a>
+ <a href="../files/src_render_GLTextureWrapper.ts.html#l148"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:148</code></a>
</p>
@@ -951,7 +958,7 @@ <h3 class="name"><code>uploadTexture</code></h3>
- <a href="../files/src_render_GLTextureWrapper.ts.html#l111"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:111</code></a>
+ <a href="../files/src_render_GLTextureWrapper.ts.html#l114"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:114</code></a>
</p>
@@ -1005,6 +1012,53 @@ <h3 class="name"><code>uploadTexture</code></h3>
<h2 class="off-left">Properties</h2>
+ <div id="property__image" class="property item private">
+ <h3 class="name"><code>_image</code></h3>
+ <span class="type">HTMLImageElement</span>
+
+
+
+
+ <span class="flag private">private</span>
+
+
+
+
+
+
+ <div class="meta">
+
+
+
+ <p>
+
+ Defined in
+
+
+
+
+ <a href="../files/src_render_GLTextureWrapper.ts.html#l77"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:77</code></a>
+
+ </p>
+
+
+
+
+ </div>
+
+ <div class="description">
+ <p>The image wrapped by this wrapper.</p>
+
+ </div>
+
+
+
+
+
+
+</div>
+
+
<div id="property_created" class="property item">
<h3 class="name"><code>created</code></h3>
<span class="type">Boolean</span>
@@ -1028,7 +1082,7 @@ <h3 class="name"><code>created</code></h3>
- <a href="../files/src_render_GLTextureWrapper.ts.html#l51"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:51</code></a>
+ <a href="../files/src_render_GLTextureWrapper.ts.html#l49"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:49</code></a>
</p>
@@ -1075,7 +1129,7 @@ <h3 class="name"><code>image</code></h3>
- <a href="../files/src_render_GLTextureWrapper.ts.html#l79"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:79</code></a>
+ <a href="../files/src_render_GLTextureWrapper.ts.html#l85"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:85</code></a>
</p>
@@ -1120,7 +1174,7 @@ <h3 class="name"><code>numBytes</code></h3>
- <a href="../files/src_render_GLTextureWrapper.ts.html#l40"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:40</code></a>
+ <a href="../files/src_render_GLTextureWrapper.ts.html#l38"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:38</code></a>
</p>
@@ -1167,7 +1221,7 @@ <h3 class="name"><code>texture</code></h3>
- <a href="../files/src_render_GLTextureWrapper.ts.html#l71"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:71</code></a>
+ <a href="../files/src_render_GLTextureWrapper.ts.html#l69"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:69</code></a>
</p>
@@ -1211,7 +1265,7 @@ <h3 class="name"><code>textureAtlas</code></h3>
- <a href="../files/src_render_GLTextureWrapper.ts.html#l32"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:32</code></a>
+ <a href="../files/src_render_GLTextureWrapper.ts.html#l30"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:30</code></a>
</p>
@@ -1256,7 +1310,7 @@ <h3 class="name"><code>uploaded</code></h3>
- <a href="../files/src_render_GLTextureWrapper.ts.html#l61"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:61</code></a>
+ <a href="../files/src_render_GLTextureWrapper.ts.html#l59"><code>src&#x2F;render&#x2F;GLTextureWrapper.ts:59</code></a>
</p>
View
30 docs/classes/Kiwi.Renderers.Renderer.html
@@ -368,7 +368,7 @@ <h2 class="off-left">APIs</h2>
<div class="foundat">
- Defined in: <a href="../files/src_render_renderers_Renderer.ts.html#l14"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:14</code></a>
+ Defined in: <a href="../files/src_render_renderers_Renderer.ts.html#l13"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:13</code></a>
</div>
@@ -450,7 +450,7 @@ <h3 class="name"><code>Kiwi.Renderers.Renderer</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l14"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:14</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l13"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:13</code></a>
</p>
@@ -731,7 +731,7 @@ <h3 class="name"><code>clear</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l86"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:86</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l85"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:85</code></a>
</p>
@@ -843,7 +843,7 @@ <h3 class="name"><code>disable</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l75"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:75</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l74"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:74</code></a>
</p>
@@ -949,7 +949,7 @@ <h3 class="name"><code>draw</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l96"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:96</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l95"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:95</code></a>
</p>
@@ -1045,7 +1045,7 @@ <h3 class="name"><code>enable</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l64"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:64</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l63"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:63</code></a>
</p>
@@ -1157,7 +1157,7 @@ <h3 class="name"><code>updateStageResolution</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l105"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:105</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l104"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:104</code></a>
</p>
@@ -1268,7 +1268,7 @@ <h3 class="name"><code>updateTextureSize</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l115"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:115</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l114"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:114</code></a>
</p>
@@ -1362,7 +1362,7 @@ <h3 class="name"><code>blendMode</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l135"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:135</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l134"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:134</code></a>
</p>
@@ -1411,7 +1411,7 @@ <h3 class="name"><code>camMatrix</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l40"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:40</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l39"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:39</code></a>
</p>
@@ -1458,7 +1458,7 @@ <h3 class="name"><code>isBatchRenderer</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l145"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:145</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l144"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:144</code></a>
</p>
@@ -1505,7 +1505,7 @@ <h3 class="name"><code>loaded</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l48"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:48</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l47"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:47</code></a>
</p>
@@ -1553,7 +1553,7 @@ <h3 class="name"><code>RENDERER_ID</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l31"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:31</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l30"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:30</code></a>
</p>
@@ -1600,7 +1600,7 @@ <h3 class="name"><code>shaderManager</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l56"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:56</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l55"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:55</code></a>
</p>
@@ -1647,7 +1647,7 @@ <h3 class="name"><code>shaderPair</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l126"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:126</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l125"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:125</code></a>
</p>
View
46 docs/classes/Kiwi.Renderers.TextureAtlasRenderer.html
@@ -372,7 +372,7 @@ <h2 class="off-left">APIs</h2>
<div class="foundat">
- Defined in: <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l13"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:13</code></a>
+ Defined in: <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l12"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:12</code></a>
</div>
@@ -454,7 +454,7 @@ <h3 class="name"><code>Kiwi.Renderers.TextureAtlasRenderer</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l13"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:13</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l12"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:12</code></a>
</p>
@@ -785,7 +785,7 @@ <h3 class="name"><code>_generateIndices</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l146"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:146</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l144"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:144</code></a>
</p>
@@ -887,7 +887,7 @@ <h3 class="name"><code>addToBatch</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l195"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:195</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l193"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:193</code></a>
</p>
@@ -1007,7 +1007,7 @@ <h3 class="name"><code>clear</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l115"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:115</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l114"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:114</code></a>
</p>
@@ -1097,7 +1097,7 @@ <h3 class="name"><code>concatBatch</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l230"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:230</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l228"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:228</code></a>
</p>
@@ -1187,7 +1187,7 @@ <h3 class="name"><code>disable</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l104"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:104</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l103"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:103</code></a>
</p>
@@ -1277,7 +1277,7 @@ <h3 class="name"><code>draw</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l126"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:126</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l125"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:125</code></a>
</p>
@@ -1373,7 +1373,7 @@ <h3 class="name"><code>enable</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l84"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:84</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l83"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:83</code></a>
</p>
@@ -1479,7 +1479,7 @@ <h3 class="name"><code>setShaderPair</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l183"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:183</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l181"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:181</code></a>
</p>
@@ -1577,7 +1577,7 @@ <h3 class="name"><code>updateStageResolution</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l161"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:161</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l159"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:159</code></a>
</p>
@@ -1688,7 +1688,7 @@ <h3 class="name"><code>updateTextureSize</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l172"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:172</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l170"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:170</code></a>
</p>
@@ -1782,7 +1782,7 @@ <h3 class="name"><code>_indexBuffer</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l76"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:76</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l75"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:75</code></a>
</p>
@@ -1829,7 +1829,7 @@ <h3 class="name"><code>_maxItems</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l60"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:60</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l59"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:59</code></a>
</p>
@@ -1876,7 +1876,7 @@ <h3 class="name"><code>_shaderPairName</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l51"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:51</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l50"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:50</code></a>
</p>
@@ -1925,7 +1925,7 @@ <h3 class="name"><code>_vertexBuffer</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l68"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:68</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l67"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:67</code></a>
</p>
@@ -1969,7 +1969,7 @@ <h3 class="name"><code>blendMode</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l135"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:135</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l134"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:134</code></a>
</p>
@@ -2015,7 +2015,7 @@ <h3 class="name"><code>camMatrix</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l40"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:40</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l39"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:39</code></a>
</p>
@@ -2059,7 +2059,7 @@ <h3 class="name"><code>isBatchRenderer</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l145"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:145</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l144"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:144</code></a>
</p>
@@ -2103,7 +2103,7 @@ <h3 class="name"><code>loaded</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l48"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:48</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l47"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:47</code></a>
</p>
@@ -2151,7 +2151,7 @@ <h3 class="name"><code>RENDERER_ID</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l34"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:34</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l33"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:33</code></a>
</p>
@@ -2195,7 +2195,7 @@ <h3 class="name"><code>shaderManager</code></h3>
- <a href="../files/src_render_renderers_Renderer.ts.html#l56"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:56</code></a>
+ <a href="../files/src_render_renderers_Renderer.ts.html#l55"><code>src&#x2F;render&#x2F;renderers&#x2F;Renderer.ts:55</code></a>
</p>
@@ -2242,7 +2242,7 @@ <h3 class="name"><code>shaderPair</code></h3>
- <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l43"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:43</code></a>
+ <a href="../files/src_render_renderers_TextureAtlasRenderer.ts.html#l42"><code>src&#x2F;render&#x2F;renderers&#x2F;TextureAtlasRenderer.ts:42</code></a>
</p>
View
20 docs/classes/Kiwi.Shaders.ShaderManager.html
@@ -372,7 +372,7 @@ <h2 class="off-left">APIs</h2>
<div class="foundat">
- Defined in: <a href="../files/src_render_GLShaderManager.ts.html#l25"><code>src&#x2F;render&#x2F;GLShaderManager.ts:25</code></a>
+ Defined in: <a href="../files/src_render_GLShaderManager.ts.html#l24"><code>src&#x2F;render&#x2F;GLShaderManager.ts:24</code></a>
</div>
@@ -435,7 +435,7 @@ <h3 class="name"><code>Kiwi.Shaders.ShaderManager</code></h3>
- <a href="../files/src_render_GLShaderManager.ts.html#l25"><code>src&#x2F;render&#x2F;GLShaderManager.ts:25</code></a>
+ <a href="../files/src_render_GLShaderManager.ts.html#l24"><code>src&#x2F;render&#x2F;GLShaderManager.ts:24</code></a>
</p>
@@ -629,7 +629,7 @@ <h3 class="name"><code>_addShader</code></h3>
- <a href="../files/src_render_GLShaderManager.ts.html#l130"><code>src&#x2F;render&#x2F;GLShaderManager.ts:130</code></a>
+ <a href="../files/src_render_GLShaderManager.ts.html#l127"><code>src&#x2F;render&#x2F;GLShaderManager.ts:127</code></a>
</p>
@@ -752,7 +752,7 @@ <h3 class="name"><code>_loadShader</code></h3>
- <a href="../files/src_render_GLShaderManager.ts.html#l143"><code>src&#x2F;render&#x2F;GLShaderManager.ts:143</code></a>
+ <a href="../files/src_render_GLShaderManager.ts.html#l140"><code>src&#x2F;render&#x2F;GLShaderManager.ts:140</code></a>
</p>
@@ -863,7 +863,7 @@ <h3 class="name"><code>_useShader</code></h3>
- <a href="../files/src_render_GLShaderManager.ts.html#l154"><code>src&#x2F;render&#x2F;GLShaderManager.ts:154</code></a>
+ <a href="../files/src_render_GLShaderManager.ts.html#l151"><code>src&#x2F;render&#x2F;GLShaderManager.ts:151</code></a>
</p>
@@ -974,7 +974,7 @@ <h3 class="name"><code>init</code></h3>
- <a href="../files/src_render_GLShaderManager.ts.html#l64"><code>src&#x2F;render&#x2F;GLShaderManager.ts:64</code></a>
+ <a href="../files/src_render_GLShaderManager.ts.html#l61"><code>src&#x2F;render&#x2F;GLShaderManager.ts:61</code></a>
</p>
@@ -1095,7 +1095,7 @@ <h3 class="name"><code>requestShader</code></h3>
- <a href="../files/src_render_GLShaderManager.ts.html#l76"><code>src&#x2F;render&#x2F;GLShaderManager.ts:76</code></a>
+ <a href="../files/src_render_GLShaderManager.ts.html#l73"><code>src&#x2F;render&#x2F;GLShaderManager.ts:73</code></a>
</p>
@@ -1242,7 +1242,7 @@ <h3 class="name"><code>shaderExists</code></h3>
- <a href="../files/src_render_GLShaderManager.ts.html#l118"><code>src&#x2F;render&#x2F;GLShaderManager.ts:118</code></a>
+ <a href="../files/src_render_GLShaderManager.ts.html#l115"><code>src&#x2F;render&#x2F;GLShaderManager.ts:115</code></a>
</p>
@@ -1350,7 +1350,7 @@ <h3 class="name"><code>_shaderPairs</code></h3>
- <a href="../files/src_render_GLShaderManager.ts.html#l43"><code>src&#x2F;render&#x2F;GLShaderManager.ts:43</code></a>
+ <a href="../files/src_render_GLShaderManager.ts.html#l40"><code>src&#x2F;render&#x2F;GLShaderManager.ts:40</code></a>
</p>
@@ -1397,7 +1397,7 @@ <h3 class="name"><code>currentShader</code></h3>
- <a href="../files/src_render_GLShaderManager.ts.html#l51"><code>src&#x2F;render&#x2F;GLShaderManager.ts:51</code></a>
+ <a href="../files/src_render_GLShaderManager.ts.html#l48"><code>src&#x2F;render&#x2F;GLShaderManager.ts:48</code></a>
</p>
View
32 docs/classes/Kiwi.Shaders.ShaderPair.html
@@ -676,7 +676,7 @@ <h3 class="name"><code>applyUniform</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l173"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:173</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l170"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:170</code></a>
</p>
@@ -781,7 +781,7 @@ <h3 class="name"><code>applyUniforms</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l161"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:161</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l158"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:158</code></a>
</p>
@@ -887,7 +887,7 @@ <h3 class="name"><code>attach</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l79"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:79</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l76"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:76</code></a>
</p>
@@ -1035,7 +1035,7 @@ <h3 class="name"><code>compile</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l96"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:96</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l93"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:93</code></a>
</p>
@@ -1167,7 +1167,7 @@ <h3 class="name"><code>init</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l33"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:33</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l31"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:31</code></a>
</p>
@@ -1257,7 +1257,7 @@ <h3 class="name"><code>initUniforms</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l188"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:188</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l185"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:185</code></a>
</p>
@@ -1353,7 +1353,7 @@ <h3 class="name"><code>setParam</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l149"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:149</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l146"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:146</code></a>
</p>
@@ -1447,7 +1447,7 @@ <h3 class="name"><code>attributes</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l124"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:124</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l121"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:121</code></a>
</p>
@@ -1494,7 +1494,7 @@ <h3 class="name"><code>fragShader</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l63"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:63</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l60"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:60</code></a>
</p>
@@ -1541,7 +1541,7 @@ <h3 class="name"><code>loaded</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l47"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:47</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l44"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:44</code></a>
</p>
@@ -1590,7 +1590,7 @@ <h3 class="name"><code>RENDERER_ID</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l24"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:24</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l22"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:22</code></a>
</p>
@@ -1636,7 +1636,7 @@ <h3 class="name"><code>shaderProgram</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l71"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:71</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l68"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:68</code></a>
</p>
@@ -1683,7 +1683,7 @@ <h3 class="name"><code>texture2DFrag</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l133"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:133</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l130"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:130</code></a>
</p>
@@ -1730,7 +1730,7 @@ <h3 class="name"><code>texture2DVert</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l141"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:141</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l138"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:138</code></a>
</p>
@@ -1777,7 +1777,7 @@ <h3 class="name"><code>uniforms</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l116"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:116</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l113"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:113</code></a>
</p>
@@ -1824,7 +1824,7 @@ <h3 class="name"><code>vertShader</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l55"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:55</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l52"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:52</code></a>
</p>
View
24 docs/classes/Kiwi.Shaders.TextureAtlasShader.html
@@ -682,7 +682,7 @@ <h3 class="name"><code>applyUniform</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l173"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:173</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l170"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:170</code></a>
</p>
@@ -784,7 +784,7 @@ <h3 class="name"><code>applyUniforms</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l161"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:161</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l158"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:158</code></a>
</p>
@@ -887,7 +887,7 @@ <h3 class="name"><code>attach</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l79"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:79</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l76"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:76</code></a>
</p>
@@ -1032,7 +1032,7 @@ <h3 class="name"><code>compile</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l96"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:96</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l93"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:93</code></a>
</p>
@@ -1267,7 +1267,7 @@ <h3 class="name"><code>initUniforms</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l188"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:188</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l185"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:185</code></a>
</p>
@@ -1360,7 +1360,7 @@ <h3 class="name"><code>setParam</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l149"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:149</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l146"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:146</code></a>
</p>
@@ -1498,7 +1498,7 @@ <h3 class="name"><code>fragShader</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l63"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:63</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l60"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:60</code></a>
</p>
@@ -1589,7 +1589,7 @@ <h3 class="name"><code>loaded</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l47"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:47</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l44"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:44</code></a>
</p>
@@ -1633,7 +1633,7 @@ <h3 class="name"><code>shaderProgram</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l71"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:71</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l68"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:68</code></a>
</p>
@@ -1677,7 +1677,7 @@ <h3 class="name"><code>texture2DFrag</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l133"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:133</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l130"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:130</code></a>
</p>
@@ -1721,7 +1721,7 @@ <h3 class="name"><code>texture2DVert</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l141"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:141</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l138"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:138</code></a>
</p>
@@ -1812,7 +1812,7 @@ <h3 class="name"><code>vertShader</code></h3>
- <a href="../files/src_render_shaders_ShaderPair.ts.html#l55"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:55</code></a>
+ <a href="../files/src_render_shaders_ShaderPair.ts.html#l52"><code>src&#x2F;render&#x2F;shaders&#x2F;ShaderPair.ts:52</code></a>
</p>
View
18 docs/classes/Kiwi.Sound.Audio.html
@@ -1135,7 +1135,7 @@ <h3 class="name"><code>addMarker</code></h3>
- <a href="../files/src_sound_Audio.ts.html#l553"><code>src&#x2F;sound&#x2F;Audio.ts:553</code></a>
+ <a href="../files/src_sound_Audio.ts.html#l552"><code>src&#x2F;sound&#x2F;Audio.ts:552</code></a>
</p>
@@ -1265,7 +1265,7 @@ <h3 class="name"><code>destroy</code></h3>
- <a href="../files/src_sound_Audio.ts.html#l814"><code>src&#x2F;sound&#x2F;Audio.ts:814</code></a>
+ <a href="../files/src_sound_Audio.ts.html#l813"><code>src&#x2F;sound&#x2F;Audio.ts:813</code></a>
</p>
@@ -1398,7 +1398,7 @@ <h3 class="name"><code>pause</code></h3>
- <a href="../files/src_sound_Audio.ts.html#l697"><code>src&#x2F;sound&#x2F;Audio.ts:697</code></a>
+ <a href="../files/src_sound_Audio.ts.html#l696"><code>src&#x2F;sound&#x2F;Audio.ts:696</code></a>
</p>
@@ -1471,7 +1471,7 @@ <h3 class="name"><code>play</code></h3>
- <a href="../files/src_sound_Audio.ts.html#l585"><code>src&#x2F;sound&#x2F;Audio.ts:585</code></a>
+ <a href="../files/src_sound_Audio.ts.html#l584"><code>src&#x2F;sound&#x2F;Audio.ts:584</code></a>
</p>
@@ -1580,7 +1580,7 @@ <h3 class="name"><code>removeMarker</code></h3>
- <a href="../files/src_sound_Audio.ts.html#l567"><code>src&#x2F;sound&#x2F;Audio.ts:567</code></a>
+ <a href="../files/src_sound_Audio.ts.html#l566"><code>src&#x2F;sound&#x2F;Audio.ts:566</code></a>
</p>
@@ -1661,7 +1661,7 @@ <h3 class="name"><code>resume</code></h3>
- <a href="../files/src_sound_Audio.ts.html#l710"><code>src&#x2F;sound&#x2F;Audio.ts:710</code></a>
+ <a href="../files/src_sound_Audio.ts.html#l709"><code>src&#x2F;sound&#x2F;Audio.ts:709</code></a>
</p>
@@ -1718,7 +1718,7 @@ <h3 class="name"><code>stop</code></h3>
- <a href="../files/src_sound_Audio.ts.html#l669"><code>src&#x2F;sound&#x2F;Audio.ts:669</code></a>
+ <a href="../files/src_sound_Audio.ts.html#l668"><code>src&#x2F;sound&#x2F;Audio.ts:668</code></a>
</p>
@@ -1775,7 +1775,7 @@ <h3 class="name"><code>update</code></h3>
- <a href="../files/src_sound_Audio.ts.html#l747"><code>src&#x2F;sound&#x2F;Audio.ts:747</code></a>
+ <a href="../files/src_sound_Audio.ts.html#l746"><code>src&#x2F;sound&#x2F;Audio.ts:746</code></a>
</p>
@@ -3067,7 +3067,7 @@ <h3 class="name"><code>mute</code></h3>
- <a href="../files/src_sound_Audio.ts.html#l523"><code>src&#x2F;sound&#x2F;Audio.ts:523</code></a>
+ <a href="../files/src_sound_Audio.ts.html#l522"><code>src&#x2F;sound&#x2F;Audio.ts:522</code></a>
</p>
View
82 docs/classes/Kiwi.Sound.AudioManager.html
@@ -653,6 +653,13 @@ <h2 class="off-left">Item Index</h2>
</li>
<li class="index-item property private">
+ <a href="#property__unlockedSource">_unlockedSource</a>
+
+
+
+ </li>
+
+ <li class="index-item property private">
<a href="#property__volume">_volume</a>
@@ -770,7 +777,7 @@ <h3 class="name"><code>_unlocked</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l211"><code>src&#x2F;sound&#x2F;AudioManager.ts:211</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l218"><code>src&#x2F;sound&#x2F;AudioManager.ts:218</code></a>
</p>
@@ -853,7 +860,7 @@ <h3 class="name"><code>add</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l352"><code>src&#x2F;sound&#x2F;AudioManager.ts:352</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l358"><code>src&#x2F;sound&#x2F;AudioManager.ts:358</code></a>
</p>
@@ -980,7 +987,7 @@ <h3 class="name"><code>boot</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l152"><code>src&#x2F;sound&#x2F;AudioManager.ts:152</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l159"><code>src&#x2F;sound&#x2F;AudioManager.ts:159</code></a>
</p>
@@ -1051,7 +1058,7 @@ <h3 class="name"><code>isRegistered</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l319"><code>src&#x2F;sound&#x2F;AudioManager.ts:319</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l325"><code>src&#x2F;sound&#x2F;AudioManager.ts:325</code></a>
</p>
@@ -1221,7 +1228,7 @@ <h3 class="name"><code>pauseAll</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l432"><code>src&#x2F;sound&#x2F;AudioManager.ts:432</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l438"><code>src&#x2F;sound&#x2F;AudioManager.ts:438</code></a>
</p>
@@ -1278,7 +1285,7 @@ <h3 class="name"><code>playAll</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l400"><code>src&#x2F;sound&#x2F;AudioManager.ts:400</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l406"><code>src&#x2F;sound&#x2F;AudioManager.ts:406</code></a>
</p>
@@ -1349,7 +1356,7 @@ <h3 class="name"><code>registerSound</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l336"><code>src&#x2F;sound&#x2F;AudioManager.ts:336</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l342"><code>src&#x2F;sound&#x2F;AudioManager.ts:342</code></a>
</p>
@@ -1460,7 +1467,7 @@ <h3 class="name"><code>remove</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l371"><code>src&#x2F;sound&#x2F;AudioManager.ts:371</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l377"><code>src&#x2F;sound&#x2F;AudioManager.ts:377</code></a>
</p>
@@ -1559,7 +1566,7 @@ <h3 class="name"><code>resumeAll</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l450"><code>src&#x2F;sound&#x2F;AudioManager.ts:450</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l455"><code>src&#x2F;sound&#x2F;AudioManager.ts:455</code></a>
</p>
@@ -1616,7 +1623,7 @@ <h3 class="name"><code>stopAll</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l415"><code>src&#x2F;sound&#x2F;AudioManager.ts:415</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l421"><code>src&#x2F;sound&#x2F;AudioManager.ts:421</code></a>
</p>
@@ -1673,7 +1680,7 @@ <h3 class="name"><code>update</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l468"><code>src&#x2F;sound&#x2F;AudioManager.ts:468</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l472"><code>src&#x2F;sound&#x2F;AudioManager.ts:472</code></a>
</p>
@@ -1942,6 +1949,53 @@ <h3 class="name"><code>_sounds</code></h3>
</div>
+ <div id="property__unlockedSource" class="property item private">
+ <h3 class="name"><code>_unlockedSource</code></h3>
+ <span class="type">Any</span>
+
+
+
+
+ <span class="flag private">private</span>
+
+
+
+
+
+
+ <div class="meta">
+
+
+
+ <p>
+
+ Defined in
+
+
+
+
+ <a href="../files/src_sound_AudioManager.ts.html#l141"><code>src&#x2F;sound&#x2F;AudioManager.ts:141</code></a>
+
+ </p>
+
+
+
+
+ </div>
+
+ <div class="description">
+ <p>Sound buffer</p>
+
+ </div>
+
+
+
+
+
+
+</div>
+
+
<div id="property__volume" class="property item private">
<h3 class="name"><code>_volume</code></h3>
<span class="type">Number</span>
@@ -2111,7 +2165,7 @@ <h3 class="name"><code>locked</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l142"><code>src&#x2F;sound&#x2F;AudioManager.ts:142</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l149"><code>src&#x2F;sound&#x2F;AudioManager.ts:149</code></a>
</p>
@@ -2205,7 +2259,7 @@ <h3 class="name"><code>mute</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l234"><code>src&#x2F;sound&#x2F;AudioManager.ts:234</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l241"><code>src&#x2F;sound&#x2F;AudioManager.ts:241</code></a>
</p>
@@ -2397,7 +2451,7 @@ <h3 class="name"><code>volume</code></h3>
- <a href="../files/src_sound_AudioManager.ts.html#l281"><code>src&#x2F;sound&#x2F;AudioManager.ts:281</code></a>
+ <a href="../files/src_sound_AudioManager.ts.html#l287"><code>src&#x2F;sound&#x2F;AudioManager.ts:287</code></a>
</p>
View
12 docs/classes/Kiwi.Stage.html
@@ -1248,7 +1248,7 @@ <h3 class="name"><code>_scaleContainer</code></h3>
- <a href="../files/src_core_Stage.ts.html#l797"><code>src&#x2F;core&#x2F;Stage.ts:797</code></a>
+ <a href="../files/src_core_Stage.ts.html#l794"><code>src&#x2F;core&#x2F;Stage.ts:794</code></a>
</p>
@@ -1497,7 +1497,7 @@ <h3 class="name"><code>clearDebugCanvas</code></h3>
- <a href="../files/src_core_Stage.ts.html#l774"><code>src&#x2F;core&#x2F;Stage.ts:774</code></a>
+ <a href="../files/src_core_Stage.ts.html#l771"><code>src&#x2F;core&#x2F;Stage.ts:771</code></a>
</p>
@@ -1580,7 +1580,7 @@ <h3 class="name"><code>createDebugCanvas</code></h3>
- <a href="../files/src_core_Stage.ts.html#l740"><code>src&#x2F;core&#x2F;Stage.ts:740</code></a>
+ <a href="../files/src_core_Stage.ts.html#l738"><code>src&#x2F;core&#x2F;Stage.ts:738</code></a>
</p>
@@ -1858,7 +1858,7 @@ <h3 class="name"><code>resize</code></h3>
- <a href="../files/src_core_Stage.ts.html#l699"><code>src&#x2F;core&#x2F;Stage.ts:699</code></a>
+ <a href="../files/src_core_Stage.ts.html#l697"><code>src&#x2F;core&#x2F;Stage.ts:697</code></a>
</p>
@@ -1982,7 +1982,7 @@ <h3 class="name"><code>setRGBColor</code></h3>
- <a href="../files/src_core_Stage.ts.html#l722"><code>src&#x2F;core&#x2F;Stage.ts:722</code></a>
+ <a href="../files/src_core_Stage.ts.html#l720"><code>src&#x2F;core&#x2F;Stage.ts:720</code></a>
</p>
@@ -2111,7 +2111,7 @@ <h3 class="name"><code>toggleDebugCanvas</code></h3>
- <a href="../files/src_core_Stage.ts.html#l788"><code>src&#x2F;core&#x2F;Stage.ts:788</code></a>
+ <a href="../files/src_core_Stage.ts.html#l785"><code>src&#x2F;core&#x2F;Stage.ts:785</code></a>
</p>
View
46 docs/classes/Kiwi.State.html
@@ -1280,7 +1280,7 @@ <h3 class="name"><code>_destroyChildren</code></h3>
- <a href="../files/src_core_State.ts.html#l466"><code>src&#x2F;core&#x2F;State.ts:466</code></a>
+ <a href="../files/src_core_State.ts.html#l458"><code>src&#x2F;core&#x2F;State.ts:458</code></a>
</p>
@@ -1380,7 +1380,7 @@ <h3 class="name"><code>addAudio</code></h3>
- <a href="../files/src_core_State.ts.html#l358"><code>src&#x2F;core&#x2F;State.ts:358</code></a>
+ <a href="../files/src_core_State.ts.html#l350"><code>src&#x2F;core&#x2F;State.ts:350</code></a>
</p>
@@ -2030,7 +2030,7 @@ <h3 class="name"><code>addImage</code></h3>
- <a href="../files/src_core_State.ts.html#l286"><code>src&#x2F;core&#x2F;State.ts:286</code></a>
+ <a href="../files/src_core_State.ts.html#l279"><code>src&#x2F;core&#x2F;State.ts:279</code></a>
</p>
@@ -2234,7 +2234,7 @@ <h3 class="name"><code>addJSON</code></h3>
- <a href="../files/src_core_State.ts.html#l344"><code>src&#x2F;core&#x2F;State.ts:344</code></a>
+ <a href="../files/src_core_State.ts.html#l336"><code>src&#x2F;core&#x2F;State.ts:336</code></a>
</p>
@@ -2424,7 +2424,7 @@ <h3 class="name"><code>addSpriteSheet</code></h3>
- <a href="../files/src_core_State.ts.html#l303"><code>src&#x2F;core&#x2F;State.ts:303</code></a>
+ <a href="../files/src_core_State.ts.html#l296"><code>src&#x2F;core&#x2F;State.ts:296</code></a>
</p>
@@ -2814,7 +2814,7 @@ <h3 class="name"><code>addTextureAtlas</code></h3>
- <a href="../files/src_core_State.ts.html#l327"><code>src&#x2F;core&#x2F;State.ts:327</code></a>
+ <a href="../files/src_core_State.ts.html#l319"><code>src&#x2F;core&#x2F;State.ts:319</code></a>
</p>
@@ -2972,7 +2972,7 @@ <h3 class="name"><code>addToTrackingList</code></h3>
- <a href="../files/src_core_State.ts.html#l389"><code>src&#x2F;core&#x2F;State.ts:389</code></a>
+ <a href="../files/src_core_State.ts.html#l381"><code>src&#x2F;core&#x2F;State.ts:381</code></a>
</p>
@@ -3859,7 +3859,7 @@ <h3 class="name"><code>create</code></h3>
- <a href="../files/src_core_State.ts.html#l208"><code>src&#x2F;core&#x2F;State.ts:208</code></a>
+ <a href="../files/src_core_State.ts.html#l206"><code>src&#x2F;core&#x2F;State.ts:206</code></a>
</p>
@@ -3952,7 +3952,7 @@ <h3 class="name"><code>destroy</code></h3>
- <a href="../files/src_core_State.ts.html#l441"><code>src&#x2F;core&#x2F;State.ts:441</code></a>
+ <a href="../files/src_core_State.ts.html#l433"><code>src&#x2F;core&#x2F;State.ts:433</code></a>
</p>
@@ -4038,7 +4038,7 @@ <h3 class="name"><code>destroyUnused</code></h3>
- <a href="../files/src_core_State.ts.html#l418"><code>src&#x2F;core&#x2F;State.ts:418</code></a>
+ <a href="../files/src_core_State.ts.html#l410"><code>src&#x2F;core&#x2F;State.ts:410</code></a>
</p>
@@ -5343,7 +5343,7 @@ <h3 class="name"><code>init</code></h3>
- <a href="../files/src_core_State.ts.html#l156"><code>src&#x2F;core&#x2F;State.ts:156</code></a>
+ <a href="../files/src_core_State.ts.html#l155"><code>src&#x2F;core&#x2F;State.ts:155</code></a>
</p>
@@ -5426,7 +5426,7 @@ <h3 class="name"><code>loadComplete</code></h3>
- <a href="../files/src_core_State.ts.html#l185"><code>src&#x2F;core&#x2F;State.ts:185</code></a>
+ <a href="../files/src_core_State.ts.html#l184"><code>src&#x2F;core&#x2F;State.ts:184</code></a>
</p>
@@ -5505,7 +5505,7 @@ <h3 class="name"><code>loadProgress</code></h3>
- <a href="../files/src_core_State.ts.html#l174"><code>src&#x2F;core&#x2F;State.ts:174</code></a>
+ <a href="../files/src_core_State.ts.html#l173"><code>src&#x2F;core&#x2F;State.ts:173</code></a>
</p>
@@ -5619,7 +5619,7 @@ <h3 class="name"><code>loadUpdate</code></h3>
- <a href="../files/src_core_State.ts.html#l192"><code>src&#x2F;core&#x2F;State.ts:192</code></a>
+ <a href="../files/src_core_State.ts.html#l191"><code>src&#x2F;core&#x2F;State.ts:191</code></a>
</p>
@@ -5823,7 +5823,7 @@ <h3 class="name"><code>postRender</code></h3>
- <a href="../files/src_core_State.ts.html#l264"><code>src&#x2F;core&#x2F;State.ts:264</code></a>
+ <a href="../files/src_core_State.ts.html#l257"><code>src&#x2F;core&#x2F;State.ts:257</code></a>
</p>
@@ -5880,7 +5880,7 @@ <h3 class="name"><code>postUpdate</code></h3>
- <a href="../files/src_core_State.ts.html#l252"><code>src&#x2F;core&#x2F;State.ts:252</code></a>
+ <a href="../files/src_core_State.ts.html#l247"><code>src&#x2F;core&#x2F;State.ts:247</code></a>
</p>
@@ -5938,7 +5938,7 @@ <h3 class="name"><code>preload</code></h3>
- <a href="../files/src_core_State.ts.html#l166"><code>src&#x2F;core&#x2F;State.ts:166</code></a>
+ <a href="../files/src_core_State.ts.html#l165"><code>src&#x2F;core&#x2F;State.ts:165</code></a>
</p>
@@ -5995,7 +5995,7 @@ <h3 class="name"><code>preUpdate</code></h3>
- <a href="../files/src_core_State.ts.html#l216"><code>src&#x2F;core&#x2F;State.ts:216</code></a>
+ <a href="../files/src_core_State.ts.html#l214"><code>src&#x2F;core&#x2F;State.ts:214</code></a>
</p>
@@ -6556,7 +6556,7 @@ <h3 class="name"><code>removeFromTrackingList</code></h3>
- <a href="../files/src_core_State.ts.html#l403"><code>src&#x2F;core&#x2F;State.ts:403</code></a>
+ <a href="../files/src_core_State.ts.html#l395"><code>src&#x2F;core&#x2F;State.ts:395</code></a>
</p>
@@ -7206,7 +7206,7 @@ <h3 class="name"><code>shutDown</code></h3>
- <a href="../files/src_core_State.ts.html#l271"><code>src&#x2F;core&#x2F;State.ts:271</code></a>
+ <a href="../files/src_core_State.ts.html#l264"><code>src&#x2F;core&#x2F;State.ts:264</code></a>
</p>
@@ -7519,7 +7519,7 @@ <h3 class="name"><code>update</code></h3>
- <a href="../files/src_core_State.ts.html#l227"><code>src&#x2F;core&#x2F;State.ts:227</code></a>
+ <a href="../files/src_core_State.ts.html#l223"><code>src&#x2F;core&#x2F;State.ts:223</code></a>
</p>
@@ -7618,7 +7618,7 @@ <h3 class="name"><code>_destroyRemoveChildren</code></h3>
- <a href="../files/src_core_Group.ts.html#l1302"><code>src&#x2F;core&#x2F;Group.ts:1302</code></a>
+ <a href="../files/src_core_Group.ts.html#l1301"><code>src&#x2F;core&#x2F;Group.ts:1301</code></a>
</p>
@@ -8909,7 +8909,7 @@ <h3 class="name"><code>trackingList</code></h3>
- <a href="../files/src_core_State.ts.html#l380"><code>src&#x2F;core&#x2F;State.ts:380</code></a>
+ <a href="../files/src_core_State.ts.html#l372"><code>src&#x2F;core&#x2F;State.ts:372</code></a>
</p>
View
8 docs/classes/Kiwi.StateManager.html
@@ -1542,7 +1542,7 @@ <h3 class="name"><code>onLoadComplete</code></h3>
- <a href="../files/src_core_StateManager.ts.html#l395"><code>src&#x2F;core&#x2F;StateManager.ts:395</code></a>
+ <a href="../files/src_core_StateManager.ts.html#l394"><code>src&#x2F;core&#x2F;StateManager.ts:394</code></a>
</p>
@@ -1734,7 +1734,7 @@ <h3 class="name"><code>postRender</code></h3>
- <a href="../files/src_core_StateManager.ts.html#l457"><code>src&#x2F;core&#x2F;StateManager.ts:457</code></a>
+ <a href="../files/src_core_StateManager.ts.html#l456"><code>src&#x2F;core&#x2F;StateManager.ts:456</code></a>
</p>
@@ -1791,7 +1791,7 @@ <h3 class="name"><code>rebuildLibraries</code></h3>
- <a href="../files/src_core_StateManager.ts.html#l413"><code>src&#x2F;core&#x2F;StateManager.ts:413</code></a>
+ <a href="../files/src_core_StateManager.ts.html#l412"><code>src&#x2F;core&#x2F;StateManager.ts:412</code></a>
</p>
@@ -2135,7 +2135,7 @@ <h3 class="name"><code>update</code></h3>
- <a href="../files/src_core_StateManager.ts.html#l428"><code>src&#x2F;core&#x2F;StateManager.ts:428</code></a>
+ <a href="../files/src_core_StateManager.ts.html#l427"><code>src&#x2F;core&#x2F;StateManager.ts:427</code></a>
</p>
View
702 docs/data.json
372 additions, 330 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
454 docs/files/src_Kiwi.ts.html
@@ -506,235 +506,233 @@ <h1 class="file-heading">File: src/Kiwi.ts</h1>
*/
module Kiwi {
-
- /**
- *
- * @property Log
- * @static
- * @type Kiwi.Utils.Log
- * @public
- */
- export var Log: Kiwi.Utils.Log = new Kiwi.Utils.Log();
-
- /**
- * The version of Kiwi that is currently being used.
- * @property VERSION
- * @static
- * @type string
- * @public
- */
- export var VERSION: string = &quot;1.2.0&quot;;
-
- //DIFFERENT RENDERER STATIC VARIABLES
- /**
- * A Static property that contains the number associated with the CANVAS RENDERER.
- * @property RENDERER_CANVAS
- * @static
- * @type number
- * @default 0
- * @public
- */
- export var RENDERER_CANVAS: number = 0;
-
- /**
- * A Static property that contains the number associated with the WEBGL RENDERER.
- * @property RENDERER_WEBGL
- * @static
- * @type number
- * @default 1
- * @public
- */
- export var RENDERER_WEBGL: number = 1;
-
- /**
- * A Static property that contains the number associated with RENDERER AUTODETECTION
- * @property RENDERER_AUTO
- * @static
- * @type number
- * @default 2
- * @public
- * @since 1.1.0
- */
- export var RENDERER_AUTO: number = 2;
-
- // DEVICE TARGET STATIC VARIABLES
- /**
- * Contains the number associated with the targetting of browsers.
- * @property TARGET_BROWSER
- * @static
- * @type number
- * @default 0
- * @public
- */
- export var TARGET_BROWSER: number = 0;
-
- /**
- * Contains the number associated with the targetting of CocoonJS.
- * @property TARGET_COCOON
- * @static
- * @type number
- * @default 1
- * @public
- */
- export var TARGET_COCOON: number = 1;
-
- //DEBUG OPTION STATIC VARIABLES
- /**
- * Contains the number that is used to turn the Debug options on.
- * @property DEBUG_ON
- * @static
- * @type number
- * @default 0
- * @public
- */
- export var DEBUG_ON: number = 0;
-
- /**
- * Contains the number that is used to turn the Debug options off.
- * @property DEBUG_OFF
- * @static
- * @type number
- * @default 1
- * @public
- */
- export var DEBUG_OFF: number = 1;
-
- /**
- * Contains the Device class that is used to determine which features are supported by the users browser.
- * @property DEVICE
- * @static
- * @type Device
- * @public
- */
- export var DEVICE: Kiwi.System.Device = null;
-
- //STATIC PROPERTIES FOR GENERAL OBJECT TYPE DETECTION
- /**
- * Contains a number that is used to identify objects that are a State.
- * @property STATE
- * @static
- * @type number
- * @default 0
- * @public
- */
- export var STATE: number = 0;
-
- /**
- * Contains a number that is used to identify objects that are a Group.
- * @property GROUP
- * @static
- * @type number
- * @default 2
- * @public
- */
- export var GROUP: number = 2;
-
- /**
- * Contains a number that is used to identify objects that are a Entity.
- * @property ENTITY
- * @static
- * @type number
- * @default 3
- * @public
- */
- export var ENTITY: number = 3;
-
- /**
- * Contains a number that is used to identify objects that are a Camera.
- * @property CAMERA
- * @static
- * @type number
- * @default 4
- * @public
- */
- export var CAMERA: number = 4;
-
- /**
- * Contains a number that is used to identify objects that are a HUD Widget.
- * @property HUD_WIDGET
- * @static
- * @type number
- * @default 5
- * @public
- */
- export var HUD_WIDGET: number = 5;
-
- /**
- * Contains a number that is used to identify objects that are a TILE_LAYER.
- * @property TILE_LAYER
- * @static
- * @type number
- * @default 6
- * @public
- */
- export var TILE_LAYER: number = 6;
-
-
- /**
- * The GameManager is used to maintain mulitple instances of Kiwi games within a single document.
- *
- * @class GameManager
- * @namespace Kiwi
- * @static
- */
- export class GameManager {
-
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;GameManager&quot;
- * @public
- */
- public objType() {
- return &quot;GameManager&quot;;
- }
-
- /**
- * A list of all of the games that are currently on this document.
- * @property _games
- * @static
- * @type Game[]
- * @private
- */
- private static _games: Kiwi.Game[] = [];
-
- /**
- * Used to register a new Game with this manager. Returns the new number of games that have been registered.
- * @method register
- * @param game {Game} The game you are wanting to register.
- * @return {Number] The new number of games registered.
- * @public
- */
- public static register(game: Kiwi.Game): number {
-
- return Kiwi.GameManager._games.push(game);
-
- }
-
- /**
- * Returns the total number of game that are currently registered with this GameManager.
- * @method total
- * @return {Number} Total number of registered games.
- * @public
- */
- public static total(): number {
- return Kiwi.GameManager._games.length;
- }
-
- }
-
-
- export var Plugins = {};
-
- export var extend:Function = function (d, b) {
- for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
- function __() { this.constructor = d; }
- __.prototype = b.prototype;
- d.prototype = new __();
- };
-
-}
+ /**
+ *
+ * @property Log
+ * @static
+ * @type Kiwi.Utils.Log
+ * @public
+ */
+ export var Log: Kiwi.Utils.Log = new Kiwi.Utils.Log();
+
+ /**
+ * The version of Kiwi that is currently being used.
+ * @property VERSION
+ * @static
+ * @type string
+ * @public
+ */
+ export var VERSION: string = &quot;1.2.0&quot;;
+
+ //DIFFERENT RENDERER STATIC VARIABLES
+ /**
+ * A Static property that contains the number associated with the CANVAS RENDERER.
+ * @property RENDERER_CANVAS
+ * @static
+ * @type number
+ * @default 0
+ * @public
+ */
+ export var RENDERER_CANVAS: number = 0;
+
+ /**
+ * A Static property that contains the number associated with the WEBGL RENDERER.
+ * @property RENDERER_WEBGL
+ * @static
+ * @type number
+ * @default 1
+ * @public
+ */
+ export var RENDERER_WEBGL: number = 1;
+
+ /**
+ * A Static property that contains the number associated with RENDERER AUTODETECTION
+ * @property RENDERER_AUTO
+ * @static
+ * @type number
+ * @default 2
+ * @public
+ * @since 1.1.0
+ */
+ export var RENDERER_AUTO: number = 2;
+
+ // DEVICE TARGET STATIC VARIABLES
+ /**
+ * Contains the number associated with the targetting of browsers.
+ * @property TARGET_BROWSER
+ * @static
+ * @type number
+ * @default 0
+ * @public
+ */
+ export var TARGET_BROWSER: number = 0;
+
+ /**
+ * Contains the number associated with the targetting of CocoonJS.
+ * @property TARGET_COCOON
+ * @static
+ * @type number
+ * @default 1
+ * @public
+ */
+ export var TARGET_COCOON: number = 1;
+
+ //DEBUG OPTION STATIC VARIABLES
+ /**
+ * Contains the number that is used to turn the Debug options on.
+ * @property DEBUG_ON
+ * @static
+ * @type number
+ * @default 0
+ * @public
+ */
+ export var DEBUG_ON: number = 0;
+
+ /**
+ * Contains the number that is used to turn the Debug options off.
+ * @property DEBUG_OFF
+ * @static
+ * @type number
+ * @default 1
+ * @public
+ */
+ export var DEBUG_OFF: number = 1;
+
+ /**
+ * Contains the Device class that is used to determine which features are supported by the users browser.
+ * @property DEVICE
+ * @static
+ * @type Device
+ * @public
+ */
+ export var DEVICE: Kiwi.System.Device = null;
+
+ //STATIC PROPERTIES FOR GENERAL OBJECT TYPE DETECTION
+ /**
+ * Contains a number that is used to identify objects that are a State.
+ * @property STATE
+ * @static
+ * @type number
+ * @default 0
+ * @public
+ */
+ export var STATE: number = 0;
+
+ /**
+ * Contains a number that is used to identify objects that are a Group.
+ * @property GROUP
+ * @static
+ * @type number
+ * @default 2
+ * @public
+ */
+ export var GROUP: number = 2;
+
+ /**
+ * Contains a number that is used to identify objects that are a Entity.
+ * @property ENTITY
+ * @static
+ * @type number
+ * @default 3
+ * @public
+ */
+ export var ENTITY: number = 3;
+
+ /**
+ * Contains a number that is used to identify objects that are a Camera.
+ * @property CAMERA
+ * @static
+ * @type number
+ * @default 4
+ * @public
+ */
+ export var CAMERA: number = 4;
+
+ /**
+ * Contains a number that is used to identify objects that are a HUD Widget.
+ * @property HUD_WIDGET
+ * @static
+ * @type number
+ * @default 5
+ * @public
+ */
+ export var HUD_WIDGET: number = 5;
+
+ /**
+ * Contains a number that is used to identify objects that are a TILE_LAYER.
+ * @property TILE_LAYER
+ * @static
+ * @type number
+ * @default 6
+ * @public
+ */
+ export var TILE_LAYER: number = 6;
+
+ /**
+ * The GameManager is used to maintain mulitple instances of Kiwi games within a single document.
+ *
+ * @class GameManager
+ * @namespace Kiwi
+ * @static
+ */
+ export class GameManager {
+
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;GameManager&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;GameManager&quot;;
+ }
+
+ /**
+ * A list of all of the games that are currently on this document.
+ * @property _games
+ * @static
+ * @type Game[]
+ * @private
+ */
+ private static _games: Kiwi.Game[] = [];
+
+ /**
+ * Used to register a new Game with this manager. Returns the new number of games that have been registered.
+ * @method register
+ * @param game {Game} The game you are wanting to register.
+ * @return {Number] The new number of games registered.
+ * @public
+ */
+ public static register(game: Kiwi.Game): number {
+
+ return Kiwi.GameManager._games.push(game);
+
+ }
+
+ /**
+ * Returns the total number of game that are currently registered with this GameManager.
+ * @method total
+ * @return {Number} Total number of registered games.
+ * @public
+ */
+ public static total(): number {
+ return Kiwi.GameManager._games.length;
+ }
+
+ }
+
+
+ export var Plugins = {};
+
+ export var extend:Function = function (d, b) {
+ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
+ function __() { this.constructor = d; }
+ __.prototype = b.prototype;
+ d.prototype = new __();
+ };
+
+}
</pre>
</div>
View
988 docs/files/src_animations_Animation.ts.html
@@ -374,500 +374,500 @@ <h1 class="file-heading">File: src/animations/Animation.ts</h1>
module Kiwi.Animations {
- /**
- * An Animation contains information about a single animation that is held on a AnimationManager.
- * The information that is held is unique to this individual animation and will initially be the same as a Sequence,
- * but if you do ever modify the information held in this Animation the corresponding Sequence will not be updated.
- *
- * @class Animation
- * @namespace Kiwi.Animations
- * @constructor
- * @param name {string} The name of this anim.
- * @param sequences {Kiwi.Animations.Sequences} The sequence that this anim will be using to animate.
- * @param clock {Kiwi.Time.Clock} A game clock that this anim will be using to keep record of the time between frames. (Deprecated in v1.2.0, because there is no way to control it.)
- * @param parent {Kiwi.Components.AnimationManager} The animation manager that this animation belongs to.
- * @return {Kiwi.Animations.Animation}
- *
- */
- export class Animation {
-
- constructor(name: string, sequence: Kiwi.Animations.Sequence, clock: Kiwi.Time.Clock, parent: Kiwi.Components.AnimationManager) {
-
- this.name = name;
- this._sequence = sequence;
- this._speed = sequence.speed;
- this._loop = sequence.loop;
- this._parent = parent;
-
- this._clock = clock;
-
- this._lastFrameElapsed = this.clock.elapsed();
- }
-
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;Animation&quot;
- * @public
- */
- public objType(): string {
- return &quot;Animation&quot;;
- }
-
- /**
- * The AnimationManager that this animation is a child of.
- * @property _parent
- * @type Kiwi.Components.AnimationManager
- * @private
- */
- private _parent: Kiwi.Components.AnimationManager;
-
- /**
- * The name of this animation.
- * @property name
- * @type string
- * @public
- */
- public name: string;
-
- /**
- * The sequence on the texture atlas that this animation is based off.
- * @property _sequence
- * @type Kiwi.Animations.Sequence
- * @private
- */
- private _sequence: Kiwi.Animations.Sequence;
-
- /**
- * If this animation should loop or not.
- * @property _loop
- * @type boolean
- * @private
- */
- private _loop: boolean;
-
- /**
- * If once the animation reaches the end, it should start again from the first cell in the sequence or not.
- * @property loop
- * @type boolean
- * @public
- */
- public get loop(): boolean {
- return this._loop;
- }
- public set loop(value: boolean) {
- this._loop = value;
- }
-
- /**
- * The current frame index that the animation is currently upto.
- * Note: A frame index is the index of a particular cell in the Sequence.
- * @property _frameIndex
- * @type number
- * @private
- */
- private _frameIndex: number = 0;
-
- /**
- * The current frame index that the animation is currently upto.
- * Note: A frame index is the index of a particular cell in the Sequence.
- * @property frameIndex
- * @type number
- * @public
- */
- public get frameIndex(): number {
- return this._frameIndex;
- }
- public set frameIndex(val: number) {
- if (this._validateFrame(val)) {
- this._frameIndex = val;
- }
- }
-
- /**
- * Returns the current cell that the animation is up to. This is READ ONLY.
- * @property currentCell
- * @type number
- * @public
- */
- public get currentCell(): number {
- return this._sequence.cells[ this.frameIndex ];
- }
-
- /**
- * How fast the transition is between cells. Perhaps change to frames per second to reflect actual game speed?
- * @property _speed
- * @type number
- * @private
- */
- private _speed: number;
-
- /**
- * How long the each cell should stay on screen for. In seconds.
- * @property speed
- * @type number
- * @public
- */
- public get speed(): number {
- return this._speed;
- }
- public set speed(value: number) {
- this._speed = value;
- }
-
- /**
- * The clock that is to be used to calculate the animations.
- * @property _clock
- * @type Kiwi.Time.Clock
- * @private
- */
- private _clock: Kiwi.Time.Clock;
-
- /**
- * Clock used by this Animation. If it was not set on creation,
- * the Animation will use its parent&#x27;s entity&#x27;s clock.
- * @property clock
- * @type Kiwi.Time.Clock
- * @public
- * @since 1.2.0
- */
- public get clock(): Kiwi.Time.Clock {
- if ( this._clock ) {
- return this._clock;
- }
- return this._parent.entity.clock;
- }
-
- /**
- * The starting time of the animation from when it was played. Internal use only.
- * @property _startTime
- * @type number
- * @private
- */
- private _startTime: number = null;
-
- /**
- * Indicates whether the animation is playing in reverse or not.
- * @property _reverse
- * @type boolean
- * @private
- */
- private _reverse: boolean = false;
-
- /**
- * Whether the animation is to be played in reverse.
- * @property reverse
- * @type boolean
- * @public
- */
- public set reverse(value: boolean) {
- this._reverse = value;
- }
- public get reverse(): boolean {
- return this._reverse;
- }
-
- /**
- * The time at which the animation should change to the next cell
- * @property _tick
- * @type number
- * @private
- */
- private _tick: number;
-
- /**
- * Whether the animation is currently playing or not.
- * @property _isPlaying
- * @type boolean
- * @default false
- * @private
- */
- private _isPlaying: boolean = false;
-
- /**
- * Whether the animation is currently playing or not. Read-only.
- * @property isPlaying
- * @type boolean
- * @public
- */
- public get isPlaying(): boolean {
- return this._isPlaying;
- }
-
- /**
- * A Kiwi.Signal that dispatches an event when the animation has stopped playing.
- * @property _onStop
- * @type Signal
- * @public
- */
- private _onStop: Kiwi.Signal = null;
-
- public get onStop(): Kiwi.Signal {
- if (this._onStop == null) this._onStop = new Kiwi.Signal;
- return this._onStop;
- }
-
- /**
- * A Kiwi.Signal that dispatches an event when the animation has started playing.
- * @property _onPlay
- * @type Kiwi.Signal
- * @public
- */
- private _onPlay: Kiwi.Signal = null;
-
- public get onPlay(): Kiwi.Signal {
- if (this._onPlay == null) this._onPlay = new Kiwi.Signal;
- return this._onPlay;
- }
-
- /**
- * A Kiwi.Signal that dispatches an event when the animation has updated/changed frameIndexs.
- * @property _onUpdate
- * @type Kiwi.Signal
- * @public
- */
- private _onUpdate: Kiwi.Signal = null;
-
- public get onUpdate(): Kiwi.Signal {
- if (this._onUpdate == null) this._onUpdate = new Kiwi.Signal;
- return this._onUpdate;
- }
-
- /**
- * A Kiwi.Signal that dispatches an event when the animation has come to the end of the animation and is going to play again.
- * @property _onLoop
- * @type Kiwi.Signal
- * @public
- */
- private _onLoop: Kiwi.Signal = null;
-
- public get onLoop(): Kiwi.Signal {
- if (this._onLoop == null) this._onLoop = new Kiwi.Signal;
- return this._onLoop;
- }
-
- /**
- * A Kiwi.Signal that dispatches an event when the animation has come to the end of the animation but is not going to play again.
- * @property _onComplete
- * @type Kiwi.Signal
- * @public
- * @since 1.2.0
- */
- private _onComplete: Kiwi.Signal = null;
-
- public get onComplete(): Kiwi.Signal {
- if (this._onComplete == null) this._onComplete = new Kiwi.Signal;
- return this._onComplete;
- }
-
- /**
- * Clock time on last frame, used to compute current animation frame.
- * @property _lastFrameElapsed
- * @type number
- * @private
- * @since 1.2.0
- */
- private _lastFrameElapsed: number;
-
- /**
- * An Internal method used to start the animation.
- * @method _start
- * @param [index=null] {number} The index of the frame in the sequence that is to play. If left as null if just starts from where it left off.
- * @private
- */
- private _start(index: number = null) {
- if (index !== null) {
- this.frameIndex = index;
- }
-
- this._isPlaying = true;
- this._startTime = this.clock.elapsed();
- this._tick = this._startTime + this._speed;
- if(this._onPlay !== null) this._onPlay.dispatch();
- }
-
- /**
- * Plays the animation.
- * @method play
- * @public
- */
- public play() {
- //if the animation is at the last frame then start it at the beginning
- if (this._frameIndex === this.length - 1) this.frameIndex = 0;
-
- this.playAt(this._frameIndex);
- }
-
- /**
- * Plays the animation at a particular frame
- * @method playAt
- * @param index {Number} The index of the cell in the sequence that the animation is to start at.
- * @public
- */
- public playAt(index: number) {
- this._start(index);
- }
-
- /**
- * Pauses the current animation.
- * @method pause
- * @public
- */
- public pause() {
- this.stop();
- }
-
- /**
- * Resumes the current animation after stopping.
- * @method resume
- * @public
- */
- public resume() {
- if (this._startTime !== null) {
- this._isPlaying = true;
- }
- }
-
- /**
- * Stops the current animation from playing.
- * @method stop
- * @public
- */
- public stop() {
- if (this._isPlaying) {
- this._isPlaying = false;
- if(this._onStop !== null) this._onStop.dispatch();
- }
- }
-
- /**
- * Makes the animation go to the next frame. If the animation is at the end it goes back to the start.
- * @method nextFrame
- * @public
- */
- public nextFrame() {
- this._frameIndex++;
- if (this._frameIndex &gt;= this.length) this.frameIndex = 0;
- }
-
- /**
- * Makes the animation go to the previous frame. If the animation is at the first frame it goes to the end.
- * @method prevFrame
- * @public
- */
- public prevFrame() {
- this._frameIndex--;
- if (this._frameIndex &lt; 0) this.frameIndex = this.length - 1;
- }
-
- /**
- * The update loop.
- *
- * @method update
- * @public
- */
- public update() {
- var frameDelta;
-
- if ( this._isPlaying ) {
-
- // How many frames do we move, ahead or behind?
- frameDelta = ( this.clock.elapsed() -
- this._lastFrameElapsed ) / this._speed;
- if ( this._reverse ) {
- frameDelta *= -1;
- }
-
- // Round delta, towards zero
- if ( frameDelta &gt; 0 ) {
- frameDelta = Math.floor( frameDelta );
- } else {
- frameDelta = Math.ceil( frameDelta );
- }
-
- if ( frameDelta !== 0 ) {
- this._frameIndex += frameDelta;
- this._lastFrameElapsed = this.clock.elapsed();
-
- // Loop check
- if ( this._loop ) {
- if ( this._frameIndex &gt; this.length - 1 ) {
- while ( this._frameIndex &gt; this.length - 1 ) {
- this._frameIndex -= this.length;
- if ( this._onLoop != null ) {
- this._onLoop.dispatch();
- }
- }
- } else if ( this._frameIndex &lt; 0 ) {
- while ( this._frameIndex &lt; 0 ) {
- this._frameIndex += this.length;
- if ( this._onLoop != null ) {
- this._onLoop.dispatch();
- }
- }
- }
- } else if ( this._frameIndex &lt; 0 || this._frameIndex &gt;= this.length ) {
- if ( this._onComplete != null ) {
- this._onComplete.dispatch();
- }
- // Execute the stop on the parent
- // to allow the isPlaying boolean to remain consistent
- this._parent.stop();
- return;
- }
-
- this._parent.updateCellIndex();
- if ( this._onUpdate !== null ) {
- this._onUpdate.dispatch();
- }
- }
- }
- }
-
- /**
- * An internal method used to check to see if frame passed is valid or not
- * @method _validateFrame
- * @param frame {Number} The index of the frame that is to be validated.
- * @private
- */
- private _validateFrame(frame: number) {
- return (frame &lt; this.length &amp;&amp; frame &gt;= 0);
- }
-
- /**
- * Returns the number of frames that in the animation. Thus the animations &#x27;length&#x27;. Note this is READ ONLY.
- * @property length
- * @type number
- * @public
- */
- public get length():number {
- return this._sequence.cells.length;
- }
-
- /**
- * Destroys the anim and all of the properties that exist on it.
- * @method destroy
- * @public
- */
- public destroy() {
- this._isPlaying = false;
- delete this._clock;
- delete this._sequence;
- delete this._parent;
- if(this._onLoop) this._onLoop.dispose();
- if(this._onStop) this._onStop.dispose();
- if(this._onPlay) this._onPlay.dispose();
- if(this._onUpdate) this._onUpdate.dispose();
- delete this._onLoop;
- delete this._onStop ;
- delete this._onPlay ;
- delete this._onUpdate ;
- delete this.frameIndex ;
- delete this.loop;
- delete this._reverse;
- delete this._tick;
- }
- }
+ /**
+ * An Animation contains information about a single animation that is held on a AnimationManager.
+ * The information that is held is unique to this individual animation and will initially be the same as a Sequence,
+ * but if you do ever modify the information held in this Animation the corresponding Sequence will not be updated.
+ *
+ * @class Animation
+ * @namespace Kiwi.Animations
+ * @constructor
+ * @param name {string} The name of this anim.
+ * @param sequences {Kiwi.Animations.Sequences} The sequence that this anim will be using to animate.
+ * @param clock {Kiwi.Time.Clock} A game clock that this anim will be using to keep record of the time between frames. (Deprecated in v1.2.0, because there is no way to control it.)
+ * @param parent {Kiwi.Components.AnimationManager} The animation manager that this animation belongs to.
+ * @return {Kiwi.Animations.Animation}
+ *
+ */
+ export class Animation {
+
+ constructor(name: string, sequence: Kiwi.Animations.Sequence, clock: Kiwi.Time.Clock, parent: Kiwi.Components.AnimationManager) {
+
+ this.name = name;
+ this._sequence = sequence;
+ this._speed = sequence.speed;
+ this._loop = sequence.loop;
+ this._parent = parent;
+
+ this._clock = clock;
+
+ this._lastFrameElapsed = this.clock.elapsed();
+ }
+
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;Animation&quot;
+ * @public
+ */
+ public objType(): string {
+ return &quot;Animation&quot;;
+ }
+
+ /**
+ * The AnimationManager that this animation is a child of.
+ * @property _parent
+ * @type Kiwi.Components.AnimationManager
+ * @private
+ */
+ private _parent: Kiwi.Components.AnimationManager;
+
+ /**
+ * The name of this animation.
+ * @property name
+ * @type string
+ * @public
+ */
+ public name: string;
+
+ /**
+ * The sequence on the texture atlas that this animation is based off.
+ * @property _sequence
+ * @type Kiwi.Animations.Sequence
+ * @private
+ */
+ private _sequence: Kiwi.Animations.Sequence;
+
+ /**
+ * If this animation should loop or not.
+ * @property _loop
+ * @type boolean
+ * @private
+ */
+ private _loop: boolean;
+
+ /**
+ * If once the animation reaches the end, it should start again from the first cell in the sequence or not.
+ * @property loop
+ * @type boolean
+ * @public
+ */
+ public get loop(): boolean {
+ return this._loop;
+ }
+ public set loop(value: boolean) {
+ this._loop = value;
+ }
+
+ /**
+ * The current frame index that the animation is currently upto.
+ * Note: A frame index is the index of a particular cell in the Sequence.
+ * @property _frameIndex
+ * @type number
+ * @private
+ */
+ private _frameIndex: number = 0;
+
+ /**
+ * The current frame index that the animation is currently upto.
+ * Note: A frame index is the index of a particular cell in the Sequence.
+ * @property frameIndex
+ * @type number
+ * @public
+ */
+ public get frameIndex(): number {
+ return this._frameIndex;
+ }
+ public set frameIndex(val: number) {
+ if (this._validateFrame(val)) {
+ this._frameIndex = val;
+ }
+ }
+
+ /**
+ * Returns the current cell that the animation is up to. This is READ ONLY.
+ * @property currentCell
+ * @type number
+ * @public
+ */
+ public get currentCell(): number {
+ return this._sequence.cells[ this.frameIndex ];
+ }
+
+ /**
+ * How fast the transition is between cells. Perhaps change to frames per second to reflect actual game speed?
+ * @property _speed
+ * @type number
+ * @private
+ */
+ private _speed: number;
+
+ /**
+ * How long the each cell should stay on screen for. In seconds.
+ * @property speed
+ * @type number
+ * @public
+ */
+ public get speed(): number {
+ return this._speed;
+ }
+ public set speed(value: number) {
+ this._speed = value;
+ }
+
+ /**
+ * The clock that is to be used to calculate the animations.
+ * @property _clock
+ * @type Kiwi.Time.Clock
+ * @private
+ */
+ private _clock: Kiwi.Time.Clock;
+
+ /**
+ * Clock used by this Animation. If it was not set on creation,
+ * the Animation will use its parent&#x27;s entity&#x27;s clock.
+ * @property clock
+ * @type Kiwi.Time.Clock
+ * @public
+ * @since 1.2.0
+ */
+ public get clock(): Kiwi.Time.Clock {
+ if ( this._clock ) {
+ return this._clock;
+ }
+ return this._parent.entity.clock;
+ }
+
+ /**
+ * The starting time of the animation from when it was played. Internal use only.
+ * @property _startTime
+ * @type number
+ * @private
+ */
+ private _startTime: number = null;
+
+ /**
+ * Indicates whether the animation is playing in reverse or not.
+ * @property _reverse
+ * @type boolean
+ * @private
+ */
+ private _reverse: boolean = false;
+
+ /**
+ * Whether the animation is to be played in reverse.
+ * @property reverse
+ * @type boolean
+ * @public
+ */
+ public set reverse(value: boolean) {
+ this._reverse = value;
+ }
+ public get reverse(): boolean {
+ return this._reverse;
+ }
+
+ /**
+ * The time at which the animation should change to the next cell
+ * @property _tick
+ * @type number
+ * @private
+ */
+ private _tick: number;
+
+ /**
+ * Whether the animation is currently playing or not.
+ * @property _isPlaying
+ * @type boolean
+ * @default false
+ * @private
+ */
+ private _isPlaying: boolean = false;
+
+ /**
+ * Whether the animation is currently playing or not. Read-only.
+ * @property isPlaying
+ * @type boolean
+ * @public
+ */
+ public get isPlaying(): boolean {
+ return this._isPlaying;
+ }
+
+ /**
+ * A Kiwi.Signal that dispatches an event when the animation has stopped playing.
+ * @property _onStop
+ * @type Signal
+ * @public
+ */
+ private _onStop: Kiwi.Signal = null;
+
+ public get onStop(): Kiwi.Signal {
+ if (this._onStop == null) this._onStop = new Kiwi.Signal;
+ return this._onStop;
+ }
+
+ /**
+ * A Kiwi.Signal that dispatches an event when the animation has started playing.
+ * @property _onPlay
+ * @type Kiwi.Signal
+ * @public
+ */
+ private _onPlay: Kiwi.Signal = null;
+
+ public get onPlay(): Kiwi.Signal {
+ if (this._onPlay == null) this._onPlay = new Kiwi.Signal;
+ return this._onPlay;
+ }
+
+ /**
+ * A Kiwi.Signal that dispatches an event when the animation has updated/changed frameIndexs.
+ * @property _onUpdate
+ * @type Kiwi.Signal
+ * @public
+ */
+ private _onUpdate: Kiwi.Signal = null;
+
+ public get onUpdate(): Kiwi.Signal {
+ if (this._onUpdate == null) this._onUpdate = new Kiwi.Signal;
+ return this._onUpdate;
+ }
+
+ /**
+ * A Kiwi.Signal that dispatches an event when the animation has come to the end of the animation and is going to play again.
+ * @property _onLoop
+ * @type Kiwi.Signal
+ * @public
+ */
+ private _onLoop: Kiwi.Signal = null;
+
+ public get onLoop(): Kiwi.Signal {
+ if (this._onLoop == null) this._onLoop = new Kiwi.Signal;
+ return this._onLoop;
+ }
+
+ /**
+ * A Kiwi.Signal that dispatches an event when the animation has come to the end of the animation but is not going to play again.
+ * @property _onComplete
+ * @type Kiwi.Signal
+ * @public
+ * @since 1.2.0
+ */
+ private _onComplete: Kiwi.Signal = null;
+
+ public get onComplete(): Kiwi.Signal {
+ if (this._onComplete == null) this._onComplete = new Kiwi.Signal;
+ return this._onComplete;
+ }
+
+ /**
+ * Clock time on last frame, used to compute current animation frame.
+ * @property _lastFrameElapsed
+ * @type number
+ * @private
+ * @since 1.2.0
+ */
+ private _lastFrameElapsed: number;
+
+ /**
+ * An Internal method used to start the animation.
+ * @method _start
+ * @param [index=null] {number} The index of the frame in the sequence that is to play. If left as null if just starts from where it left off.
+ * @private
+ */
+ private _start(index: number = null) {
+ if (index !== null) {
+ this.frameIndex = index;
+ }
+
+ this._isPlaying = true;
+ this._startTime = this.clock.elapsed();
+ this._tick = this._startTime + this._speed;
+ if(this._onPlay !== null) this._onPlay.dispatch();
+ }
+
+ /**
+ * Plays the animation.
+ * @method play
+ * @public
+ */
+ public play() {
+ //if the animation is at the last frame then start it at the beginning
+ if (this._frameIndex === this.length - 1) this.frameIndex = 0;
+
+ this.playAt(this._frameIndex);
+ }
+
+ /**
+ * Plays the animation at a particular frame
+ * @method playAt
+ * @param index {Number} The index of the cell in the sequence that the animation is to start at.
+ * @public
+ */
+ public playAt(index: number) {
+ this._start(index);
+ }
+
+ /**
+ * Pauses the current animation.
+ * @method pause
+ * @public
+ */
+ public pause() {
+ this.stop();
+ }
+
+ /**
+ * Resumes the current animation after stopping.
+ * @method resume
+ * @public
+ */
+ public resume() {
+ if (this._startTime !== null) {
+ this._isPlaying = true;
+ }
+ }
+
+ /**
+ * Stops the current animation from playing.
+ * @method stop
+ * @public
+ */
+ public stop() {
+ if (this._isPlaying) {
+ this._isPlaying = false;
+ if(this._onStop !== null) this._onStop.dispatch();
+ }
+ }
+
+ /**
+ * Makes the animation go to the next frame. If the animation is at the end it goes back to the start.
+ * @method nextFrame
+ * @public
+ */
+ public nextFrame() {
+ this._frameIndex++;
+ if (this._frameIndex &gt;= this.length) this.frameIndex = 0;
+ }
+
+ /**
+ * Makes the animation go to the previous frame. If the animation is at the first frame it goes to the end.
+ * @method prevFrame
+ * @public
+ */
+ public prevFrame() {
+ this._frameIndex--;
+ if (this._frameIndex &lt; 0) this.frameIndex = this.length - 1;
+ }
+
+ /**
+ * The update loop.
+ *
+ * @method update
+ * @public
+ */
+ public update() {
+ var frameDelta;
+
+ if ( this._isPlaying ) {
+
+ // How many frames do we move, ahead or behind?
+ frameDelta = ( this.clock.elapsed() -
+ this._lastFrameElapsed ) / this._speed;
+ if ( this._reverse ) {
+ frameDelta *= -1;
+ }
+
+ // Round delta, towards zero
+ if ( frameDelta &gt; 0 ) {
+ frameDelta = Math.floor( frameDelta );
+ } else {
+ frameDelta = Math.ceil( frameDelta );
+ }
+
+ if ( frameDelta !== 0 ) {
+ this._frameIndex += frameDelta;
+ this._lastFrameElapsed = this.clock.elapsed();
+
+ // Loop check
+ if ( this._loop ) {
+ if ( this._frameIndex &gt; this.length - 1 ) {
+ while ( this._frameIndex &gt; this.length - 1 ) {
+ this._frameIndex -= this.length;
+ if ( this._onLoop != null ) {
+ this._onLoop.dispatch();
+ }
+ }
+ } else if ( this._frameIndex &lt; 0 ) {
+ while ( this._frameIndex &lt; 0 ) {
+ this._frameIndex += this.length;
+ if ( this._onLoop != null ) {
+ this._onLoop.dispatch();
+ }
+ }
+ }
+ } else if ( this._frameIndex &lt; 0 || this._frameIndex &gt;= this.length ) {
+ if ( this._onComplete != null ) {
+ this._onComplete.dispatch();
+ }
+ // Execute the stop on the parent
+ // to allow the isPlaying boolean to remain consistent
+ this._parent.stop();
+ return;
+ }
+
+ this._parent.updateCellIndex();
+ if ( this._onUpdate !== null ) {
+ this._onUpdate.dispatch();
+ }
+ }
+ }
+ }
+
+ /**
+ * An internal method used to check to see if frame passed is valid or not
+ * @method _validateFrame
+ * @param frame {Number} The index of the frame that is to be validated.
+ * @private
+ */
+ private _validateFrame(frame: number) {
+ return (frame &lt; this.length &amp;&amp; frame &gt;= 0);
+ }
+
+ /**
+ * Returns the number of frames that in the animation. Thus the animations &#x27;length&#x27;. Note this is READ ONLY.
+ * @property length
+ * @type number
+ * @public
+ */
+ public get length():number {
+ return this._sequence.cells.length;
+ }
+
+ /**
+ * Destroys the anim and all of the properties that exist on it.
+ * @method destroy
+ * @public
+ */
+ public destroy() {
+ this._isPlaying = false;
+ delete this._clock;
+ delete this._sequence;
+ delete this._parent;
+ if(this._onLoop) this._onLoop.dispose();
+ if(this._onStop) this._onStop.dispose();
+ if(this._onPlay) this._onPlay.dispose();
+ if(this._onUpdate) this._onUpdate.dispose();
+ delete this._onLoop;
+ delete this._onStop ;
+ delete this._onPlay ;
+ delete this._onUpdate ;
+ delete this.frameIndex ;
+ delete this.loop;
+ delete this._reverse;
+ delete this._tick;
+ }
+ }
}
</pre>
View
109 docs/files/src_animations_Sequence.ts.html
@@ -370,67 +370,68 @@ <h1 class="file-heading">File: src/animations/Sequence.ts</h1>
* @submodule Animations
*
*/
-
+
module Kiwi.Animations {
- /**
- * A Sequence is a series of cells that are held on a SpriteSheet/TextureAtlas.
- * Sequences are generally used with the AnimationManager/Animation sections as a way to initially create Animations on GameObjects that use the same TextureAtlas.
- *
- * @class Sequence
- * @namespace Kiwi.Animations
- * @constructor
- * @param name {String} The name of this sequence. This is not unique.
- * @param cells {Number[]} The cells that are in this animation.
- * @param [speed=0.1] {Number} The time an animation should spend on each frame.
- * @param [loop=true] {boolean} If the sequence should play again if it was animating and the animation reaches the last frame.
- * @return {Kiwi.Animations.Sequence}
- *
- */
- export class Sequence {
-
- constructor(name:string,cells:number[],speed:number=0.1,loop:boolean=true) {
- this.name = name;
- this.cells = cells;
- this.speed = speed;
- this.loop = loop;
- }
+ /**
+ * A Sequence is a series of cells that are held on a SpriteSheet/TextureAtlas.
+ * Sequences are generally used with the AnimationManager/Animation sections as a way to initially create Animations on GameObjects that use the same TextureAtlas.
+ *
+ * @class Sequence
+ * @namespace Kiwi.Animations
+ * @constructor
+ * @param name {String} The name of this sequence. This is not unique.
+ * @param cells {Number[]} The cells that are in this animation.
+ * @param [speed=0.1] {Number} The time an animation should spend on each frame.
+ * @param [loop=true] {boolean} If the sequence should play again if it was animating and the animation reaches the last frame.
+ * @return {Kiwi.Animations.Sequence}
+ *
+ */
+ export class Sequence {
+
+ constructor(name:string,cells:number[],speed:number=0.1,loop:boolean=true) {
+ this.name = name;
+ this.cells = cells;
+ this.speed = speed;
+ this.loop = loop;
+ }
- /**
- * The name of this sequence.
- * @property name
- * @type string
- * @public
- */
- public name: string;
+ /**
+ * The name of this sequence.
+ * @property name
+ * @type string
+ * @public
+ */
+ public name: string;
- /**
- * The cells that are in this animation.
- * These are a reference to the cells that are contained in a texture atlas that this sequence should be a part of.
- * @property cells
- * @type number[]
- * @public
- */
- public cells: number[];
+ /**
+ * The cells that are in this animation.
+ * These are a reference to the cells that are contained in a texture atlas that this sequence should be a part of.
+ * @property cells
+ * @type number[]
+ * @public
+ */
+ public cells: number[];
- /**
- * The time an animation should spend on each cell.
- * @property speed
- * @type boolean
- * @public
- */
- public speed: number;
-
- /**
- * If the sequence should play again if it was animating and the animation reaches the last frame.
- * @property loop
- * @type boolean
- * @public
- */
- public loop: boolean;
+ /**
+ * The time an animation should spend on each cell.
+ * @property speed
+ * @type boolean
+ * @public
+ */
+ public speed: number;
- }
+ /**
+ * If the sequence should play again if it was animating and the animation reaches the last frame.
+ * @property loop
+ * @type boolean
+ * @public
+ */
+ public loop: boolean;
+
+ }
}
+
</pre>
</div>
View
1,118 docs/files/src_animations_tweens_Tween.ts.html
@@ -370,567 +370,567 @@ <h1 class="file-heading">File: src/animations/tweens/Tween.ts</h1>
* @submodule Tweens
*
*/
-
+
module Kiwi.Animations {
- /**
- * Manages the tweening of properties/values on a single object. A Tween is the animation of a number between an initially value to and final value (that you specify).
- * Note: When using a Tween you need to make sure that the Tween has been added to a TweenManager. You can either do this by creating the Tween via the Manager or alternatively using the &#x27;add&#x27; method on the TweenManager. Otherwise the tween will not work.
- *
- * Based on tween.js by sole. Converted to TypeScript and integrated into Kiwi.
- * https://github.com/sole/tween.js
- *
- * @class Tween
- * @constructor
- * @namespace Kiwi.Animations
- * @param object {Any} The object that this tween is taking affect on.
- * @param game {Kiwi.Game} The game that this tween is for.
- * @return {Kiwi.Animations.Tween} This tween.
- *
- * @author sole / http://soledadpenades.com
- * @author mrdoob / http://mrdoob.com
- * @author Robert Eisele / http://www.xarg.org
- * @author Philippe / http://philippe.elsass.me
- * @author Robert Penner / http://www.robertpenner.com/easing_terms_of_use.html
- * @author Paul Lewis / http://www.aerotwist.com/
- * @author lechecacharro
- * @author Josh Faul / http://jocafa.com/
- * @author egraether / http://egraether.com/
- *
- */
- export class Tween {
-
- constructor(object, game:Kiwi.Game = null) {
-
- this._object = object;
-
- if (game !== null)
- {
- this._game = game;
- this._manager = this._game.tweens;
- }
-
- this.isRunning = false;
-
- }
-
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;Tween&quot;
- * @public
- */
- public objType() {
- return &quot;Tween&quot;;
- }
-
- /**
- * The game that this tween belongs to.
- * @property _game
- * @type Kiwi.Game
- * @private
- */
- private _game: Kiwi.Game = null;
-
- /**
- * The manager that this tween belongs to.
- * @property _manager
- * @type Kiwi.Animations.Tweens.TweenManager
- * @private
- */
- private _manager: Kiwi.Animations.Tweens.TweenManager = null;
-
- /**
- * The manager that this tween belongs to.
- * @property manager
- * @type Kiwi.Animations.Tweens.TweenManager
- * @private
- * @since 1.2.0
- */
- public get manager(): Kiwi.Animations.Tweens.TweenManager {
- return this._manager;
- }
-
- public set manager( value: Kiwi.Animations.Tweens.TweenManager ) {
- this._manager = value;
- }
-
- /**
- * The object that this tween is affecting.
- * @property _object
- * @type Any
- * @private
- */
- private _object = null;
-
- /**
- * The object that this tween is affecting.
- * If you change this, it will continue to tween,
- * but any properties that are not on the new object
- * will be discarded from the tween.
- * @property object
- * @type any
- * @public
- */
- public get object(): any {
- return this._object;
- }
-
- public set object( value: any ) {
- var i,
- newValues = {};
-
- this._object = value;
-
- for ( i in this._valuesEnd ) {
- if ( value[ i ] ) {
- newValues[ i ] = this._valuesEnd[ i ];
- }
- }
-
- this._valuesEnd = newValues;
- }
-
- /**
- * The starting values of the properties that the tween is animating.
- * @property _valuesStart
- * @type Object
- * @private
- */
- private _valuesStart = {};
-
- /**
- * The end values of the properties that the tween is animating.
- * @property _valuesEnd
- * @type Object
- * @private
- */
- private _valuesEnd = {};
-
- /**
- * The duration of the tween, in milliseconds.
- * @property _duration
- * @type Number
- * @private
- */
- private _duration = 1000;
-
- /**
- * The amount of time to delay the tween by. In Milliseconds.
- * @property _delayTime
- * @type Number
- * @private
- */
- private _delayTime:number = 0;
-
- /**
- * The time at which the tween started.
- * @property _startTime
- * @type Number
- * @private
- */
- private _startTime:number = null;
-
- /**
- * The easing function that is to be used while tweening.
- * @property _easingFunction
- * @type Function
- * @default Kiwi.Tweens.Easing.Linear.None
- * @private
- */
- private _easingFunction = Kiwi.Animations.Tweens.Easing.Linear.None;
-
- /**
- * [NEEDS DESCRIPTION]
- * @property _interpolationFunction
- * @type Function
- * @default Kiwi.Utils.Interpolation.Linear
- * @private
- */
- private _interpolationFunction = Kiwi.Utils.GameMath.linearInterpolation;
-
- /**
- * An array containing all of the tweens that are to be played when this one finishes.
- * @property _chainedTweens
- * @type Tween[]
- * @private
- */
- private _chainedTweens = [];
-
- /**
- * The method that is to be called when the tween starts playing.
- * @property _onStartCallback
- * @type Function
- * @default null
- * @private
- */
- private _onStartCallback = null;
-
- /**
- * The context that the _onStartCallback method is to be called in.
- * @property _onStartContext
- * @type Any
- * @default null
- * @private
- */
- private _onStartContext:any = null;
-
- /**
- * A boolean indicating if the starting callback has been called or not.
- * @property _onStartCallbackFired
- * @type boolean
- * @default false
- * @private
- */
- private _onStartCallbackFired:boolean = false;
-
- /**
- * A callback method that will be called each time the tween updates.
- * @property _onUpdateCallback
- * @type Function
- * @default null
- * @private
- */
- private _onUpdateCallback = null;
-
- /**
- * The context that the update callback has when called.
- * @property _onUpdateContext
- * @type any
- * @default null
- * @private
- */
- private _onUpdateContext:any = null;
-
- /**
- * A method to be called when the tween finish&#x27;s tweening.
- * @property _onCompleteCallback
- * @type function
- * @default null
- * @private
- */
- private _onCompleteCallback = null;
-
- /*
- * A boolean indicating whether or not the _onCompleteCallback has been called.
- * Is reset each time you tell the tween to start.
- * @property _onCompleteCalled
- * @type boolean
- * @default false
- * @private
- */
- private _onCompleteCalled: boolean = false;
-
- /**
- * The context that the onCompleteCallback should have when called.
- * @property _onCompleteContext
- * @type any
- * @default null
- * @private
- */
- private _onCompleteContext: any = null;
-
- /**
- * An indication of whether or not this tween is currently running.
- * @property isRunning.
- * @type boolean
- * @default false
- * @public
- */
- public isRunning: boolean = false;
-
- /**
- * Sets up the various properties that define this tween.
- * The ending position/properties for this tween, how long the tween should go for, easing method to use and if should start right way.
- *
- * @method to
- * @param properties {Object} The ending location of the properties that you want to tween.
- * @param [duration=1000] {Number} The duration of the tween.
- * @param [ease=null] {Any} The easing method to be used. If not specifed then this will default to LINEAR.
- * @param [autoStart=false] {boolean} If the tween should start right away.
- * @return {Kiwi.Animations.Tween}
- * @public
- */
- public to(properties, duration: number = 1000, ease: any = null, autoStart: boolean = false):Tween {
-
- this._duration = duration;
-
- // If properties isn&#x27;t an object this will fail, sanity check it here somehow?
- this._valuesEnd = properties;
-
- if (ease !== null) {
- this._easingFunction = ease;
- }
-
- if (autoStart === true) {
- return this.start();
-
- } else {
- return this;
- }
-
- }
-
- /**
- * Gets the initial values for the properties that it is to animate and starts the tween process.
- * @method start
- * @public
- */
- public start() {
- var property;
-
- if (this._game === null || this._object === null)
- {
- return;
- }
-
- this.isRunning = true;
-
- this._manager.add(this);
-
- this._onStartCallbackFired = false;
-
- this._onCompleteCalled = false;
-
- this._startTime = this._manager.clock.elapsed() * 1000 + this._delayTime;
-
- for ( var property in this._valuesEnd ) {
- // This prevents the interpolation of null values or of non-existing properties
- if ( this._object[ property ] === null || !( property in this._object ) ) {
- continue;
- }
-
- // check if an Array was provided as property value
- if ( this._valuesEnd[ property ] instanceof Array ) {
- if ( this._valuesEnd[ property ].length === 0 ) {
- continue;
- }
-
- // create a local copy of the Array with the start value at the front
- this._valuesEnd[ property ] = [ this._object[ property ] ].concat(this._valuesEnd[ property ]);
- }
-
- // Check if property is a function
- if ( typeof this._object[ property ] === &quot;function&quot; ) {
- this._valuesStart[ property ] = this._object[ property ]();
- } else {
- this._valuesStart[ property ] = this._object[ property ];
- }
-
- }
-
- return this;
-
- }
-
- /**
- * Stops the Tween from running and removes it from the manager.
- * @method stop
- * @public
- */
- public stop() {
-
- if (this._manager !== null)
- {
- this._manager.remove(this);
- }
-
- this.isRunning = false;
-
- return this;
-
- }
-
- /**
- * Sets the game and the manager of this tween.
- * @method setParent
- * @param {Kiwi.Game} value
- * @public
- */
- public setParent(value:Kiwi.Game) {
-
- this._game = value;
- this._manager = this._game.tweens;
-
- }
-
- /**
- * Sets the amount of delay that the tween is to have before it starts playing.
- * @method delay
- * @param amount {Number} The amount of time to delay the tween by.
- * @return {Kiwi.Animations.Tween}
- * @public
- */
- public delay(amount:number):Tween {
-
- this._delayTime = amount;
- return this;
-
- }
-
- /**
- * Sets the easing method that is to be used when animating this tween.
- * @method easing
- * @param easing {Function} The easing function to use.
- * @return {Kiwi.Animations.Tween}
- * @public
- */
- public easing(easing):Tween {
-
- this._easingFunction = easing;
- return this;
-
- }
-
- /**
- * [REQUIRES DESCRIPTION]
- * @method interpolation
- * @param {Any} interpolation
- * @return {Kiwi.Animations.Tween}
- * @public
- */
- public interpolation(interpolation):Tween {
-
- this._interpolationFunction = interpolation;
-
- return this;
-
- }
-
- /**
- * Adds another tween that should start playing once tween has completed.
- * @method chain
- * @param tween {Kiwi.Animations.Tween}
- * @return {Kiwi.Animations.Tween}
- * @public
- */
- public chain(tween:Kiwi.Animations.Tween):Tween {
-
- this._chainedTweens.push(tween);
- return this;
-
- }
-
- /**
- * Adds a function that is to be executed when the tween start playing.
- * @method onStart
- * @param callback {Function} The function that is to be executed on tween start.
- * @param context {any} The context that function is to have when called.
- * @return {Kiwi.Animations.Tween}
- * @public
- */
- public onStart(callback, context):Tween {
-
- this._onStartCallback = callback;
- this._onStartContext = context;
- return this;
-
- }
-
- /**
- * Adds a function that is to be executed when this tween updates while it is playing.
- * @method onUpdate
- * @param callback {Function} The method that is to be executed.
- * @param context {Any} The context the method is to have when called.
- * @public
- */
- public onUpdate(callback, context) {
-
- this._onUpdateCallback = callback;
- this._onUpdateContext = context;
- return this;
-
- }
-
- /**
- * Defines a method that is to be called when this tween is finished.
- * @method onComplete
- * @param callback {Function} The method that is to be executed.
- * @param context {Any} The context the method is to have when called.
- * @public
- */
- public onComplete(callback, context) {
-
- this._onCompleteCallback = callback;
- this._onCompleteContext = context;
-
- return this;
-
- }
-
- /**
- * The update loop is executed every frame whilst the tween is running.
- * @method update
- * @param time {Number}
- * @return {boolean} Whether the Tween is still running
- * @public
- */
- public update( time: number ) {
-
- if ( time &lt; this._startTime - this._delayTime ) {
- return false;
- }
-
- if ( this._onStartCallbackFired === false ) {
- if ( this._onStartCallback !== null ) {
- this._onStartCallback.call( this._onStartContext,
- this._object );
- }
-
- this._onStartCallbackFired = true;
- }
-
- var elapsed = ( time - this._startTime ) / this._duration;
- elapsed = elapsed &gt; 1 ? 1 :
- elapsed &lt; 0 ? 0 :
- elapsed;
-
- var value = this._easingFunction( elapsed );
-
- for ( var property in this._valuesStart ) {
- var start = this._valuesStart[ property ];
- var end = this._valuesEnd[ property ];
-
- // Add checks for object, array, numeric up front
- if ( end instanceof Array ) {
- this._object[ property ] =
- this._interpolationFunction( end, value );
- } else {
- if ( typeof this._object[ property ] === &quot;function&quot; ) {
- this._object[ property ]( start + ( end - start ) * value );
- } else {
- this._object[ property ] = start + ( end - start ) * value;
- }
- }
- }
-
- if ( this._onUpdateCallback !== null ) {
- this._onUpdateCallback.call( this._onUpdateContext,
- this._object, value );
- }
-
- if ( elapsed === 1 ) {
- this.isRunning = false;
-
- if ( this._onCompleteCallback !== null &amp;&amp;
- this._onCompleteCalled === false ) {
- this._onCompleteCalled = true;
- this._onCompleteCallback.call(
- this._onCompleteContext, this._object );
- }
-
- for ( var i = 0; i &lt; this._chainedTweens.length; i++ ) {
- this._chainedTweens[ i ].start();
- }
-
- return false;
- }
-
- return true;
-
- }
-
- }
+ /**
+ * Manages the tweening of properties/values on a single object. A Tween is the animation of a number between an initially value to and final value (that you specify).
+ * Note: When using a Tween you need to make sure that the Tween has been added to a TweenManager. You can either do this by creating the Tween via the Manager or alternatively using the &#x27;add&#x27; method on the TweenManager. Otherwise the tween will not work.
+ *
+ * Based on tween.js by sole. Converted to TypeScript and integrated into Kiwi.
+ * https://github.com/sole/tween.js
+ *
+ * @class Tween
+ * @constructor
+ * @namespace Kiwi.Animations
+ * @param object {Any} The object that this tween is taking affect on.
+ * @param game {Kiwi.Game} The game that this tween is for.
+ * @return {Kiwi.Animations.Tween} This tween.
+ *
+ * @author sole / http://soledadpenades.com
+ * @author mrdoob / http://mrdoob.com
+ * @author Robert Eisele / http://www.xarg.org
+ * @author Philippe / http://philippe.elsass.me
+ * @author Robert Penner / http://www.robertpenner.com/easing_terms_of_use.html
+ * @author Paul Lewis / http://www.aerotwist.com/
+ * @author lechecacharro
+ * @author Josh Faul / http://jocafa.com/
+ * @author egraether / http://egraether.com/
+ *
+ */
+ export class Tween {
+
+ constructor(object, game:Kiwi.Game = null) {
+
+ this._object = object;
+
+ if (game !== null)
+ {
+ this._game = game;
+ this._manager = this._game.tweens;
+ }
+
+ this.isRunning = false;
+
+ }
+
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;Tween&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;Tween&quot;;
+ }
+
+ /**
+ * The game that this tween belongs to.
+ * @property _game
+ * @type Kiwi.Game
+ * @private
+ */
+ private _game: Kiwi.Game = null;
+
+ /**
+ * The manager that this tween belongs to.
+ * @property _manager
+ * @type Kiwi.Animations.Tweens.TweenManager
+ * @private
+ */
+ private _manager: Kiwi.Animations.Tweens.TweenManager = null;
+
+ /**
+ * The manager that this tween belongs to.
+ * @property manager
+ * @type Kiwi.Animations.Tweens.TweenManager
+ * @private
+ * @since 1.2.0
+ */
+ public get manager(): Kiwi.Animations.Tweens.TweenManager {
+ return this._manager;
+ }
+
+ public set manager( value: Kiwi.Animations.Tweens.TweenManager ) {
+ this._manager = value;
+ }
+
+ /**
+ * The object that this tween is affecting.
+ * @property _object
+ * @type Any
+ * @private
+ */
+ private _object = null;
+
+ /**
+ * The object that this tween is affecting.
+ * If you change this, it will continue to tween,
+ * but any properties that are not on the new object
+ * will be discarded from the tween.
+ * @property object
+ * @type any
+ * @public
+ */
+ public get object(): any {
+ return this._object;
+ }
+
+ public set object( value: any ) {
+ var i,
+ newValues = {};
+
+ this._object = value;
+
+ for ( i in this._valuesEnd ) {
+ if ( value[ i ] ) {
+ newValues[ i ] = this._valuesEnd[ i ];
+ }
+ }
+
+ this._valuesEnd = newValues;
+ }
+
+ /**
+ * The starting values of the properties that the tween is animating.
+ * @property _valuesStart
+ * @type Object
+ * @private
+ */
+ private _valuesStart = {};
+
+ /**
+ * The end values of the properties that the tween is animating.
+ * @property _valuesEnd
+ * @type Object
+ * @private
+ */
+ private _valuesEnd = {};
+
+ /**
+ * The duration of the tween, in milliseconds.
+ * @property _duration
+ * @type Number
+ * @private
+ */
+ private _duration = 1000;
+
+ /**
+ * The amount of time to delay the tween by. In Milliseconds.
+ * @property _delayTime
+ * @type Number
+ * @private
+ */
+ private _delayTime:number = 0;
+
+ /**
+ * The time at which the tween started.
+ * @property _startTime
+ * @type Number
+ * @private
+ */
+ private _startTime:number = null;
+
+ /**
+ * The easing function that is to be used while tweening.
+ * @property _easingFunction
+ * @type Function
+ * @default Kiwi.Tweens.Easing.Linear.None
+ * @private
+ */
+ private _easingFunction = Kiwi.Animations.Tweens.Easing.Linear.None;
+
+ /**
+ * [NEEDS DESCRIPTION]
+ * @property _interpolationFunction
+ * @type Function
+ * @default Kiwi.Utils.Interpolation.Linear
+ * @private
+ */
+ private _interpolationFunction = Kiwi.Utils.GameMath.linearInterpolation;
+
+ /**
+ * An array containing all of the tweens that are to be played when this one finishes.
+ * @property _chainedTweens
+ * @type Tween[]
+ * @private
+ */
+ private _chainedTweens = [];
+
+ /**
+ * The method that is to be called when the tween starts playing.
+ * @property _onStartCallback
+ * @type Function
+ * @default null
+ * @private
+ */
+ private _onStartCallback = null;
+
+ /**
+ * The context that the _onStartCallback method is to be called in.
+ * @property _onStartContext
+ * @type Any
+ * @default null
+ * @private
+ */
+ private _onStartContext:any = null;
+
+ /**
+ * A boolean indicating if the starting callback has been called or not.
+ * @property _onStartCallbackFired
+ * @type boolean
+ * @default false
+ * @private
+ */
+ private _onStartCallbackFired:boolean = false;
+
+ /**
+ * A callback method that will be called each time the tween updates.
+ * @property _onUpdateCallback
+ * @type Function
+ * @default null
+ * @private
+ */
+ private _onUpdateCallback = null;
+
+ /**
+ * The context that the update callback has when called.
+ * @property _onUpdateContext
+ * @type any
+ * @default null
+ * @private
+ */
+ private _onUpdateContext:any = null;
+
+ /**
+ * A method to be called when the tween finish&#x27;s tweening.
+ * @property _onCompleteCallback
+ * @type function
+ * @default null
+ * @private
+ */
+ private _onCompleteCallback = null;
+
+ /*
+ * A boolean indicating whether or not the _onCompleteCallback has been called.
+ * Is reset each time you tell the tween to start.
+ * @property _onCompleteCalled
+ * @type boolean
+ * @default false
+ * @private
+ */
+ private _onCompleteCalled: boolean = false;
+
+ /**
+ * The context that the onCompleteCallback should have when called.
+ * @property _onCompleteContext
+ * @type any
+ * @default null
+ * @private
+ */
+ private _onCompleteContext: any = null;
+
+ /**
+ * An indication of whether or not this tween is currently running.
+ * @property isRunning.
+ * @type boolean
+ * @default false
+ * @public
+ */
+ public isRunning: boolean = false;
+
+ /**
+ * Sets up the various properties that define this tween.
+ * The ending position/properties for this tween, how long the tween should go for, easing method to use and if should start right way.
+ *
+ * @method to
+ * @param properties {Object} The ending location of the properties that you want to tween.
+ * @param [duration=1000] {Number} The duration of the tween.
+ * @param [ease=null] {Any} The easing method to be used. If not specifed then this will default to LINEAR.
+ * @param [autoStart=false] {boolean} If the tween should start right away.
+ * @return {Kiwi.Animations.Tween}
+ * @public
+ */
+ public to(properties, duration: number = 1000, ease: any = null, autoStart: boolean = false):Tween {
+
+ this._duration = duration;
+
+ // If properties isn&#x27;t an object this will fail, sanity check it here somehow?
+ this._valuesEnd = properties;
+
+ if (ease !== null) {
+ this._easingFunction = ease;
+ }
+
+ if (autoStart === true) {
+ return this.start();
+
+ } else {
+ return this;
+ }
+
+ }
+
+ /**
+ * Gets the initial values for the properties that it is to animate and starts the tween process.
+ * @method start
+ * @public
+ */
+ public start() {
+ var property;
+
+ if (this._game === null || this._object === null)
+ {
+ return;
+ }
+
+ this.isRunning = true;
+
+ this._manager.add(this);
+
+ this._onStartCallbackFired = false;
+
+ this._onCompleteCalled = false;
+
+ this._startTime = this._manager.clock.elapsed() * 1000 + this._delayTime;
+
+ for ( var property in this._valuesEnd ) {
+ // This prevents the interpolation of null values or of non-existing properties
+ if ( this._object[ property ] === null || !( property in this._object ) ) {
+ continue;
+ }
+
+ // check if an Array was provided as property value
+ if ( this._valuesEnd[ property ] instanceof Array ) {
+ if ( this._valuesEnd[ property ].length === 0 ) {
+ continue;
+ }
+
+ // create a local copy of the Array with the start value at the front
+ this._valuesEnd[ property ] = [ this._object[ property ] ].concat(this._valuesEnd[ property ]);
+ }
+
+ // Check if property is a function
+ if ( typeof this._object[ property ] === &quot;function&quot; ) {
+ this._valuesStart[ property ] = this._object[ property ]();
+ } else {
+ this._valuesStart[ property ] = this._object[ property ];
+ }
+
+ }
+
+ return this;
+
+ }
+
+ /**
+ * Stops the Tween from running and removes it from the manager.
+ * @method stop
+ * @public
+ */
+ public stop() {
+
+ if (this._manager !== null)
+ {
+ this._manager.remove(this);
+ }
+
+ this.isRunning = false;
+
+ return this;
+
+ }
+
+ /**
+ * Sets the game and the manager of this tween.
+ * @method setParent
+ * @param {Kiwi.Game} value
+ * @public
+ */
+ public setParent(value:Kiwi.Game) {
+
+ this._game = value;
+ this._manager = this._game.tweens;
+
+ }
+
+ /**
+ * Sets the amount of delay that the tween is to have before it starts playing.
+ * @method delay
+ * @param amount {Number} The amount of time to delay the tween by.
+ * @return {Kiwi.Animations.Tween}
+ * @public
+ */
+ public delay(amount:number):Tween {
+
+ this._delayTime = amount;
+ return this;
+
+ }
+
+ /**
+ * Sets the easing method that is to be used when animating this tween.
+ * @method easing
+ * @param easing {Function} The easing function to use.
+ * @return {Kiwi.Animations.Tween}
+ * @public
+ */
+ public easing(easing):Tween {
+
+ this._easingFunction = easing;
+ return this;
+
+ }
+
+ /**
+ * [REQUIRES DESCRIPTION]
+ * @method interpolation
+ * @param {Any} interpolation
+ * @return {Kiwi.Animations.Tween}
+ * @public
+ */
+ public interpolation(interpolation):Tween {
+
+ this._interpolationFunction = interpolation;
+
+ return this;
+
+ }
+
+ /**
+ * Adds another tween that should start playing once tween has completed.
+ * @method chain
+ * @param tween {Kiwi.Animations.Tween}
+ * @return {Kiwi.Animations.Tween}
+ * @public
+ */
+ public chain(tween:Kiwi.Animations.Tween):Tween {
+
+ this._chainedTweens.push(tween);
+ return this;
+
+ }
+
+ /**
+ * Adds a function that is to be executed when the tween start playing.
+ * @method onStart
+ * @param callback {Function} The function that is to be executed on tween start.
+ * @param context {any} The context that function is to have when called.
+ * @return {Kiwi.Animations.Tween}
+ * @public
+ */
+ public onStart(callback, context):Tween {
+
+ this._onStartCallback = callback;
+ this._onStartContext = context;
+ return this;
+
+ }
+
+ /**
+ * Adds a function that is to be executed when this tween updates while it is playing.
+ * @method onUpdate
+ * @param callback {Function} The method that is to be executed.
+ * @param context {Any} The context the method is to have when called.
+ * @public
+ */
+ public onUpdate(callback, context) {
+
+ this._onUpdateCallback = callback;
+ this._onUpdateContext = context;
+ return this;
+
+ }
+
+ /**
+ * Defines a method that is to be called when this tween is finished.
+ * @method onComplete
+ * @param callback {Function} The method that is to be executed.
+ * @param context {Any} The context the method is to have when called.
+ * @public
+ */
+ public onComplete(callback, context) {
+
+ this._onCompleteCallback = callback;
+ this._onCompleteContext = context;
+
+ return this;
+
+ }
+
+ /**
+ * The update loop is executed every frame whilst the tween is running.
+ * @method update
+ * @param time {Number}
+ * @return {boolean} Whether the Tween is still running
+ * @public
+ */
+ public update( time: number ) {
+
+ if ( time &lt; this._startTime - this._delayTime ) {
+ return false;
+ }
+
+ if ( this._onStartCallbackFired === false ) {
+ if ( this._onStartCallback !== null ) {
+ this._onStartCallback.call( this._onStartContext,
+ this._object );
+ }
+
+ this._onStartCallbackFired = true;
+ }
+
+ var elapsed = ( time - this._startTime ) / this._duration;
+ elapsed = elapsed &gt; 1 ? 1 :
+ elapsed &lt; 0 ? 0 :
+ elapsed;
+
+ var value = this._easingFunction( elapsed );
+
+ for ( var property in this._valuesStart ) {
+ var start = this._valuesStart[ property ];
+ var end = this._valuesEnd[ property ];
+
+ // Add checks for object, array, numeric up front
+ if ( end instanceof Array ) {
+ this._object[ property ] =
+ this._interpolationFunction( end, value );
+ } else {
+ if ( typeof this._object[ property ] === &quot;function&quot; ) {
+ this._object[ property ]( start + ( end - start ) * value );
+ } else {
+ this._object[ property ] = start + ( end - start ) * value;
+ }
+ }
+ }
+
+ if ( this._onUpdateCallback !== null ) {
+ this._onUpdateCallback.call( this._onUpdateContext,
+ this._object, value );
+ }
+
+ if ( elapsed === 1 ) {
+ this.isRunning = false;
+
+ if ( this._onCompleteCallback !== null &amp;&amp;
+ this._onCompleteCalled === false ) {
+ this._onCompleteCalled = true;
+ this._onCompleteCallback.call(
+ this._onCompleteContext, this._object );
+ }
+
+ for ( var i = 0; i &lt; this._chainedTweens.length; i++ ) {
+ this._chainedTweens[ i ].start();
+ }
+
+ return false;
+ }
+
+ return true;
+
+ }
+
+ }
}
</pre>
View
368 docs/files/src_animations_tweens_TweenManager.ts.html
@@ -374,190 +374,190 @@ <h1 class="file-heading">File: src/animations/tweens/TweenManager.ts</h1>
module Kiwi.Animations.Tweens {
- /**
- * The TweenManager is automatically created on every game. This class is responsible for the creation and management of tweens for the game.
- *
- * Based on tween.js by sole. Converted to TypeScript and integrated into Kiwi.
- * https://github.com/sole/tween.js
- *
- * @class TweenManager
- * @namespace Kiwi.Animations.Tweens
- * @constructor
- * @param game {Kiwi.Game} Current game
- * @param [clock] {Kiwi.Time.Clock} Clock to use for tweens.
- * Defaults to game.time.clock.
- * @return {Kiwi.Animations.TweenManager}
- *
- * @author sole / http://soledadpenades.com
- * @author mrdoob / http://mrdoob.com
- * @author Robert Eisele / http://www.xarg.org
- * @author Philippe / http://philippe.elsass.me
- * @author Robert Penner / http://www.robertpenner.com/easing_terms_of_use.html
- * @author Paul Lewis / http://www.aerotwist.com/
- * @author lechecacharro
- * @author Josh Faul / http://jocafa.com/
- * @author egraether / http://egraether.com/
- *
- */
- export class TweenManager {
-
- constructor( game: Kiwi.Game, clock?: Kiwi.Time.Clock ) {
-
- this._game = game;
- this._tweens = [];
- this.clock = clock || this._game.time.clock;
-
- }
-
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;TweenManager&quot;
- * @public
- */
- public objType() {
- return &quot;TweenManager&quot;;
- }
-
- /**
- * The game that this manager belongs to.
- * @property _game
- * @type Kiwi.Game
- * @private
- */
- private _game: Kiwi.Game;
-
- /**
- * An array of all of the tweens on the manager.
- * @property _tweens
- * @type Kiwi.Animations.Tween[]
- * @private
- */
- private _tweens: Kiwi.Animations.Tween[];
-
- /**
- * Clock used by tweens
- * @property clock
- * @type Kiwi.Time.Clock
- * @public
- * @since 1.2.0
- */
- public clock: Kiwi.Time.Clock;
-
- /**
- * Returns all of tweens that are on the manager.
- * @method getAll
- * @return Kiwi.Animations.Tween[]
- * @public
- */
- public getAll() {
-
- return this._tweens;
-
- }
-
- /**
- * Removes all of the tweens on the manager.
- * @method removeAll
- * @public
- */
- public removeAll() {
-
- this._tweens.length = 0;
-
- }
-
- /**
- * Creates a new Tween.
- * @method create
- * @param object {Any} The object that this tween is to apply.
- * @return {Kiwi.Animations.Tween} The tween that was created.
- * @public
- */
- public create(object:any): Kiwi.Animations.Tween {
- var tween = new Kiwi.Animations.Tween(object, this._game);
- this.validateClock();
- tween.manager = this;
- return tween;
- }
-
- /**
- * Adds a tween to the manager.
- * @method add
- * @param tween {Kiwi.Animations.Tween} The tween that you want to add to the manager.
- * @return {Kiwi.Animations.Tween}
- * @public
- */
- public add(tween: Kiwi.Animations.Tween): Kiwi.Animations.Tween {
- tween.setParent(this._game);
- tween.manager = this;
- this.validateClock();
- this._tweens.push(tween);
- return tween;
-
- }
-
- /**
- * Removes a tween from this manager.
- * @method remove
- * @param tween {Kiwi.Animations.Tween} The tween that you would like to remove.
- * @return {Kiwi.Animations.Tween} The tween passed in.
- * @public
- */
- public remove(tween: Kiwi.Animations.Tween) {
-
- var i = this._tweens.indexOf(tween);
-
- if (i !== -1)
- {
- this._tweens.splice(i, 1);
- }
-
- return tween;
- }
-
- /**
- * The update loop.
- * @method update
- * @return {boolean} Whether anything was updated
- * @public
- */
- public update() {
- var i = 0,
- numTweens = this._tweens.length;
-
- if ( this._tweens.length === 0 ) {
- return false;
- }
-
- while ( i &lt; numTweens ) {
- if ( this._tweens[ i ].update( this.clock.elapsed() * 1000 ) ) {
- i++;
- } else {
- this._tweens.splice( i, 1 );
- numTweens--;
- }
- }
-
- return true;
- }
-
- /**
- * Validate clock; if no valid clock is found, set one from game
- * @method validateClock
- * @public
- * @since 1.2.0
- */
- public validateClock() {
- if ( !this.clock ) {
- this.clock = this._game.time.clock;
- if ( !this.clock ) {
- Kiwi.Log.error( &quot;Tween manager could not find valid clock!&quot; );
- }
- }
- }
-
- }
+ /**
+ * The TweenManager is automatically created on every game. This class is responsible for the creation and management of tweens for the game.
+ *
+ * Based on tween.js by sole. Converted to TypeScript and integrated into Kiwi.
+ * https://github.com/sole/tween.js
+ *
+ * @class TweenManager
+ * @namespace Kiwi.Animations.Tweens
+ * @constructor
+ * @param game {Kiwi.Game} Current game
+ * @param [clock] {Kiwi.Time.Clock} Clock to use for tweens.
+ * Defaults to game.time.clock.
+ * @return {Kiwi.Animations.TweenManager}
+ *
+ * @author sole / http://soledadpenades.com
+ * @author mrdoob / http://mrdoob.com
+ * @author Robert Eisele / http://www.xarg.org
+ * @author Philippe / http://philippe.elsass.me
+ * @author Robert Penner / http://www.robertpenner.com/easing_terms_of_use.html
+ * @author Paul Lewis / http://www.aerotwist.com/
+ * @author lechecacharro
+ * @author Josh Faul / http://jocafa.com/
+ * @author egraether / http://egraether.com/
+ *
+ */
+ export class TweenManager {
+
+ constructor( game: Kiwi.Game, clock?: Kiwi.Time.Clock ) {
+
+ this._game = game;
+ this._tweens = [];
+ this.clock = clock || this._game.time.clock;
+
+ }
+
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;TweenManager&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;TweenManager&quot;;
+ }
+
+ /**
+ * The game that this manager belongs to.
+ * @property _game
+ * @type Kiwi.Game
+ * @private
+ */
+ private _game: Kiwi.Game;
+
+ /**
+ * An array of all of the tweens on the manager.
+ * @property _tweens
+ * @type Kiwi.Animations.Tween[]
+ * @private
+ */
+ private _tweens: Kiwi.Animations.Tween[];
+
+ /**
+ * Clock used by tweens
+ * @property clock
+ * @type Kiwi.Time.Clock
+ * @public
+ * @since 1.2.0
+ */
+ public clock: Kiwi.Time.Clock;
+
+ /**
+ * Returns all of tweens that are on the manager.
+ * @method getAll
+ * @return Kiwi.Animations.Tween[]
+ * @public
+ */
+ public getAll() {
+
+ return this._tweens;
+
+ }
+
+ /**
+ * Removes all of the tweens on the manager.
+ * @method removeAll
+ * @public
+ */
+ public removeAll() {
+
+ this._tweens.length = 0;
+
+ }
+
+ /**
+ * Creates a new Tween.
+ * @method create
+ * @param object {Any} The object that this tween is to apply.
+ * @return {Kiwi.Animations.Tween} The tween that was created.
+ * @public
+ */
+ public create(object:any): Kiwi.Animations.Tween {
+ var tween = new Kiwi.Animations.Tween(object, this._game);
+ this.validateClock();
+ tween.manager = this;
+ return tween;
+ }
+
+ /**
+ * Adds a tween to the manager.
+ * @method add
+ * @param tween {Kiwi.Animations.Tween} The tween that you want to add to the manager.
+ * @return {Kiwi.Animations.Tween}
+ * @public
+ */
+ public add(tween: Kiwi.Animations.Tween): Kiwi.Animations.Tween {
+ tween.setParent(this._game);
+ tween.manager = this;
+ this.validateClock();
+ this._tweens.push(tween);
+ return tween;
+
+ }
+
+ /**
+ * Removes a tween from this manager.
+ * @method remove
+ * @param tween {Kiwi.Animations.Tween} The tween that you would like to remove.
+ * @return {Kiwi.Animations.Tween} The tween passed in.
+ * @public
+ */
+ public remove(tween: Kiwi.Animations.Tween) {
+
+ var i = this._tweens.indexOf(tween);
+
+ if (i !== -1)
+ {
+ this._tweens.splice(i, 1);
+ }
+
+ return tween;
+ }
+
+ /**
+ * The update loop.
+ * @method update
+ * @return {boolean} Whether anything was updated
+ * @public
+ */
+ public update() {
+ var i = 0,
+ numTweens = this._tweens.length;
+
+ if ( this._tweens.length === 0 ) {
+ return false;
+ }
+
+ while ( i &lt; numTweens ) {
+ if ( this._tweens[ i ].update( this.clock.elapsed() * 1000 ) ) {
+ i++;
+ } else {
+ this._tweens.splice( i, 1 );
+ numTweens--;
+ }
+ }
+
+ return true;
+ }
+
+ /**
+ * Validate clock; if no valid clock is found, set one from game
+ * @method validateClock
+ * @public
+ * @since 1.2.0
+ */
+ public validateClock() {
+ if ( !this.clock ) {
+ this.clock = this._game.time.clock;
+ if ( !this.clock ) {
+ Kiwi.Log.error( &quot;Tween manager could not find valid clock!&quot; );
+ }
+ }
+ }
+
+ }
}
</pre>
View
108 docs/files/src_animations_tweens_easing_Back.ts.html
@@ -374,71 +374,71 @@ <h1 class="file-heading">File: src/animations/tweens/easing/Back.ts</h1>
module Kiwi.Animations.Tweens.Easing {
- /**
- *
- * @class Back
- * @namespace Kiwi.Animations.Tweens.Easing
- *
- */
- export class Back {
+ /**
+ *
+ * @class Back
+ * @namespace Kiwi.Animations.Tweens.Easing
+ *
+ */
+ export class Back {
- /**
- * The type of object this is.
- * @method objType
- * @return {String} &quot;Back&quot;
- * @public
- */
- public objType() {
- return &quot;Back&quot;;
- }
+ /**
+ * The type of object this is.
+ * @method objType
+ * @return {String} &quot;Back&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;Back&quot;;
+ }
- /**
- *
- * @method In
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static In(k) {
+ /**
+ *
+ * @method In
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static In(k) {
- var s = 1.70158;
- return k * k * ((s + 1) * k - s);
+ var s = 1.70158;
+ return k * k * ((s + 1) * k - s);
- }
+ }
- /**
- *
- * @method Out
- * @param {Any} k
- * @return {Number}
- * @static
- * @public
- */
- public static Out(k) {
+ /**
+ *
+ * @method Out
+ * @param {Any} k
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static Out(k) {
- var s = 1.70158;
- return --k * k * ((s + 1) * k + s) + 1;
+ var s = 1.70158;
+ return --k * k * ((s + 1) * k + s) + 1;
- }
+ }
- /**
- *
- * @method InOut
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static InOut(k) {
+ /**
+ *
+ * @method InOut
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static InOut(k) {
- var s = 1.70158 * 1.525;
- if ((k *= 2) &lt; 1) return 0.5 * (k * k * ((s + 1) * k - s));
- return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2);
+ var s = 1.70158 * 1.525;
+ if ((k *= 2) &lt; 1) return 0.5 * (k * k * ((s + 1) * k - s));
+ return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2);
- }
+ }
- }
+ }
}
View
132 docs/files/src_animations_tweens_easing_Bounce.ts.html
@@ -373,83 +373,83 @@ <h1 class="file-heading">File: src/animations/tweens/easing/Bounce.ts</h1>
module Kiwi.Animations.Tweens.Easing {
- /**
- *
- * @class Bounce
- * @namespace Kiwi.Animations.Tweens.Easing
- *
- */
- export class Bounce {
+ /**
+ *
+ * @class Bounce
+ * @namespace Kiwi.Animations.Tweens.Easing
+ *
+ */
+ export class Bounce {
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;Bounce&quot;
- * @public
- */
- public objType() {
- return &quot;Bounce&quot;;
- }
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;Bounce&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;Bounce&quot;;
+ }
- /**
- *
- * @method In
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static In(k) {
+ /**
+ *
+ * @method In
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static In(k) {
- return 1 - Kiwi.Animations.Tweens.Easing.Bounce.Out(1 - k);
+ return 1 - Kiwi.Animations.Tweens.Easing.Bounce.Out(1 - k);
- }
+ }
- /**
- *
- * @method Out
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static Out(k) {
+ /**
+ *
+ * @method Out
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static Out(k) {
- if (k &lt; (1 / 2.75))
- {
- return 7.5625 * k * k;
- }
- else if (k &lt; (2 / 2.75))
- {
- return 7.5625 * (k -= (1.5 / 2.75)) * k + 0.75;
- }
- else if (k &lt; (2.5 / 2.75))
- {
- return 7.5625 * (k -= (2.25 / 2.75)) * k + 0.9375;
- }
- else
- {
- return 7.5625 * (k -= (2.625 / 2.75)) * k + 0.984375;
- }
+ if (k &lt; (1 / 2.75))
+ {
+ return 7.5625 * k * k;
+ }
+ else if (k &lt; (2 / 2.75))
+ {
+ return 7.5625 * (k -= (1.5 / 2.75)) * k + 0.75;
+ }
+ else if (k &lt; (2.5 / 2.75))
+ {
+ return 7.5625 * (k -= (2.25 / 2.75)) * k + 0.9375;
+ }
+ else
+ {
+ return 7.5625 * (k -= (2.625 / 2.75)) * k + 0.984375;
+ }
- }
+ }
- /**
- *
- * @method InOut
- * @param {Any} k
- * @return {Number}
- * @static
- * @public
- */
- public static InOut(k) {
+ /**
+ *
+ * @method InOut
+ * @param {Any} k
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static InOut(k) {
- if (k &lt; 0.5) return Kiwi.Animations.Tweens.Easing.Bounce.In(k * 2) * 0.5;
- return Kiwi.Animations.Tweens.Easing.Bounce.Out(k * 2 - 1) * 0.5 + 0.5;
+ if (k &lt; 0.5) return Kiwi.Animations.Tweens.Easing.Bounce.In(k * 2) * 0.5;
+ return Kiwi.Animations.Tweens.Easing.Bounce.Out(k * 2 - 1) * 0.5 + 0.5;
- }
+ }
- }
+ }
}
View
98 docs/files/src_animations_tweens_easing_Circular.ts.html
@@ -372,66 +372,66 @@ <h1 class="file-heading">File: src/animations/tweens/easing/Circular.ts</h1>
*/
module Kiwi.Animations.Tweens.Easing {
- /**
- *
- *
- * @class Circular
- * @namespace Kiwi.Animations.Tweens.Easing
- *
- */
- export class Circular {
+ /**
+ *
+ *
+ * @class Circular
+ * @namespace Kiwi.Animations.Tweens.Easing
+ *
+ */
+ export class Circular {
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;Circular&quot;
- * @public
- */
- public objType() {
- return &quot;Circular&quot;;
- }
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;Circular&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;Circular&quot;;
+ }
- /**
- *
- * @method In
- * @param k {Any}
- * @return {Number}
- * @static
- */
- public static In(k) {
+ /**
+ *
+ * @method In
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ */
+ public static In(k) {
- return 1 - Math.sqrt(1 - k * k);
+ return 1 - Math.sqrt(1 - k * k);
- }
+ }
- /**
- *
- * @method Out
- * @param k {Any}
- * @return {Number}
- * @static
- */
- public static Out(k) {
+ /**
+ *
+ * @method Out
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ */
+ public static Out(k) {
- return Math.sqrt(1 - (--k * k));
+ return Math.sqrt(1 - (--k * k));
- }
+ }
- /**
- *
- * @method InOut
- * @param k {Any}
- * @return {Number}
- * @static
- */
- public static InOut(k) {
+ /**
+ *
+ * @method InOut
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ */
+ public static InOut(k) {
- if ((k *= 2) &lt; 1) return -0.5 * (Math.sqrt(1 - k * k) - 1);
- return 0.5 * (Math.sqrt(1 - (k -= 2) * k) + 1);
+ if ((k *= 2) &lt; 1) return -0.5 * (Math.sqrt(1 - k * k) - 1);
+ return 0.5 * (Math.sqrt(1 - (k -= 2) * k) + 1);
- }
+ }
- }
+ }
}
View
102 docs/files/src_animations_tweens_easing_Cubic.ts.html
@@ -372,68 +372,68 @@ <h1 class="file-heading">File: src/animations/tweens/easing/Cubic.ts</h1>
*/
module Kiwi.Animations.Tweens.Easing {
-
- /**
- *
- * @class Cubic
- * @namespace Kiwi.Animations.Tweens.Easing
- *
- */
- export class Cubic {
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;Cubic&quot;
- * @public
- */
- public objType() {
- return &quot;Cubic&quot;;
- }
+ /**
+ *
+ * @class Cubic
+ * @namespace Kiwi.Animations.Tweens.Easing
+ *
+ */
+ export class Cubic {
- /**
- *
- * @method In
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static In(k) {
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;Cubic&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;Cubic&quot;;
+ }
- return k * k * k;
+ /**
+ *
+ * @method In
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static In(k) {
- }
+ return k * k * k;
- /**
- *
- * @method Out
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static Out(k) {
+ }
- return --k * k * k + 1;
+ /**
+ *
+ * @method Out
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static Out(k) {
- }
+ return --k * k * k + 1;
- /**
- *
- * @method InOut
- * @param k {Any}
- * @static
- * @public
- */
- public static InOut(k) {
+ }
- if ((k *= 2) &lt; 1) return 0.5 * k * k * k;
- return 0.5 * ((k -= 2) * k * k + 2);
+ /**
+ *
+ * @method InOut
+ * @param k {Any}
+ * @static
+ * @public
+ */
+ public static InOut(k) {
- }
+ if ((k *= 2) &lt; 1) return 0.5 * k * k * k;
+ return 0.5 * ((k -= 2) * k * k + 2);
- }
+ }
+
+ }
}
View
132 docs/files/src_animations_tweens_easing_Elastic.ts.html
@@ -372,83 +372,83 @@ <h1 class="file-heading">File: src/animations/tweens/easing/Elastic.ts</h1>
*/
module Kiwi.Animations.Tweens.Easing {
-
- /**
- *
- *
- * @class Elastic
- * @namespace Kiwi.Animations.Tweens.Easing
- *
- */
- export class Elastic {
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;Elastic&quot;
- * @public
- */
- public objType() {
- return &quot;Elastic&quot;;
- }
+ /**
+ *
+ *
+ * @class Elastic
+ * @namespace Kiwi.Animations.Tweens.Easing
+ *
+ */
+ export class Elastic {
- /**
- *
- * @method In
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static In(k) {
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;Elastic&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;Elastic&quot;;
+ }
- var s, a = 0.1, p = 0.4;
- if (k === 0) return 0;
- if (k === 1) return 1;
- if (!a || a &lt; 1) { a = 1; s = p / 4; }
- else s = p * Math.asin(1 / a) / (2 * Math.PI);
- return -(a * Math.pow(2, 10 * (k -= 1)) * Math.sin((k - s) * (2 * Math.PI) / p));
+ /**
+ *
+ * @method In
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static In(k) {
- }
+ var s, a = 0.1, p = 0.4;
+ if (k === 0) return 0;
+ if (k === 1) return 1;
+ if (!a || a &lt; 1) { a = 1; s = p / 4; }
+ else s = p * Math.asin(1 / a) / (2 * Math.PI);
+ return -(a * Math.pow(2, 10 * (k -= 1)) * Math.sin((k - s) * (2 * Math.PI) / p));
- /**
- *
- * @method Out
- * @param {Any} k
- * @static
- * @public
- */
- public static Out(k) {
+ }
- var s, a = 0.1, p = 0.4;
- if (k === 0) return 0;
- if (k === 1) return 1;
- if (!a || a &lt; 1) { a = 1; s = p / 4; }
- else s = p * Math.asin(1 / a) / (2 * Math.PI);
- return (a * Math.pow(2, -10 * k) * Math.sin((k - s) * (2 * Math.PI) / p) + 1);
+ /**
+ *
+ * @method Out
+ * @param {Any} k
+ * @static
+ * @public
+ */
+ public static Out(k) {
- }
+ var s, a = 0.1, p = 0.4;
+ if (k === 0) return 0;
+ if (k === 1) return 1;
+ if (!a || a &lt; 1) { a = 1; s = p / 4; }
+ else s = p * Math.asin(1 / a) / (2 * Math.PI);
+ return (a * Math.pow(2, -10 * k) * Math.sin((k - s) * (2 * Math.PI) / p) + 1);
- /**
- *
- * @method InOut
- * @param k {Any}
- * @static
- * @public
- */
- public static InOut(k) {
+ }
- var s, a = 0.1, p = 0.4;
- if (k === 0) return 0;
- if (k === 1) return 1;
- if (!a || a &lt; 1) { a = 1; s = p / 4; }
- else s = p * Math.asin(1 / a) / (2 * Math.PI);
- if ((k *= 2) &lt; 1) return -0.5 * (a * Math.pow(2, 10 * (k -= 1)) * Math.sin((k - s) * (2 * Math.PI) / p));
- return a * Math.pow(2, -10 * (k -= 1)) * Math.sin((k - s) * (2 * Math.PI) / p) * 0.5 + 1;
+ /**
+ *
+ * @method InOut
+ * @param k {Any}
+ * @static
+ * @public
+ */
+ public static InOut(k) {
- }
+ var s, a = 0.1, p = 0.4;
+ if (k === 0) return 0;
+ if (k === 1) return 1;
+ if (!a || a &lt; 1) { a = 1; s = p / 4; }
+ else s = p * Math.asin(1 / a) / (2 * Math.PI);
+ if ((k *= 2) &lt; 1) return -0.5 * (a * Math.pow(2, 10 * (k -= 1)) * Math.sin((k - s) * (2 * Math.PI) / p));
+ return a * Math.pow(2, -10 * (k -= 1)) * Math.sin((k - s) * (2 * Math.PI) / p) * 0.5 + 1;
- }
+ }
+
+ }
}
View
108 docs/files/src_animations_tweens_easing_Exponential.ts.html
@@ -373,71 +373,71 @@ <h1 class="file-heading">File: src/animations/tweens/easing/Exponential.ts</h1>
module Kiwi.Animations.Tweens.Easing {
- /**
- *
- *
- * @class Exponential
- * @namespace Kiwi.Animations.Tweens.Easing
- *
- */
- export class Exponential {
+ /**
+ *
+ *
+ * @class Exponential
+ * @namespace Kiwi.Animations.Tweens.Easing
+ *
+ */
+ export class Exponential {
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;Exponential&quot;
- * @public
- */
- public objType() {
- return &quot;Exponential&quot;;
- }
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;Exponential&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;Exponential&quot;;
+ }
- /**
- *
- * @method In
- * @param k {Any}
- * @return {String}
- * @static
- * @public
- */
- public static In(k) {
+ /**
+ *
+ * @method In
+ * @param k {Any}
+ * @return {String}
+ * @static
+ * @public
+ */
+ public static In(k) {
- return k === 0 ? 0 : Math.pow(1024, k - 1);
+ return k === 0 ? 0 : Math.pow(1024, k - 1);
- }
+ }
- /**
- *
- * @method Out
- * @param k {Any}
- * @return {String}
- * @static
- * @public
- */
- public static Out(k) {
+ /**
+ *
+ * @method Out
+ * @param k {Any}
+ * @return {String}
+ * @static
+ * @public
+ */
+ public static Out(k) {
- return k === 1 ? 1 : 1 - Math.pow(2, -10 * k);
+ return k === 1 ? 1 : 1 - Math.pow(2, -10 * k);
- }
+ }
- /**
- *
- * @method InOut
- * @param k {Any}
- * @return {String}
- * @static
- * @public
- */
- public static InOut(k) {
+ /**
+ *
+ * @method InOut
+ * @param k {Any}
+ * @return {String}
+ * @static
+ * @public
+ */
+ public static InOut(k) {
- if (k === 0) return 0;
- if (k === 1) return 1;
- if ((k *= 2) &lt; 1) return 0.5 * Math.pow(1024, k - 1);
- return 0.5 * (-Math.pow(2, -10 * (k - 1)) + 2);
+ if (k === 0) return 0;
+ if (k === 1) return 1;
+ if ((k *= 2) &lt; 1) return 0.5 * Math.pow(1024, k - 1);
+ return 0.5 * (-Math.pow(2, -10 * (k - 1)) + 2);
- }
+ }
- }
+ }
}
View
54 docs/files/src_animations_tweens_easing_Linear.ts.html
@@ -373,38 +373,38 @@ <h1 class="file-heading">File: src/animations/tweens/easing/Linear.ts</h1>
module Kiwi.Animations.Tweens.Easing {
- /**
- *
- * @class Linear
- * @namespace Kiwi.Animations.Tweens.Easing
- *
- */
- export class Linear {
+ /**
+ *
+ * @class Linear
+ * @namespace Kiwi.Animations.Tweens.Easing
+ *
+ */
+ export class Linear {
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;Linear&quot;
- * @public
- */
- public objType() {
- return &quot;Linear&quot;;
- }
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;Linear&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;Linear&quot;;
+ }
- /**
- *
- * @method None
- * @param {Any} k
- * @return {Number}
- * @static
- */
- public static None(k) {
+ /**
+ *
+ * @method None
+ * @param {Any} k
+ * @return {Number}
+ * @static
+ */
+ public static None(k) {
- return k;
+ return k;
- }
+ }
- }
+ }
}
View
104 docs/files/src_animations_tweens_easing_Quadratic.ts.html
@@ -374,69 +374,69 @@ <h1 class="file-heading">File: src/animations/tweens/easing/Quadratic.ts</h1>
module Kiwi.Animations.Tweens.Easing {
- /**
- *
- *
- * @class Quadratic
- * @namespace Kiwi.Animations.Tweens.Easing
- *
- */
- export class Quadratic {
+ /**
+ *
+ *
+ * @class Quadratic
+ * @namespace Kiwi.Animations.Tweens.Easing
+ *
+ */
+ export class Quadratic {
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;Quadratic&quot;
- * @public
- */
- public objType() {
- return &quot;Quadratic&quot;;
- }
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;Quadratic&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;Quadratic&quot;;
+ }
- /**
- *
- * @method In
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static In(k) {
+ /**
+ *
+ * @method In
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static In(k) {
- return k * k;
+ return k * k;
- }
+ }
- /**
- *
- * @method Out
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static Out(k) {
+ /**
+ *
+ * @method Out
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static Out(k) {
- return k * (2 - k);
+ return k * (2 - k);
- }
+ }
- /**
- *
- * @method InOut
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static InOut(k) {
+ /**
+ *
+ * @method InOut
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static InOut(k) {
- if ((k *= 2) &lt; 1) return 0.5 * k * k;
- return -0.5 * (--k * (k - 2) - 1);
+ if ((k *= 2) &lt; 1) return 0.5 * k * k;
+ return -0.5 * (--k * (k - 2) - 1);
- }
+ }
- }
+ }
}
View
102 docs/files/src_animations_tweens_easing_Quartic.ts.html
@@ -374,68 +374,68 @@ <h1 class="file-heading">File: src/animations/tweens/easing/Quartic.ts</h1>
module Kiwi.Animations.Tweens.Easing {
- /**
- *
- * @class Quartic
- * @namespace Kiwi.Animations.Tweens.Easing
- *
- */
- export class Quartic {
+ /**
+ *
+ * @class Quartic
+ * @namespace Kiwi.Animations.Tweens.Easing
+ *
+ */
+ export class Quartic {
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;Quartic&quot;
- * @public
- */
- public objType() {
- return &quot;Quartic&quot;;
- }
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;Quartic&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;Quartic&quot;;
+ }
- /**
- *
- * @method In
- * @param k {Any}
- * @return {String}
- * @static
- * @public
- */
- public static In(k) {
+ /**
+ *
+ * @method In
+ * @param k {Any}
+ * @return {String}
+ * @static
+ * @public
+ */
+ public static In(k) {
- return k * k * k * k;
+ return k * k * k * k;
- }
+ }
- /**
- *
- * @method Out
- * @param k {Any}
- * @return {String}
- * @static
- * @public
- */
- public static Out(k) {
+ /**
+ *
+ * @method Out
+ * @param k {Any}
+ * @return {String}
+ * @static
+ * @public
+ */
+ public static Out(k) {
- return 1 - (--k * k * k * k);
+ return 1 - (--k * k * k * k);
- }
+ }
- /**
- *
- * @method InOut
- * @param k {Any}
- * @return {String}
- * @static
- * @public
- */
- public static InOut(k) {
+ /**
+ *
+ * @method InOut
+ * @param k {Any}
+ * @return {String}
+ * @static
+ * @public
+ */
+ public static InOut(k) {
- if ((k *= 2) &lt; 1) return 0.5 * k * k * k * k;
- return -0.5 * ((k -= 2) * k * k * k - 2);
+ if ((k *= 2) &lt; 1) return 0.5 * k * k * k * k;
+ return -0.5 * ((k -= 2) * k * k * k - 2);
- }
+ }
- }
+ }
}
View
102 docs/files/src_animations_tweens_easing_Quintic.ts.html
@@ -373,68 +373,68 @@ <h1 class="file-heading">File: src/animations/tweens/easing/Quintic.ts</h1>
module Kiwi.Animations.Tweens.Easing {
- /**
- *
- * @class Quintic
- * @namespace Kiwi.Animations.Tweens.Easing
- *
- */
- export class Quintic {
+ /**
+ *
+ * @class Quintic
+ * @namespace Kiwi.Animations.Tweens.Easing
+ *
+ */
+ export class Quintic {
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;Quintic&quot;
- * @public
- */
- public objType() {
- return &quot;Quintic&quot;;
- }
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;Quintic&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;Quintic&quot;;
+ }
- /**
- *
- * @method In
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static In(k) {
+ /**
+ *
+ * @method In
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static In(k) {
- return k * k * k * k * k;
+ return k * k * k * k * k;
- }
+ }
- /**
- *
- * @method Out
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static Out(k) {
+ /**
+ *
+ * @method Out
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static Out(k) {
- return --k * k * k * k * k + 1;
+ return --k * k * k * k * k + 1;
- }
+ }
- /**
- *
- * @method InOut
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static InOut(k) {
+ /**
+ *
+ * @method InOut
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static InOut(k) {
- if ((k *= 2) &lt; 1) return 0.5 * k * k * k * k * k;
- return 0.5 * ((k -= 2) * k * k * k * k + 2);
+ if ((k *= 2) &lt; 1) return 0.5 * k * k * k * k * k;
+ return 0.5 * ((k -= 2) * k * k * k * k + 2);
- }
+ }
- }
+ }
}
View
100 docs/files/src_animations_tweens_easing_Sinusoidal.ts.html
@@ -373,67 +373,67 @@ <h1 class="file-heading">File: src/animations/tweens/easing/Sinusoidal.ts</h1>
module Kiwi.Animations.Tweens.Easing {
- /**
- *
- * @class Sinusoidal
- * @namespace Kiwi.Animations.Tweens.Easing
- *
- */
- export class Sinusoidal {
+ /**
+ *
+ * @class Sinusoidal
+ * @namespace Kiwi.Animations.Tweens.Easing
+ *
+ */
+ export class Sinusoidal {
- /**
- * The type of object that this is.
- * @method objType
- * @return {String} &quot;Sinusoidal&quot;
- * @public
- */
- public objType() {
- return &quot;Sinusoidal&quot;;
- }
+ /**
+ * The type of object that this is.
+ * @method objType
+ * @return {String} &quot;Sinusoidal&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;Sinusoidal&quot;;
+ }
- /**
- *
- * @method In
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static In(k) {
+ /**
+ *
+ * @method In
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static In(k) {
- return 1 - Math.cos(k * Math.PI / 2);
+ return 1 - Math.cos(k * Math.PI / 2);
- }
+ }
- /**
- *
- * @method Out
- * @param k {Any}
- * @return {Number}
- * @static
- * @public
- */
- public static Out(k) {
+ /**
+ *
+ * @method Out
+ * @param k {Any}
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static Out(k) {
- return Math.sin(k * Math.PI / 2);
+ return Math.sin(k * Math.PI / 2);
- }
+ }
- /**
- *
- * @method InOut
- * @param {Any} k
- * @return {Number}
- * @static
- * @public
- */
- public static InOut(k) {
+ /**
+ *
+ * @method InOut
+ * @param {Any} k
+ * @return {Number}
+ * @static
+ * @public
+ */
+ public static InOut(k) {
- return 0.5 * (1 - Math.cos(Math.PI * k));
+ return 0.5 * (1 - Math.cos(Math.PI * k));
- }
+ }
- }
+ }
}
View
888 docs/files/src_components_AnimationManager.ts.html
@@ -370,456 +370,454 @@ <h1 class="file-heading">File: src/components/AnimationManager.ts</h1>
* @module Kiwi
* @submodule Components
* @main Components
-*/
-
+*/
+
module Kiwi.Components {
- /**
- * The AnimationManager is used to handle the creation and use of spritesheet Animations on a GameObject based on the TextureAtlas it has.
- * If the When the AnimationManager is instantiated it will loop through all of the Sequences on the TextureAtlas of the GameObject being used and will create a new Animation for each one.
- * Now when you create a new Animation that animation will automatically be added as a new Sequence to the corresponding Texture.
- * This way you don&#x27;t need to create new Animations for a each Sprite that use&#x27;s the same Texture.
- *
- * @class AnimationManager
- * @extends Kiwi.Component
- * @namespace Kiwi.Components
- * @constructor
- * @param entity {Kiwi.Entity} The entity that this animation component belongs to.
- * @param [inheritSequences=true] {Boolean} If a new Animation should be created for each Sequence on the Entities TextureAtlas it is a part of or not.
- * @return {Kiwi.Components.AnimationManager}
- */
- export class AnimationManager extends Component {
-
- constructor(entity: Kiwi.Entity, inheritSequences: boolean = true) {
- super(entity, &#x27;Animation&#x27;);
-
- //Get the entity and the animation.
- this.entity = entity;
- this._atlas = this.entity.atlas;
- this._animations = {};
-
- //Create all of the default animations.
- if (inheritSequences == true) {
-
- for (var i = 0; i &lt; this._atlas.sequences.length; i++) {
- this.createFromSequence(this._atlas.sequences[i], false);
- }
-
- }
-
- //If a default animation already exists
- if (this._animations[&#x27;default&#x27;]) {
- this.currentAnimation = this._animations[&#x27;default&#x27;];
-
- //Otherwise create one.
- } else {
- var defaultCells = [];
- for (var i = 0; i &lt; this._atlas.cells.length; i++) {
- defaultCells.push(i);
- }
- this.currentAnimation = this.add(&#x27;default&#x27;, defaultCells, 0.1, true, false);
- }
-
- //Signals
- this.onChange = new Kiwi.Signal;
- this.onPlay = new Kiwi.Signal;
- this.onStop = new Kiwi.Signal;
- this.onUpdate = new Kiwi.Signal;
- }
-
- /**
- * Dispatches callbacks each time an animation is told to play through this AnimationManager.
- * Functions dispatched from this signal have ONE Parameter.
- * One - The Animation object of that is now playing.
- * @property onPlay
- * @type Kiwi.Signal
- * @public
- */
- public onPlay: Kiwi.Signal;
-
- /**
- * Dispatches callbacks each time an animation stops.
- * Functions dispatched from this signal have ONE parameter.
- * One - The current animation.
- * @property onStop
- * @type Kiwi.Signal
- * @public
- */
- public onStop: Kiwi.Signal;
-
- /**
- * Dispatches callbacks each time the cell of the Sprite this AnimationManager belongs to updates/changes.
- * Note: This method will be dispatching events EVERY time the cell changes, so this will include when changing/switching animations.
- * @property onUpdate
- * @type Kiwi.Signal
- * @public
- */
- public onUpdate: Kiwi.Signal
-
- /**
- * Dispatches callbacks each time the current animation is switched NOT when the cells of a animation change.
- * Function&#x27;s dispatched from this event have TWO parameters,
- * One - Name of the animation switched to.
- * Two - The Animation object that is now the current.
- * @property onChange
- * @type Kiwi.Signal
- * @public
- */
- public onChange: Kiwi.Signal;
-
- /**
- * The entity that this animation belongs to and thus is effecting.
- * @property entity
- * @type Kiwi.Entity
- * @public
- */
- public entity: Kiwi.Entity;
-
- /**
- * The texture atlas that this animation is taking effect on.
- * The value of this should be the same as the Entity.
- * @property _atlas
- * @type Kiwi.Textures.TextureAtlas
- * @private
- */
- private _atlas: Kiwi.Textures.TextureAtlas;
-
- /**
- * A Object containing all of the animations that are avaiable to be used.
- * @property _animations
- * @type Object
- * @private
- */
- private _animations: {};
-
- /**
- * A reference to the animation that is currently being played.
- * @property currentAnimation
- * @type Kiwi.Animations.Animation
- * @public
- */
- public currentAnimation: Kiwi.Animations.Animation = null;
-
- /**
- * Returns a boolean indicating whether or not the current animation is playing. This is READ ONLY.
- * @property isPlaying
- * @type boolean
- * @public
- */
- public get isPlaying(): boolean {
- return this.currentAnimation.isPlaying;
- }
-
- /**
- * Returns a string indicating the type of object that this is.
- * @method objType
- * @return {String} &quot;AnimationManager&quot;
- * @public
- */
- public objType() {
- return &quot;AnimationManager&quot;;
- }
-
- /**
- * Creates a new Animation (by creating a Sequence) that can then be played on this AnimationManager.
- * If you pass to this the name of a Animation that already exists, then the previous Animation will be overridden by this new one.
- * Note: If the Animation you have overridden was the currentAnimation, then the previous Animation will keep playing until a different Animation is switched to.
- * By default new Animation Sequences are also added to the TextureAtlas, which can then be inherited.
- * Returns the Animation that was created.
- *
- * @method add
- * @param name {string} The name of the animation that is to be created.
- * @param cells {Array} An array of numbers, which are reference to each cell that is to be played in the Animation in order.
- * @param speed {number} The amount of time that each cell in the Animation should stay on screen for. In seconds.
- * @param [loop=false] {boolean} If when the Animation reaches the last frame, it should go back to the start again.
- * @param [play=false] {boolean} If once created the animation should played right away.
- * @param [addToAtlas=true] {boolean} If the new Sequence created should be added to the TextureAtlas or not.
- * @return {Kiwi.Animations.Animation} The Animation that was created.
- * @public
- */
- public add(name: string, cells: number[], speed: number, loop: boolean= false, play: boolean= false, addToAtlas:boolean=true): Kiwi.Animations.Animation {
- var newSequence = new Kiwi.Animations.Sequence(name, cells, speed, loop);
- if(addToAtlas == true) this._atlas.sequences.push(newSequence);
-
- return this.createFromSequence(newSequence, play);
- }
-
- /**
- * Creates a new Animation based on a Sequence that is passed.
- * If you pass to this the name of a Animation that already exists, then the previous Animation will be overridden by this new one.
- * Note: If the Animation you have overridden was the currentAnimation, then the previous Animation will keep playing until a different Animation is switched to.
- * Returns the Animation that was created.
- *
- * @method createFromSequence
- * @param sequence {Kiwi.Sequence} The sequence that the Animation is based on.
- * @param [play=false] {boolean} If the Animation should played once it has been created
- * @return {Kiwi.Animations.Animation} The Animation that was created.
- * @public
- */
- public createFromSequence(sequence: Kiwi.Animations.Sequence, play: boolean= false): Kiwi.Animations.Animation {
- this._animations[sequence.name] = new Kiwi.Animations.Animation(sequence.name, sequence, null, this);
-
- if (play) this.play(sequence.name);
-
- return this._animations[sequence.name];
- }
-
- /**
- * Plays either the current animation or the name of the animation that you pass.
- *
- * @method play
- * @param [name] {String} The name of the animation that you want to play. If not passed it plays the current animation.
- * @param [resetTime=true] {Boolean} When set to false, this will prevent a new Animation from playing if it is already the currentAnimation that is already playing.
- * @return {Kiwi.Animations.Animation} Returns the current Animation that is now playing.
- * @public
- */
- public play(name: string = this.currentAnimation.name, resetTime: boolean = true): Kiwi.Animations.Animation {
-
- //If the current animation playing
- if (resetTime == false &amp;&amp; this.currentAnimation.name === name &amp;&amp; this.currentAnimation.isPlaying == true) {
- return this.currentAnimation;
-
- } else {
- return this._play(name);
- }
-
- }
-
- /**
- * Plays an Animation at a particular frameIndex.
- * Note: The frameIndex is a particular index of a cell in the Sequence of the Animation you would like to play.
- * Example: If you had a Animation with a Sequence [0, 1, 2, 3] and you told it to play at index &#x27;2&#x27;, then the cell that it would be at is &#x27;3&#x27;.
- *
- * @method playAt
- * @param index {Number} The index of the frame in the Sequence that you would like to play.
- * @param [name] {String} The name of the animation that you want to play. If not passed, it attempts to play it on the current animation.
- * @return {Kiwi.Animations.Animation} Returns the current Animation that is now playing.
- * @public
- */
- public playAt(index: number, name: string = this.currentAnimation.name): Kiwi.Animations.Animation {
-
- return this._play(name, index);
- }
-
- /**
- * An internal method used to actually play a Animation at a Index.
- *
- * @method _play
- * @param name {string} The name of the animation that is to be switched to.
- * @param [index=null] {number} The index of the frame in the Sequence that is to play. If null, then it restarts the animation at the cell it currently is at.
- * @return {Kiwi.Animations.Animation} Returns the current Animation that is now playing.
- * @private
- */
- private _play(name: string, index: number=null): Kiwi.Animations.Animation {
-
- this._setCurrentAnimation(name);
-
- if (index !== null)
- this.currentAnimation.playAt(index);
- else
- this.currentAnimation.play();
-
- this.onPlay.dispatch(this.currentAnimation);
- this.updateCellIndex();
- return this.currentAnimation;
- }
-
- /**
- * Stops the current animation from playing.
- *
- * @method stop
- * @public
- */
- public stop() {
- if (this.isPlaying === true) {
- this.currentAnimation.stop();
- this.onStop.dispatch(this.currentAnimation);
- }
- }
-
- /**
- * Pauses the current animation.
- * @method pause
- * @public
- */
- public pause() {
- this.currentAnimation.pause();
- }
-
- /**
- * Resumes the current animation.
- * The animation should have already been paused.
- *
- * @method resume
- * @public
- */
- public resume() {
- this.currentAnimation.resume();
- }
-
- /**
- * Either switches to a particular animation OR a particular frame in the current animation depending on if you pass the name of an animation that exists on this Manager (as a string) or a number refering to a frame index on the Animation.
- * When you switch to a particular animation then
- * You can also force the animation to play or to stop by passing a boolean in. But if left as null, the state of the Animation will based off what is currently happening.
- * So if the animation is currently &#x27;playing&#x27; then once switched to the animation will play. If not currently playing it will switch to and stop.
- * If the previous animation played is non-looping and has reached its final frame, it is no longer considered playing, and as such, switching to another animation will not play unless the argument to the play parameter is true.
- *
- * @method switchTo
- * @param val {string|number}
- * @param [play=null] {boolean} Force the animation to play or stop. If null the animation base&#x27;s it off what is currently happening.
- * @public
- */
- public switchTo(val: any, play:boolean=null) {
- var switched = false;
- switch (typeof val) {
- case &quot;string&quot;:
- if (this.currentAnimation.name !== val) {
- this._setCurrentAnimation(val);
- switched = true;
- }
- break;
- case &quot;number&quot;:
- this.currentAnimation.frameIndex = val;
- switched = true;
- break;
- }
-
- //Play if the dev forced it to OR if the animation was already playing
- if (play || play === null &amp;&amp; this.isPlaying &amp;&amp; switched) this.play();
- if (play == false &amp;&amp; this.isPlaying) this.stop();
-
- this.updateCellIndex();
- }
-
- /**
- * Makes the current animation go to the next frame. If the animation is at the end of the sequence it then goes back to the start.
- * @method nextFrame
- * @public
- */
- public nextFrame() {
- this.currentAnimation.nextFrame();
- this.updateCellIndex();
- }
-
- /**
- * Makes the current animation go to the prev frame. If the animation is at the start, the animation will go the end of the sequence.
- * @method prevFrame
- * @public
- */
- public prevFrame() {
- this.currentAnimation.prevFrame();
- this.updateCellIndex();
- }
-
- /**
- * Internal method that sets the current animation to a Animation passed.
- *
- * @method _setCurrentAnimation
- * @param name {string} Name of the Animation that is to be switched to.
- * @private
- */
- private _setCurrentAnimation(name: string) {
- if (this.currentAnimation.name !== name) {
- if (this.currentAnimation !== null) this.currentAnimation.stop();
-
- if (this._animations[name]) {
- this.currentAnimation = this._animations[name];
- this.onChange.dispatch(name, this.currentAnimation);
- }
- }
- }
-
- /**
- * The update loop for this component.
- * Only updates the currentAnimation and only if it is playing.
- *
- * @method update
- * @public
- */
- public update() {
- if (this.currentAnimation) {
- this.currentAnimation.update();
- }
- }
-
- /**
- * Gets the cell that the current Animation is current at. This is READ ONLY.
- * @property currentCell
- * @type number
- * @public
- */
- public get currentCell():number {
- return this.currentAnimation.currentCell;
- }
-
- /**
- * Gets the current frame index of the cell in the Sequence that is currently playing. This is READ ONLY.
- * @property frameIndex
- * @type number
- * @public
- */
- public get frameIndex():number {
- return this.currentAnimation.frameIndex;
- }
-
- /**
- * Returns the length (Number of cells) of the current Animation that is playing. This is READ ONLY.
- * @property length
- * @type number
- * @public
- */
- public get length(): number {
- return this.currentAnimation.length;
- }
-
- /**
- * Returns a Animation that is on this AnimationComponent
- * Does not check to see if that Animation exists or not.
- *
- * @method getAnimation
- * @param name {string} The name of the Animation you would like to get.
- * @return {Kiwi.Animations.Animation} The Animation that is found. Will be &#x27;undefined&#x27; if a Animation with that name did not exist.
- * @public
- */
- public getAnimation(name: string): Kiwi.Animations.Animation {
- return this._animations[name];
- }
-
- /**
- * An internal method that is used to update the cell index of an entity when an animation says it needs to update.
- * @method updateCellIndex
- * @protected
- */
- public updateCellIndex() {
- if (typeof this.currentAnimation !== &quot;undefined&quot;) {
- this.entity.cellIndex = this.currentAnimation.currentCell;
- this.onUpdate.dispatch(this.currentAnimation);
- }
- }
-
- /**
- * Destroys the animation component and runs the destroy method on all of the anims that it has.
- * @method destroy
- * @public
- */
- public destroy() {
- super.destroy();
-
- for (var key in this._animations) {
- this._animations[key].destroy();
- delete this._animations[key];
- }
- delete this._animations;
- delete this.currentAnimation;
- delete this._atlas;
- }
-
- }
+ /**
+ * The AnimationManager is used to handle the creation and use of spritesheet Animations on a GameObject based on the TextureAtlas it has.
+ * If the When the AnimationManager is instantiated it will loop through all of the Sequences on the TextureAtlas of the GameObject being used and will create a new Animation for each one.
+ * Now when you create a new Animation that animation will automatically be added as a new Sequence to the corresponding Texture.
+ * This way you don&#x27;t need to create new Animations for a each Sprite that use&#x27;s the same Texture.
+ *
+ * @class AnimationManager
+ * @extends Kiwi.Component
+ * @namespace Kiwi.Components
+ * @constructor
+ * @param entity {Kiwi.Entity} The entity that this animation component belongs to.
+ * @param [inheritSequences=true] {Boolean} If a new Animation should be created for each Sequence on the Entities TextureAtlas it is a part of or not.
+ * @return {Kiwi.Components.AnimationManager}
+ */
+ export class AnimationManager extends Component {
+
+ constructor(entity: Kiwi.Entity, inheritSequences: boolean = true) {
+ super(entity, &#x27;Animation&#x27;);
+
+ //Get the entity and the animation.
+ this.entity = entity;
+ this._atlas = this.entity.atlas;
+ this._animations = {};
+
+ //Create all of the default animations.
+ if (inheritSequences == true) {
+
+ for (var i = 0; i &lt; this._atlas.sequences.length; i++) {
+ this.createFromSequence(this._atlas.sequences[i], false);
+ }
+
+ }
+
+ //If a default animation already exists
+ if (this._animations[&#x27;default&#x27;]) {
+ this.currentAnimation = this._animations[&#x27;default&#x27;];
+
+ //Otherwise create one.
+ } else {
+ var defaultCells = [];
+ for (var i = 0; i &lt; this._atlas.cells.length; i++) {
+ defaultCells.push(i);
+ }
+ this.currentAnimation = this.add(&#x27;default&#x27;, defaultCells, 0.1, true, false);
+ }
+
+ //Signals
+ this.onChange = new Kiwi.Signal;
+ this.onPlay = new Kiwi.Signal;
+ this.onStop = new Kiwi.Signal;
+ this.onUpdate = new Kiwi.Signal;
+ }
+
+ /**
+ * Dispatches callbacks each time an animation is told to play through this AnimationManager.
+ * Functions dispatched from this signal have ONE Parameter.
+ * One - The Animation object of that is now playing.
+ * @property onPlay
+ * @type Kiwi.Signal
+ * @public
+ */
+ public onPlay: Kiwi.Signal;
+
+ /**
+ * Dispatches callbacks each time an animation stops.
+ * Functions dispatched from this signal have ONE parameter.
+ * One - The current animation.
+ * @property onStop
+ * @type Kiwi.Signal
+ * @public
+ */
+ public onStop: Kiwi.Signal;
+
+ /**
+ * Dispatches callbacks each time the cell of the Sprite this AnimationManager belongs to updates/changes.
+ * Note: This method will be dispatching events EVERY time the cell changes, so this will include when changing/switching animations.
+ * @property onUpdate
+ * @type Kiwi.Signal
+ * @public
+ */
+ public onUpdate: Kiwi.Signal
+
+ /**
+ * Dispatches callbacks each time the current animation is switched NOT when the cells of a animation change.
+ * Function&#x27;s dispatched from this event have TWO parameters,
+ * One - Name of the animation switched to.
+ * Two - The Animation object that is now the current.
+ * @property onChange
+ * @type Kiwi.Signal
+ * @public
+ */
+ public onChange: Kiwi.Signal;
+
+ /**
+ * The entity that this animation belongs to and thus is effecting.
+ * @property entity
+ * @type Kiwi.Entity
+ * @public
+ */
+ public entity: Kiwi.Entity;
+
+ /**
+ * The texture atlas that this animation is taking effect on.
+ * The value of this should be the same as the Entity.
+ * @property _atlas
+ * @type Kiwi.Textures.TextureAtlas
+ * @private
+ */
+ private _atlas: Kiwi.Textures.TextureAtlas;
+
+ /**
+ * A Object containing all of the animations that are avaiable to be used.
+ * @property _animations
+ * @type Object
+ * @private
+ */
+ private _animations: {};
+
+ /**
+ * A reference to the animation that is currently being played.
+ * @property currentAnimation
+ * @type Kiwi.Animations.Animation
+ * @public
+ */
+ public currentAnimation: Kiwi.Animations.Animation = null;
+
+ /**
+ * Returns a boolean indicating whether or not the current animation is playing. This is READ ONLY.
+ * @property isPlaying
+ * @type boolean
+ * @public
+ */
+ public get isPlaying(): boolean {
+ return this.currentAnimation.isPlaying;
+ }
+
+ /**
+ * Returns a string indicating the type of object that this is.
+ * @method objType
+ * @return {String} &quot;AnimationManager&quot;
+ * @public
+ */
+ public objType() {
+ return &quot;AnimationManager&quot;;
+ }
+
+ /**
+ * Creates a new Animation (by creating a Sequence) that can then be played on this AnimationManager.
+ * If you pass to this the name of a Animation that already exists, then the previous Animation will be overridden by this new one.
+ * Note: If the Animation you have overridden was the currentAnimation, then the previous Animation will keep playing until a different Animation is switched to.
+ * By default new Animation Sequences are also added to the TextureAtlas, which can then be inherited.
+ * Returns the Animation that was created.
+ *
+ * @method add
+ * @param name {string} The name of the animation that is to be created.
+ * @param cells {Array} An array of numbers, which are reference to each cell that is to be played in the Animation in order.
+ * @param speed {number} The amount of time that each cell in the Animation should stay on screen for. In seconds.
+ * @param [loop=false] {boolean} If when the Animation reaches the last frame, it should go back to the start again.
+ * @param [play=false] {boolean} If once created the animation should played right away.
+ * @param [addToAtlas=true] {boolean} If the new Sequence created should be added to the TextureAtlas or not.
+ * @return {Kiwi.Animations.Animation} The Animation that was created.
+ * @public
+ */
+ public add(name: string, cells: number[], speed: number, loop: boolean= false, play: boolean= false, addToAtlas:boolean=true): Kiwi.Animations.Animation {
+ var newSequence = new Kiwi.Animations.Sequence(name, cells, speed, loop);
+ if(addToAtlas == true) this._atlas.sequences.push(newSequence);
+
+ return this.createFromSequence(newSequence, play);
+ }
+
+ /**
+ * Creates a new Animation based on a Sequence that is passed.
+ * If you pass to this the name of a Animation that already exists, then the previous Animation will be overridden by this new one.
+ * Note: If the Animation you have overridden was the currentAnimation, then the previous Animation will keep playing until a different Animation is switched to.
+ * Returns the Animation that was created.
+ *
+ * @method createFromSequence
+ * @param sequence {Kiwi.Sequence} The sequence that the Animation is based on.
+ * @param [play=false] {boolean} If the Animation should played once it has been created
+ * @return {Kiwi.Animations.Animation} The Animation that was created.
+ * @public
+ */
+ public createFromSequence(sequence: Kiwi.Animations.Sequence, play: boolean= false): Kiwi.Animations.Animation {
+ this._animations[sequence.name] = new Kiwi.Animations.Animation(sequence.name, sequence, null, this);
+
+ if (play) this.play(sequence.name);
+
+ return this._animations[sequence.name];
+ }
+
+ /**
+ * Plays either the current animation or the name of the animation that you pass.
+ *
+ * @method play
+ * @param [name] {String} The name of the animation that you want to play. If not passed it plays the current animation.
+ * @param [resetTime=true] {Boolean} When set to false, this will prevent a new Animation from playing if it is already the currentAnimation that is already playing.
+ * @return {Kiwi.Animations.Animation} Returns the current Animation that is now playing.
+ * @public
+ */
+ public play(name: string = this.currentAnimation.name, resetTime: boolean = true): Kiwi.Animations.Animation {
+
+ //If the current animation playing
+ if (resetTime == false &amp;&amp; this.currentAnimation.name === name &amp;&amp; this.currentAnimation.isPlaying == true) {
+ return this.currentAnimation;
+
+ } else {
+ return this._play(name);
+ }
+
+ }
+
+ /**
+ * Plays an Animation at a particular frameIndex.
+ * Note: The frameIndex is a particular index of a cell in the Sequence of the Animation you would like to play.
+ * Example: If you had a Animation with a Sequence [0, 1, 2, 3] and you told it to play at index &#x27;2&#x27;, then the cell that it would be at is &#x27;3&#x27;.
+ *
+ * @method playAt
+ * @param index {Number} The index of the frame in the Sequence that you would like to play.
+ * @param [name] {String} The name of the animation that you want to play. If not passed, it attempts to play it on the current animation.
+ * @return {Kiwi.Animations.Animation} Returns the current Animation that is now playing.
+ * @public
+ */
+ public playAt(index: number, name: string = this.currentAnimation.name): Kiwi.Animations.Animation {
+
+ return this._play(name, index);
+ }
+
+ /**
+ * An internal method used to actually play a Animation at a Index.
+ *
+ * @method _play
+ * @param name {string} The name of the animation that is to be switched to.
+ * @param [index=null] {number} The index of the frame in the Sequence that is to play. If null, then it restarts the animation at the cell it currently is at.
+ * @return {Kiwi.Animations.Animation} Returns the current Animation that is now playing.
+ * @private
+ */
+ private _play(name: string, index: number=null): Kiwi.Animations.Animation {
+
+ this._setCurrentAnimation(name);
+
+ if (index !== null)
+ this.currentAnimation.playAt(index);
+ else
+ this.currentAnimation.play();
+
+ this.onPlay.dispatch(this.currentAnimation);
+ this.updateCellIndex();
+ return this.currentAnimation;
+ }
+
+ /**
+ * Stops the current animation from playing.
+ *
+ * @method stop
+ * @public
+ */
+ public stop() {
+ if (this.isPlaying === true) {
+ this.currentAnimation.stop();
+ this.onStop.dispatch(this.currentAnimation);
+ }
+ }
+
+ /**
+ * Pauses the current animation.
+ * @method pause
+ * @public
+ */
+ public pause() {
+ this.currentAnimation.pause();
+ }
+
+ /**
+ * Resumes the current animation.
+ * The animation should have already been paused.
+ *
+ * @method resume
+ * @public
+ */
+ public resume() {
+ this.currentAnimation.resume();
+ }
+
+ /**
+ * Either switches to a particular animation OR a particular frame in the current animation depending on if you pass the name of an animation that exists on this Manager (as a string) or a number refering to a frame index on the Animation.
+ * When you switch to a particular animation then
+ * You can also force the animation to play or to stop by passing a boolean in. But if left as null, the state of the Animation will based off what is currently happening.
+ * So if the animation is currently &#x27;playing&#x27; then once switched to the animation will play. If not currently playing it will switch to and stop.
+ * If the previous animation played is non-looping and has reached its final frame, it is no longer considered playing, and as such, switching to another animation will not play unless the argument to the play parameter is true.
+ *
+ * @method switchTo
+ * @param val {string|number}
+ * @param [play=null] {boolean} Force the animation to play or stop. If null the animation base&#x27;s it off what is currently happening.
+ * @public
+ */
+ public switchTo(val: any, play:boolean=null) {
+ var switched = false;
+ switch (typeof val) {
+ case &quot;string&quot;:
+ if (this.currentAnimation.name !== val) {
+ this._setCurrentAnimation(val);
+ switched = true;
+ }
+ break;
+ case &quot;number&quot;:
+ this.currentAnimation.frameIndex = val;
+ switched = true;
+ break;
+ }
+
+ //Play if the dev forced it to OR if the animation was already playing
+ if (play || play === null &amp;&amp; this.isPlaying &amp;&amp; switched) this.play();
+ if (play == false &amp;&amp; this.isPlaying) this.stop();
+
+ this.updateCellIndex();
+ }
+
+ /**
+ * Makes the current animation go to the next frame. If the animation is at the end of the sequence it then goes back to the start.
+ * @method nextFrame
+ * @public
+ */
+ public nextFrame() {
+ this.currentAnimation.nextFrame();
+ this.updateCellIndex();
+ }
+
+ /**
+ * Makes the current animation go to the prev frame. If the animation is at the start, the animation will go the end of the sequence.
+ * @method prevFrame
+ * @public
+ */
+ public prevFrame() {
+ this.currentAnimation.prevFrame();
+ this.updateCellIndex();
+ }
+
+ /**
+ * Internal method that sets the current animation to a Animation passed.
+ *
+ * @method _setCurrentAnimation
+ * @param name {string} Name of the Animation that is to be switched to.
+ * @private
+ */
+ private _setCurrentAnimation(name: string) {
+ if (this.currentAnimation.name !== name) {
+ if (this.currentAnimation !== null) this.currentAnimation.stop();
+
+ if (this._animations[name]) {
+ this.currentAnimation = this._animations[name];
+ this.onChange.dispatch(name, this.currentAnimation);
+ }
+ }
+ }
+
+ /**
+ * The update loop for this component.
+ * Only updates the currentAnimation and only if it is playing.
+ *
+ * @method update
+ * @public
+ */
+ public update() {
+ if (this.currentAnimation) {
+ this.currentAnimation.update();
+ }
+ }
+
+ /**
+ * Gets the cell that the current Animation is current at. This is READ ONLY.
+ * @property currentCell
+ * @type number
+ * @public
+ */
+ public get currentCell():number {
+ return this.currentAnimation.currentCell;
+ }
+
+ /**
+ * Gets the current frame index of the cell in the Sequence that is currently playing. This is READ ONLY.
+ * @property frameIndex
+ * @type number
+ * @public
+ */
+ public get frameIndex():number {
+ return this.currentAnimation.frameIndex;
+ }
+
+ /**
+ * Returns the length (Number of cells) of the current Animation that is playing. This is READ ONLY.
+ * @property length
+ * @type number
+ * @public
+ */
+ public get length(): number {
+ return this.currentAnimation.length;
+ }
+
+ /**
+ * Returns a Animation that is on this AnimationComponent
+ * Does not check to see if that Animation exists or not.
+ *
+ * @method getAnimation
+ * @param name {string} The name of the Animation you would like to get.
+ * @return {Kiwi.Animations.Animation} The Animation that is found. Will be &#x27;undefined&#x27; if a Animation with that name did not exist.
+ * @public
+ */
+ public getAnimation(name: string): Kiwi.Animations.Animation {
+ return this._animations[name];
+ }
+
+ /**
+ * An internal method that is used to update the cell index of an entity when an animation says it needs to update.
+ * @method updateCellIndex
+ * @protected
+ */
+ public updateCellIndex() {
+ if (typeof this.currentAnimation !== &quot;undefined&quot;) {
+ this.entity.cellIndex = this.currentAnimation.currentCell;
+ this.onUpdate.dispatch(this.currentAnimation);
+ }
+ }
+
+ /**
+ * Destroys the animation component and runs the destroy method on all of the anims that it has.
+ * @method destroy
+ * @public
+ */
+ public destroy() {
+ super.destroy();
+
+ for (var key in this._animations) {
+ this._animations[key].destroy();
+ delete this._animations[key];
+ }
+ delete this._animations;
+ delete this.currentAnimation;
+ delete this._atlas;
+ }
+
+ }
}
-
-
</pre>
</div>
View
0 docs/files/src_components_ArcadePhysics.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_components_Box.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_components_Input.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_components_Sound.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_Camera.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_CameraManager.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_Component.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_ComponentManager.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_Entity.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_Game.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_Group.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_IChild.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_PluginManager.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_Signal.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_SignalBinding.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_Stage.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_State.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_StateConfig.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_core_StateManager.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_file_AudioFile.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_file_DataFile.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_file_DataLibrary.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_file_File.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_file_FileStore.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_file_Loader.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_file_TextureFile.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_gameobjects_Sprite.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_gameobjects_StaticImage.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_gameobjects_Textfield.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_gameobjects_tilemap_TileMap.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_gameobjects_tilemap_TileMapLayer.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_gameobjects_tilemap_TileType.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_geom_AABB.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_geom_Circle.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_geom_Intersect.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_geom_IntersectResult.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_geom_Line.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_geom_Matrix.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_geom_Point.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_geom_Ray.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_geom_Rectangle.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_geom_Transform.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_geom_Vector2.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_HUDDisplay.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_HUDManager.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_HUDWidget.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_components_Counter.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_components_Time.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_components_WidgetInput.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_widgets_Bar.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_widgets_BasicScore.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_widgets_Button.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_widgets_Icon.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_widgets_IconBar.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_widgets_Menu.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_widgets_MenuItem.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_widgets_TextField.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_hud_widgets_Time.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_input_Finger.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_input_InputManager.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_input_Key.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_input_Keyboard.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_input_Keycodes.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_input_Mouse.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_input_MouseCursor.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_input_Pointer.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_input_Touch.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_render_CanvasRenderer.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_render_GLArrayBuffer.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_render_GLBlendMode.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_render_GLElementArrayBuffer.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_render_GLRenderManager.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_render_GLShaderManager.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_render_GLTextureManager.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_render_GLTextureWrapper.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_render_renderers_Renderer.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_render_renderers_TextureAtlasRenderer.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_render_shaders_ShaderPair.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_render_shaders_TextureAtlasShader.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_sound_Audio.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_sound_AudioLibrary.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_sound_AudioManager.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_system_Bootstrap.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_system_Device.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_textures_SingleImage.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_textures_SpriteSheet.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_textures_TextureAtlas.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_textures_TextureLibrary.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_time_Clock.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_time_ClockManager.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_time_MasterClock.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_time_Timer.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_time_TimerEvent.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_utils_Canvas.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_utils_Common.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_utils_GameMath.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_utils_Log.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_utils_RandomDataGenerator.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_utils_RequestAnimationFrame.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/files/src_utils_Version.ts.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/modules/GameObjects.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/modules/Kiwi.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/modules/Renderers.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 docs/modules/Shaders.html
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 gruntfile.js
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 package.json
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/Kiwi.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/Animation.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/Sequence.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/tweens/Tween.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/tweens/TweenManager.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/tweens/easing/Back.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/tweens/easing/Bounce.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/tweens/easing/Circular.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/tweens/easing/Cubic.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/tweens/easing/Elastic.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/tweens/easing/Exponential.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/tweens/easing/Linear.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/tweens/easing/Quadratic.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/tweens/easing/Quartic.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/tweens/easing/Quintic.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/animations/tweens/easing/Sinusoidal.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/components/AnimationManager.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/components/ArcadePhysics.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/components/Box.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/components/Input.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/components/Sound.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/Camera.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/CameraManager.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/Component.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/ComponentManager.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/Entity.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/Game.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/Group.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/IChild.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/PluginManager.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/Signal.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/SignalBinding.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/Stage.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/State.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/StateConfig.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/core/StateManager.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/file/AudioFile.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/file/DataFile.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/file/DataLibrary.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/file/File.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/file/FileStore.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/file/Loader.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/file/TextureFile.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/gameobjects/Sprite.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/gameobjects/StaticImage.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/gameobjects/Textfield.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/gameobjects/tilemap/TileMap.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/gameobjects/tilemap/TileMapLayer.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/gameobjects/tilemap/TileType.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/geom/AABB.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/geom/Circle.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/geom/Intersect.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/geom/IntersectResult.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/geom/Line.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/geom/Matrix.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/geom/Point.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/geom/Ray.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/geom/Rectangle.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/geom/Transform.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/geom/Vector2.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/HUDDisplay.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/HUDManager.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/HUDWidget.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/components/Counter.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/components/Time.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/components/WidgetInput.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/widgets/Bar.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/widgets/BasicScore.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/widgets/Button.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/widgets/Icon.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/widgets/IconBar.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/widgets/Menu.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/widgets/MenuItem.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/widgets/TextField.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/hud/widgets/Time.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/input/Finger.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/input/InputManager.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/input/Key.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/input/Keyboard.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/input/Keycodes.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/input/Mouse.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/input/MouseCursor.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/input/Pointer.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/input/Touch.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/render/CanvasRenderer.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/render/GLArrayBuffer.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/render/GLBlendMode.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/render/GLElementArrayBuffer.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/render/GLRenderManager.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/render/GLShaderManager.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/render/GLTextureManager.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/render/GLTextureWrapper.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/render/renderers/Renderer.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/render/renderers/TextureAtlasRenderer.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/render/shaders/ShaderPair.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/render/shaders/TextureAtlasShader.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/sound/Audio.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/sound/AudioLibrary.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/sound/AudioManager.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/system/Bootstrap.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/system/Device.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/textures/SingleImage.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/textures/SpriteSheet.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/textures/TextureAtlas.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/textures/TextureLibrary.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/time/Clock.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/time/ClockManager.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/time/MasterClock.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/time/Timer.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/time/TimerEvent.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/utils/Canvas.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/utils/Common.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/utils/GameMath.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/utils/Log.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/utils/RandomDataGenerator.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/utils/RequestAnimationFrame.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 src/utils/Version.ts
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 templateGame/lib/kiwi.js
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 templateGame/src/states/intro.js
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 templateGame/src/states/loading.js
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 templateGame/src/states/play.js
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 tslint.json
Sorry, we could not display the changes to this file because there were too many other changes to display.

0 comments on commit 52091d9

Please sign in to comment.
Something went wrong with that request. Please try again.