Skip to content

Commit 93f012d

Browse files
committed
Frame counter. Handy for debuggin.
1 parent 0f59b32 commit 93f012d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/physics/arcade/World.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,16 @@ var World = new Class({
175175
*/
176176
this._frameTime = 1 / this.fps;
177177

178+
/**
179+
* Internal frame counter.
180+
*
181+
* @name Phaser.Physics.Arcade.World#_frame
182+
* @private
183+
* @type {number}
184+
* @since 3.17.0
185+
*/
186+
this._frame = 0;
187+
178188
/**
179189
* Internal frame time ms value.
180190
*
@@ -999,6 +1009,8 @@ var World = new Class({
9991009
collider.update();
10001010
}
10011011
}
1012+
1013+
this._frame++;
10021014
},
10031015

10041016
/**

0 commit comments

Comments
 (0)