Skip to content

Commit

Permalink
setup rotating camera
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Blackwell committed Dec 31, 2014
1 parent 66de07a commit 53b508a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/renderers/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,6 @@ Physics.renderer('canvas', function( proto ){
this.el = viewport;
}

//this.rotatedCanvas = document.getElementById('rotatedCanvas');
//this.rotatedCanvas.width = viewport.width;
//this.rotatedCanvas.height = viewport.height;

//viewport.style.visibility = 'hidden';
this.ctx = viewport.getContext('2d');

this.els = {};
Expand Down Expand Up @@ -790,14 +785,6 @@ Physics.renderer('canvas', function( proto ){
this._layers[ id ].render();
}

//this.rotatedCanvas.width = this.rotatedCanvas.width;
//ctx.save();
//ctx.translate(1000, 1400);
//ctx.rotate(this.cameraAngle);
//ctx.translate(-1000, -1400);
//ctx.drawImage(view, 0, 0);
//ctx.restore();

return this;
}
};
Expand Down

0 comments on commit 53b508a

Please sign in to comment.