More wandering sprite work

This commit is contained in:
2014-06-11 21:46:32 -07:00
parent 179f455960
commit f76030f6d8

View File

@@ -453,8 +453,9 @@ GameState.prototype.update = function()
this.check_input();
this.physics.arcade.collide(player, layer);
function _inner_collidelayer(x) {
function _inner_collide(x) {
this.physics.arcade.collide(x, layer);
this.physics.arcade.collide(x, player);
}
this.wanderingSprites.forEach(_inner_collidelayer, this);