More wandering sprite work
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user