mirror of
https://github.com/wassname/phaser.git
synced 2026-08-06 13:31:05 +08:00
Lots more physics tests and updates.
PLEASE DO NOT upgrade to this release if you need your game working and it uses any of the physics functions, as they're nearly all broken here. Just pushing up so I can share it with someone.
This commit is contained in:
+16
-11
@@ -20,32 +20,32 @@ Phaser.Time = function (game) {
|
||||
this.game = game;
|
||||
|
||||
/**
|
||||
* @property {number} physicsElapsed - The elapsed time calculated for the physics motion updates.
|
||||
*/
|
||||
this.physicsElapsed = 0;
|
||||
|
||||
/**
|
||||
* @property {number} time - Game time counter.
|
||||
* @property {number} time - Game time counter. If you need a value for in-game calculation please use Phaser.Time.now instead.
|
||||
* @protected
|
||||
*/
|
||||
this.time = 0;
|
||||
|
||||
/**
|
||||
* @property {number} pausedTime - Records how long the game has been paused for. Is reset each time the game pauses.
|
||||
*/
|
||||
this.pausedTime = 0;
|
||||
|
||||
/**
|
||||
* @property {number} now - The time right now.
|
||||
* @protected
|
||||
*/
|
||||
this.now = 0;
|
||||
|
||||
/**
|
||||
* @property {number} elapsed - Elapsed time since the last frame (in ms).
|
||||
* @protected
|
||||
*/
|
||||
this.elapsed = 0;
|
||||
|
||||
/**
|
||||
* @property {number} pausedTime - Records how long the game has been paused for. Is reset each time the game pauses.
|
||||
* @protected
|
||||
*/
|
||||
this.pausedTime = 0;
|
||||
|
||||
/**
|
||||
* @property {number} fps - Frames per second.
|
||||
* @protected
|
||||
*/
|
||||
this.fps = 0;
|
||||
|
||||
@@ -70,6 +70,11 @@ Phaser.Time = function (game) {
|
||||
*/
|
||||
this.msMax = 0;
|
||||
|
||||
/**
|
||||
* @property {number} physicsElapsed - The elapsed time calculated for the physics motion updates.
|
||||
*/
|
||||
this.physicsElapsed = 0;
|
||||
|
||||
/**
|
||||
* @property {number} frames - The number of frames record in the last second.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user