More wandering sprite work
This commit is contained in:
@@ -453,8 +453,9 @@ GameState.prototype.update = function()
|
|||||||
this.check_input();
|
this.check_input();
|
||||||
this.physics.arcade.collide(player, layer);
|
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, layer);
|
||||||
|
this.physics.arcade.collide(x, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.wanderingSprites.forEach(_inner_collidelayer, this);
|
this.wanderingSprites.forEach(_inner_collidelayer, this);
|
||||||
|
|||||||
Reference in New Issue
Block a user