Removed particle scroll factor property and calculation from canvas rendering

This commit is contained in:
Felipe Alfonso 2018-04-18 18:44:09 -03:00
parent c4afb51c1b
commit 4496e773a7
2 changed files with 2 additions and 22 deletions

View file

@ -196,26 +196,6 @@ var Particle = new Class({
*/ */
this.rotation = 0; this.rotation = 0;
/**
* The horizontal scroll factor of this Particle.
*
* @name Phaser.GameObjects.Particles.Particle#scrollFactorX
* @type {number}
* @default 1
* @since 3.0.0
*/
this.scrollFactorX = 1;
/**
* The vertical scroll factor of this Particle.
*
* @name Phaser.GameObjects.Particles.Particle#scrollFactorY
* @type {number}
* @default 1
* @since 3.0.0
*/
this.scrollFactorY = 1;
/** /**
* The tint applied to this Particle. * The tint applied to this Particle.
* *

View file

@ -85,8 +85,8 @@ var ParticleManagerCanvasRenderer = function (renderer, emitterManager, interpol
var x = -ox; var x = -ox;
var y = -oy; var y = -oy;
var tx = particle.x - cameraScrollX * particle.scrollFactorX; var tx = particle.x - cameraScrollX;
var ty = particle.y - cameraScrollY * particle.scrollFactorY; var ty = particle.y - cameraScrollY;
if (roundPixels) if (roundPixels)
{ {