Skip to content

Commit bf13c7b

Browse files
committed
Updated Sprite to use the new smaller, leaner code. Farewell insane cache objects and multiple point processing!
1 parent dd43d59 commit bf13c7b

3 files changed

Lines changed: 235 additions & 655 deletions

File tree

src/gameobjects/Image.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ Phaser.Image.prototype.preUpdate = function() {
119119

120120
if (!this.exists || !this.parent.exists)
121121
{
122+
this.renderOrderID = -1;
122123
return false;
123124
}
124125

@@ -363,9 +364,7 @@ Phaser.Image.prototype.destroy = function() {
363364
};
364365

365366
/**
366-
* Resets the Sprite. This places the Sprite at the given x/y world coordinates and then
367-
* sets alive, exists, visible and renderable all to true. Also resets the outOfBounds state and health values.
368-
* If the Sprite has a physics body that too is reset.
367+
* Resets the Sprite. This places the Sprite at the given x/y world coordinates and then sets alive, exists, visible and renderable all to true.
369368
*
370369
* @method Phaser.Image#reset
371370
* @memberof Phaser.Image
@@ -382,7 +381,6 @@ Phaser.Image.prototype.reset = function(x, y) {
382381
this.exists = true;
383382
this.visible = true;
384383
this.renderable = true;
385-
this._outOfBoundsFired = false;
386384

387385
return this;
388386

0 commit comments

Comments
 (0)