More wandering sprite work

This commit is contained in:
2014-06-11 21:10:51 -07:00
parent 1d282a79f4
commit 7015959c35

View File

@@ -300,7 +300,7 @@ GameState.prototype.create = function()
}
this.shadowTexture = game.add.bitmapData(game.world.width, game.world.height);
this.shadowTextureColor = 'rgb(25, 25, 25)';
this.shadowTextureColor = 'rgb(50, 50, 50)';
// Create an object that will use the bitmap as a texture
this.shadowSprite = game.add.image(0, 0, this.shadowTexture);
@@ -441,7 +441,7 @@ GameState.prototype.update = function()
this.physics.arcade.collide(player, layer);
this.wanderingSprites.iterate('exists', true, function(x) {
this.physics.arcade.collide(x);
this.physics.arcade.collide(x, layer);
});
//this.movingLight.x = player.x;
//this.movingLight.y = player.y;