Testing simultaneous lights on screen

This commit is contained in:
Andrew Kesterson
2014-06-11 10:51:45 -07:00
parent a8f4b96873
commit 2cc3a08aa5

View File

@@ -230,6 +230,9 @@ GameState.prototype.create = function()
// Create the lights
this.lights = game.add.group();
for (i = 0; i < 20 ; i++ ) {
this.lights.add(Torch(game, game.rnd.integerInRange(0, game.width), game.rnd.integerInRange(1,game.height)));
}
this.movingLight = new Torch(game, game.width/2, game.height/2);
this.lights.add(this.movingLight);