Turned dynamic lights back on

This commit is contained in:
2014-06-12 00:23:31 -07:00
parent 62c5882611
commit 217974046d

View File

@@ -662,10 +662,6 @@ GameState.prototype.check_input = function()
GameState.prototype.update = function() GameState.prototype.update = function()
{ {
if (game.time.fps !== 0) {
this.fpsText.setText(game.time.fps + ' FPS');
}
this.check_input(); this.check_input();
this.physics.arcade.collide(player, layer); this.physics.arcade.collide(player, layer);
@@ -676,6 +672,10 @@ GameState.prototype.update = function()
this.aiSprites.forEach(_inner_collide, this); this.aiSprites.forEach(_inner_collide, this);
this.updateShadowTexture(); this.updateShadowTexture();
if (game.time.fps !== 0) {
this.fpsText.setText(game.time.fps + ' FPS');
this.fpsText.bringToTop();
}
} }
var game = new Phaser.Game(640, 480, Phaser.AUTO, ''); var game = new Phaser.Game(640, 480, Phaser.AUTO, '');