mirror of
https://github.com/photonstorm/phaser
synced 2024-12-02 17:41:06 +00:00
camera scrolling affects canvas rendering
This commit is contained in:
parent
a70ee2e22a
commit
011014d645
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ var GraphicsCanvasRenderer = function (renderer, src, interpolationPercentage, c
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.save();
|
ctx.save();
|
||||||
ctx.translate(srcX, srcY);
|
ctx.translate(srcX - cameraScrollX, srcY - cameraScrollY);
|
||||||
ctx.rotate(srcRotation);
|
ctx.rotate(srcRotation);
|
||||||
ctx.scale(srcScaleX, srcScaleY);
|
ctx.scale(srcScaleX, srcScaleY);
|
||||||
ctx.fillStyle = '#fff';
|
ctx.fillStyle = '#fff';
|
||||||
|
|
Loading…
Reference in a new issue