getBounds update.

This commit is contained in:
Richard Davey
2013-09-01 13:17:44 +01:00
parent 71b4cc532f
commit 7bdcbf5c2a
5 changed files with 325 additions and 167 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ Phaser.AnimationManager = function (parent) {
this._frameData = null;
/**
* Keeps track of the current frame of animation.
* Keeps track of the current frame of the animation.
*/
this.currentFrame = null;
+7
View File
@@ -16,6 +16,7 @@ Phaser.Animation.Frame = function (x, y, width, height, name, uuid) {
this.height = height;
this.name = name;
this.uuid = uuid;
this.distance = Phaser.Math.distance(0, 0, width, height);
};
@@ -50,6 +51,12 @@ Phaser.Animation.Frame.prototype = {
*/
height: 0,
/**
* The distance from the top left to the bottom-right of this Frame.
* @type {number}
*/
distance: 0,
/**
* Useful for Sprite Sheets.
* @type {number}