Camera update now receives timestep and delta

This commit is contained in:
Felipe Alfonso 2017-06-19 09:31:29 -04:00
parent 5fff7c4c55
commit 639e6a14c5
3 changed files with 4 additions and 4 deletions

View file

@ -88,7 +88,7 @@ Camera.prototype = {
return this;
},
update: function (delta)
update: function (timestep, delta)
{
if (this._flashAlpha > 0.0)
{

View file

@ -1,4 +1,4 @@
var CHECKSUM = {
build: '16384640-5308-11e7-8460-f5f1d2b80b32'
build: '54effe90-54f3-11e7-845d-d91b54e9fe70'
};
module.exports = CHECKSUM;

View file

@ -88,11 +88,11 @@ CameraManager.prototype = {
this.main = this.add();
},
update: function (timestep)
update: function (timestep, delta)
{
for (var i = 0, l = this.cameras.length; i < l; ++i)
{
this.cameras[i].update(timestep);
this.cameras[i].update(timestep, delta);
}
},