mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
Frame counter. Handy for debuggin.
This commit is contained in:
parent
0f59b326f6
commit
93f012d3e3
1 changed files with 12 additions and 0 deletions
|
@ -175,6 +175,16 @@ var World = new Class({
|
|||
*/
|
||||
this._frameTime = 1 / this.fps;
|
||||
|
||||
/**
|
||||
* Internal frame counter.
|
||||
*
|
||||
* @name Phaser.Physics.Arcade.World#_frame
|
||||
* @private
|
||||
* @type {number}
|
||||
* @since 3.17.0
|
||||
*/
|
||||
this._frame = 0;
|
||||
|
||||
/**
|
||||
* Internal frame time ms value.
|
||||
*
|
||||
|
@ -999,6 +1009,8 @@ var World = new Class({
|
|||
collider.update();
|
||||
}
|
||||
}
|
||||
|
||||
this._frame++;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue