mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Camera update now receives timestep and delta
This commit is contained in:
parent
5fff7c4c55
commit
639e6a14c5
3 changed files with 4 additions and 4 deletions
|
@ -88,7 +88,7 @@ Camera.prototype = {
|
|||
return this;
|
||||
},
|
||||
|
||||
update: function (delta)
|
||||
update: function (timestep, delta)
|
||||
{
|
||||
if (this._flashAlpha > 0.0)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
var CHECKSUM = {
|
||||
build: '16384640-5308-11e7-8460-f5f1d2b80b32'
|
||||
build: '54effe90-54f3-11e7-845d-d91b54e9fe70'
|
||||
};
|
||||
module.exports = CHECKSUM;
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue