Fix the FPS counter to the camera

This commit is contained in:
Andrew Kesterson
2014-06-11 10:46:14 -07:00
parent a445d88bd0
commit 42a504a3ae

View File

@@ -217,6 +217,7 @@ GameState.prototype.create = function()
this.fpsText = this.game.add.text( this.fpsText = this.game.add.text(
20, 20, '', { font: '16px Arial', fill: '#ffffff' } 20, 20, '', { font: '16px Arial', fill: '#ffffff' }
); );
this.fpsText.fixedToCamera = true;
this.shadowTexture = game.add.bitmapData(game.world.width, game.world.height); this.shadowTexture = game.add.bitmapData(game.world.width, game.world.height);