mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
Removed resolution
This commit is contained in:
parent
5ef7d18ead
commit
a7b3c95e30
1 changed files with 7 additions and 6 deletions
|
@ -593,7 +593,8 @@ var CameraManager = new Class({
|
|||
{
|
||||
var scene = this.scene;
|
||||
var cameras = this.cameras;
|
||||
var resolution = this.systems.game.scale.resolution;
|
||||
|
||||
// var resolution = this.systems.game.scale.resolution;
|
||||
|
||||
for (var i = 0; i < this.cameras.length; i++)
|
||||
{
|
||||
|
@ -601,7 +602,7 @@ var CameraManager = new Class({
|
|||
|
||||
if (camera.visible && camera.alpha > 0)
|
||||
{
|
||||
camera.preRender(resolution);
|
||||
camera.preRender(1);
|
||||
|
||||
renderer.render(scene, children, interpolation, camera);
|
||||
}
|
||||
|
@ -640,14 +641,14 @@ var CameraManager = new Class({
|
|||
* @protected
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {number} timestep - The timestep value.
|
||||
* @param {number} delta - The delta value since the last frame.
|
||||
* @param {integer} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.
|
||||
* @param {number} delta - The delta time, in ms, elapsed since the last frame.
|
||||
*/
|
||||
update: function (timestep, delta)
|
||||
update: function (time, delta)
|
||||
{
|
||||
for (var i = 0; i < this.cameras.length; i++)
|
||||
{
|
||||
this.cameras[i].update(timestep, delta);
|
||||
this.cameras[i].update(time, delta);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue