Updated Sprite to use the new smaller, leaner code. Farewell insane cache objects and multiple point processing!

This commit is contained in:
photonstorm
2014-02-07 18:44:58 +00:00
parent dd43d59cce
commit bf13c7b569
3 changed files with 251 additions and 671 deletions
-9
View File
@@ -499,14 +499,6 @@ Phaser.InputHandler.prototype = {
// Need to pass it a temp point, in case we need it again for the pixel check
if (this.game.input.hitTest(this.sprite, pointer, this._tempPoint))
{
return true;
}
/*
this.sprite.getLocalUnmodifiedPosition(this._tempPoint, pointer.x, pointer.y);
if (this._tempPoint.x >= 0 && this._tempPoint.x <= this.sprite.currentFrame.width && this._tempPoint.y >= 0 && this._tempPoint.y <= this.sprite.currentFrame.height)
{
if (this.pixelPerfect)
{
@@ -517,7 +509,6 @@ Phaser.InputHandler.prototype = {
return true;
}
}
*/
return false;