mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Merge branch 'master' of https://github.com/photonstorm/phaser
This commit is contained in:
commit
2e78cb4bc6
1 changed files with 1 additions and 4 deletions
|
@ -69,9 +69,6 @@ var ParticleManagerCanvasRenderer = function (renderer, emitterManager, camera,
|
||||||
|
|
||||||
camera.addToRenderList(emitter);
|
camera.addToRenderList(emitter);
|
||||||
|
|
||||||
var followX = (emitter.follow) ? emitter.follow.x + emitter.followOffset.x : 0;
|
|
||||||
var followY = (emitter.follow) ? emitter.follow.y + emitter.followOffset.y : 0;
|
|
||||||
|
|
||||||
var scrollFactorX = emitter.scrollFactorX;
|
var scrollFactorX = emitter.scrollFactorX;
|
||||||
var scrollFactorY = emitter.scrollFactorY;
|
var scrollFactorY = emitter.scrollFactorY;
|
||||||
|
|
||||||
|
@ -94,7 +91,7 @@ var ParticleManagerCanvasRenderer = function (renderer, emitterManager, camera,
|
||||||
|
|
||||||
camMatrix.copyFrom(camera.matrix);
|
camMatrix.copyFrom(camera.matrix);
|
||||||
|
|
||||||
camMatrix.multiplyWithOffset(managerMatrix, followX + -camera.scrollX * scrollFactorX, followY + -camera.scrollY * scrollFactorY);
|
camMatrix.multiplyWithOffset(managerMatrix, -camera.scrollX * scrollFactorX, -camera.scrollY * scrollFactorY);
|
||||||
|
|
||||||
// Undo the camera scroll
|
// Undo the camera scroll
|
||||||
particleMatrix.e = particle.x;
|
particleMatrix.e = particle.x;
|
||||||
|
|
Loading…
Reference in a new issue