mirror of
https://github.com/wassname/phaser.git
synced 2026-08-06 13:31:05 +08:00
Added Full Screen support and tested it. Also added in the BitmapText game object and custom XML loader. Game now sends a pause and resume signal, which the TweenManager listens to and handles correctly.
This commit is contained in:
+4
-1
@@ -158,6 +158,10 @@ Phaser.Time = function (game) {
|
||||
*/
|
||||
this.lastTime = 0;
|
||||
|
||||
// Listen for game pause/resume events
|
||||
this.game.onPause.add(this.gamePaused, this);
|
||||
this.game.onResume.add(this.gameResumed, this);
|
||||
|
||||
};
|
||||
|
||||
Phaser.Time.prototype = {
|
||||
@@ -229,7 +233,6 @@ Phaser.Time.prototype = {
|
||||
// Level out the elapsed timer to avoid spikes
|
||||
this.elapsed = 0;
|
||||
this.physicsElapsed = 0;
|
||||
this.time = Date.now();
|
||||
this.pauseDuration = this.pausedTime;
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user