mirror of
https://github.com/wassname/phaser.git
synced 2026-07-11 00:40:20 +08:00
Merge pull request #74 from cottonflop/dev
Fix for incorrect new particle positioning (issue #73)
This commit is contained in:
@@ -363,8 +363,8 @@ Phaser.Sprite.prototype.reset = function(x, y) {
|
||||
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.position.x = x;
|
||||
this.position.y = y;
|
||||
this.position.x = this.x - (this.game.world.camera.x * this.scrollFactor.x);
|
||||
this.position.y = this.y - (this.game.world.camera.y * this.scrollFactor.y);
|
||||
this.alive = true;
|
||||
this.exists = true;
|
||||
this.visible = true;
|
||||
|
||||
Reference in New Issue
Block a user