Doing one final commit before the task of merging physics with core.

This commit is contained in:
Richard Davey
2013-06-25 15:35:45 +01:00
parent ec845155eb
commit 0591c7f2bd
12 changed files with 659 additions and 682 deletions
+4 -3
View File
@@ -93,12 +93,13 @@ module Phaser {
*/
public checkFrameName(name: string): bool {
if (this._frameNames[name])
if (this._frameNames[name] == null)
{
return true;
return false;
}
return false;
return true;
}
+4 -1
View File
@@ -263,6 +263,7 @@ module Phaser.Components.Sprite {
if (this.enabled)
{
this.enabled = false;
this.game.input.removeGameObject(this.indexID);
}
@@ -578,7 +579,9 @@ module Phaser.Components.Sprite {
if (this.dragFromCenter)
{
// Move the sprite to the middle of the pointer
this._dragPoint.setTo(-this.sprite.worldView.halfWidth, -this.sprite.worldView.halfHeight);
//this._dragPoint.setTo(-this.sprite.worldView.halfWidth, -this.sprite.worldView.halfHeight);
//this._dragPoint.setTo(this.sprite.transform.center.x, this.sprite.transform.center.y);
this._dragPoint.setTo(this.sprite.x - pointer.x, this.sprite.y - pointer.y);
}
else
{