Skip to content

Commit 4496e77

Browse files
committed
Removed particle scroll factor property and calculation from canvas rendering
1 parent c4afb51 commit 4496e77

2 files changed

Lines changed: 2 additions & 22 deletions

File tree

src/gameobjects/particles/Particle.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -196,26 +196,6 @@ var Particle = new Class({
196196
*/
197197
this.rotation = 0;
198198

199-
/**
200-
* The horizontal scroll factor of this Particle.
201-
*
202-
* @name Phaser.GameObjects.Particles.Particle#scrollFactorX
203-
* @type {number}
204-
* @default 1
205-
* @since 3.0.0
206-
*/
207-
this.scrollFactorX = 1;
208-
209-
/**
210-
* The vertical scroll factor of this Particle.
211-
*
212-
* @name Phaser.GameObjects.Particles.Particle#scrollFactorY
213-
* @type {number}
214-
* @default 1
215-
* @since 3.0.0
216-
*/
217-
this.scrollFactorY = 1;
218-
219199
/**
220200
* The tint applied to this Particle.
221201
*

src/gameobjects/particles/ParticleManagerCanvasRenderer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ var ParticleManagerCanvasRenderer = function (renderer, emitterManager, interpol
8585
var x = -ox;
8686
var y = -oy;
8787

88-
var tx = particle.x - cameraScrollX * particle.scrollFactorX;
89-
var ty = particle.y - cameraScrollY * particle.scrollFactorY;
88+
var tx = particle.x - cameraScrollX;
89+
var ty = particle.y - cameraScrollY;
9090

9191
if (roundPixels)
9292
{

0 commit comments

Comments
 (0)