More wandering sprite work

This commit is contained in:
2014-06-11 21:42:36 -07:00
parent d90d1b9591
commit 3928b6dd2b

View File

@@ -453,9 +453,11 @@ GameState.prototype.update = function()
this.check_input();
this.physics.arcade.collide(player, layer);
this.wanderingSprites.iterate('exists', true, function(x) {
function _inner_collidewith(x) {
this.physics.arcade.collide(x, layer);
});
}
this.wanderingSprites.iterate('exists', true, _inner_collidewith);
//this.movingLight.x = player.x;
//this.movingLight.y = player.y;
this.updateShadowTexture();