mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Removed particle scroll factor property and calculation from canvas rendering
This commit is contained in:
parent
c4afb51c1b
commit
4496e773a7
2 changed files with 2 additions and 22 deletions
|
@ -196,26 +196,6 @@ var Particle = new Class({
|
|||
*/
|
||||
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.
|
||||
*
|
||||
|
|
|
@ -85,8 +85,8 @@ var ParticleManagerCanvasRenderer = function (renderer, emitterManager, interpol
|
|||
var x = -ox;
|
||||
var y = -oy;
|
||||
|
||||
var tx = particle.x - cameraScrollX * particle.scrollFactorX;
|
||||
var ty = particle.y - cameraScrollY * particle.scrollFactorY;
|
||||
var tx = particle.x - cameraScrollX;
|
||||
var ty = particle.y - cameraScrollY;
|
||||
|
||||
if (roundPixels)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue