Testing simultaneous lights on screen
This commit is contained in:
@@ -230,6 +230,9 @@ GameState.prototype.create = function()
|
|||||||
|
|
||||||
// Create the lights
|
// Create the lights
|
||||||
this.lights = game.add.group();
|
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.movingLight = new Torch(game, game.width/2, game.height/2);
|
||||||
this.lights.add(this.movingLight);
|
this.lights.add(this.movingLight);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user