mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +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.translate(srcX, srcY);
|
||||
ctx.translate(srcX - cameraScrollX, srcY - cameraScrollY);
|
||||
ctx.rotate(srcRotation);
|
||||
ctx.scale(srcScaleX, srcScaleY);
|
||||
ctx.fillStyle = '#fff';
|
||||
|
|
Loading…
Reference in a new issue