mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Remove duplicate code
This commit is contained in:
parent
5940df46fa
commit
e2d775e083
1 changed files with 3 additions and 6 deletions
|
@ -740,19 +740,16 @@ var CanvasRenderer = new Class({
|
|||
// Undo the camera scroll
|
||||
spriteMatrix.e = sprite.x;
|
||||
spriteMatrix.f = sprite.y;
|
||||
|
||||
// Multiply by the Sprite matrix, store result in calcMatrix
|
||||
camMatrix.multiply(spriteMatrix, calcMatrix);
|
||||
}
|
||||
else
|
||||
{
|
||||
spriteMatrix.e -= camera.scrollX * sprite.scrollFactorX;
|
||||
spriteMatrix.f -= camera.scrollY * sprite.scrollFactorY;
|
||||
|
||||
// Multiply by the Sprite matrix, store result in calcMatrix
|
||||
camMatrix.multiply(spriteMatrix, calcMatrix);
|
||||
}
|
||||
|
||||
// Multiply by the Sprite matrix, store result in calcMatrix
|
||||
camMatrix.multiply(spriteMatrix, calcMatrix);
|
||||
|
||||
ctx.save();
|
||||
|
||||
calcMatrix.setToContext(ctx);
|
||||
|
|
Loading…
Reference in a new issue